From 0d9cfa1e9dce87d11c0aa13f3cc7feefe0088457 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 9 May 2023 19:22:14 +0000 Subject: [PATCH 01/17] chore(main): release 2.19.1-SNAPSHOT (#1671) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- WORKSPACE | 2 +- api-common-java/pom.xml | 4 +-- coverage-report/pom.xml | 8 ++--- gapic-generator-java-bom/pom.xml | 26 +++++++-------- gapic-generator-java-pom-parent/pom.xml | 2 +- gapic-generator-java/pom.xml | 6 ++-- gax-java/dependencies.properties | 8 ++--- gax-java/gax-bom/pom.xml | 20 ++++++------ gax-java/gax-grpc/pom.xml | 4 +-- gax-java/gax-httpjson/pom.xml | 4 +-- gax-java/gax/pom.xml | 4 +-- gax-java/pom.xml | 14 ++++---- .../grpc-google-common-protos/pom.xml | 4 +-- java-common-protos/pom.xml | 8 ++--- .../proto-google-common-protos/pom.xml | 4 +-- java-core/google-cloud-core-bom/pom.xml | 10 +++--- java-core/google-cloud-core-grpc/pom.xml | 4 +-- java-core/google-cloud-core-http/pom.xml | 4 +-- java-core/google-cloud-core/pom.xml | 4 +-- java-core/pom.xml | 6 ++-- java-iam/grpc-google-iam-v1/pom.xml | 4 +-- java-iam/grpc-google-iam-v2/pom.xml | 4 +-- java-iam/grpc-google-iam-v2beta/pom.xml | 4 +-- java-iam/pom.xml | 20 ++++++------ java-iam/proto-google-iam-v1/pom.xml | 4 +-- java-iam/proto-google-iam-v2/pom.xml | 4 +-- java-iam/proto-google-iam-v2beta/pom.xml | 4 +-- .../dependency-convergence-check/pom.xml | 2 +- .../first-party-dependencies/pom.xml | 10 +++--- java-shared-dependencies/pom.xml | 8 ++--- .../third-party-dependencies/pom.xml | 2 +- .../upper-bound-check/pom.xml | 4 +-- showcase/pom.xml | 2 +- versions.txt | 32 +++++++++---------- 34 files changed, 125 insertions(+), 125 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 79bf8765dc..0b53931add 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -60,7 +60,7 @@ maven_install( repositories = ["https://repo.maven.apache.org/maven2/"], ) -_gapic_generator_java_version = "2.19.0" # {x-version-update:gapic-generator-java:current} +_gapic_generator_java_version = "2.19.1-SNAPSHOT" # {x-version-update:gapic-generator-java:current} maven_install( artifacts = [ diff --git a/api-common-java/pom.xml b/api-common-java/pom.xml index 84481f6e76..fe8612850a 100644 --- a/api-common-java/pom.xml +++ b/api-common-java/pom.xml @@ -5,14 +5,14 @@ com.google.api api-common jar - 2.10.0 + 2.10.1-SNAPSHOT API Common Common utilities for Google APIs in Java com.google.api gapic-generator-java-pom-parent - 2.19.0 + 2.19.1-SNAPSHOT ../gapic-generator-java-pom-parent diff --git a/coverage-report/pom.xml b/coverage-report/pom.xml index 4216abb9f7..328841a20c 100644 --- a/coverage-report/pom.xml +++ b/coverage-report/pom.xml @@ -31,22 +31,22 @@ com.google.api gax - 2.27.0 + 2.27.1-SNAPSHOT com.google.api gax-grpc - 2.27.0 + 2.27.1-SNAPSHOT com.google.api gax-httpjson - 0.112.0 + 0.112.1-SNAPSHOT com.google.api api-common - 2.10.0 + 2.10.1-SNAPSHOT diff --git a/gapic-generator-java-bom/pom.xml b/gapic-generator-java-bom/pom.xml index d7d4023acb..a383d77b3f 100644 --- a/gapic-generator-java-bom/pom.xml +++ b/gapic-generator-java-bom/pom.xml @@ -4,7 +4,7 @@ com.google.api gapic-generator-java-bom pom - 2.19.0 + 2.19.1-SNAPSHOT GAPIC Generator Java BOM BOM for the libraries in gapic-generator-java repository. Users should not @@ -15,7 +15,7 @@ com.google.api gapic-generator-java-pom-parent - 2.19.0 + 2.19.1-SNAPSHOT ../gapic-generator-java-pom-parent @@ -60,61 +60,61 @@ com.google.api api-common - 2.10.0 + 2.10.1-SNAPSHOT com.google.api gax-bom - 2.27.0 + 2.27.1-SNAPSHOT pom import com.google.api gapic-generator-java - 2.19.0 + 2.19.1-SNAPSHOT com.google.api.grpc grpc-google-common-protos - 2.18.0 + 2.18.1-SNAPSHOT com.google.api.grpc proto-google-common-protos - 2.18.0 + 2.18.1-SNAPSHOT com.google.api.grpc proto-google-iam-v1 - 1.13.0 + 1.13.1-SNAPSHOT com.google.api.grpc proto-google-iam-v2 - 1.13.0 + 1.13.1-SNAPSHOT com.google.api.grpc proto-google-iam-v2beta - 1.13.0 + 1.13.1-SNAPSHOT com.google.api.grpc grpc-google-iam-v1 - 1.13.0 + 1.13.1-SNAPSHOT com.google.api.grpc grpc-google-iam-v2 - 1.13.0 + 1.13.1-SNAPSHOT com.google.api.grpc grpc-google-iam-v2beta - 1.13.0 + 1.13.1-SNAPSHOT diff --git a/gapic-generator-java-pom-parent/pom.xml b/gapic-generator-java-pom-parent/pom.xml index adda3235c9..2eaaefa92e 100644 --- a/gapic-generator-java-pom-parent/pom.xml +++ b/gapic-generator-java-pom-parent/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.google.api gapic-generator-java-pom-parent - 2.19.0 + 2.19.1-SNAPSHOT pom GAPIC Generator Java POM Parent https://github.com/googleapis/gapic-generator-java diff --git a/gapic-generator-java/pom.xml b/gapic-generator-java/pom.xml index e1dcdf1f72..c22d1e966b 100644 --- a/gapic-generator-java/pom.xml +++ b/gapic-generator-java/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.google.api gapic-generator-java - 2.19.0 + 2.19.1-SNAPSHOT GAPIC Generator Java GAPIC generator Java @@ -23,7 +23,7 @@ com.google.api gapic-generator-java-pom-parent - 2.19.0 + 2.19.1-SNAPSHOT ../gapic-generator-java-pom-parent @@ -32,7 +32,7 @@ com.google.api gapic-generator-java-bom - 2.19.0 + 2.19.1-SNAPSHOT pom import diff --git a/gax-java/dependencies.properties b/gax-java/dependencies.properties index a8e8e1c834..0271a7abb5 100644 --- a/gax-java/dependencies.properties +++ b/gax-java/dependencies.properties @@ -8,16 +8,16 @@ # Versions of oneself # {x-version-update-start:gax:current} -version.gax=2.27.0 +version.gax=2.27.1-SNAPSHOT # {x-version-update-end} # {x-version-update-start:gax:current} -version.gax_grpc=2.27.0 +version.gax_grpc=2.27.1-SNAPSHOT # {x-version-update-end} # {x-version-update-start:gax:current} -version.gax_bom=2.27.0 +version.gax_bom=2.27.1-SNAPSHOT # {x-version-update-end} # {x-version-update-start:gax-httpjson:current} -version.gax_httpjson=0.112.0 +version.gax_httpjson=0.112.1-SNAPSHOT # {x-version-update-end} # Versions for dependencies which actual artifacts differ between Bazel and Gradle. diff --git a/gax-java/gax-bom/pom.xml b/gax-java/gax-bom/pom.xml index 235e77213f..d88566a6dc 100644 --- a/gax-java/gax-bom/pom.xml +++ b/gax-java/gax-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.api gax-bom - 2.27.0 + 2.27.1-SNAPSHOT pom GAX (Google Api eXtensions) for Java (BOM) Google Api eXtensions for Java (BOM) @@ -43,55 +43,55 @@ com.google.api gax - 2.27.0 + 2.27.1-SNAPSHOT com.google.api gax - 2.27.0 + 2.27.1-SNAPSHOT test-jar testlib com.google.api gax - 2.27.0 + 2.27.1-SNAPSHOT testlib com.google.api gax-grpc - 2.27.0 + 2.27.1-SNAPSHOT com.google.api gax-grpc - 2.27.0 + 2.27.1-SNAPSHOT test-jar testlib com.google.api gax-grpc - 2.27.0 + 2.27.1-SNAPSHOT testlib com.google.api gax-httpjson - 0.112.0 + 0.112.1-SNAPSHOT com.google.api gax-httpjson - 0.112.0 + 0.112.1-SNAPSHOT test-jar testlib com.google.api gax-httpjson - 0.112.0 + 0.112.1-SNAPSHOT testlib diff --git a/gax-java/gax-grpc/pom.xml b/gax-java/gax-grpc/pom.xml index 008ceaf842..8fec881745 100644 --- a/gax-java/gax-grpc/pom.xml +++ b/gax-java/gax-grpc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 gax-grpc - 2.27.0 + 2.27.1-SNAPSHOT jar GAX (Google Api eXtensions) for Java (gRPC) Google Api eXtensions for Java (gRPC) @@ -11,7 +11,7 @@ com.google.api gax-parent - 2.27.0 + 2.27.1-SNAPSHOT diff --git a/gax-java/gax-httpjson/pom.xml b/gax-java/gax-httpjson/pom.xml index ee51044456..60b6c2efb8 100644 --- a/gax-java/gax-httpjson/pom.xml +++ b/gax-java/gax-httpjson/pom.xml @@ -3,7 +3,7 @@ 4.0.0 gax-httpjson - 0.112.0 + 0.112.1-SNAPSHOT jar GAX (Google Api eXtensions) for Java (HTTP JSON) Google Api eXtensions for Java (HTTP JSON) @@ -11,7 +11,7 @@ com.google.api gax-parent - 2.27.0 + 2.27.1-SNAPSHOT diff --git a/gax-java/gax/pom.xml b/gax-java/gax/pom.xml index f1d7300a34..7d2864b00d 100644 --- a/gax-java/gax/pom.xml +++ b/gax-java/gax/pom.xml @@ -3,7 +3,7 @@ 4.0.0 gax - 2.27.0 + 2.27.1-SNAPSHOT jar GAX (Google Api eXtensions) for Java (Core) Google Api eXtensions for Java (Core) @@ -11,7 +11,7 @@ com.google.api gax-parent - 2.27.0 + 2.27.1-SNAPSHOT diff --git a/gax-java/pom.xml b/gax-java/pom.xml index d90e92f202..ba70db393e 100644 --- a/gax-java/pom.xml +++ b/gax-java/pom.xml @@ -4,14 +4,14 @@ com.google.api gax-parent pom - 2.27.0 + 2.27.1-SNAPSHOT GAX (Google Api eXtensions) for Java (Parent) Google Api eXtensions for Java (Parent) com.google.api gapic-generator-java-pom-parent - 2.19.0 + 2.19.1-SNAPSHOT ../gapic-generator-java-pom-parent @@ -51,7 +51,7 @@ com.google.api api-common - 2.10.0 + 2.10.1-SNAPSHOT com.google.auth @@ -109,24 +109,24 @@ com.google.api gax - 2.27.0 + 2.27.1-SNAPSHOT com.google.api gax - 2.27.0 + 2.27.1-SNAPSHOT test-jar testlib com.google.api.grpc proto-google-common-protos - 2.18.0 + 2.18.1-SNAPSHOT com.google.api.grpc grpc-google-common-protos - 2.18.0 + 2.18.1-SNAPSHOT io.grpc diff --git a/java-common-protos/grpc-google-common-protos/pom.xml b/java-common-protos/grpc-google-common-protos/pom.xml index 6f3aa5c48c..a20ca06faf 100644 --- a/java-common-protos/grpc-google-common-protos/pom.xml +++ b/java-common-protos/grpc-google-common-protos/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-common-protos - 2.18.0 + 2.18.1-SNAPSHOT grpc-google-common-protos GRPC library for grpc-google-common-protos com.google.api.grpc google-common-protos-parent - 2.18.0 + 2.18.1-SNAPSHOT diff --git a/java-common-protos/pom.xml b/java-common-protos/pom.xml index 1917b1f719..36b8077993 100644 --- a/java-common-protos/pom.xml +++ b/java-common-protos/pom.xml @@ -4,7 +4,7 @@ com.google.api.grpc google-common-protos-parent pom - 2.18.0 + 2.18.1-SNAPSHOT Google Common Protos Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.api gapic-generator-java-pom-parent - 2.19.0 + 2.19.1-SNAPSHOT ../gapic-generator-java-pom-parent @@ -69,7 +69,7 @@ com.google.api.grpc grpc-google-common-protos - 2.18.0 + 2.18.1-SNAPSHOT io.grpc @@ -81,7 +81,7 @@ com.google.api.grpc proto-google-common-protos - 2.18.0 + 2.18.1-SNAPSHOT com.google.guava diff --git a/java-common-protos/proto-google-common-protos/pom.xml b/java-common-protos/proto-google-common-protos/pom.xml index 3f0d073863..40b820b3b4 100644 --- a/java-common-protos/proto-google-common-protos/pom.xml +++ b/java-common-protos/proto-google-common-protos/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc proto-google-common-protos - 2.18.0 + 2.18.1-SNAPSHOT proto-google-common-protos PROTO library for proto-google-common-protos com.google.api.grpc google-common-protos-parent - 2.18.0 + 2.18.1-SNAPSHOT diff --git a/java-core/google-cloud-core-bom/pom.xml b/java-core/google-cloud-core-bom/pom.xml index 5801446501..0aee1588a9 100644 --- a/java-core/google-cloud-core-bom/pom.xml +++ b/java-core/google-cloud-core-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-core-bom - 2.17.0 + 2.17.1-SNAPSHOT pom com.google.api gapic-generator-java-pom-parent - 2.19.0 + 2.19.1-SNAPSHOT ../../gapic-generator-java-pom-parent @@ -23,17 +23,17 @@ com.google.cloud google-cloud-core - 2.17.0 + 2.17.1-SNAPSHOT com.google.cloud google-cloud-core-grpc - 2.17.0 + 2.17.1-SNAPSHOT com.google.cloud google-cloud-core-http - 2.17.0 + 2.17.1-SNAPSHOT diff --git a/java-core/google-cloud-core-grpc/pom.xml b/java-core/google-cloud-core-grpc/pom.xml index 180cee56e7..da8f7b859c 100644 --- a/java-core/google-cloud-core-grpc/pom.xml +++ b/java-core/google-cloud-core-grpc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-core-grpc - 2.17.0 + 2.17.1-SNAPSHOT jar Google Cloud Core gRPC @@ -12,7 +12,7 @@ com.google.cloud google-cloud-core-parent - 2.17.0 + 2.17.1-SNAPSHOT google-cloud-core-grpc diff --git a/java-core/google-cloud-core-http/pom.xml b/java-core/google-cloud-core-http/pom.xml index ee6815a18c..ccfcefda95 100644 --- a/java-core/google-cloud-core-http/pom.xml +++ b/java-core/google-cloud-core-http/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-core-http - 2.17.0 + 2.17.1-SNAPSHOT jar Google Cloud Core HTTP @@ -12,7 +12,7 @@ com.google.cloud google-cloud-core-parent - 2.17.0 + 2.17.1-SNAPSHOT google-cloud-core-http diff --git a/java-core/google-cloud-core/pom.xml b/java-core/google-cloud-core/pom.xml index 7e60d2067e..7a74f23bc9 100644 --- a/java-core/google-cloud-core/pom.xml +++ b/java-core/google-cloud-core/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-core - 2.17.0 + 2.17.1-SNAPSHOT jar Google Cloud Core @@ -12,7 +12,7 @@ com.google.cloud google-cloud-core-parent - 2.17.0 + 2.17.1-SNAPSHOT google-cloud-core diff --git a/java-core/pom.xml b/java-core/pom.xml index b2f02c08a8..d51c7a2d65 100644 --- a/java-core/pom.xml +++ b/java-core/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-core-parent pom - 2.17.0 + 2.17.1-SNAPSHOT Google Cloud Core Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.api gapic-generator-java-pom-parent - 2.19.0 + 2.19.1-SNAPSHOT ../gapic-generator-java-pom-parent @@ -33,7 +33,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.9.0 + 3.9.1-SNAPSHOT pom import diff --git a/java-iam/grpc-google-iam-v1/pom.xml b/java-iam/grpc-google-iam-v1/pom.xml index b24589fcb8..6bd0a1b6b1 100644 --- a/java-iam/grpc-google-iam-v1/pom.xml +++ b/java-iam/grpc-google-iam-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-v1 - 1.13.0 + 1.13.1-SNAPSHOT grpc-google-iam-v1 GRPC library for grpc-google-iam-v1 com.google.cloud google-iam-parent - 1.13.0 + 1.13.1-SNAPSHOT diff --git a/java-iam/grpc-google-iam-v2/pom.xml b/java-iam/grpc-google-iam-v2/pom.xml index 2c6d769b44..e6731e8272 100644 --- a/java-iam/grpc-google-iam-v2/pom.xml +++ b/java-iam/grpc-google-iam-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-v2 - 1.13.0 + 1.13.1-SNAPSHOT grpc-google-iam-v2 GRPC library for proto-google-iam-v2 com.google.cloud google-iam-parent - 1.13.0 + 1.13.1-SNAPSHOT diff --git a/java-iam/grpc-google-iam-v2beta/pom.xml b/java-iam/grpc-google-iam-v2beta/pom.xml index 7c8e1df198..4d229070b9 100644 --- a/java-iam/grpc-google-iam-v2beta/pom.xml +++ b/java-iam/grpc-google-iam-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-v2beta - 1.13.0 + 1.13.1-SNAPSHOT grpc-google-iam-v2beta GRPC library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.13.0 + 1.13.1-SNAPSHOT diff --git a/java-iam/pom.xml b/java-iam/pom.xml index 0290dfb610..32677b3454 100644 --- a/java-iam/pom.xml +++ b/java-iam/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-iam-parent pom - 1.13.0 + 1.13.1-SNAPSHOT Google IAM Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.api gapic-generator-java-pom-parent - 2.19.0 + 2.19.1-SNAPSHOT ../gapic-generator-java-pom-parent @@ -81,44 +81,44 @@ com.google.api gax-bom - 2.27.0 + 2.27.1-SNAPSHOT pom import com.google.api.grpc proto-google-iam-v2 - 1.13.0 + 1.13.1-SNAPSHOT com.google.api.grpc grpc-google-iam-v2 - 1.13.0 + 1.13.1-SNAPSHOT com.google.api.grpc proto-google-common-protos - 2.18.0 + 2.18.1-SNAPSHOT com.google.api.grpc proto-google-iam-v2beta - 1.13.0 + 1.13.1-SNAPSHOT com.google.api.grpc grpc-google-iam-v1 - 1.13.0 + 1.13.1-SNAPSHOT com.google.api.grpc grpc-google-iam-v2beta - 1.13.0 + 1.13.1-SNAPSHOT com.google.api.grpc proto-google-iam-v1 - 1.13.0 + 1.13.1-SNAPSHOT javax.annotation diff --git a/java-iam/proto-google-iam-v1/pom.xml b/java-iam/proto-google-iam-v1/pom.xml index cc2db4fbe4..7bf24adb1d 100644 --- a/java-iam/proto-google-iam-v1/pom.xml +++ b/java-iam/proto-google-iam-v1/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-v1 - 1.13.0 + 1.13.1-SNAPSHOT proto-google-iam-v1 PROTO library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.13.0 + 1.13.1-SNAPSHOT diff --git a/java-iam/proto-google-iam-v2/pom.xml b/java-iam/proto-google-iam-v2/pom.xml index 1a21c62a64..ac5afab0c6 100644 --- a/java-iam/proto-google-iam-v2/pom.xml +++ b/java-iam/proto-google-iam-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-v2 - 1.13.0 + 1.13.1-SNAPSHOT proto-google-iam-v2 Proto library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.13.0 + 1.13.1-SNAPSHOT diff --git a/java-iam/proto-google-iam-v2beta/pom.xml b/java-iam/proto-google-iam-v2beta/pom.xml index a303e1fe8f..d5fc2dbaa3 100644 --- a/java-iam/proto-google-iam-v2beta/pom.xml +++ b/java-iam/proto-google-iam-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-v2beta - 1.13.0 + 1.13.1-SNAPSHOT proto-google-iam-v2beta Proto library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.13.0 + 1.13.1-SNAPSHOT diff --git a/java-shared-dependencies/dependency-convergence-check/pom.xml b/java-shared-dependencies/dependency-convergence-check/pom.xml index 0bf0558d90..73c4079fdd 100644 --- a/java-shared-dependencies/dependency-convergence-check/pom.xml +++ b/java-shared-dependencies/dependency-convergence-check/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud shared-dependencies-dependency-convergence-test - 3.9.0 + 3.9.1-SNAPSHOT Dependency convergence test for certain artifacts in Google Cloud Shared Dependencies An dependency convergence test case for the shared dependencies BOM. A failure of this test case means diff --git a/java-shared-dependencies/first-party-dependencies/pom.xml b/java-shared-dependencies/first-party-dependencies/pom.xml index 849b1395c7..e0aed43f56 100644 --- a/java-shared-dependencies/first-party-dependencies/pom.xml +++ b/java-shared-dependencies/first-party-dependencies/pom.xml @@ -6,7 +6,7 @@ com.google.cloud first-party-dependencies pom - 3.9.0 + 3.9.1-SNAPSHOT Google Cloud First-party Shared Dependencies Shared first-party dependencies for Google Cloud Java libraries. @@ -35,7 +35,7 @@ com.google.api gapic-generator-java-bom - 2.19.0 + 2.19.1-SNAPSHOT pom import @@ -52,7 +52,7 @@ com.google.cloud google-cloud-core-bom - 2.17.0 + 2.17.1-SNAPSHOT pom import @@ -83,13 +83,13 @@ com.google.cloud google-cloud-core - 2.17.0 + 2.17.1-SNAPSHOT test-jar com.google.cloud google-cloud-core - 2.17.0 + 2.17.1-SNAPSHOT tests diff --git a/java-shared-dependencies/pom.xml b/java-shared-dependencies/pom.xml index e7ca4cc3c3..68d776cacc 100644 --- a/java-shared-dependencies/pom.xml +++ b/java-shared-dependencies/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-shared-dependencies pom - 3.9.0 + 3.9.1-SNAPSHOT first-party-dependencies third-party-dependencies @@ -17,7 +17,7 @@ com.google.api gapic-generator-java-pom-parent - 2.19.0 + 2.19.1-SNAPSHOT ../gapic-generator-java-pom-parent @@ -31,14 +31,14 @@ com.google.cloud first-party-dependencies - 3.9.0 + 3.9.1-SNAPSHOT pom import com.google.cloud third-party-dependencies - 3.9.0 + 3.9.1-SNAPSHOT pom import diff --git a/java-shared-dependencies/third-party-dependencies/pom.xml b/java-shared-dependencies/third-party-dependencies/pom.xml index 6e5af001d8..4079c07080 100644 --- a/java-shared-dependencies/third-party-dependencies/pom.xml +++ b/java-shared-dependencies/third-party-dependencies/pom.xml @@ -6,7 +6,7 @@ com.google.cloud third-party-dependencies pom - 3.9.0 + 3.9.1-SNAPSHOT Google Cloud Third-party Shared Dependencies Shared third-party dependencies for Google Cloud Java libraries. diff --git a/java-shared-dependencies/upper-bound-check/pom.xml b/java-shared-dependencies/upper-bound-check/pom.xml index 4e09d38b71..1d0c297f38 100644 --- a/java-shared-dependencies/upper-bound-check/pom.xml +++ b/java-shared-dependencies/upper-bound-check/pom.xml @@ -4,7 +4,7 @@ com.google.cloud shared-dependencies-upper-bound-test pom - 3.9.0 + 3.9.1-SNAPSHOT Upper bound test for Google Cloud Shared Dependencies An upper bound test case for the shared dependencies BOM. A failure of this test case means @@ -30,7 +30,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.9.0 + 3.9.1-SNAPSHOT pom import diff --git a/showcase/pom.xml b/showcase/pom.xml index a68d5a77f8..ff8e3da7e7 100644 --- a/showcase/pom.xml +++ b/showcase/pom.xml @@ -15,7 +15,7 @@ com.google.api gapic-generator-java-bom - 2.19.0 + 2.19.1-SNAPSHOT ../gapic-generator-java-bom diff --git a/versions.txt b/versions.txt index 3a2b8f9ee4..668f5a5878 100644 --- a/versions.txt +++ b/versions.txt @@ -1,19 +1,19 @@ # Format: # module:released-version:current-version -gapic-generator-java:2.19.0:2.19.0 -api-common:2.10.0:2.10.0 -gax:2.27.0:2.27.0 -gax-grpc:2.27.0:2.27.0 -gax-httpjson:0.112.0:0.112.0 -proto-google-common-protos:2.18.0:2.18.0 -grpc-google-common-protos:2.18.0:2.18.0 -proto-google-iam-v1:1.13.0:1.13.0 -grpc-google-iam-v1:1.13.0:1.13.0 -proto-google-iam-v2beta:1.13.0:1.13.0 -grpc-google-iam-v2beta:1.13.0:1.13.0 -google-iam-policy:1.13.0:1.13.0 -proto-google-iam-v2:1.13.0:1.13.0 -grpc-google-iam-v2:1.13.0:1.13.0 -google-cloud-core:2.17.0:2.17.0 -google-cloud-shared-dependencies:3.9.0:3.9.0 +gapic-generator-java:2.19.0:2.19.1-SNAPSHOT +api-common:2.10.0:2.10.1-SNAPSHOT +gax:2.27.0:2.27.1-SNAPSHOT +gax-grpc:2.27.0:2.27.1-SNAPSHOT +gax-httpjson:0.112.0:0.112.1-SNAPSHOT +proto-google-common-protos:2.18.0:2.18.1-SNAPSHOT +grpc-google-common-protos:2.18.0:2.18.1-SNAPSHOT +proto-google-iam-v1:1.13.0:1.13.1-SNAPSHOT +grpc-google-iam-v1:1.13.0:1.13.1-SNAPSHOT +proto-google-iam-v2beta:1.13.0:1.13.1-SNAPSHOT +grpc-google-iam-v2beta:1.13.0:1.13.1-SNAPSHOT +google-iam-policy:1.13.0:1.13.1-SNAPSHOT +proto-google-iam-v2:1.13.0:1.13.1-SNAPSHOT +grpc-google-iam-v2:1.13.0:1.13.1-SNAPSHOT +google-cloud-core:2.17.0:2.17.1-SNAPSHOT +google-cloud-shared-dependencies:3.9.0:3.9.1-SNAPSHOT From 9a120e98524018fa54ae5dcbe2fb0f524c2a0f1b Mon Sep 17 00:00:00 2001 From: Blake Li Date: Wed, 10 May 2023 17:46:45 -0400 Subject: [PATCH 02/17] deps: Update showcase version to 0.28.1 (#1673) --- .github/workflows/ci.yaml | 2 +- .github/workflows/sonar.yaml | 2 +- .kokoro/presubmit/downstream-build.sh | 2 +- WORKSPACE | 10 +- showcase/README.md | 2 +- showcase/gapic-showcase/pom.xml | 2 +- .../v1beta1/StreamingSequenceName.java | 168 + .../v1beta1/StreamingSequenceReportName.java | 170 ++ .../v1beta1/echo/expand/AsyncExpand.java | 2 + .../AsyncAttemptStreamingSequence.java | 51 + .../AsyncCreateStreamingSequence.java | 49 + .../SyncCreateStreamingSequence.java | 45 + ...ateStreamingSequenceStreamingsequence.java | 41 + .../AsyncGetStreamingSequenceReport.java | 50 + .../SyncGetStreamingSequenceReport.java | 46 + ...enceReportStreamingsequencereportname.java | 42 + .../SyncGetStreamingSequenceReportString.java | 42 + .../google/showcase/v1beta1/EchoClient.java | 1 + .../v1beta1/SequenceServiceClient.java | 231 ++ .../v1beta1/SequenceServiceSettings.java | 39 + .../showcase/v1beta1/gapic_metadata.json | 9 + .../v1beta1/stub/GrpcSequenceServiceStub.java | 111 + .../stub/HttpJsonSequenceServiceStub.java | 180 ++ .../v1beta1/stub/SequenceServiceStub.java | 23 + .../stub/SequenceServiceStubSettings.java | 89 + .../showcase/v1beta1/EchoClientTest.java | 2 + .../v1beta1/MockSequenceServiceImpl.java | 65 + .../SequenceServiceClientHttpJsonTest.java | 147 + .../v1beta1/SequenceServiceClientTest.java | 173 ++ .../showcase/v1beta1/SequenceServiceGrpc.java | 219 +- .../AttemptStreamingSequenceRequest.java | 544 ++++ ...emptStreamingSequenceRequestOrBuilder.java | 21 + .../AttemptStreamingSequenceResponse.java | 580 ++++ ...mptStreamingSequenceResponseOrBuilder.java | 29 + .../CreateStreamingSequenceRequest.java | 589 ++++ ...eateStreamingSequenceRequestOrBuilder.java | 24 + .../showcase/v1beta1/EchoOuterClass.java | 150 +- .../showcase/v1beta1/ExpandRequest.java | 229 ++ .../v1beta1/ExpandRequestOrBuilder.java | 27 + .../GetStreamingSequenceReportRequest.java | 544 ++++ ...reamingSequenceReportRequestOrBuilder.java | 21 + .../showcase/v1beta1/SequenceOuterClass.java | 209 +- .../showcase/v1beta1/StreamingSequence.java | 2196 ++++++++++++++ .../v1beta1/StreamingSequenceName.java | 168 + .../v1beta1/StreamingSequenceOrBuilder.java | 90 + .../v1beta1/StreamingSequenceReport.java | 2699 +++++++++++++++++ .../v1beta1/StreamingSequenceReportName.java | 170 ++ .../StreamingSequenceReportOrBuilder.java | 65 + 48 files changed, 10244 insertions(+), 126 deletions(-) create mode 100644 showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java create mode 100644 showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java create mode 100644 showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptstreamingsequence/AsyncAttemptStreamingSequence.java create mode 100644 showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/AsyncCreateStreamingSequence.java create mode 100644 showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequence.java create mode 100644 showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequenceStreamingsequence.java create mode 100644 showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/AsyncGetStreamingSequenceReport.java create mode 100644 showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReport.java create mode 100644 showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportStreamingsequencereportname.java create mode 100644 showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportString.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponse.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponseOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequence.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReport.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportOrBuilder.java diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f031d85e80..cd9fd9211a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -5,7 +5,7 @@ on: pull_request: name: ci env: - SHOWCASE_VERSION: 0.27.0 + SHOWCASE_VERSION: 0.28.0 jobs: build: runs-on: ubuntu-22.04 diff --git a/.github/workflows/sonar.yaml b/.github/workflows/sonar.yaml index 84bb86234e..7af99197fd 100644 --- a/.github/workflows/sonar.yaml +++ b/.github/workflows/sonar.yaml @@ -1,6 +1,6 @@ name: SonarCloud Build env: - SHOWCASE_VERSION: 0.27.0 + SHOWCASE_VERSION: 0.28.0 on: push: branches: diff --git a/.kokoro/presubmit/downstream-build.sh b/.kokoro/presubmit/downstream-build.sh index fc2616a85b..9cd49a779a 100755 --- a/.kokoro/presubmit/downstream-build.sh +++ b/.kokoro/presubmit/downstream-build.sh @@ -15,7 +15,7 @@ set -eo pipefail -SHOWCASE_VERSION=0.27.0 +SHOWCASE_VERSION=0.28.0 ## Get the directory of the build script scriptDir=$(realpath "$(dirname "${BASH_SOURCE[0]}")") diff --git a/WORKSPACE b/WORKSPACE index 0b53931add..62b1e8e511 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -107,17 +107,13 @@ http_archive( ) # Showcase -_showcase_commit = "656e5f46d125a69c82c0cb7edcfcd8b03ed77b89" - -_showcase_sha256 = "26d4b71ac31cbca5e4ed4cdcb5bfeca185e405392d70d2020b4528b5b47c8022" +_showcase_version = "0.28.1" http_archive( name = "com_google_gapic_showcase", - sha256 = _showcase_sha256, - strip_prefix = "gapic-showcase-%s" % _showcase_commit, + strip_prefix = "gapic-showcase-%s" % _showcase_version, urls = [ - # "https://github.com/googleapis/gapic-showcase/archive/refs/tags/v%s.zip" % _showcase_version, - "https://github.com/googleapis/gapic-showcase/archive/%s.zip" % _showcase_commit, + "https://github.com/googleapis/gapic-showcase/archive/refs/tags/v%s.zip" % _showcase_version, ], ) diff --git a/showcase/README.md b/showcase/README.md index 01f12161c7..a246a0416e 100644 --- a/showcase/README.md +++ b/showcase/README.md @@ -16,7 +16,7 @@ versions is not guaranteed. If changing the version of the server, it may also b update to a compatible client version in `./WORKSPACE`. ```shell -$ GAPIC_SHOWCASE_VERSION=0.27.0 +$ GAPIC_SHOWCASE_VERSION=0.28.0 $ go install github.com/googleapis/gapic-showcase/cmd/gapic-showcase@v"$GAPIC_SHOWCASE_VERSION" $ PATH=$PATH:`go env GOPATH`/bin $ gapic-showcase --help diff --git a/showcase/gapic-showcase/pom.xml b/showcase/gapic-showcase/pom.xml index d6876b9c25..8663ade568 100644 --- a/showcase/gapic-showcase/pom.xml +++ b/showcase/gapic-showcase/pom.xml @@ -19,7 +19,7 @@ - 0.27.0 + 0.28.0 diff --git a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java new file mode 100644 index 0000000000..8adcda635f --- /dev/null +++ b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java @@ -0,0 +1,168 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1; + +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 StreamingSequenceName implements ResourceName { + private static final PathTemplate STREAMING_SEQUENCE = + PathTemplate.createWithoutUrlEncoding("streamingSequences/{streaming_sequence}"); + private volatile Map fieldValuesMap; + private final String streamingSequence; + + @Deprecated + protected StreamingSequenceName() { + streamingSequence = null; + } + + private StreamingSequenceName(Builder builder) { + streamingSequence = Preconditions.checkNotNull(builder.getStreamingSequence()); + } + + public String getStreamingSequence() { + return streamingSequence; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static StreamingSequenceName of(String streamingSequence) { + return newBuilder().setStreamingSequence(streamingSequence).build(); + } + + public static String format(String streamingSequence) { + return newBuilder().setStreamingSequence(streamingSequence).build().toString(); + } + + public static StreamingSequenceName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + STREAMING_SEQUENCE.validatedMatch( + formattedString, "StreamingSequenceName.parse: formattedString not in valid format"); + return of(matchMap.get("streaming_sequence")); + } + + 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 (StreamingSequenceName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return STREAMING_SEQUENCE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (streamingSequence != null) { + fieldMapBuilder.put("streaming_sequence", streamingSequence); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return STREAMING_SEQUENCE.instantiate("streaming_sequence", streamingSequence); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + StreamingSequenceName that = ((StreamingSequenceName) o); + return Objects.equals(this.streamingSequence, that.streamingSequence); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(streamingSequence); + return h; + } + + /** Builder for streamingSequences/{streaming_sequence}. */ + public static class Builder { + private String streamingSequence; + + protected Builder() {} + + public String getStreamingSequence() { + return streamingSequence; + } + + public Builder setStreamingSequence(String streamingSequence) { + this.streamingSequence = streamingSequence; + return this; + } + + private Builder(StreamingSequenceName streamingSequenceName) { + this.streamingSequence = streamingSequenceName.streamingSequence; + } + + public StreamingSequenceName build() { + return new StreamingSequenceName(this); + } + } +} diff --git a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java new file mode 100644 index 0000000000..106c07e1f9 --- /dev/null +++ b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java @@ -0,0 +1,170 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1; + +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 StreamingSequenceReportName implements ResourceName { + private static final PathTemplate STREAMING_SEQUENCE = + PathTemplate.createWithoutUrlEncoding( + "streamingSequences/{streaming_sequence}/streamingSequenceReport"); + private volatile Map fieldValuesMap; + private final String streamingSequence; + + @Deprecated + protected StreamingSequenceReportName() { + streamingSequence = null; + } + + private StreamingSequenceReportName(Builder builder) { + streamingSequence = Preconditions.checkNotNull(builder.getStreamingSequence()); + } + + public String getStreamingSequence() { + return streamingSequence; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static StreamingSequenceReportName of(String streamingSequence) { + return newBuilder().setStreamingSequence(streamingSequence).build(); + } + + public static String format(String streamingSequence) { + return newBuilder().setStreamingSequence(streamingSequence).build().toString(); + } + + public static StreamingSequenceReportName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + STREAMING_SEQUENCE.validatedMatch( + formattedString, + "StreamingSequenceReportName.parse: formattedString not in valid format"); + return of(matchMap.get("streaming_sequence")); + } + + 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 (StreamingSequenceReportName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return STREAMING_SEQUENCE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (streamingSequence != null) { + fieldMapBuilder.put("streaming_sequence", streamingSequence); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return STREAMING_SEQUENCE.instantiate("streaming_sequence", streamingSequence); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + StreamingSequenceReportName that = ((StreamingSequenceReportName) o); + return Objects.equals(this.streamingSequence, that.streamingSequence); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(streamingSequence); + return h; + } + + /** Builder for streamingSequences/{streaming_sequence}/streamingSequenceReport. */ + public static class Builder { + private String streamingSequence; + + protected Builder() {} + + public String getStreamingSequence() { + return streamingSequence; + } + + public Builder setStreamingSequence(String streamingSequence) { + this.streamingSequence = streamingSequence; + return this; + } + + private Builder(StreamingSequenceReportName streamingSequenceReportName) { + this.streamingSequence = streamingSequenceReportName.streamingSequence; + } + + public StreamingSequenceReportName build() { + return new StreamingSequenceReportName(this); + } + } +} diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/expand/AsyncExpand.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/expand/AsyncExpand.java index 80c5f6d6b4..3b1c549c3e 100644 --- a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/expand/AsyncExpand.java +++ b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/expand/AsyncExpand.java @@ -18,6 +18,7 @@ // [START localhost7469_v1beta1_generated_Echo_Expand_async] import com.google.api.gax.rpc.ServerStream; +import com.google.protobuf.Duration; import com.google.rpc.Status; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; @@ -40,6 +41,7 @@ public static void asyncExpand() throws Exception { ExpandRequest.newBuilder() .setContent("content951530617") .setError(Status.newBuilder().build()) + .setStreamWaitTime(Duration.newBuilder().build()) .build(); ServerStream stream = echoClient.expandCallable().call(request); for (EchoResponse response : stream) { diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptstreamingsequence/AsyncAttemptStreamingSequence.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptstreamingsequence/AsyncAttemptStreamingSequence.java new file mode 100644 index 0000000000..23b2a7e142 --- /dev/null +++ b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptstreamingsequence/AsyncAttemptStreamingSequence.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_AttemptStreamingSequence_async] +import com.google.api.gax.rpc.ServerStream; +import com.google.showcase.v1beta1.AttemptStreamingSequenceRequest; +import com.google.showcase.v1beta1.AttemptStreamingSequenceResponse; +import com.google.showcase.v1beta1.SequenceServiceClient; +import com.google.showcase.v1beta1.StreamingSequenceName; + +public class AsyncAttemptStreamingSequence { + + public static void main(String[] args) throws Exception { + asyncAttemptStreamingSequence(); + } + + public static void asyncAttemptStreamingSequence() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + AttemptStreamingSequenceRequest request = + AttemptStreamingSequenceRequest.newBuilder() + .setName(StreamingSequenceName.of("[STREAMING_SEQUENCE]").toString()) + .build(); + ServerStream stream = + sequenceServiceClient.attemptStreamingSequenceCallable().call(request); + for (AttemptStreamingSequenceResponse response : stream) { + // Do something when a response is received. + } + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_AttemptStreamingSequence_async] diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/AsyncCreateStreamingSequence.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/AsyncCreateStreamingSequence.java new file mode 100644 index 0000000000..4fd0acff60 --- /dev/null +++ b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/AsyncCreateStreamingSequence.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.CreateStreamingSequenceRequest; +import com.google.showcase.v1beta1.SequenceServiceClient; +import com.google.showcase.v1beta1.StreamingSequence; + +public class AsyncCreateStreamingSequence { + + public static void main(String[] args) throws Exception { + asyncCreateStreamingSequence(); + } + + public static void asyncCreateStreamingSequence() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + CreateStreamingSequenceRequest request = + CreateStreamingSequenceRequest.newBuilder() + .setStreamingSequence(StreamingSequence.newBuilder().build()) + .build(); + ApiFuture future = + sequenceServiceClient.createStreamingSequenceCallable().futureCall(request); + // Do something. + StreamingSequence response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_async] diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequence.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequence.java new file mode 100644 index 0000000000..48fa25cbbd --- /dev/null +++ b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequence.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_sync] +import com.google.showcase.v1beta1.CreateStreamingSequenceRequest; +import com.google.showcase.v1beta1.SequenceServiceClient; +import com.google.showcase.v1beta1.StreamingSequence; + +public class SyncCreateStreamingSequence { + + public static void main(String[] args) throws Exception { + syncCreateStreamingSequence(); + } + + public static void syncCreateStreamingSequence() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + CreateStreamingSequenceRequest request = + CreateStreamingSequenceRequest.newBuilder() + .setStreamingSequence(StreamingSequence.newBuilder().build()) + .build(); + StreamingSequence response = sequenceServiceClient.createStreamingSequence(request); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_sync] diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequenceStreamingsequence.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequenceStreamingsequence.java new file mode 100644 index 0000000000..ac87b6eb41 --- /dev/null +++ b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequenceStreamingsequence.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_Streamingsequence_sync] +import com.google.showcase.v1beta1.SequenceServiceClient; +import com.google.showcase.v1beta1.StreamingSequence; + +public class SyncCreateStreamingSequenceStreamingsequence { + + public static void main(String[] args) throws Exception { + syncCreateStreamingSequenceStreamingsequence(); + } + + public static void syncCreateStreamingSequenceStreamingsequence() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + StreamingSequence streamingSequence = StreamingSequence.newBuilder().build(); + StreamingSequence response = sequenceServiceClient.createStreamingSequence(streamingSequence); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_Streamingsequence_sync] diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/AsyncGetStreamingSequenceReport.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/AsyncGetStreamingSequenceReport.java new file mode 100644 index 0000000000..710e38524d --- /dev/null +++ b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/AsyncGetStreamingSequenceReport.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.GetStreamingSequenceReportRequest; +import com.google.showcase.v1beta1.SequenceServiceClient; +import com.google.showcase.v1beta1.StreamingSequenceReport; +import com.google.showcase.v1beta1.StreamingSequenceReportName; + +public class AsyncGetStreamingSequenceReport { + + public static void main(String[] args) throws Exception { + asyncGetStreamingSequenceReport(); + } + + public static void asyncGetStreamingSequenceReport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + GetStreamingSequenceReportRequest request = + GetStreamingSequenceReportRequest.newBuilder() + .setName(StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString()) + .build(); + ApiFuture future = + sequenceServiceClient.getStreamingSequenceReportCallable().futureCall(request); + // Do something. + StreamingSequenceReport response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_async] diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReport.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReport.java new file mode 100644 index 0000000000..1a3a3b9377 --- /dev/null +++ b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReport.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_sync] +import com.google.showcase.v1beta1.GetStreamingSequenceReportRequest; +import com.google.showcase.v1beta1.SequenceServiceClient; +import com.google.showcase.v1beta1.StreamingSequenceReport; +import com.google.showcase.v1beta1.StreamingSequenceReportName; + +public class SyncGetStreamingSequenceReport { + + public static void main(String[] args) throws Exception { + syncGetStreamingSequenceReport(); + } + + public static void syncGetStreamingSequenceReport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + GetStreamingSequenceReportRequest request = + GetStreamingSequenceReportRequest.newBuilder() + .setName(StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString()) + .build(); + StreamingSequenceReport response = sequenceServiceClient.getStreamingSequenceReport(request); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_sync] diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportStreamingsequencereportname.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportStreamingsequencereportname.java new file mode 100644 index 0000000000..5a5952e9e6 --- /dev/null +++ b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportStreamingsequencereportname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_Streamingsequencereportname_sync] +import com.google.showcase.v1beta1.SequenceServiceClient; +import com.google.showcase.v1beta1.StreamingSequenceReport; +import com.google.showcase.v1beta1.StreamingSequenceReportName; + +public class SyncGetStreamingSequenceReportStreamingsequencereportname { + + public static void main(String[] args) throws Exception { + syncGetStreamingSequenceReportStreamingsequencereportname(); + } + + public static void syncGetStreamingSequenceReportStreamingsequencereportname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + StreamingSequenceReportName name = StreamingSequenceReportName.of("[STREAMING_SEQUENCE]"); + StreamingSequenceReport response = sequenceServiceClient.getStreamingSequenceReport(name); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_Streamingsequencereportname_sync] diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportString.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportString.java new file mode 100644 index 0000000000..a869686aaa --- /dev/null +++ b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_String_sync] +import com.google.showcase.v1beta1.SequenceServiceClient; +import com.google.showcase.v1beta1.StreamingSequenceReport; +import com.google.showcase.v1beta1.StreamingSequenceReportName; + +public class SyncGetStreamingSequenceReportString { + + public static void main(String[] args) throws Exception { + syncGetStreamingSequenceReportString(); + } + + public static void syncGetStreamingSequenceReportString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + String name = StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString(); + StreamingSequenceReport response = sequenceServiceClient.getStreamingSequenceReport(name); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_String_sync] diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java index db436f4b78..70decdf855 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java @@ -293,6 +293,7 @@ public final UnaryCallable echoCallable() { * ExpandRequest.newBuilder() * .setContent("content951530617") * .setError(Status.newBuilder().build()) + * .setStreamWaitTime(Duration.newBuilder().build()) * .build(); * ServerStream stream = echoClient.expandCallable().call(request); * for (EchoResponse response : stream) { diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java index 58b9d96d7b..c49de63088 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java @@ -24,6 +24,7 @@ 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.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -259,6 +260,90 @@ public final UnaryCallable createSequenceCallab return stub.createSequenceCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a sequence. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+   *   StreamingSequence streamingSequence = StreamingSequence.newBuilder().build();
+   *   StreamingSequence response = sequenceServiceClient.createStreamingSequence(streamingSequence);
+   * }
+   * }
+ * + * @param streamingSequence + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StreamingSequence createStreamingSequence(StreamingSequence streamingSequence) { + CreateStreamingSequenceRequest request = + CreateStreamingSequenceRequest.newBuilder().setStreamingSequence(streamingSequence).build(); + return createStreamingSequence(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a sequence. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+   *   CreateStreamingSequenceRequest request =
+   *       CreateStreamingSequenceRequest.newBuilder()
+   *           .setStreamingSequence(StreamingSequence.newBuilder().build())
+   *           .build();
+   *   StreamingSequence response = sequenceServiceClient.createStreamingSequence(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 StreamingSequence createStreamingSequence(CreateStreamingSequenceRequest request) { + return createStreamingSequenceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a sequence. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+   *   CreateStreamingSequenceRequest request =
+   *       CreateStreamingSequenceRequest.newBuilder()
+   *           .setStreamingSequence(StreamingSequence.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       sequenceServiceClient.createStreamingSequenceCallable().futureCall(request);
+   *   // Do something.
+   *   StreamingSequence response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createStreamingSequenceCallable() { + return stub.createStreamingSequenceCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves a sequence. @@ -370,6 +455,121 @@ public final UnaryCallable getSequence return stub.getSequenceReportCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a sequence. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+   *   StreamingSequenceReportName name = StreamingSequenceReportName.of("[STREAMING_SEQUENCE]");
+   *   StreamingSequenceReport response = sequenceServiceClient.getStreamingSequenceReport(name);
+   * }
+   * }
+ * + * @param name + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StreamingSequenceReport getStreamingSequenceReport( + StreamingSequenceReportName name) { + GetStreamingSequenceReportRequest request = + GetStreamingSequenceReportRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getStreamingSequenceReport(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a sequence. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+   *   String name = StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString();
+   *   StreamingSequenceReport response = sequenceServiceClient.getStreamingSequenceReport(name);
+   * }
+   * }
+ * + * @param name + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StreamingSequenceReport getStreamingSequenceReport(String name) { + GetStreamingSequenceReportRequest request = + GetStreamingSequenceReportRequest.newBuilder().setName(name).build(); + return getStreamingSequenceReport(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a sequence. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+   *   GetStreamingSequenceReportRequest request =
+   *       GetStreamingSequenceReportRequest.newBuilder()
+   *           .setName(StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString())
+   *           .build();
+   *   StreamingSequenceReport response = sequenceServiceClient.getStreamingSequenceReport(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 StreamingSequenceReport getStreamingSequenceReport( + GetStreamingSequenceReportRequest request) { + return getStreamingSequenceReportCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a sequence. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+   *   GetStreamingSequenceReportRequest request =
+   *       GetStreamingSequenceReportRequest.newBuilder()
+   *           .setName(StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       sequenceServiceClient.getStreamingSequenceReportCallable().futureCall(request);
+   *   // Do something.
+   *   StreamingSequenceReport response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getStreamingSequenceReportCallable() { + return stub.getStreamingSequenceReportCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Attempts a sequence. @@ -478,6 +678,37 @@ public final UnaryCallable attemptSequenceCallabl return stub.attemptSequenceCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Attempts a streaming sequence. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+   *   AttemptStreamingSequenceRequest request =
+   *       AttemptStreamingSequenceRequest.newBuilder()
+   *           .setName(StreamingSequenceName.of("[STREAMING_SEQUENCE]").toString())
+   *           .build();
+   *   ServerStream stream =
+   *       sequenceServiceClient.attemptStreamingSequenceCallable().call(request);
+   *   for (AttemptStreamingSequenceResponse response : stream) {
+   *     // Do something when a response is received.
+   *   }
+   * }
+   * }
+ */ + public final ServerStreamingCallable< + AttemptStreamingSequenceRequest, AttemptStreamingSequenceResponse> + attemptStreamingSequenceCallable() { + return stub.attemptStreamingSequenceCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java index 484bd124e7..083da1863c 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -87,16 +88,35 @@ public UnaryCallSettings createSequenceSettings return ((SequenceServiceStubSettings) getStubSettings()).createSequenceSettings(); } + /** Returns the object with the settings used for calls to createStreamingSequence. */ + public UnaryCallSettings + createStreamingSequenceSettings() { + return ((SequenceServiceStubSettings) getStubSettings()).createStreamingSequenceSettings(); + } + /** Returns the object with the settings used for calls to getSequenceReport. */ public UnaryCallSettings getSequenceReportSettings() { return ((SequenceServiceStubSettings) getStubSettings()).getSequenceReportSettings(); } + /** Returns the object with the settings used for calls to getStreamingSequenceReport. */ + public UnaryCallSettings + getStreamingSequenceReportSettings() { + return ((SequenceServiceStubSettings) getStubSettings()).getStreamingSequenceReportSettings(); + } + /** Returns the object with the settings used for calls to attemptSequence. */ public UnaryCallSettings attemptSequenceSettings() { return ((SequenceServiceStubSettings) getStubSettings()).attemptSequenceSettings(); } + /** Returns the object with the settings used for calls to attemptStreamingSequence. */ + public ServerStreamingCallSettings< + AttemptStreamingSequenceRequest, AttemptStreamingSequenceResponse> + attemptStreamingSequenceSettings() { + return ((SequenceServiceStubSettings) getStubSettings()).attemptStreamingSequenceSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -228,17 +248,36 @@ public UnaryCallSettings.Builder createSequence return getStubSettingsBuilder().createSequenceSettings(); } + /** Returns the builder for the settings used for calls to createStreamingSequence. */ + public UnaryCallSettings.Builder + createStreamingSequenceSettings() { + return getStubSettingsBuilder().createStreamingSequenceSettings(); + } + /** Returns the builder for the settings used for calls to getSequenceReport. */ public UnaryCallSettings.Builder getSequenceReportSettings() { return getStubSettingsBuilder().getSequenceReportSettings(); } + /** Returns the builder for the settings used for calls to getStreamingSequenceReport. */ + public UnaryCallSettings.Builder + getStreamingSequenceReportSettings() { + return getStubSettingsBuilder().getStreamingSequenceReportSettings(); + } + /** Returns the builder for the settings used for calls to attemptSequence. */ public UnaryCallSettings.Builder attemptSequenceSettings() { return getStubSettingsBuilder().attemptSequenceSettings(); } + /** Returns the builder for the settings used for calls to attemptStreamingSequence. */ + public ServerStreamingCallSettings.Builder< + AttemptStreamingSequenceRequest, AttemptStreamingSequenceResponse> + attemptStreamingSequenceSettings() { + return getStubSettingsBuilder().attemptStreamingSequenceSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/gapic_metadata.json b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/gapic_metadata.json index 5dca2e3fd9..b79bfb905f 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/gapic_metadata.json +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/gapic_metadata.json @@ -187,15 +187,24 @@ "AttemptSequence": { "methods": ["attemptSequence", "attemptSequence", "attemptSequence", "attemptSequenceCallable"] }, + "AttemptStreamingSequence": { + "methods": ["attemptStreamingSequenceCallable"] + }, "CreateSequence": { "methods": ["createSequence", "createSequence", "createSequenceCallable"] }, + "CreateStreamingSequence": { + "methods": ["createStreamingSequence", "createStreamingSequence", "createStreamingSequenceCallable"] + }, "GetLocation": { "methods": ["getLocation", "getLocationCallable"] }, "GetSequenceReport": { "methods": ["getSequenceReport", "getSequenceReport", "getSequenceReport", "getSequenceReportCallable"] }, + "GetStreamingSequenceReport": { + "methods": ["getStreamingSequenceReport", "getStreamingSequenceReport", "getStreamingSequenceReport", "getStreamingSequenceReportCallable"] + }, "ListLocations": { "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] } diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java index 411d9ab420..24c4d58065 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java @@ -24,6 +24,7 @@ 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.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -33,10 +34,16 @@ import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; import com.google.showcase.v1beta1.AttemptSequenceRequest; +import com.google.showcase.v1beta1.AttemptStreamingSequenceRequest; +import com.google.showcase.v1beta1.AttemptStreamingSequenceResponse; import com.google.showcase.v1beta1.CreateSequenceRequest; +import com.google.showcase.v1beta1.CreateStreamingSequenceRequest; import com.google.showcase.v1beta1.GetSequenceReportRequest; +import com.google.showcase.v1beta1.GetStreamingSequenceReportRequest; import com.google.showcase.v1beta1.Sequence; import com.google.showcase.v1beta1.SequenceReport; +import com.google.showcase.v1beta1.StreamingSequence; +import com.google.showcase.v1beta1.StreamingSequenceReport; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; @@ -63,6 +70,16 @@ public class GrpcSequenceServiceStub extends SequenceServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Sequence.getDefaultInstance())) .build(); + private static final MethodDescriptor + createStreamingSequenceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.showcase.v1beta1.SequenceService/CreateStreamingSequence") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateStreamingSequenceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(StreamingSequence.getDefaultInstance())) + .build(); + private static final MethodDescriptor getSequenceReportMethodDescriptor = MethodDescriptor.newBuilder() @@ -73,6 +90,18 @@ public class GrpcSequenceServiceStub extends SequenceServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(SequenceReport.getDefaultInstance())) .build(); + private static final MethodDescriptor + getStreamingSequenceReportMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.showcase.v1beta1.SequenceService/GetStreamingSequenceReport") + .setRequestMarshaller( + ProtoUtils.marshaller(GetStreamingSequenceReportRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(StreamingSequenceReport.getDefaultInstance())) + .build(); + private static final MethodDescriptor attemptSequenceMethodDescriptor = MethodDescriptor.newBuilder() @@ -83,6 +112,19 @@ public class GrpcSequenceServiceStub extends SequenceServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor< + AttemptStreamingSequenceRequest, AttemptStreamingSequenceResponse> + attemptStreamingSequenceMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName("google.showcase.v1beta1.SequenceService/AttemptStreamingSequence") + .setRequestMarshaller( + ProtoUtils.marshaller(AttemptStreamingSequenceRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AttemptStreamingSequenceResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -103,8 +145,15 @@ public class GrpcSequenceServiceStub extends SequenceServiceStub { .build(); private final UnaryCallable createSequenceCallable; + private final UnaryCallable + createStreamingSequenceCallable; private final UnaryCallable getSequenceReportCallable; + private final UnaryCallable + getStreamingSequenceReportCallable; private final UnaryCallable attemptSequenceCallable; + private final ServerStreamingCallable< + AttemptStreamingSequenceRequest, AttemptStreamingSequenceResponse> + attemptStreamingSequenceCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -158,6 +207,11 @@ protected GrpcSequenceServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createSequenceMethodDescriptor) .build(); + GrpcCallSettings + createStreamingSequenceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createStreamingSequenceMethodDescriptor) + .build(); GrpcCallSettings getSequenceReportTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getSequenceReportMethodDescriptor) @@ -168,6 +222,18 @@ protected GrpcSequenceServiceStub( return params.build(); }) .build(); + GrpcCallSettings + getStreamingSequenceReportTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getStreamingSequenceReportMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); GrpcCallSettings attemptSequenceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(attemptSequenceMethodDescriptor) @@ -178,6 +244,18 @@ protected GrpcSequenceServiceStub( return params.build(); }) .build(); + GrpcCallSettings + attemptStreamingSequenceTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(attemptStreamingSequenceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -202,14 +280,29 @@ protected GrpcSequenceServiceStub( this.createSequenceCallable = callableFactory.createUnaryCallable( createSequenceTransportSettings, settings.createSequenceSettings(), clientContext); + this.createStreamingSequenceCallable = + callableFactory.createUnaryCallable( + createStreamingSequenceTransportSettings, + settings.createStreamingSequenceSettings(), + clientContext); this.getSequenceReportCallable = callableFactory.createUnaryCallable( getSequenceReportTransportSettings, settings.getSequenceReportSettings(), clientContext); + this.getStreamingSequenceReportCallable = + callableFactory.createUnaryCallable( + getStreamingSequenceReportTransportSettings, + settings.getStreamingSequenceReportSettings(), + clientContext); this.attemptSequenceCallable = callableFactory.createUnaryCallable( attemptSequenceTransportSettings, settings.attemptSequenceSettings(), clientContext); + this.attemptStreamingSequenceCallable = + callableFactory.createServerStreamingCallable( + attemptStreamingSequenceTransportSettings, + settings.attemptStreamingSequenceSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -233,16 +326,34 @@ public UnaryCallable createSequenceCallable() { return createSequenceCallable; } + @Override + public UnaryCallable + createStreamingSequenceCallable() { + return createStreamingSequenceCallable; + } + @Override public UnaryCallable getSequenceReportCallable() { return getSequenceReportCallable; } + @Override + public UnaryCallable + getStreamingSequenceReportCallable() { + return getStreamingSequenceReportCallable; + } + @Override public UnaryCallable attemptSequenceCallable() { return attemptSequenceCallable; } + @Override + public ServerStreamingCallable + attemptStreamingSequenceCallable() { + return attemptStreamingSequenceCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java index 44f5f0e2bb..86e488d457 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java @@ -29,6 +29,7 @@ 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.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -37,10 +38,16 @@ import com.google.protobuf.Empty; import com.google.protobuf.TypeRegistry; import com.google.showcase.v1beta1.AttemptSequenceRequest; +import com.google.showcase.v1beta1.AttemptStreamingSequenceRequest; +import com.google.showcase.v1beta1.AttemptStreamingSequenceResponse; import com.google.showcase.v1beta1.CreateSequenceRequest; +import com.google.showcase.v1beta1.CreateStreamingSequenceRequest; import com.google.showcase.v1beta1.GetSequenceReportRequest; +import com.google.showcase.v1beta1.GetStreamingSequenceReportRequest; import com.google.showcase.v1beta1.Sequence; import com.google.showcase.v1beta1.SequenceReport; +import com.google.showcase.v1beta1.StreamingSequence; +import com.google.showcase.v1beta1.StreamingSequenceReport; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; @@ -95,6 +102,42 @@ public class HttpJsonSequenceServiceStub extends SequenceServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + createStreamingSequenceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.showcase.v1beta1.SequenceService/CreateStreamingSequence") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/streamingSequences", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "streamingSequence", request.getStreamingSequence(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(StreamingSequence.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor getSequenceReportMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -128,6 +171,42 @@ public class HttpJsonSequenceServiceStub extends SequenceServiceStub { .build()) .build(); + private static final ApiMethodDescriptor< + GetStreamingSequenceReportRequest, StreamingSequenceReport> + getStreamingSequenceReportMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.showcase.v1beta1.SequenceService/GetStreamingSequenceReport") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=streamingSequences/*/streamingSequenceReport}", + 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(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(StreamingSequenceReport.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor attemptSequenceMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -164,6 +243,44 @@ public class HttpJsonSequenceServiceStub extends SequenceServiceStub { .build()) .build(); + private static final ApiMethodDescriptor< + AttemptStreamingSequenceRequest, AttemptStreamingSequenceResponse> + attemptStreamingSequenceMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.showcase.v1beta1.SequenceService/AttemptStreamingSequence") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.SERVER_STREAMING) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=streamingSequences/*}:stream", + 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(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AttemptStreamingSequenceResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -231,8 +348,15 @@ public class HttpJsonSequenceServiceStub extends SequenceServiceStub { .build(); private final UnaryCallable createSequenceCallable; + private final UnaryCallable + createStreamingSequenceCallable; private final UnaryCallable getSequenceReportCallable; + private final UnaryCallable + getStreamingSequenceReportCallable; private final UnaryCallable attemptSequenceCallable; + private final ServerStreamingCallable< + AttemptStreamingSequenceRequest, AttemptStreamingSequenceResponse> + attemptStreamingSequenceCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -285,17 +409,37 @@ protected HttpJsonSequenceServiceStub( .setMethodDescriptor(createSequenceMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings + createStreamingSequenceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createStreamingSequenceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings getSequenceReportTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getSequenceReportMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings + getStreamingSequenceReportTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getStreamingSequenceReportMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings attemptSequenceTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(attemptSequenceMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings + attemptStreamingSequenceTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(attemptStreamingSequenceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -311,14 +455,29 @@ protected HttpJsonSequenceServiceStub( this.createSequenceCallable = callableFactory.createUnaryCallable( createSequenceTransportSettings, settings.createSequenceSettings(), clientContext); + this.createStreamingSequenceCallable = + callableFactory.createUnaryCallable( + createStreamingSequenceTransportSettings, + settings.createStreamingSequenceSettings(), + clientContext); this.getSequenceReportCallable = callableFactory.createUnaryCallable( getSequenceReportTransportSettings, settings.getSequenceReportSettings(), clientContext); + this.getStreamingSequenceReportCallable = + callableFactory.createUnaryCallable( + getStreamingSequenceReportTransportSettings, + settings.getStreamingSequenceReportSettings(), + clientContext); this.attemptSequenceCallable = callableFactory.createUnaryCallable( attemptSequenceTransportSettings, settings.attemptSequenceSettings(), clientContext); + this.attemptStreamingSequenceCallable = + callableFactory.createServerStreamingCallable( + attemptStreamingSequenceTransportSettings, + settings.attemptStreamingSequenceSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -337,8 +496,11 @@ protected HttpJsonSequenceServiceStub( public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(createSequenceMethodDescriptor); + methodDescriptors.add(createStreamingSequenceMethodDescriptor); methodDescriptors.add(getSequenceReportMethodDescriptor); + methodDescriptors.add(getStreamingSequenceReportMethodDescriptor); methodDescriptors.add(attemptSequenceMethodDescriptor); + methodDescriptors.add(attemptStreamingSequenceMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -349,16 +511,34 @@ public UnaryCallable createSequenceCallable() { return createSequenceCallable; } + @Override + public UnaryCallable + createStreamingSequenceCallable() { + return createStreamingSequenceCallable; + } + @Override public UnaryCallable getSequenceReportCallable() { return getSequenceReportCallable; } + @Override + public UnaryCallable + getStreamingSequenceReportCallable() { + return getStreamingSequenceReportCallable; + } + @Override public UnaryCallable attemptSequenceCallable() { return attemptSequenceCallable; } + @Override + public ServerStreamingCallable + attemptStreamingSequenceCallable() { + return attemptStreamingSequenceCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStub.java index ddc3d06cb4..45c67ac0d6 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStub.java @@ -20,6 +20,7 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -27,10 +28,16 @@ import com.google.cloud.location.Location; import com.google.protobuf.Empty; import com.google.showcase.v1beta1.AttemptSequenceRequest; +import com.google.showcase.v1beta1.AttemptStreamingSequenceRequest; +import com.google.showcase.v1beta1.AttemptStreamingSequenceResponse; import com.google.showcase.v1beta1.CreateSequenceRequest; +import com.google.showcase.v1beta1.CreateStreamingSequenceRequest; import com.google.showcase.v1beta1.GetSequenceReportRequest; +import com.google.showcase.v1beta1.GetStreamingSequenceReportRequest; import com.google.showcase.v1beta1.Sequence; import com.google.showcase.v1beta1.SequenceReport; +import com.google.showcase.v1beta1.StreamingSequence; +import com.google.showcase.v1beta1.StreamingSequenceReport; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS. @@ -47,14 +54,30 @@ public UnaryCallable createSequenceCallable() { throw new UnsupportedOperationException("Not implemented: createSequenceCallable()"); } + public UnaryCallable + createStreamingSequenceCallable() { + throw new UnsupportedOperationException("Not implemented: createStreamingSequenceCallable()"); + } + public UnaryCallable getSequenceReportCallable() { throw new UnsupportedOperationException("Not implemented: getSequenceReportCallable()"); } + public UnaryCallable + getStreamingSequenceReportCallable() { + throw new UnsupportedOperationException( + "Not implemented: getStreamingSequenceReportCallable()"); + } + public UnaryCallable attemptSequenceCallable() { throw new UnsupportedOperationException("Not implemented: attemptSequenceCallable()"); } + public ServerStreamingCallable + attemptStreamingSequenceCallable() { + throw new UnsupportedOperationException("Not implemented: attemptStreamingSequenceCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java index 67f42ebd0c..cb794357a3 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java @@ -38,6 +38,7 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.PagedListDescriptor; import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.ServerStreamingCallSettings; import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; @@ -53,10 +54,16 @@ import com.google.common.collect.Lists; import com.google.protobuf.Empty; import com.google.showcase.v1beta1.AttemptSequenceRequest; +import com.google.showcase.v1beta1.AttemptStreamingSequenceRequest; +import com.google.showcase.v1beta1.AttemptStreamingSequenceResponse; import com.google.showcase.v1beta1.CreateSequenceRequest; +import com.google.showcase.v1beta1.CreateStreamingSequenceRequest; import com.google.showcase.v1beta1.GetSequenceReportRequest; +import com.google.showcase.v1beta1.GetStreamingSequenceReportRequest; import com.google.showcase.v1beta1.Sequence; import com.google.showcase.v1beta1.SequenceReport; +import com.google.showcase.v1beta1.StreamingSequence; +import com.google.showcase.v1beta1.StreamingSequenceReport; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -107,9 +114,16 @@ public class SequenceServiceStubSettings extends StubSettingsbuilder().build(); private final UnaryCallSettings createSequenceSettings; + private final UnaryCallSettings + createStreamingSequenceSettings; private final UnaryCallSettings getSequenceReportSettings; + private final UnaryCallSettings + getStreamingSequenceReportSettings; private final UnaryCallSettings attemptSequenceSettings; + private final ServerStreamingCallSettings< + AttemptStreamingSequenceRequest, AttemptStreamingSequenceResponse> + attemptStreamingSequenceSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -173,16 +187,35 @@ public UnaryCallSettings createSequenceSettings return createSequenceSettings; } + /** Returns the object with the settings used for calls to createStreamingSequence. */ + public UnaryCallSettings + createStreamingSequenceSettings() { + return createStreamingSequenceSettings; + } + /** Returns the object with the settings used for calls to getSequenceReport. */ public UnaryCallSettings getSequenceReportSettings() { return getSequenceReportSettings; } + /** Returns the object with the settings used for calls to getStreamingSequenceReport. */ + public UnaryCallSettings + getStreamingSequenceReportSettings() { + return getStreamingSequenceReportSettings; + } + /** Returns the object with the settings used for calls to attemptSequence. */ public UnaryCallSettings attemptSequenceSettings() { return attemptSequenceSettings; } + /** Returns the object with the settings used for calls to attemptStreamingSequence. */ + public ServerStreamingCallSettings< + AttemptStreamingSequenceRequest, AttemptStreamingSequenceResponse> + attemptStreamingSequenceSettings() { + return attemptStreamingSequenceSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -301,8 +334,12 @@ protected SequenceServiceStubSettings(Builder settingsBuilder) throws IOExceptio super(settingsBuilder); createSequenceSettings = settingsBuilder.createSequenceSettings().build(); + createStreamingSequenceSettings = settingsBuilder.createStreamingSequenceSettings().build(); getSequenceReportSettings = settingsBuilder.getSequenceReportSettings().build(); + getStreamingSequenceReportSettings = + settingsBuilder.getStreamingSequenceReportSettings().build(); attemptSequenceSettings = settingsBuilder.attemptSequenceSettings().build(); + attemptStreamingSequenceSettings = settingsBuilder.attemptStreamingSequenceSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -311,9 +348,17 @@ protected SequenceServiceStubSettings(Builder settingsBuilder) throws IOExceptio public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; private final UnaryCallSettings.Builder createSequenceSettings; + private final UnaryCallSettings.Builder + createStreamingSequenceSettings; private final UnaryCallSettings.Builder getSequenceReportSettings; + private final UnaryCallSettings.Builder< + GetStreamingSequenceReportRequest, StreamingSequenceReport> + getStreamingSequenceReportSettings; private final UnaryCallSettings.Builder attemptSequenceSettings; + private final ServerStreamingCallSettings.Builder< + AttemptStreamingSequenceRequest, AttemptStreamingSequenceResponse> + attemptStreamingSequenceSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -369,15 +414,20 @@ protected Builder(ClientContext clientContext) { super(clientContext); createSequenceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createStreamingSequenceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getSequenceReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getStreamingSequenceReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); attemptSequenceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + attemptStreamingSequenceSettings = ServerStreamingCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( createSequenceSettings, + createStreamingSequenceSettings, getSequenceReportSettings, + getStreamingSequenceReportSettings, attemptSequenceSettings, listLocationsSettings, getLocationSettings); @@ -388,15 +438,20 @@ protected Builder(SequenceServiceStubSettings settings) { super(settings); createSequenceSettings = settings.createSequenceSettings.toBuilder(); + createStreamingSequenceSettings = settings.createStreamingSequenceSettings.toBuilder(); getSequenceReportSettings = settings.getSequenceReportSettings.toBuilder(); + getStreamingSequenceReportSettings = settings.getStreamingSequenceReportSettings.toBuilder(); attemptSequenceSettings = settings.attemptSequenceSettings.toBuilder(); + attemptStreamingSequenceSettings = settings.attemptStreamingSequenceSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( createSequenceSettings, + createStreamingSequenceSettings, getSequenceReportSettings, + getStreamingSequenceReportSettings, attemptSequenceSettings, listLocationsSettings, getLocationSettings); @@ -434,16 +489,31 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .createStreamingSequenceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .getSequenceReportSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .getStreamingSequenceReportSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .attemptSequenceSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + builder + .attemptStreamingSequenceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) @@ -477,17 +547,36 @@ public UnaryCallSettings.Builder createSequence return createSequenceSettings; } + /** Returns the builder for the settings used for calls to createStreamingSequence. */ + public UnaryCallSettings.Builder + createStreamingSequenceSettings() { + return createStreamingSequenceSettings; + } + /** Returns the builder for the settings used for calls to getSequenceReport. */ public UnaryCallSettings.Builder getSequenceReportSettings() { return getSequenceReportSettings; } + /** Returns the builder for the settings used for calls to getStreamingSequenceReport. */ + public UnaryCallSettings.Builder + getStreamingSequenceReportSettings() { + return getStreamingSequenceReportSettings; + } + /** Returns the builder for the settings used for calls to attemptSequence. */ public UnaryCallSettings.Builder attemptSequenceSettings() { return attemptSequenceSettings; } + /** Returns the builder for the settings used for calls to attemptStreamingSequence. */ + public ServerStreamingCallSettings.Builder< + AttemptStreamingSequenceRequest, AttemptStreamingSequenceResponse> + attemptStreamingSequenceSettings() { + return attemptStreamingSequenceSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientTest.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientTest.java index 5720a2c807..c36512bbab 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientTest.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientTest.java @@ -166,6 +166,7 @@ public void expandTest() throws Exception { ExpandRequest.newBuilder() .setContent("content951530617") .setError(Status.newBuilder().build()) + .setStreamWaitTime(Duration.newBuilder().build()) .build(); MockStreamObserver responseObserver = new MockStreamObserver<>(); @@ -186,6 +187,7 @@ public void expandExceptionTest() throws Exception { ExpandRequest.newBuilder() .setContent("content951530617") .setError(Status.newBuilder().build()) + .setStreamWaitTime(Duration.newBuilder().build()) .build(); MockStreamObserver responseObserver = new MockStreamObserver<>(); diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceServiceImpl.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceServiceImpl.java index a529856c95..718d5419b0 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceServiceImpl.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceServiceImpl.java @@ -80,6 +80,27 @@ public void createSequence( } } + @Override + public void createStreamingSequence( + CreateStreamingSequenceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof StreamingSequence) { + requests.add(request); + responseObserver.onNext(((StreamingSequence) 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 CreateStreamingSequence, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + StreamingSequence.class.getName(), + Exception.class.getName()))); + } + } + @Override public void getSequenceReport( GetSequenceReportRequest request, StreamObserver responseObserver) { @@ -101,6 +122,28 @@ public void getSequenceReport( } } + @Override + public void getStreamingSequenceReport( + GetStreamingSequenceReportRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof StreamingSequenceReport) { + requests.add(request); + responseObserver.onNext(((StreamingSequenceReport) 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 GetStreamingSequenceReport, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + StreamingSequenceReport.class.getName(), + Exception.class.getName()))); + } + } + @Override public void attemptSequence( AttemptSequenceRequest request, StreamObserver responseObserver) { @@ -121,4 +164,26 @@ public void attemptSequence( Exception.class.getName()))); } } + + @Override + public void attemptStreamingSequence( + AttemptStreamingSequenceRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AttemptStreamingSequenceResponse) { + requests.add(request); + responseObserver.onNext(((AttemptStreamingSequenceResponse) 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 AttemptStreamingSequence, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AttemptStreamingSequenceResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientHttpJsonTest.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientHttpJsonTest.java index 3b956caaab..3551e72112 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientHttpJsonTest.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientHttpJsonTest.java @@ -128,6 +128,52 @@ public void createSequenceExceptionTest() throws Exception { } } + @Test + public void createStreamingSequenceTest() throws Exception { + StreamingSequence expectedResponse = + StreamingSequence.newBuilder() + .setName(StreamingSequenceName.of("[STREAMING_SEQUENCE]").toString()) + .setContent("content951530617") + .addAllResponses(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + StreamingSequence streamingSequence = StreamingSequence.newBuilder().build(); + + StreamingSequence actualResponse = client.createStreamingSequence(streamingSequence); + 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 createStreamingSequenceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + StreamingSequence streamingSequence = StreamingSequence.newBuilder().build(); + client.createStreamingSequence(streamingSequence); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getSequenceReportTest() throws Exception { SequenceReport expectedResponse = @@ -218,6 +264,96 @@ public void getSequenceReportExceptionTest2() throws Exception { } } + @Test + public void getStreamingSequenceReportTest() throws Exception { + StreamingSequenceReport expectedResponse = + StreamingSequenceReport.newBuilder() + .setName(StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString()) + .addAllAttempts(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + StreamingSequenceReportName name = StreamingSequenceReportName.of("[STREAMING_SEQUENCE]"); + + StreamingSequenceReport actualResponse = client.getStreamingSequenceReport(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 getStreamingSequenceReportExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + StreamingSequenceReportName name = StreamingSequenceReportName.of("[STREAMING_SEQUENCE]"); + client.getStreamingSequenceReport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getStreamingSequenceReportTest2() throws Exception { + StreamingSequenceReport expectedResponse = + StreamingSequenceReport.newBuilder() + .setName(StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString()) + .addAllAttempts(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "streamingSequences/streamingSequence-962/streamingSequenceReport"; + + StreamingSequenceReport actualResponse = client.getStreamingSequenceReport(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 getStreamingSequenceReportExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "streamingSequences/streamingSequence-962/streamingSequenceReport"; + client.getStreamingSequenceReport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void attemptSequenceTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); @@ -298,6 +434,17 @@ public void attemptSequenceExceptionTest2() throws Exception { } } + @Test + public void attemptStreamingSequenceTest() throws Exception {} + + @Test + public void attemptStreamingSequenceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientTest.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientTest.java index 609a3fa3f3..2111e0b260 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientTest.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientTest.java @@ -23,8 +23,11 @@ import com.google.api.gax.grpc.testing.LocalChannelProvider; import com.google.api.gax.grpc.testing.MockGrpcService; import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.grpc.testing.MockStreamObserver; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StatusCode; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -40,6 +43,7 @@ import java.util.HashMap; import java.util.List; import java.util.UUID; +import java.util.concurrent.ExecutionException; import javax.annotation.Generated; import org.junit.After; import org.junit.AfterClass; @@ -128,6 +132,47 @@ public void createSequenceExceptionTest() throws Exception { } } + @Test + public void createStreamingSequenceTest() throws Exception { + StreamingSequence expectedResponse = + StreamingSequence.newBuilder() + .setName(StreamingSequenceName.of("[STREAMING_SEQUENCE]").toString()) + .setContent("content951530617") + .addAllResponses(new ArrayList()) + .build(); + mockSequenceService.addResponse(expectedResponse); + + StreamingSequence streamingSequence = StreamingSequence.newBuilder().build(); + + StreamingSequence actualResponse = client.createStreamingSequence(streamingSequence); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSequenceService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateStreamingSequenceRequest actualRequest = + ((CreateStreamingSequenceRequest) actualRequests.get(0)); + + Assert.assertEquals(streamingSequence, actualRequest.getStreamingSequence()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createStreamingSequenceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSequenceService.addException(exception); + + try { + StreamingSequence streamingSequence = StreamingSequence.newBuilder().build(); + client.createStreamingSequence(streamingSequence); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getSequenceReportTest() throws Exception { SequenceReport expectedResponse = @@ -206,6 +251,86 @@ public void getSequenceReportExceptionTest2() throws Exception { } } + @Test + public void getStreamingSequenceReportTest() throws Exception { + StreamingSequenceReport expectedResponse = + StreamingSequenceReport.newBuilder() + .setName(StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString()) + .addAllAttempts(new ArrayList()) + .build(); + mockSequenceService.addResponse(expectedResponse); + + StreamingSequenceReportName name = StreamingSequenceReportName.of("[STREAMING_SEQUENCE]"); + + StreamingSequenceReport actualResponse = client.getStreamingSequenceReport(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSequenceService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetStreamingSequenceReportRequest actualRequest = + ((GetStreamingSequenceReportRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getStreamingSequenceReportExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSequenceService.addException(exception); + + try { + StreamingSequenceReportName name = StreamingSequenceReportName.of("[STREAMING_SEQUENCE]"); + client.getStreamingSequenceReport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getStreamingSequenceReportTest2() throws Exception { + StreamingSequenceReport expectedResponse = + StreamingSequenceReport.newBuilder() + .setName(StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString()) + .addAllAttempts(new ArrayList()) + .build(); + mockSequenceService.addResponse(expectedResponse); + + String name = "name3373707"; + + StreamingSequenceReport actualResponse = client.getStreamingSequenceReport(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSequenceService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetStreamingSequenceReportRequest actualRequest = + ((GetStreamingSequenceReportRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getStreamingSequenceReportExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSequenceService.addException(exception); + + try { + String name = "name3373707"; + client.getStreamingSequenceReport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void attemptSequenceTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); @@ -274,6 +399,54 @@ public void attemptSequenceExceptionTest2() throws Exception { } } + @Test + public void attemptStreamingSequenceTest() throws Exception { + AttemptStreamingSequenceResponse expectedResponse = + AttemptStreamingSequenceResponse.newBuilder().setContent("content951530617").build(); + mockSequenceService.addResponse(expectedResponse); + AttemptStreamingSequenceRequest request = + AttemptStreamingSequenceRequest.newBuilder() + .setName(StreamingSequenceName.of("[STREAMING_SEQUENCE]").toString()) + .build(); + + MockStreamObserver responseObserver = + new MockStreamObserver<>(); + + ServerStreamingCallable + callable = client.attemptStreamingSequenceCallable(); + callable.serverStreamingCall(request, responseObserver); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void attemptStreamingSequenceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSequenceService.addException(exception); + AttemptStreamingSequenceRequest request = + AttemptStreamingSequenceRequest.newBuilder() + .setName(StreamingSequenceName.of("[STREAMING_SEQUENCE]").toString()) + .build(); + + MockStreamObserver responseObserver = + new MockStreamObserver<>(); + + ServerStreamingCallable + callable = client.attemptStreamingSequenceCallable(); + callable.serverStreamingCall(request, responseObserver); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceServiceGrpc.java b/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceServiceGrpc.java index a891daf387..acb83bf8c5 100644 --- a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceServiceGrpc.java +++ b/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceServiceGrpc.java @@ -46,6 +46,37 @@ com.google.showcase.v1beta1.Sequence> getCreateSequenceMethod() { return getCreateSequenceMethod; } + private static volatile io.grpc.MethodDescriptor getCreateStreamingSequenceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateStreamingSequence", + requestType = com.google.showcase.v1beta1.CreateStreamingSequenceRequest.class, + responseType = com.google.showcase.v1beta1.StreamingSequence.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateStreamingSequenceMethod() { + io.grpc.MethodDescriptor getCreateStreamingSequenceMethod; + if ((getCreateStreamingSequenceMethod = SequenceServiceGrpc.getCreateStreamingSequenceMethod) == null) { + synchronized (SequenceServiceGrpc.class) { + if ((getCreateStreamingSequenceMethod = SequenceServiceGrpc.getCreateStreamingSequenceMethod) == null) { + SequenceServiceGrpc.getCreateStreamingSequenceMethod = getCreateStreamingSequenceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateStreamingSequence")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.CreateStreamingSequenceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance())) + .setSchemaDescriptor(new SequenceServiceMethodDescriptorSupplier("CreateStreamingSequence")) + .build(); + } + } + } + return getCreateStreamingSequenceMethod; + } + private static volatile io.grpc.MethodDescriptor getGetSequenceReportMethod; @@ -77,6 +108,37 @@ com.google.showcase.v1beta1.SequenceReport> getGetSequenceReportMethod() { return getGetSequenceReportMethod; } + private static volatile io.grpc.MethodDescriptor getGetStreamingSequenceReportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetStreamingSequenceReport", + requestType = com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.class, + responseType = com.google.showcase.v1beta1.StreamingSequenceReport.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetStreamingSequenceReportMethod() { + io.grpc.MethodDescriptor getGetStreamingSequenceReportMethod; + if ((getGetStreamingSequenceReportMethod = SequenceServiceGrpc.getGetStreamingSequenceReportMethod) == null) { + synchronized (SequenceServiceGrpc.class) { + if ((getGetStreamingSequenceReportMethod = SequenceServiceGrpc.getGetStreamingSequenceReportMethod) == null) { + SequenceServiceGrpc.getGetStreamingSequenceReportMethod = getGetStreamingSequenceReportMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStreamingSequenceReport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.StreamingSequenceReport.getDefaultInstance())) + .setSchemaDescriptor(new SequenceServiceMethodDescriptorSupplier("GetStreamingSequenceReport")) + .build(); + } + } + } + return getGetStreamingSequenceReportMethod; + } + private static volatile io.grpc.MethodDescriptor getAttemptSequenceMethod; @@ -108,6 +170,37 @@ com.google.protobuf.Empty> getAttemptSequenceMethod() { return getAttemptSequenceMethod; } + private static volatile io.grpc.MethodDescriptor getAttemptStreamingSequenceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AttemptStreamingSequence", + requestType = com.google.showcase.v1beta1.AttemptStreamingSequenceRequest.class, + responseType = com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor getAttemptStreamingSequenceMethod() { + io.grpc.MethodDescriptor getAttemptStreamingSequenceMethod; + if ((getAttemptStreamingSequenceMethod = SequenceServiceGrpc.getAttemptStreamingSequenceMethod) == null) { + synchronized (SequenceServiceGrpc.class) { + if ((getAttemptStreamingSequenceMethod = SequenceServiceGrpc.getAttemptStreamingSequenceMethod) == null) { + SequenceServiceGrpc.getAttemptStreamingSequenceMethod = getAttemptStreamingSequenceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AttemptStreamingSequence")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.AttemptStreamingSequenceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.getDefaultInstance())) + .setSchemaDescriptor(new SequenceServiceMethodDescriptorSupplier("AttemptStreamingSequence")) + .build(); + } + } + } + return getAttemptStreamingSequenceMethod; + } + /** * Creates a new async stub that supports all call types for the service */ @@ -163,6 +256,13 @@ default void createSequence(com.google.showcase.v1beta1.CreateSequenceRequest re io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSequenceMethod(), responseObserver); } + /** + */ + default void createStreamingSequence(com.google.showcase.v1beta1.CreateStreamingSequenceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateStreamingSequenceMethod(), responseObserver); + } + /** */ default void getSequenceReport(com.google.showcase.v1beta1.GetSequenceReportRequest request, @@ -170,12 +270,26 @@ default void getSequenceReport(com.google.showcase.v1beta1.GetSequenceReportRequ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSequenceReportMethod(), responseObserver); } + /** + */ + default void getStreamingSequenceReport(com.google.showcase.v1beta1.GetStreamingSequenceReportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStreamingSequenceReportMethod(), responseObserver); + } + /** */ default void attemptSequence(com.google.showcase.v1beta1.AttemptSequenceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAttemptSequenceMethod(), responseObserver); } + + /** + */ + default void attemptStreamingSequence(com.google.showcase.v1beta1.AttemptStreamingSequenceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAttemptStreamingSequenceMethod(), responseObserver); + } } /** @@ -213,6 +327,14 @@ public void createSequence(com.google.showcase.v1beta1.CreateSequenceRequest req getChannel().newCall(getCreateSequenceMethod(), getCallOptions()), request, responseObserver); } + /** + */ + public void createStreamingSequence(com.google.showcase.v1beta1.CreateStreamingSequenceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateStreamingSequenceMethod(), getCallOptions()), request, responseObserver); + } + /** */ public void getSequenceReport(com.google.showcase.v1beta1.GetSequenceReportRequest request, @@ -221,6 +343,14 @@ public void getSequenceReport(com.google.showcase.v1beta1.GetSequenceReportReque getChannel().newCall(getGetSequenceReportMethod(), getCallOptions()), request, responseObserver); } + /** + */ + public void getStreamingSequenceReport(com.google.showcase.v1beta1.GetStreamingSequenceReportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetStreamingSequenceReportMethod(), getCallOptions()), request, responseObserver); + } + /** */ public void attemptSequence(com.google.showcase.v1beta1.AttemptSequenceRequest request, @@ -228,6 +358,14 @@ public void attemptSequence(com.google.showcase.v1beta1.AttemptSequenceRequest r io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getAttemptSequenceMethod(), getCallOptions()), request, responseObserver); } + + /** + */ + public void attemptStreamingSequence(com.google.showcase.v1beta1.AttemptStreamingSequenceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getAttemptStreamingSequenceMethod(), getCallOptions()), request, responseObserver); + } } /** @@ -253,6 +391,13 @@ public com.google.showcase.v1beta1.Sequence createSequence(com.google.showcase.v getChannel(), getCreateSequenceMethod(), getCallOptions(), request); } + /** + */ + public com.google.showcase.v1beta1.StreamingSequence createStreamingSequence(com.google.showcase.v1beta1.CreateStreamingSequenceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateStreamingSequenceMethod(), getCallOptions(), request); + } + /** */ public com.google.showcase.v1beta1.SequenceReport getSequenceReport(com.google.showcase.v1beta1.GetSequenceReportRequest request) { @@ -260,12 +405,27 @@ public com.google.showcase.v1beta1.SequenceReport getSequenceReport(com.google.s getChannel(), getGetSequenceReportMethod(), getCallOptions(), request); } + /** + */ + public com.google.showcase.v1beta1.StreamingSequenceReport getStreamingSequenceReport(com.google.showcase.v1beta1.GetStreamingSequenceReportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetStreamingSequenceReportMethod(), getCallOptions(), request); + } + /** */ public com.google.protobuf.Empty attemptSequence(com.google.showcase.v1beta1.AttemptSequenceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAttemptSequenceMethod(), getCallOptions(), request); } + + /** + */ + public java.util.Iterator attemptStreamingSequence( + com.google.showcase.v1beta1.AttemptStreamingSequenceRequest request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall( + getChannel(), getAttemptStreamingSequenceMethod(), getCallOptions(), request); + } } /** @@ -292,6 +452,14 @@ public com.google.common.util.concurrent.ListenableFuture createStreamingSequence( + com.google.showcase.v1beta1.CreateStreamingSequenceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateStreamingSequenceMethod(), getCallOptions()), request); + } + /** */ public com.google.common.util.concurrent.ListenableFuture getSequenceReport( @@ -300,6 +468,14 @@ public com.google.common.util.concurrent.ListenableFuture getStreamingSequenceReport( + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetStreamingSequenceReportMethod(), getCallOptions()), request); + } + /** */ public com.google.common.util.concurrent.ListenableFuture attemptSequence( @@ -310,8 +486,11 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -334,14 +513,26 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.createSequence((com.google.showcase.v1beta1.CreateSequenceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_STREAMING_SEQUENCE: + serviceImpl.createStreamingSequence((com.google.showcase.v1beta1.CreateStreamingSequenceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_GET_SEQUENCE_REPORT: serviceImpl.getSequenceReport((com.google.showcase.v1beta1.GetSequenceReportRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_STREAMING_SEQUENCE_REPORT: + serviceImpl.getStreamingSequenceReport((com.google.showcase.v1beta1.GetStreamingSequenceReportRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_ATTEMPT_SEQUENCE: serviceImpl.attemptSequence((com.google.showcase.v1beta1.AttemptSequenceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_ATTEMPT_STREAMING_SEQUENCE: + serviceImpl.attemptStreamingSequence((com.google.showcase.v1beta1.AttemptStreamingSequenceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -367,6 +558,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.showcase.v1beta1.CreateSequenceRequest, com.google.showcase.v1beta1.Sequence>( service, METHODID_CREATE_SEQUENCE))) + .addMethod( + getCreateStreamingSequenceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.CreateStreamingSequenceRequest, + com.google.showcase.v1beta1.StreamingSequence>( + service, METHODID_CREATE_STREAMING_SEQUENCE))) .addMethod( getGetSequenceReportMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -374,6 +572,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.showcase.v1beta1.GetSequenceReportRequest, com.google.showcase.v1beta1.SequenceReport>( service, METHODID_GET_SEQUENCE_REPORT))) + .addMethod( + getGetStreamingSequenceReportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest, + com.google.showcase.v1beta1.StreamingSequenceReport>( + service, METHODID_GET_STREAMING_SEQUENCE_REPORT))) .addMethod( getAttemptSequenceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -381,6 +586,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.showcase.v1beta1.AttemptSequenceRequest, com.google.protobuf.Empty>( service, METHODID_ATTEMPT_SEQUENCE))) + .addMethod( + getAttemptStreamingSequenceMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.showcase.v1beta1.AttemptStreamingSequenceRequest, + com.google.showcase.v1beta1.AttemptStreamingSequenceResponse>( + service, METHODID_ATTEMPT_STREAMING_SEQUENCE))) .build(); } @@ -430,8 +642,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new SequenceServiceFileDescriptorSupplier()) .addMethod(getCreateSequenceMethod()) + .addMethod(getCreateStreamingSequenceMethod()) .addMethod(getGetSequenceReportMethod()) + .addMethod(getGetStreamingSequenceReportMethod()) .addMethod(getAttemptSequenceMethod()) + .addMethod(getAttemptStreamingSequenceMethod()) .build(); } } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequest.java new file mode 100644 index 0000000000..41183edca6 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequest.java @@ -0,0 +1,544 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +package com.google.showcase.v1beta1; + +/** + * Protobuf type {@code google.showcase.v1beta1.AttemptStreamingSequenceRequest} + */ +public final class AttemptStreamingSequenceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.AttemptStreamingSequenceRequest) + AttemptStreamingSequenceRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AttemptStreamingSequenceRequest.newBuilder() to construct. + private AttemptStreamingSequenceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AttemptStreamingSequenceRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AttemptStreamingSequenceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.AttemptStreamingSequenceRequest.class, com.google.showcase.v1beta1.AttemptStreamingSequenceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * 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; + } + } + /** + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.AttemptStreamingSequenceRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.AttemptStreamingSequenceRequest other = (com.google.showcase.v1beta1.AttemptStreamingSequenceRequest) 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.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.showcase.v1beta1.AttemptStreamingSequenceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code google.showcase.v1beta1.AttemptStreamingSequenceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.AttemptStreamingSequenceRequest) + com.google.showcase.v1beta1.AttemptStreamingSequenceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.AttemptStreamingSequenceRequest.class, com.google.showcase.v1beta1.AttemptStreamingSequenceRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.AttemptStreamingSequenceRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.AttemptStreamingSequenceRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.AttemptStreamingSequenceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.AttemptStreamingSequenceRequest build() { + com.google.showcase.v1beta1.AttemptStreamingSequenceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.AttemptStreamingSequenceRequest buildPartial() { + com.google.showcase.v1beta1.AttemptStreamingSequenceRequest result = new com.google.showcase.v1beta1.AttemptStreamingSequenceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.showcase.v1beta1.AttemptStreamingSequenceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.AttemptStreamingSequenceRequest) { + return mergeFrom((com.google.showcase.v1beta1.AttemptStreamingSequenceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.AttemptStreamingSequenceRequest other) { + if (other == com.google.showcase.v1beta1.AttemptStreamingSequenceRequest.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_ = ""; + /** + * 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; + } + } + /** + * 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; + } + } + /** + * 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; + } + /** + * 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; + } + /** + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.AttemptStreamingSequenceRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.AttemptStreamingSequenceRequest) + private static final com.google.showcase.v1beta1.AttemptStreamingSequenceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.AttemptStreamingSequenceRequest(); + } + + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttemptStreamingSequenceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.AttemptStreamingSequenceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequestOrBuilder.java new file mode 100644 index 0000000000..60e34d667f --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequestOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +package com.google.showcase.v1beta1; + +public interface AttemptStreamingSequenceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.AttemptStreamingSequenceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + * 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/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponse.java new file mode 100644 index 0000000000..d51a763763 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponse.java @@ -0,0 +1,580 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The response message for the Echo methods.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.AttemptStreamingSequenceResponse} + */ +public final class AttemptStreamingSequenceResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.AttemptStreamingSequenceResponse) + AttemptStreamingSequenceResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use AttemptStreamingSequenceResponse.newBuilder() to construct. + private AttemptStreamingSequenceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AttemptStreamingSequenceResponse() { + content_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AttemptStreamingSequenceResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.class, com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.Builder.class); + } + + public static final int CONTENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; + /** + *
+   * The content specified in the request.
+   * 
+ * + * string content = 1; + * @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; + } + } + /** + *
+   * The content specified in the request.
+   * 
+ * + * string content = 1; + * @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; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.AttemptStreamingSequenceResponse)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.AttemptStreamingSequenceResponse other = (com.google.showcase.v1beta1.AttemptStreamingSequenceResponse) obj; + + if (!getContent() + .equals(other.getContent())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.showcase.v1beta1.AttemptStreamingSequenceResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * The response message for the Echo methods.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.AttemptStreamingSequenceResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.AttemptStreamingSequenceResponse) + com.google.showcase.v1beta1.AttemptStreamingSequenceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.class, com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + content_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.AttemptStreamingSequenceResponse getDefaultInstanceForType() { + return com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.AttemptStreamingSequenceResponse build() { + com.google.showcase.v1beta1.AttemptStreamingSequenceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.AttemptStreamingSequenceResponse buildPartial() { + com.google.showcase.v1beta1.AttemptStreamingSequenceResponse result = new com.google.showcase.v1beta1.AttemptStreamingSequenceResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.showcase.v1beta1.AttemptStreamingSequenceResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.AttemptStreamingSequenceResponse) { + return mergeFrom((com.google.showcase.v1beta1.AttemptStreamingSequenceResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.AttemptStreamingSequenceResponse other) { + if (other == com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.getDefaultInstance()) return this; + if (!other.getContent().isEmpty()) { + content_ = other.content_; + 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: { + content_ = 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 content_ = ""; + /** + *
+     * The content specified in the request.
+     * 
+ * + * string content = 1; + * @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; + } + } + /** + *
+     * The content specified in the request.
+     * 
+ * + * string content = 1; + * @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; + } + } + /** + *
+     * The content specified in the request.
+     * 
+ * + * string content = 1; + * @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_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The content specified in the request.
+     * 
+ * + * string content = 1; + * @return This builder for chaining. + */ + public Builder clearContent() { + content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The content specified in the request.
+     * 
+ * + * string content = 1; + * @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_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.AttemptStreamingSequenceResponse) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.AttemptStreamingSequenceResponse) + private static final com.google.showcase.v1beta1.AttemptStreamingSequenceResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.AttemptStreamingSequenceResponse(); + } + + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttemptStreamingSequenceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.AttemptStreamingSequenceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponseOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponseOrBuilder.java new file mode 100644 index 0000000000..fa092161c0 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponseOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +package com.google.showcase.v1beta1; + +public interface AttemptStreamingSequenceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.AttemptStreamingSequenceResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The content specified in the request.
+   * 
+ * + * string content = 1; + * @return The content. + */ + java.lang.String getContent(); + /** + *
+   * The content specified in the request.
+   * 
+ * + * string content = 1; + * @return The bytes for content. + */ + com.google.protobuf.ByteString + getContentBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequest.java new file mode 100644 index 0000000000..06d85837dc --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequest.java @@ -0,0 +1,589 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +package com.google.showcase.v1beta1; + +/** + * Protobuf type {@code google.showcase.v1beta1.CreateStreamingSequenceRequest} + */ +public final class CreateStreamingSequenceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.CreateStreamingSequenceRequest) + CreateStreamingSequenceRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateStreamingSequenceRequest.newBuilder() to construct. + private CreateStreamingSequenceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateStreamingSequenceRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateStreamingSequenceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.CreateStreamingSequenceRequest.class, com.google.showcase.v1beta1.CreateStreamingSequenceRequest.Builder.class); + } + + public static final int STREAMING_SEQUENCE_FIELD_NUMBER = 1; + private com.google.showcase.v1beta1.StreamingSequence streamingSequence_; + /** + * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; + * @return Whether the streamingSequence field is set. + */ + @java.lang.Override + public boolean hasStreamingSequence() { + return streamingSequence_ != null; + } + /** + * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; + * @return The streamingSequence. + */ + @java.lang.Override + public com.google.showcase.v1beta1.StreamingSequence getStreamingSequence() { + return streamingSequence_ == null ? com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance() : streamingSequence_; + } + /** + * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.StreamingSequenceOrBuilder getStreamingSequenceOrBuilder() { + return streamingSequence_ == null ? com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance() : streamingSequence_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (streamingSequence_ != null) { + output.writeMessage(1, getStreamingSequence()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (streamingSequence_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStreamingSequence()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.CreateStreamingSequenceRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.CreateStreamingSequenceRequest other = (com.google.showcase.v1beta1.CreateStreamingSequenceRequest) obj; + + if (hasStreamingSequence() != other.hasStreamingSequence()) return false; + if (hasStreamingSequence()) { + if (!getStreamingSequence() + .equals(other.getStreamingSequence())) return false; + } + if (!getUnknownFields().equals(other.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 (hasStreamingSequence()) { + hash = (37 * hash) + STREAMING_SEQUENCE_FIELD_NUMBER; + hash = (53 * hash) + getStreamingSequence().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.showcase.v1beta1.CreateStreamingSequenceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code google.showcase.v1beta1.CreateStreamingSequenceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.CreateStreamingSequenceRequest) + com.google.showcase.v1beta1.CreateStreamingSequenceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.CreateStreamingSequenceRequest.class, com.google.showcase.v1beta1.CreateStreamingSequenceRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.CreateStreamingSequenceRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + streamingSequence_ = null; + if (streamingSequenceBuilder_ != null) { + streamingSequenceBuilder_.dispose(); + streamingSequenceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateStreamingSequenceRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.CreateStreamingSequenceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateStreamingSequenceRequest build() { + com.google.showcase.v1beta1.CreateStreamingSequenceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateStreamingSequenceRequest buildPartial() { + com.google.showcase.v1beta1.CreateStreamingSequenceRequest result = new com.google.showcase.v1beta1.CreateStreamingSequenceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.showcase.v1beta1.CreateStreamingSequenceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.streamingSequence_ = streamingSequenceBuilder_ == null + ? streamingSequence_ + : streamingSequenceBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.CreateStreamingSequenceRequest) { + return mergeFrom((com.google.showcase.v1beta1.CreateStreamingSequenceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.CreateStreamingSequenceRequest other) { + if (other == com.google.showcase.v1beta1.CreateStreamingSequenceRequest.getDefaultInstance()) return this; + if (other.hasStreamingSequence()) { + mergeStreamingSequence(other.getStreamingSequence()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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( + getStreamingSequenceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.showcase.v1beta1.StreamingSequence streamingSequence_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.StreamingSequence, com.google.showcase.v1beta1.StreamingSequence.Builder, com.google.showcase.v1beta1.StreamingSequenceOrBuilder> streamingSequenceBuilder_; + /** + * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; + * @return Whether the streamingSequence field is set. + */ + public boolean hasStreamingSequence() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; + * @return The streamingSequence. + */ + public com.google.showcase.v1beta1.StreamingSequence getStreamingSequence() { + if (streamingSequenceBuilder_ == null) { + return streamingSequence_ == null ? com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance() : streamingSequence_; + } else { + return streamingSequenceBuilder_.getMessage(); + } + } + /** + * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; + */ + public Builder setStreamingSequence(com.google.showcase.v1beta1.StreamingSequence value) { + if (streamingSequenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + streamingSequence_ = value; + } else { + streamingSequenceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; + */ + public Builder setStreamingSequence( + com.google.showcase.v1beta1.StreamingSequence.Builder builderForValue) { + if (streamingSequenceBuilder_ == null) { + streamingSequence_ = builderForValue.build(); + } else { + streamingSequenceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; + */ + public Builder mergeStreamingSequence(com.google.showcase.v1beta1.StreamingSequence value) { + if (streamingSequenceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + streamingSequence_ != null && + streamingSequence_ != com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance()) { + getStreamingSequenceBuilder().mergeFrom(value); + } else { + streamingSequence_ = value; + } + } else { + streamingSequenceBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; + */ + public Builder clearStreamingSequence() { + bitField0_ = (bitField0_ & ~0x00000001); + streamingSequence_ = null; + if (streamingSequenceBuilder_ != null) { + streamingSequenceBuilder_.dispose(); + streamingSequenceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; + */ + public com.google.showcase.v1beta1.StreamingSequence.Builder getStreamingSequenceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStreamingSequenceFieldBuilder().getBuilder(); + } + /** + * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; + */ + public com.google.showcase.v1beta1.StreamingSequenceOrBuilder getStreamingSequenceOrBuilder() { + if (streamingSequenceBuilder_ != null) { + return streamingSequenceBuilder_.getMessageOrBuilder(); + } else { + return streamingSequence_ == null ? + com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance() : streamingSequence_; + } + } + /** + * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.StreamingSequence, com.google.showcase.v1beta1.StreamingSequence.Builder, com.google.showcase.v1beta1.StreamingSequenceOrBuilder> + getStreamingSequenceFieldBuilder() { + if (streamingSequenceBuilder_ == null) { + streamingSequenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.StreamingSequence, com.google.showcase.v1beta1.StreamingSequence.Builder, com.google.showcase.v1beta1.StreamingSequenceOrBuilder>( + getStreamingSequence(), + getParentForChildren(), + isClean()); + streamingSequence_ = null; + } + return streamingSequenceBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.CreateStreamingSequenceRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.CreateStreamingSequenceRequest) + private static final com.google.showcase.v1beta1.CreateStreamingSequenceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.CreateStreamingSequenceRequest(); + } + + public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateStreamingSequenceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateStreamingSequenceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequestOrBuilder.java new file mode 100644 index 0000000000..1bda2f8083 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequestOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +package com.google.showcase.v1beta1; + +public interface CreateStreamingSequenceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.CreateStreamingSequenceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; + * @return Whether the streamingSequence field is set. + */ + boolean hasStreamingSequence(); + /** + * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; + * @return The streamingSequence. + */ + com.google.showcase.v1beta1.StreamingSequence getStreamingSequence(); + /** + * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; + */ + com.google.showcase.v1beta1.StreamingSequenceOrBuilder getStreamingSequenceOrBuilder(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java index 7f860781d4..a605e0df52 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java @@ -107,79 +107,81 @@ public static void registerAllExtensions( "ader\030\004 \001(\t\022\024\n\014other_header\030\005 \001(\tB\n\n\010resp" + "onse\"T\n\014EchoResponse\022\017\n\007content\030\001 \001(\t\0223\n" + "\010severity\030\002 \001(\0162!.google.showcase.v1beta" + - "1.Severity\"C\n\rExpandRequest\022\017\n\007content\030\001" + - " \001(\t\022!\n\005error\030\002 \001(\0132\022.google.rpc.Status\"" + - "Q\n\022PagedExpandRequest\022\024\n\007content\030\001 \001(\tB\003" + - "\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + - "(\t\"Y\n\030PagedExpandLegacyRequest\022\024\n\007conten" + - "t\030\001 \001(\tB\003\340A\002\022\023\n\013max_results\030\002 \001(\005\022\022\n\npag" + - "e_token\030\003 \001(\t\"h\n\023PagedExpandResponse\0228\n\t" + - "responses\030\001 \003(\0132%.google.showcase.v1beta" + - "1.EchoResponse\022\027\n\017next_page_token\030\002 \001(\t\"" + - "(\n\027PagedExpandResponseList\022\r\n\005words\030\001 \003(" + - "\t\"\203\002\n\037PagedExpandLegacyMappedResponse\022`\n" + - "\014alphabetized\030\001 \003(\0132J.google.showcase.v1" + - "beta1.PagedExpandLegacyMappedResponse.Al" + - "phabetizedEntry\022\027\n\017next_page_token\030\002 \001(\t" + - "\032e\n\021AlphabetizedEntry\022\013\n\003key\030\001 \001(\t\022?\n\005va" + - "lue\030\002 \001(\01320.google.showcase.v1beta1.Page" + - "dExpandResponseList:\0028\001\"\331\001\n\013WaitRequest\022" + - ".\n\010end_time\030\001 \001(\0132\032.google.protobuf.Time" + - "stampH\000\022(\n\003ttl\030\004 \001(\0132\031.google.protobuf.D" + - "urationH\000\022#\n\005error\030\002 \001(\0132\022.google.rpc.St" + - "atusH\001\0228\n\007success\030\003 \001(\0132%.google.showcas" + - "e.v1beta1.WaitResponseH\001B\005\n\003endB\n\n\010respo" + - "nse\"\037\n\014WaitResponse\022\017\n\007content\030\001 \001(\t\"<\n\014" + - "WaitMetadata\022,\n\010end_time\030\001 \001(\0132\032.google." + - "protobuf.Timestamp\"\255\001\n\014BlockRequest\0221\n\016r" + - "esponse_delay\030\001 \001(\0132\031.google.protobuf.Du" + - "ration\022#\n\005error\030\002 \001(\0132\022.google.rpc.Statu" + - "sH\000\0229\n\007success\030\003 \001(\0132&.google.showcase.v" + - "1beta1.BlockResponseH\000B\n\n\010response\" \n\rBl" + - "ockResponse\022\017\n\007content\030\001 \001(\t*D\n\010Severity" + - "\022\017\n\013UNNECESSARY\020\000\022\r\n\tNECESSARY\020\001\022\n\n\006URGE" + - "NT\020\002\022\014\n\010CRITICAL\020\0032\377\013\n\004Echo\022\224\003\n\004Echo\022$.g" + - "oogle.showcase.v1beta1.EchoRequest\032%.goo" + - "gle.showcase.v1beta1.EchoResponse\"\276\002\202\323\344\223" + - "\002\027\"\022/v1beta1/echo:echo:\001*\212\323\344\223\002\232\002\022\010\n\006head" + - "er\022\031\n\006header\022\017{routing_id=**}\022+\n\006header\022" + - "!{table_name=regions/*/zones/*/**}\022\"\n\006he" + - "ader\022\030{super_id=projects/*}/**\0220\n\006header" + - "\022&{table_name=projects/*/instances/*/**}" + - "\0221\n\006header\022\'projects/*/{instance_id=inst" + - "ances/*}/**\022\030\n\014other_header\022\010{baz=**}\022#\n" + - "\014other_header\022\023{qux=projects/*}/**\022\212\001\n\006E" + - "xpand\022&.google.showcase.v1beta1.ExpandRe" + - "quest\032%.google.showcase.v1beta1.EchoResp" + - "onse\"/\202\323\344\223\002\031\"\024/v1beta1/echo:expand:\001*\332A\r" + - "content,error0\001\022z\n\007Collect\022$.google.show" + - "case.v1beta1.EchoRequest\032%.google.showca" + - "se.v1beta1.EchoResponse\" \202\323\344\223\002\032\"\025/v1beta" + - "1/echo:collect:\001*(\001\022W\n\004Chat\022$.google.sho" + - "wcase.v1beta1.EchoRequest\032%.google.showc" + - "ase.v1beta1.EchoResponse(\0010\001\022\216\001\n\013PagedEx" + - "pand\022+.google.showcase.v1beta1.PagedExpa" + - "ndRequest\032,.google.showcase.v1beta1.Page" + - "dExpandResponse\"$\202\323\344\223\002\036\"\031/v1beta1/echo:p" + - "agedExpand:\001*\022\240\001\n\021PagedExpandLegacy\0221.go" + - "ogle.showcase.v1beta1.PagedExpandLegacyR" + - "equest\032,.google.showcase.v1beta1.PagedEx" + - "pandResponse\"*\202\323\344\223\002$\"\037/v1beta1/echo:page" + - "dExpandLegacy:\001*\022\262\001\n\027PagedExpandLegacyMa" + - "pped\022+.google.showcase.v1beta1.PagedExpa" + - "ndRequest\0328.google.showcase.v1beta1.Page" + - "dExpandLegacyMappedResponse\"0\202\323\344\223\002*\"%/v1" + - "beta1/echo:pagedExpandLegacyMapped:\001*\022\211\001" + - "\n\004Wait\022$.google.showcase.v1beta1.WaitReq" + - "uest\032\035.google.longrunning.Operation\"<\202\323\344" + - "\223\002\027\"\022/v1beta1/echo:wait:\001*\312A\034\n\014WaitRespo" + - "nse\022\014WaitMetadata\022v\n\005Block\022%.google.show" + - "case.v1beta1.BlockRequest\032&.google.showc" + - "ase.v1beta1.BlockResponse\"\036\202\323\344\223\002\030\"\023/v1be" + - "ta1/echo:block:\001*\032\021\312A\016localhost:7469Bq\n\033" + - "com.google.showcase.v1beta1P\001Z4github.co" + - "m/googleapis/gapic-showcase/server/genpr" + - "oto\352\002\031Google::Showcase::V1beta1b\006proto3" + "1.Severity\"x\n\rExpandRequest\022\017\n\007content\030\001" + + " \001(\t\022!\n\005error\030\002 \001(\0132\022.google.rpc.Status\022" + + "3\n\020stream_wait_time\030\003 \001(\0132\031.google.proto" + + "buf.Duration\"Q\n\022PagedExpandRequest\022\024\n\007co" + + "ntent\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" + + "age_token\030\003 \001(\t\"Y\n\030PagedExpandLegacyRequ" + + "est\022\024\n\007content\030\001 \001(\tB\003\340A\002\022\023\n\013max_results" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"h\n\023PagedExpan" + + "dResponse\0228\n\tresponses\030\001 \003(\0132%.google.sh" + + "owcase.v1beta1.EchoResponse\022\027\n\017next_page" + + "_token\030\002 \001(\t\"(\n\027PagedExpandResponseList\022" + + "\r\n\005words\030\001 \003(\t\"\203\002\n\037PagedExpandLegacyMapp" + + "edResponse\022`\n\014alphabetized\030\001 \003(\0132J.googl" + + "e.showcase.v1beta1.PagedExpandLegacyMapp" + + "edResponse.AlphabetizedEntry\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\032e\n\021AlphabetizedEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022?\n\005value\030\002 \001(\01320.google.showcase" + + ".v1beta1.PagedExpandResponseList:\0028\001\"\331\001\n" + + "\013WaitRequest\022.\n\010end_time\030\001 \001(\0132\032.google." + + "protobuf.TimestampH\000\022(\n\003ttl\030\004 \001(\0132\031.goog" + + "le.protobuf.DurationH\000\022#\n\005error\030\002 \001(\0132\022." + + "google.rpc.StatusH\001\0228\n\007success\030\003 \001(\0132%.g" + + "oogle.showcase.v1beta1.WaitResponseH\001B\005\n" + + "\003endB\n\n\010response\"\037\n\014WaitResponse\022\017\n\007cont" + + "ent\030\001 \001(\t\"<\n\014WaitMetadata\022,\n\010end_time\030\001 " + + "\001(\0132\032.google.protobuf.Timestamp\"\255\001\n\014Bloc" + + "kRequest\0221\n\016response_delay\030\001 \001(\0132\031.googl" + + "e.protobuf.Duration\022#\n\005error\030\002 \001(\0132\022.goo" + + "gle.rpc.StatusH\000\0229\n\007success\030\003 \001(\0132&.goog" + + "le.showcase.v1beta1.BlockResponseH\000B\n\n\010r" + + "esponse\" \n\rBlockResponse\022\017\n\007content\030\001 \001(" + + "\t*D\n\010Severity\022\017\n\013UNNECESSARY\020\000\022\r\n\tNECESS" + + "ARY\020\001\022\n\n\006URGENT\020\002\022\014\n\010CRITICAL\020\0032\377\013\n\004Echo" + + "\022\224\003\n\004Echo\022$.google.showcase.v1beta1.Echo" + + "Request\032%.google.showcase.v1beta1.EchoRe" + + "sponse\"\276\002\202\323\344\223\002\027\"\022/v1beta1/echo:echo:\001*\212\323" + + "\344\223\002\232\002\022\010\n\006header\022\031\n\006header\022\017{routing_id=*" + + "*}\022+\n\006header\022!{table_name=regions/*/zone" + + "s/*/**}\022\"\n\006header\022\030{super_id=projects/*}" + + "/**\0220\n\006header\022&{table_name=projects/*/in" + + "stances/*/**}\0221\n\006header\022\'projects/*/{ins" + + "tance_id=instances/*}/**\022\030\n\014other_header" + + "\022\010{baz=**}\022#\n\014other_header\022\023{qux=project" + + "s/*}/**\022\212\001\n\006Expand\022&.google.showcase.v1b" + + "eta1.ExpandRequest\032%.google.showcase.v1b" + + "eta1.EchoResponse\"/\202\323\344\223\002\031\"\024/v1beta1/echo" + + ":expand:\001*\332A\rcontent,error0\001\022z\n\007Collect\022" + + "$.google.showcase.v1beta1.EchoRequest\032%." + + "google.showcase.v1beta1.EchoResponse\" \202\323" + + "\344\223\002\032\"\025/v1beta1/echo:collect:\001*(\001\022W\n\004Chat" + + "\022$.google.showcase.v1beta1.EchoRequest\032%" + + ".google.showcase.v1beta1.EchoResponse(\0010" + + "\001\022\216\001\n\013PagedExpand\022+.google.showcase.v1be" + + "ta1.PagedExpandRequest\032,.google.showcase" + + ".v1beta1.PagedExpandResponse\"$\202\323\344\223\002\036\"\031/v" + + "1beta1/echo:pagedExpand:\001*\022\240\001\n\021PagedExpa" + + "ndLegacy\0221.google.showcase.v1beta1.Paged" + + "ExpandLegacyRequest\032,.google.showcase.v1" + + "beta1.PagedExpandResponse\"*\202\323\344\223\002$\"\037/v1be" + + "ta1/echo:pagedExpandLegacy:\001*\022\262\001\n\027PagedE" + + "xpandLegacyMapped\022+.google.showcase.v1be" + + "ta1.PagedExpandRequest\0328.google.showcase" + + ".v1beta1.PagedExpandLegacyMappedResponse" + + "\"0\202\323\344\223\002*\"%/v1beta1/echo:pagedExpandLegac" + + "yMapped:\001*\022\211\001\n\004Wait\022$.google.showcase.v1" + + "beta1.WaitRequest\032\035.google.longrunning.O" + + "peration\"<\202\323\344\223\002\027\"\022/v1beta1/echo:wait:\001*\312" + + "A\034\n\014WaitResponse\022\014WaitMetadata\022v\n\005Block\022" + + "%.google.showcase.v1beta1.BlockRequest\032&" + + ".google.showcase.v1beta1.BlockResponse\"\036" + + "\202\323\344\223\002\030\"\023/v1beta1/echo:block:\001*\032\021\312A\016local" + + "host:7469Bq\n\033com.google.showcase.v1beta1" + + "P\001Z4github.com/googleapis/gapic-showcase" + + "/server/genproto\352\002\031Google::Showcase::V1b" + + "eta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -210,7 +212,7 @@ public static void registerAllExtensions( internal_static_google_showcase_v1beta1_ExpandRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_showcase_v1beta1_ExpandRequest_descriptor, - new java.lang.String[] { "Content", "Error", }); + new java.lang.String[] { "Content", "Error", "StreamWaitTime", }); internal_static_google_showcase_v1beta1_PagedExpandRequest_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_google_showcase_v1beta1_PagedExpandRequest_fieldAccessorTable = new diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequest.java index 35b7500bbb..3348bc259d 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequest.java @@ -133,6 +133,44 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } + public static final int STREAM_WAIT_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Duration streamWaitTime_; + /** + *
+   *The wait time between each server streaming messages
+   * 
+ * + * .google.protobuf.Duration stream_wait_time = 3; + * @return Whether the streamWaitTime field is set. + */ + @java.lang.Override + public boolean hasStreamWaitTime() { + return streamWaitTime_ != null; + } + /** + *
+   *The wait time between each server streaming messages
+   * 
+ * + * .google.protobuf.Duration stream_wait_time = 3; + * @return The streamWaitTime. + */ + @java.lang.Override + public com.google.protobuf.Duration getStreamWaitTime() { + return streamWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : streamWaitTime_; + } + /** + *
+   *The wait time between each server streaming messages
+   * 
+ * + * .google.protobuf.Duration stream_wait_time = 3; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getStreamWaitTimeOrBuilder() { + return streamWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : streamWaitTime_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -153,6 +191,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (error_ != null) { output.writeMessage(2, getError()); } + if (streamWaitTime_ != null) { + output.writeMessage(3, getStreamWaitTime()); + } getUnknownFields().writeTo(output); } @@ -169,6 +210,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getError()); } + if (streamWaitTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStreamWaitTime()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -191,6 +236,11 @@ public boolean equals(final java.lang.Object obj) { if (!getError() .equals(other.getError())) return false; } + if (hasStreamWaitTime() != other.hasStreamWaitTime()) return false; + if (hasStreamWaitTime()) { + if (!getStreamWaitTime() + .equals(other.getStreamWaitTime())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -208,6 +258,10 @@ public int hashCode() { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } + if (hasStreamWaitTime()) { + hash = (37 * hash) + STREAM_WAIT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStreamWaitTime().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -347,6 +401,11 @@ public Builder clear() { errorBuilder_.dispose(); errorBuilder_ = null; } + streamWaitTime_ = null; + if (streamWaitTimeBuilder_ != null) { + streamWaitTimeBuilder_.dispose(); + streamWaitTimeBuilder_ = null; + } return this; } @@ -388,6 +447,11 @@ private void buildPartial0(com.google.showcase.v1beta1.ExpandRequest result) { ? error_ : errorBuilder_.build(); } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.streamWaitTime_ = streamWaitTimeBuilder_ == null + ? streamWaitTime_ + : streamWaitTimeBuilder_.build(); + } } @java.lang.Override @@ -442,6 +506,9 @@ public Builder mergeFrom(com.google.showcase.v1beta1.ExpandRequest other) { if (other.hasError()) { mergeError(other.getError()); } + if (other.hasStreamWaitTime()) { + mergeStreamWaitTime(other.getStreamWaitTime()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -480,6 +547,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: { + input.readMessage( + getStreamWaitTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -743,6 +817,161 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } return errorBuilder_; } + + private com.google.protobuf.Duration streamWaitTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> streamWaitTimeBuilder_; + /** + *
+     *The wait time between each server streaming messages
+     * 
+ * + * .google.protobuf.Duration stream_wait_time = 3; + * @return Whether the streamWaitTime field is set. + */ + public boolean hasStreamWaitTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     *The wait time between each server streaming messages
+     * 
+ * + * .google.protobuf.Duration stream_wait_time = 3; + * @return The streamWaitTime. + */ + public com.google.protobuf.Duration getStreamWaitTime() { + if (streamWaitTimeBuilder_ == null) { + return streamWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : streamWaitTime_; + } else { + return streamWaitTimeBuilder_.getMessage(); + } + } + /** + *
+     *The wait time between each server streaming messages
+     * 
+ * + * .google.protobuf.Duration stream_wait_time = 3; + */ + public Builder setStreamWaitTime(com.google.protobuf.Duration value) { + if (streamWaitTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + streamWaitTime_ = value; + } else { + streamWaitTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     *The wait time between each server streaming messages
+     * 
+ * + * .google.protobuf.Duration stream_wait_time = 3; + */ + public Builder setStreamWaitTime( + com.google.protobuf.Duration.Builder builderForValue) { + if (streamWaitTimeBuilder_ == null) { + streamWaitTime_ = builderForValue.build(); + } else { + streamWaitTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     *The wait time between each server streaming messages
+     * 
+ * + * .google.protobuf.Duration stream_wait_time = 3; + */ + public Builder mergeStreamWaitTime(com.google.protobuf.Duration value) { + if (streamWaitTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + streamWaitTime_ != null && + streamWaitTime_ != com.google.protobuf.Duration.getDefaultInstance()) { + getStreamWaitTimeBuilder().mergeFrom(value); + } else { + streamWaitTime_ = value; + } + } else { + streamWaitTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     *The wait time between each server streaming messages
+     * 
+ * + * .google.protobuf.Duration stream_wait_time = 3; + */ + public Builder clearStreamWaitTime() { + bitField0_ = (bitField0_ & ~0x00000004); + streamWaitTime_ = null; + if (streamWaitTimeBuilder_ != null) { + streamWaitTimeBuilder_.dispose(); + streamWaitTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     *The wait time between each server streaming messages
+     * 
+ * + * .google.protobuf.Duration stream_wait_time = 3; + */ + public com.google.protobuf.Duration.Builder getStreamWaitTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStreamWaitTimeFieldBuilder().getBuilder(); + } + /** + *
+     *The wait time between each server streaming messages
+     * 
+ * + * .google.protobuf.Duration stream_wait_time = 3; + */ + public com.google.protobuf.DurationOrBuilder getStreamWaitTimeOrBuilder() { + if (streamWaitTimeBuilder_ != null) { + return streamWaitTimeBuilder_.getMessageOrBuilder(); + } else { + return streamWaitTime_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : streamWaitTime_; + } + } + /** + *
+     *The wait time between each server streaming messages
+     * 
+ * + * .google.protobuf.Duration stream_wait_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getStreamWaitTimeFieldBuilder() { + if (streamWaitTimeBuilder_ == null) { + streamWaitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getStreamWaitTime(), + getParentForChildren(), + isClean()); + streamWaitTime_ = null; + } + return streamWaitTimeBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequestOrBuilder.java index 3286ec98c7..51eef45ac2 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequestOrBuilder.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequestOrBuilder.java @@ -53,4 +53,31 @@ public interface ExpandRequestOrBuilder extends * .google.rpc.Status error = 2; */ com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + + /** + *
+   *The wait time between each server streaming messages
+   * 
+ * + * .google.protobuf.Duration stream_wait_time = 3; + * @return Whether the streamWaitTime field is set. + */ + boolean hasStreamWaitTime(); + /** + *
+   *The wait time between each server streaming messages
+   * 
+ * + * .google.protobuf.Duration stream_wait_time = 3; + * @return The streamWaitTime. + */ + com.google.protobuf.Duration getStreamWaitTime(); + /** + *
+   *The wait time between each server streaming messages
+   * 
+ * + * .google.protobuf.Duration stream_wait_time = 3; + */ + com.google.protobuf.DurationOrBuilder getStreamWaitTimeOrBuilder(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequest.java new file mode 100644 index 0000000000..96b0d6df99 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequest.java @@ -0,0 +1,544 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +package com.google.showcase.v1beta1; + +/** + * Protobuf type {@code google.showcase.v1beta1.GetStreamingSequenceReportRequest} + */ +public final class GetStreamingSequenceReportRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.GetStreamingSequenceReportRequest) + GetStreamingSequenceReportRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetStreamingSequenceReportRequest.newBuilder() to construct. + private GetStreamingSequenceReportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetStreamingSequenceReportRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetStreamingSequenceReportRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.class, com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * 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; + } + } + /** + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.GetStreamingSequenceReportRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest other = (com.google.showcase.v1beta1.GetStreamingSequenceReportRequest) 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.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.showcase.v1beta1.GetStreamingSequenceReportRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code google.showcase.v1beta1.GetStreamingSequenceReportRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.GetStreamingSequenceReportRequest) + com.google.showcase.v1beta1.GetStreamingSequenceReportRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.class, com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetStreamingSequenceReportRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetStreamingSequenceReportRequest build() { + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetStreamingSequenceReportRequest buildPartial() { + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest result = new com.google.showcase.v1beta1.GetStreamingSequenceReportRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.showcase.v1beta1.GetStreamingSequenceReportRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.GetStreamingSequenceReportRequest) { + return mergeFrom((com.google.showcase.v1beta1.GetStreamingSequenceReportRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.GetStreamingSequenceReportRequest other) { + if (other == com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.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_ = ""; + /** + * 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; + } + } + /** + * 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; + } + } + /** + * 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; + } + /** + * 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; + } + /** + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.GetStreamingSequenceReportRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.GetStreamingSequenceReportRequest) + private static final com.google.showcase.v1beta1.GetStreamingSequenceReportRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.GetStreamingSequenceReportRequest(); + } + + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetStreamingSequenceReportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetStreamingSequenceReportRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequestOrBuilder.java new file mode 100644 index 0000000000..c166d1ccf5 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequestOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +package com.google.showcase.v1beta1; + +public interface GetStreamingSequenceReportRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.GetStreamingSequenceReportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + * 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/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java index d3c0d424eb..a4b1da88d7 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java @@ -24,6 +24,26 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_showcase_v1beta1_Sequence_Response_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_StreamingSequence_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_StreamingSequence_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_StreamingSequence_Response_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_StreamingSequence_Response_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_StreamingSequenceReport_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_StreamingSequenceReport_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_showcase_v1beta1_SequenceReport_descriptor; static final @@ -39,16 +59,36 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_showcase_v1beta1_CreateSequenceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_showcase_v1beta1_AttemptSequenceRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_showcase_v1beta1_AttemptSequenceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_showcase_v1beta1_GetSequenceReportRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_showcase_v1beta1_GetSequenceReportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -71,40 +111,85 @@ public static void registerAllExtensions( "e\032X\n\010Response\022\"\n\006status\030\001 \001(\0132\022.google.r" + "pc.Status\022(\n\005delay\030\002 \001(\0132\031.google.protob" + "uf.Duration:;\352A8\n showcase.googleapis.co" + - "m/Sequence\022\024sequences/{sequence}\"\233\003\n\016Seq" + - "uenceReport\022\021\n\004name\030\001 \001(\tB\003\340A\003\022A\n\010attemp" + - "ts\030\002 \003(\0132/.google.showcase.v1beta1.Seque" + - "nceReport.Attempt\032\340\001\n\007Attempt\022\026\n\016attempt" + - "_number\030\001 \001(\005\0224\n\020attempt_deadline\030\002 \001(\0132" + - "\032.google.protobuf.Timestamp\0221\n\rresponse_" + - "time\030\003 \001(\0132\032.google.protobuf.Timestamp\0220" + - "\n\rattempt_delay\030\004 \001(\0132\031.google.protobuf." + - "Duration\022\"\n\006status\030\005 \001(\0132\022.google.rpc.St" + - "atus:P\352AM\n&showcase.googleapis.com/Seque" + - "nceReport\022#sequences/{sequence}/sequence" + - "Report\"L\n\025CreateSequenceRequest\0223\n\010seque" + - "nce\030\001 \001(\0132!.google.showcase.v1beta1.Sequ" + - "ence\"P\n\026AttemptSequenceRequest\0226\n\004name\030\001" + - " \001(\tB(\372A\"\n showcase.googleapis.com/Seque" + - "nce\340A\002\"X\n\030GetSequenceReportRequest\022<\n\004na" + - "me\030\001 \001(\tB.\372A(\n&showcase.googleapis.com/S" + - "equenceReport\340A\0022\364\003\n\017SequenceService\022\224\001\n" + - "\016CreateSequence\022..google.showcase.v1beta" + - "1.CreateSequenceRequest\032!.google.showcas" + - "e.v1beta1.Sequence\"/\202\323\344\223\002\036\"\022/v1beta1/seq" + - "uences:\010sequence\332A\010sequence\022\252\001\n\021GetSeque" + - "nceReport\0221.google.showcase.v1beta1.GetS" + - "equenceReportRequest\032\'.google.showcase.v" + - "1beta1.SequenceReport\"9\202\323\344\223\002,\022*/v1beta1/" + - "{name=sequences/*/sequenceReport}\332A\004name" + - "\022\211\001\n\017AttemptSequence\022/.google.showcase.v" + - "1beta1.AttemptSequenceRequest\032\026.google.p" + - "rotobuf.Empty\"-\202\323\344\223\002 \"\033/v1beta1/{name=se" + - "quences/*}:\001*\332A\004name\032\021\312A\016localhost:7469B" + - "q\n\033com.google.showcase.v1beta1P\001Z4github" + - ".com/googleapis/gapic-showcase/server/ge" + - "nproto\352\002\031Google::Showcase::V1beta1b\006prot" + - "o3" + "m/Sequence\022\024sequences/{sequence}\"\312\002\n\021Str" + + "eamingSequence\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\017\n\007con" + + "tent\030\002 \001(\t\022F\n\tresponses\030\003 \003(\01323.google.s" + + "howcase.v1beta1.StreamingSequence.Respon" + + "se\032p\n\010Response\022\"\n\006status\030\001 \001(\0132\022.google." + + "rpc.Status\022(\n\005delay\030\002 \001(\0132\031.google.proto" + + "buf.Duration\022\026\n\016response_index\030\003 \001(\005:W\352A" + + "T\n)showcase.googleapis.com/StreamingSequ" + + "ence\022\'streamingSequences/{streaming_sequ" + + "ence}\"\350\003\n\027StreamingSequenceReport\022\021\n\004nam" + + "e\030\001 \001(\tB\003\340A\003\022J\n\010attempts\030\002 \003(\01328.google." + + "showcase.v1beta1.StreamingSequenceReport" + + ".Attempt\032\366\001\n\007Attempt\022\026\n\016attempt_number\030\001" + + " \001(\005\0224\n\020attempt_deadline\030\002 \001(\0132\032.google." + + "protobuf.Timestamp\0221\n\rresponse_time\030\003 \001(" + + "\0132\032.google.protobuf.Timestamp\0220\n\rattempt" + + "_delay\030\004 \001(\0132\031.google.protobuf.Duration\022" + + "\"\n\006status\030\005 \001(\0132\022.google.rpc.Status\022\024\n\014c" + + "ontent_sent\030\006 \001(\t:u\352Ar\n/showcase.googlea" + + "pis.com/StreamingSequenceReport\022?streami" + + "ngSequences/{streaming_sequence}/streami" + + "ngSequenceReport\"\233\003\n\016SequenceReport\022\021\n\004n" + + "ame\030\001 \001(\tB\003\340A\003\022A\n\010attempts\030\002 \003(\0132/.googl" + + "e.showcase.v1beta1.SequenceReport.Attemp" + + "t\032\340\001\n\007Attempt\022\026\n\016attempt_number\030\001 \001(\005\0224\n" + + "\020attempt_deadline\030\002 \001(\0132\032.google.protobu" + + "f.Timestamp\0221\n\rresponse_time\030\003 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\0220\n\rattempt_delay\030" + + "\004 \001(\0132\031.google.protobuf.Duration\022\"\n\006stat" + + "us\030\005 \001(\0132\022.google.rpc.Status:P\352AM\n&showc" + + "ase.googleapis.com/SequenceReport\022#seque" + + "nces/{sequence}/sequenceReport\"L\n\025Create" + + "SequenceRequest\0223\n\010sequence\030\001 \001(\0132!.goog" + + "le.showcase.v1beta1.Sequence\"h\n\036CreateSt" + + "reamingSequenceRequest\022F\n\022streaming_sequ" + + "ence\030\001 \001(\0132*.google.showcase.v1beta1.Str" + + "eamingSequence\"P\n\026AttemptSequenceRequest" + + "\0226\n\004name\030\001 \001(\tB(\372A\"\n showcase.googleapis" + + ".com/Sequence\340A\002\"b\n\037AttemptStreamingSequ" + + "enceRequest\022?\n\004name\030\001 \001(\tB1\372A+\n)showcase" + + ".googleapis.com/StreamingSequence\340A\002\"3\n " + + "AttemptStreamingSequenceResponse\022\017\n\007cont" + + "ent\030\001 \001(\t\"X\n\030GetSequenceReportRequest\022<\n" + + "\004name\030\001 \001(\tB.\372A(\n&showcase.googleapis.co" + + "m/SequenceReport\340A\002\"j\n!GetStreamingSeque" + + "nceReportRequest\022E\n\004name\030\001 \001(\tB7\372A1\n/sho" + + "wcase.googleapis.com/StreamingSequenceRe" + + "port\340A\0022\360\010\n\017SequenceService\022\224\001\n\016CreateSe" + + "quence\022..google.showcase.v1beta1.CreateS" + + "equenceRequest\032!.google.showcase.v1beta1" + + ".Sequence\"/\202\323\344\223\002\036\"\022/v1beta1/sequences:\010s" + + "equence\332A\010sequence\022\314\001\n\027CreateStreamingSe" + + "quence\0227.google.showcase.v1beta1.CreateS" + + "treamingSequenceRequest\032*.google.showcas" + + "e.v1beta1.StreamingSequence\"L\202\323\344\223\0021\"\033/v1" + + "beta1/streamingSequences:\022streaming_sequ" + + "ence\332A\022streaming_sequence\022\252\001\n\021GetSequenc" + + "eReport\0221.google.showcase.v1beta1.GetSeq" + + "uenceReportRequest\032\'.google.showcase.v1b" + + "eta1.SequenceReport\"9\202\323\344\223\002,\022*/v1beta1/{n" + + "ame=sequences/*/sequenceReport}\332A\004name\022\327" + + "\001\n\032GetStreamingSequenceReport\022:.google.s" + + "howcase.v1beta1.GetStreamingSequenceRepo" + + "rtRequest\0320.google.showcase.v1beta1.Stre" + + "amingSequenceReport\"K\202\323\344\223\002>\022 builder) { + super(builder); + } + private StreamingSequence() { + name_ = ""; + content_ = ""; + responses_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StreamingSequence(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.StreamingSequence.class, com.google.showcase.v1beta1.StreamingSequence.Builder.class); + } + + public interface ResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.StreamingSequence.Response) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The status to return for an individual attempt.
+     * 
+ * + * .google.rpc.Status status = 1; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + *
+     * The status to return for an individual attempt.
+     * 
+ * + * .google.rpc.Status status = 1; + * @return The status. + */ + com.google.rpc.Status getStatus(); + /** + *
+     * The status to return for an individual attempt.
+     * 
+ * + * .google.rpc.Status status = 1; + */ + com.google.rpc.StatusOrBuilder getStatusOrBuilder(); + + /** + *
+     * The amount of time to delay sending the response.
+     * 
+ * + * .google.protobuf.Duration delay = 2; + * @return Whether the delay field is set. + */ + boolean hasDelay(); + /** + *
+     * The amount of time to delay sending the response.
+     * 
+ * + * .google.protobuf.Duration delay = 2; + * @return The delay. + */ + com.google.protobuf.Duration getDelay(); + /** + *
+     * The amount of time to delay sending the response.
+     * 
+ * + * .google.protobuf.Duration delay = 2; + */ + com.google.protobuf.DurationOrBuilder getDelayOrBuilder(); + + /** + *
+     * The index that the status should be sent
+     * 
+ * + * int32 response_index = 3; + * @return The responseIndex. + */ + int getResponseIndex(); + } + /** + *
+   * A server response to an RPC Attempt in a sequence.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.StreamingSequence.Response} + */ + public static final class Response extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.StreamingSequence.Response) + ResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use Response.newBuilder() to construct. + private Response(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Response() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Response(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_Response_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_Response_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.StreamingSequence.Response.class, com.google.showcase.v1beta1.StreamingSequence.Response.Builder.class); + } + + public static final int STATUS_FIELD_NUMBER = 1; + private com.google.rpc.Status status_; + /** + *
+     * The status to return for an individual attempt.
+     * 
+ * + * .google.rpc.Status status = 1; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return status_ != null; + } + /** + *
+     * The status to return for an individual attempt.
+     * 
+ * + * .google.rpc.Status status = 1; + * @return The status. + */ + @java.lang.Override + public com.google.rpc.Status getStatus() { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + /** + *
+     * The status to return for an individual attempt.
+     * 
+ * + * .google.rpc.Status status = 1; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + + public static final int DELAY_FIELD_NUMBER = 2; + private com.google.protobuf.Duration delay_; + /** + *
+     * The amount of time to delay sending the response.
+     * 
+ * + * .google.protobuf.Duration delay = 2; + * @return Whether the delay field is set. + */ + @java.lang.Override + public boolean hasDelay() { + return delay_ != null; + } + /** + *
+     * The amount of time to delay sending the response.
+     * 
+ * + * .google.protobuf.Duration delay = 2; + * @return The delay. + */ + @java.lang.Override + public com.google.protobuf.Duration getDelay() { + return delay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delay_; + } + /** + *
+     * The amount of time to delay sending the response.
+     * 
+ * + * .google.protobuf.Duration delay = 2; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getDelayOrBuilder() { + return delay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delay_; + } + + public static final int RESPONSE_INDEX_FIELD_NUMBER = 3; + private int responseIndex_ = 0; + /** + *
+     * The index that the status should be sent
+     * 
+ * + * int32 response_index = 3; + * @return The responseIndex. + */ + @java.lang.Override + public int getResponseIndex() { + return responseIndex_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (status_ != null) { + output.writeMessage(1, getStatus()); + } + if (delay_ != null) { + output.writeMessage(2, getDelay()); + } + if (responseIndex_ != 0) { + output.writeInt32(3, responseIndex_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (status_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStatus()); + } + if (delay_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDelay()); + } + if (responseIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, responseIndex_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.StreamingSequence.Response)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.StreamingSequence.Response other = (com.google.showcase.v1beta1.StreamingSequence.Response) obj; + + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (hasDelay() != other.hasDelay()) return false; + if (hasDelay()) { + if (!getDelay() + .equals(other.getDelay())) return false; + } + if (getResponseIndex() + != other.getResponseIndex()) return false; + if (!getUnknownFields().equals(other.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 (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + if (hasDelay()) { + hash = (37 * hash) + DELAY_FIELD_NUMBER; + hash = (53 * hash) + getDelay().hashCode(); + } + hash = (37 * hash) + RESPONSE_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getResponseIndex(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamingSequence.Response parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.StreamingSequence.Response parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.showcase.v1beta1.StreamingSequence.Response prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A server response to an RPC Attempt in a sequence.
+     * 
+ * + * Protobuf type {@code google.showcase.v1beta1.StreamingSequence.Response} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.StreamingSequence.Response) + com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_Response_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_Response_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.StreamingSequence.Response.class, com.google.showcase.v1beta1.StreamingSequence.Response.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.StreamingSequence.Response.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + delay_ = null; + if (delayBuilder_ != null) { + delayBuilder_.dispose(); + delayBuilder_ = null; + } + responseIndex_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_Response_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamingSequence.Response getDefaultInstanceForType() { + return com.google.showcase.v1beta1.StreamingSequence.Response.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamingSequence.Response build() { + com.google.showcase.v1beta1.StreamingSequence.Response result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamingSequence.Response buildPartial() { + com.google.showcase.v1beta1.StreamingSequence.Response result = new com.google.showcase.v1beta1.StreamingSequence.Response(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.showcase.v1beta1.StreamingSequence.Response result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.delay_ = delayBuilder_ == null + ? delay_ + : delayBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.responseIndex_ = responseIndex_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.StreamingSequence.Response) { + return mergeFrom((com.google.showcase.v1beta1.StreamingSequence.Response)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.StreamingSequence.Response other) { + if (other == com.google.showcase.v1beta1.StreamingSequence.Response.getDefaultInstance()) return this; + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + if (other.hasDelay()) { + mergeDelay(other.getDelay()); + } + if (other.getResponseIndex() != 0) { + setResponseIndex(other.getResponseIndex()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDelayFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + responseIndex_ = input.readInt32(); + 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 com.google.rpc.Status status_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; + /** + *
+       * The status to return for an individual attempt.
+       * 
+ * + * .google.rpc.Status status = 1; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * The status to return for an individual attempt.
+       * 
+ * + * .google.rpc.Status status = 1; + * @return The status. + */ + public com.google.rpc.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + *
+       * The status to return for an individual attempt.
+       * 
+ * + * .google.rpc.Status status = 1; + */ + public Builder setStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The status to return for an individual attempt.
+       * 
+ * + * .google.rpc.Status status = 1; + */ + public Builder setStatus( + com.google.rpc.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The status to return for an individual attempt.
+       * 
+ * + * .google.rpc.Status status = 1; + */ + public Builder mergeStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + status_ != null && + status_ != com.google.rpc.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The status to return for an individual attempt.
+       * 
+ * + * .google.rpc.Status status = 1; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * The status to return for an individual attempt.
+       * 
+ * + * .google.rpc.Status status = 1; + */ + public com.google.rpc.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + *
+       * The status to return for an individual attempt.
+       * 
+ * + * .google.rpc.Status status = 1; + */ + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + com.google.rpc.Status.getDefaultInstance() : status_; + } + } + /** + *
+       * The status to return for an individual attempt.
+       * 
+ * + * .google.rpc.Status status = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + private com.google.protobuf.Duration delay_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> delayBuilder_; + /** + *
+       * The amount of time to delay sending the response.
+       * 
+ * + * .google.protobuf.Duration delay = 2; + * @return Whether the delay field is set. + */ + public boolean hasDelay() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * The amount of time to delay sending the response.
+       * 
+ * + * .google.protobuf.Duration delay = 2; + * @return The delay. + */ + public com.google.protobuf.Duration getDelay() { + if (delayBuilder_ == null) { + return delay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delay_; + } else { + return delayBuilder_.getMessage(); + } + } + /** + *
+       * The amount of time to delay sending the response.
+       * 
+ * + * .google.protobuf.Duration delay = 2; + */ + public Builder setDelay(com.google.protobuf.Duration value) { + if (delayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + delay_ = value; + } else { + delayBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The amount of time to delay sending the response.
+       * 
+ * + * .google.protobuf.Duration delay = 2; + */ + public Builder setDelay( + com.google.protobuf.Duration.Builder builderForValue) { + if (delayBuilder_ == null) { + delay_ = builderForValue.build(); + } else { + delayBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The amount of time to delay sending the response.
+       * 
+ * + * .google.protobuf.Duration delay = 2; + */ + public Builder mergeDelay(com.google.protobuf.Duration value) { + if (delayBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + delay_ != null && + delay_ != com.google.protobuf.Duration.getDefaultInstance()) { + getDelayBuilder().mergeFrom(value); + } else { + delay_ = value; + } + } else { + delayBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The amount of time to delay sending the response.
+       * 
+ * + * .google.protobuf.Duration delay = 2; + */ + public Builder clearDelay() { + bitField0_ = (bitField0_ & ~0x00000002); + delay_ = null; + if (delayBuilder_ != null) { + delayBuilder_.dispose(); + delayBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * The amount of time to delay sending the response.
+       * 
+ * + * .google.protobuf.Duration delay = 2; + */ + public com.google.protobuf.Duration.Builder getDelayBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDelayFieldBuilder().getBuilder(); + } + /** + *
+       * The amount of time to delay sending the response.
+       * 
+ * + * .google.protobuf.Duration delay = 2; + */ + public com.google.protobuf.DurationOrBuilder getDelayOrBuilder() { + if (delayBuilder_ != null) { + return delayBuilder_.getMessageOrBuilder(); + } else { + return delay_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : delay_; + } + } + /** + *
+       * The amount of time to delay sending the response.
+       * 
+ * + * .google.protobuf.Duration delay = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getDelayFieldBuilder() { + if (delayBuilder_ == null) { + delayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDelay(), + getParentForChildren(), + isClean()); + delay_ = null; + } + return delayBuilder_; + } + + private int responseIndex_ ; + /** + *
+       * The index that the status should be sent
+       * 
+ * + * int32 response_index = 3; + * @return The responseIndex. + */ + @java.lang.Override + public int getResponseIndex() { + return responseIndex_; + } + /** + *
+       * The index that the status should be sent
+       * 
+ * + * int32 response_index = 3; + * @param value The responseIndex to set. + * @return This builder for chaining. + */ + public Builder setResponseIndex(int value) { + + responseIndex_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * The index that the status should be sent
+       * 
+ * + * int32 response_index = 3; + * @return This builder for chaining. + */ + public Builder clearResponseIndex() { + bitField0_ = (bitField0_ & ~0x00000004); + responseIndex_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.StreamingSequence.Response) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.StreamingSequence.Response) + private static final com.google.showcase.v1beta1.StreamingSequence.Response DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.StreamingSequence.Response(); + } + + public static com.google.showcase.v1beta1.StreamingSequence.Response getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Response parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamingSequence.Response getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * 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; + } + } + /** + * 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 CONTENT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; + /** + *
+   * The Content that the stream will send
+   * 
+ * + * string content = 2; + * @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; + } + } + /** + *
+   * The Content that the stream will send
+   * 
+ * + * string content = 2; + * @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 RESPONSES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private java.util.List responses_; + /** + *
+   * Sequence of responses to return in order for each attempt. If empty, the
+   * default response is an immediate OK.
+   * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + @java.lang.Override + public java.util.List getResponsesList() { + return responses_; + } + /** + *
+   * Sequence of responses to return in order for each attempt. If empty, the
+   * default response is an immediate OK.
+   * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + @java.lang.Override + public java.util.List + getResponsesOrBuilderList() { + return responses_; + } + /** + *
+   * Sequence of responses to return in order for each attempt. If empty, the
+   * default response is an immediate OK.
+   * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + @java.lang.Override + public int getResponsesCount() { + return responses_.size(); + } + /** + *
+   * Sequence of responses to return in order for each attempt. If empty, the
+   * default response is an immediate OK.
+   * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + @java.lang.Override + public com.google.showcase.v1beta1.StreamingSequence.Response getResponses(int index) { + return responses_.get(index); + } + /** + *
+   * Sequence of responses to return in order for each attempt. If empty, the
+   * default response is an immediate OK.
+   * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + @java.lang.Override + public com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder getResponsesOrBuilder( + int index) { + return responses_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, content_); + } + for (int i = 0; i < responses_.size(); i++) { + output.writeMessage(3, responses_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, content_); + } + for (int i = 0; i < responses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, responses_.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.showcase.v1beta1.StreamingSequence)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.StreamingSequence other = (com.google.showcase.v1beta1.StreamingSequence) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getContent() + .equals(other.getContent())) return false; + if (!getResponsesList() + .equals(other.getResponsesList())) return false; + if (!getUnknownFields().equals(other.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) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + if (getResponsesCount() > 0) { + hash = (37 * hash) + RESPONSES_FIELD_NUMBER; + hash = (53 * hash) + getResponsesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.StreamingSequence parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.StreamingSequence parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamingSequence parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.StreamingSequence parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamingSequence parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.StreamingSequence parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamingSequence parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.StreamingSequence parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamingSequence parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.StreamingSequence parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamingSequence parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.StreamingSequence parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.showcase.v1beta1.StreamingSequence prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code google.showcase.v1beta1.StreamingSequence} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.StreamingSequence) + com.google.showcase.v1beta1.StreamingSequenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.StreamingSequence.class, com.google.showcase.v1beta1.StreamingSequence.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.StreamingSequence.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + content_ = ""; + if (responsesBuilder_ == null) { + responses_ = java.util.Collections.emptyList(); + } else { + responses_ = null; + responsesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamingSequence getDefaultInstanceForType() { + return com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamingSequence build() { + com.google.showcase.v1beta1.StreamingSequence result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamingSequence buildPartial() { + com.google.showcase.v1beta1.StreamingSequence result = new com.google.showcase.v1beta1.StreamingSequence(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.showcase.v1beta1.StreamingSequence result) { + if (responsesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + responses_ = java.util.Collections.unmodifiableList(responses_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.responses_ = responses_; + } else { + result.responses_ = responsesBuilder_.build(); + } + } + + private void buildPartial0(com.google.showcase.v1beta1.StreamingSequence result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = content_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.StreamingSequence) { + return mergeFrom((com.google.showcase.v1beta1.StreamingSequence)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.StreamingSequence other) { + if (other == com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getContent().isEmpty()) { + content_ = other.content_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (responsesBuilder_ == null) { + if (!other.responses_.isEmpty()) { + if (responses_.isEmpty()) { + responses_ = other.responses_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureResponsesIsMutable(); + responses_.addAll(other.responses_); + } + onChanged(); + } + } else { + if (!other.responses_.isEmpty()) { + if (responsesBuilder_.isEmpty()) { + responsesBuilder_.dispose(); + responsesBuilder_ = null; + responses_ = other.responses_; + bitField0_ = (bitField0_ & ~0x00000004); + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResponsesFieldBuilder() : null; + } else { + responsesBuilder_.addAllMessages(other.responses_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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: { + content_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + com.google.showcase.v1beta1.StreamingSequence.Response m = + input.readMessage( + com.google.showcase.v1beta1.StreamingSequence.Response.parser(), + extensionRegistry); + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + responses_.add(m); + } else { + responsesBuilder_.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_ = ""; + /** + * 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; + } + } + /** + * 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; + } + } + /** + * 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; + } + /** + * 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; + } + /** + * 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 content_ = ""; + /** + *
+     * The Content that the stream will send
+     * 
+ * + * string content = 2; + * @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; + } + } + /** + *
+     * The Content that the stream will send
+     * 
+ * + * string content = 2; + * @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; + } + } + /** + *
+     * The Content that the stream will send
+     * 
+ * + * string content = 2; + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The Content that the stream will send
+     * 
+ * + * string content = 2; + * @return This builder for chaining. + */ + public Builder clearContent() { + content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The Content that the stream will send
+     * 
+ * + * string content = 2; + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List responses_ = + java.util.Collections.emptyList(); + private void ensureResponsesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + responses_ = new java.util.ArrayList(responses_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.StreamingSequence.Response, com.google.showcase.v1beta1.StreamingSequence.Response.Builder, com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder> responsesBuilder_; + + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + public java.util.List getResponsesList() { + if (responsesBuilder_ == null) { + return java.util.Collections.unmodifiableList(responses_); + } else { + return responsesBuilder_.getMessageList(); + } + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + public int getResponsesCount() { + if (responsesBuilder_ == null) { + return responses_.size(); + } else { + return responsesBuilder_.getCount(); + } + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + public com.google.showcase.v1beta1.StreamingSequence.Response getResponses(int index) { + if (responsesBuilder_ == null) { + return responses_.get(index); + } else { + return responsesBuilder_.getMessage(index); + } + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + public Builder setResponses( + int index, com.google.showcase.v1beta1.StreamingSequence.Response value) { + if (responsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponsesIsMutable(); + responses_.set(index, value); + onChanged(); + } else { + responsesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + public Builder setResponses( + int index, com.google.showcase.v1beta1.StreamingSequence.Response.Builder builderForValue) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + responses_.set(index, builderForValue.build()); + onChanged(); + } else { + responsesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + public Builder addResponses(com.google.showcase.v1beta1.StreamingSequence.Response value) { + if (responsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponsesIsMutable(); + responses_.add(value); + onChanged(); + } else { + responsesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + public Builder addResponses( + int index, com.google.showcase.v1beta1.StreamingSequence.Response value) { + if (responsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponsesIsMutable(); + responses_.add(index, value); + onChanged(); + } else { + responsesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + public Builder addResponses( + com.google.showcase.v1beta1.StreamingSequence.Response.Builder builderForValue) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + responses_.add(builderForValue.build()); + onChanged(); + } else { + responsesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + public Builder addResponses( + int index, com.google.showcase.v1beta1.StreamingSequence.Response.Builder builderForValue) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + responses_.add(index, builderForValue.build()); + onChanged(); + } else { + responsesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + public Builder addAllResponses( + java.lang.Iterable values) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, responses_); + onChanged(); + } else { + responsesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + public Builder clearResponses() { + if (responsesBuilder_ == null) { + responses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + responsesBuilder_.clear(); + } + return this; + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + public Builder removeResponses(int index) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + responses_.remove(index); + onChanged(); + } else { + responsesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + public com.google.showcase.v1beta1.StreamingSequence.Response.Builder getResponsesBuilder( + int index) { + return getResponsesFieldBuilder().getBuilder(index); + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + public com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder getResponsesOrBuilder( + int index) { + if (responsesBuilder_ == null) { + return responses_.get(index); } else { + return responsesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + public java.util.List + getResponsesOrBuilderList() { + if (responsesBuilder_ != null) { + return responsesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(responses_); + } + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + public com.google.showcase.v1beta1.StreamingSequence.Response.Builder addResponsesBuilder() { + return getResponsesFieldBuilder().addBuilder( + com.google.showcase.v1beta1.StreamingSequence.Response.getDefaultInstance()); + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + public com.google.showcase.v1beta1.StreamingSequence.Response.Builder addResponsesBuilder( + int index) { + return getResponsesFieldBuilder().addBuilder( + index, com.google.showcase.v1beta1.StreamingSequence.Response.getDefaultInstance()); + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + public java.util.List + getResponsesBuilderList() { + return getResponsesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.StreamingSequence.Response, com.google.showcase.v1beta1.StreamingSequence.Response.Builder, com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder> + getResponsesFieldBuilder() { + if (responsesBuilder_ == null) { + responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.StreamingSequence.Response, com.google.showcase.v1beta1.StreamingSequence.Response.Builder, com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder>( + responses_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + responses_ = null; + } + return responsesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.StreamingSequence) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.StreamingSequence) + private static final com.google.showcase.v1beta1.StreamingSequence DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.StreamingSequence(); + } + + public static com.google.showcase.v1beta1.StreamingSequence getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingSequence parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamingSequence getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java new file mode 100644 index 0000000000..8adcda635f --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java @@ -0,0 +1,168 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1; + +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 StreamingSequenceName implements ResourceName { + private static final PathTemplate STREAMING_SEQUENCE = + PathTemplate.createWithoutUrlEncoding("streamingSequences/{streaming_sequence}"); + private volatile Map fieldValuesMap; + private final String streamingSequence; + + @Deprecated + protected StreamingSequenceName() { + streamingSequence = null; + } + + private StreamingSequenceName(Builder builder) { + streamingSequence = Preconditions.checkNotNull(builder.getStreamingSequence()); + } + + public String getStreamingSequence() { + return streamingSequence; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static StreamingSequenceName of(String streamingSequence) { + return newBuilder().setStreamingSequence(streamingSequence).build(); + } + + public static String format(String streamingSequence) { + return newBuilder().setStreamingSequence(streamingSequence).build().toString(); + } + + public static StreamingSequenceName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + STREAMING_SEQUENCE.validatedMatch( + formattedString, "StreamingSequenceName.parse: formattedString not in valid format"); + return of(matchMap.get("streaming_sequence")); + } + + 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 (StreamingSequenceName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return STREAMING_SEQUENCE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (streamingSequence != null) { + fieldMapBuilder.put("streaming_sequence", streamingSequence); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return STREAMING_SEQUENCE.instantiate("streaming_sequence", streamingSequence); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + StreamingSequenceName that = ((StreamingSequenceName) o); + return Objects.equals(this.streamingSequence, that.streamingSequence); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(streamingSequence); + return h; + } + + /** Builder for streamingSequences/{streaming_sequence}. */ + public static class Builder { + private String streamingSequence; + + protected Builder() {} + + public String getStreamingSequence() { + return streamingSequence; + } + + public Builder setStreamingSequence(String streamingSequence) { + this.streamingSequence = streamingSequence; + return this; + } + + private Builder(StreamingSequenceName streamingSequenceName) { + this.streamingSequence = streamingSequenceName.streamingSequence; + } + + public StreamingSequenceName build() { + return new StreamingSequenceName(this); + } + } +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceOrBuilder.java new file mode 100644 index 0000000000..819dbcf614 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceOrBuilder.java @@ -0,0 +1,90 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +package com.google.showcase.v1beta1; + +public interface StreamingSequenceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.StreamingSequence) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * The Content that the stream will send
+   * 
+ * + * string content = 2; + * @return The content. + */ + java.lang.String getContent(); + /** + *
+   * The Content that the stream will send
+   * 
+ * + * string content = 2; + * @return The bytes for content. + */ + com.google.protobuf.ByteString + getContentBytes(); + + /** + *
+   * Sequence of responses to return in order for each attempt. If empty, the
+   * default response is an immediate OK.
+   * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + java.util.List + getResponsesList(); + /** + *
+   * Sequence of responses to return in order for each attempt. If empty, the
+   * default response is an immediate OK.
+   * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + com.google.showcase.v1beta1.StreamingSequence.Response getResponses(int index); + /** + *
+   * Sequence of responses to return in order for each attempt. If empty, the
+   * default response is an immediate OK.
+   * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + int getResponsesCount(); + /** + *
+   * Sequence of responses to return in order for each attempt. If empty, the
+   * default response is an immediate OK.
+   * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + java.util.List + getResponsesOrBuilderList(); + /** + *
+   * Sequence of responses to return in order for each attempt. If empty, the
+   * default response is an immediate OK.
+   * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3; + */ + com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder getResponsesOrBuilder( + int index); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReport.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReport.java new file mode 100644 index 0000000000..e25e3e3e32 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReport.java @@ -0,0 +1,2699 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +package com.google.showcase.v1beta1; + +/** + * Protobuf type {@code google.showcase.v1beta1.StreamingSequenceReport} + */ +public final class StreamingSequenceReport extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.StreamingSequenceReport) + StreamingSequenceReportOrBuilder { +private static final long serialVersionUID = 0L; + // Use StreamingSequenceReport.newBuilder() to construct. + private StreamingSequenceReport(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StreamingSequenceReport() { + name_ = ""; + attempts_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StreamingSequenceReport(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequenceReport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequenceReport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.StreamingSequenceReport.class, com.google.showcase.v1beta1.StreamingSequenceReport.Builder.class); + } + + public interface AttemptOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.StreamingSequenceReport.Attempt) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The attempt number - starting at 0.
+     * 
+ * + * int32 attempt_number = 1; + * @return The attemptNumber. + */ + int getAttemptNumber(); + + /** + *
+     * The deadline dictated by the attempt to the server.
+     * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + * @return Whether the attemptDeadline field is set. + */ + boolean hasAttemptDeadline(); + /** + *
+     * The deadline dictated by the attempt to the server.
+     * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + * @return The attemptDeadline. + */ + com.google.protobuf.Timestamp getAttemptDeadline(); + /** + *
+     * The deadline dictated by the attempt to the server.
+     * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + */ + com.google.protobuf.TimestampOrBuilder getAttemptDeadlineOrBuilder(); + + /** + *
+     * The time that the server responded to the RPC attempt. Used for
+     * calculating attempt_delay.
+     * 
+ * + * .google.protobuf.Timestamp response_time = 3; + * @return Whether the responseTime field is set. + */ + boolean hasResponseTime(); + /** + *
+     * The time that the server responded to the RPC attempt. Used for
+     * calculating attempt_delay.
+     * 
+ * + * .google.protobuf.Timestamp response_time = 3; + * @return The responseTime. + */ + com.google.protobuf.Timestamp getResponseTime(); + /** + *
+     * The time that the server responded to the RPC attempt. Used for
+     * calculating attempt_delay.
+     * 
+ * + * .google.protobuf.Timestamp response_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder(); + + /** + *
+     * The server perceived delay between sending the last response and
+     * receiving this attempt. Used for validating attempt delay backoff.
+     * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + * @return Whether the attemptDelay field is set. + */ + boolean hasAttemptDelay(); + /** + *
+     * The server perceived delay between sending the last response and
+     * receiving this attempt. Used for validating attempt delay backoff.
+     * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + * @return The attemptDelay. + */ + com.google.protobuf.Duration getAttemptDelay(); + /** + *
+     * The server perceived delay between sending the last response and
+     * receiving this attempt. Used for validating attempt delay backoff.
+     * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + */ + com.google.protobuf.DurationOrBuilder getAttemptDelayOrBuilder(); + + /** + *
+     * The status returned to the attempt.
+     * 
+ * + * .google.rpc.Status status = 5; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + *
+     * The status returned to the attempt.
+     * 
+ * + * .google.rpc.Status status = 5; + * @return The status. + */ + com.google.rpc.Status getStatus(); + /** + *
+     * The status returned to the attempt.
+     * 
+ * + * .google.rpc.Status status = 5; + */ + com.google.rpc.StatusOrBuilder getStatusOrBuilder(); + + /** + * string content_sent = 6; + * @return The contentSent. + */ + java.lang.String getContentSent(); + /** + * string content_sent = 6; + * @return The bytes for contentSent. + */ + com.google.protobuf.ByteString + getContentSentBytes(); + } + /** + *
+   * Contains metrics on individual RPC Attempts in a sequence.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.StreamingSequenceReport.Attempt} + */ + public static final class Attempt extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.StreamingSequenceReport.Attempt) + AttemptOrBuilder { + private static final long serialVersionUID = 0L; + // Use Attempt.newBuilder() to construct. + private Attempt(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Attempt() { + contentSent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Attempt(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.class, com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder.class); + } + + public static final int ATTEMPT_NUMBER_FIELD_NUMBER = 1; + private int attemptNumber_ = 0; + /** + *
+     * The attempt number - starting at 0.
+     * 
+ * + * int32 attempt_number = 1; + * @return The attemptNumber. + */ + @java.lang.Override + public int getAttemptNumber() { + return attemptNumber_; + } + + public static final int ATTEMPT_DEADLINE_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp attemptDeadline_; + /** + *
+     * The deadline dictated by the attempt to the server.
+     * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + * @return Whether the attemptDeadline field is set. + */ + @java.lang.Override + public boolean hasAttemptDeadline() { + return attemptDeadline_ != null; + } + /** + *
+     * The deadline dictated by the attempt to the server.
+     * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + * @return The attemptDeadline. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getAttemptDeadline() { + return attemptDeadline_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : attemptDeadline_; + } + /** + *
+     * The deadline dictated by the attempt to the server.
+     * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getAttemptDeadlineOrBuilder() { + return attemptDeadline_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : attemptDeadline_; + } + + public static final int RESPONSE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp responseTime_; + /** + *
+     * The time that the server responded to the RPC attempt. Used for
+     * calculating attempt_delay.
+     * 
+ * + * .google.protobuf.Timestamp response_time = 3; + * @return Whether the responseTime field is set. + */ + @java.lang.Override + public boolean hasResponseTime() { + return responseTime_ != null; + } + /** + *
+     * The time that the server responded to the RPC attempt. Used for
+     * calculating attempt_delay.
+     * 
+ * + * .google.protobuf.Timestamp response_time = 3; + * @return The responseTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getResponseTime() { + return responseTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : responseTime_; + } + /** + *
+     * The time that the server responded to the RPC attempt. Used for
+     * calculating attempt_delay.
+     * 
+ * + * .google.protobuf.Timestamp response_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() { + return responseTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : responseTime_; + } + + public static final int ATTEMPT_DELAY_FIELD_NUMBER = 4; + private com.google.protobuf.Duration attemptDelay_; + /** + *
+     * The server perceived delay between sending the last response and
+     * receiving this attempt. Used for validating attempt delay backoff.
+     * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + * @return Whether the attemptDelay field is set. + */ + @java.lang.Override + public boolean hasAttemptDelay() { + return attemptDelay_ != null; + } + /** + *
+     * The server perceived delay between sending the last response and
+     * receiving this attempt. Used for validating attempt delay backoff.
+     * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + * @return The attemptDelay. + */ + @java.lang.Override + public com.google.protobuf.Duration getAttemptDelay() { + return attemptDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : attemptDelay_; + } + /** + *
+     * The server perceived delay between sending the last response and
+     * receiving this attempt. Used for validating attempt delay backoff.
+     * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getAttemptDelayOrBuilder() { + return attemptDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : attemptDelay_; + } + + public static final int STATUS_FIELD_NUMBER = 5; + private com.google.rpc.Status status_; + /** + *
+     * The status returned to the attempt.
+     * 
+ * + * .google.rpc.Status status = 5; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return status_ != null; + } + /** + *
+     * The status returned to the attempt.
+     * 
+ * + * .google.rpc.Status status = 5; + * @return The status. + */ + @java.lang.Override + public com.google.rpc.Status getStatus() { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + /** + *
+     * The status returned to the attempt.
+     * 
+ * + * .google.rpc.Status status = 5; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + + public static final int CONTENT_SENT_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object contentSent_ = ""; + /** + * string content_sent = 6; + * @return The contentSent. + */ + @java.lang.Override + public java.lang.String getContentSent() { + java.lang.Object ref = contentSent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contentSent_ = s; + return s; + } + } + /** + * string content_sent = 6; + * @return The bytes for contentSent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getContentSentBytes() { + java.lang.Object ref = contentSent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contentSent_ = 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 (attemptNumber_ != 0) { + output.writeInt32(1, attemptNumber_); + } + if (attemptDeadline_ != null) { + output.writeMessage(2, getAttemptDeadline()); + } + if (responseTime_ != null) { + output.writeMessage(3, getResponseTime()); + } + if (attemptDelay_ != null) { + output.writeMessage(4, getAttemptDelay()); + } + if (status_ != null) { + output.writeMessage(5, getStatus()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentSent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, contentSent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attemptNumber_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, attemptNumber_); + } + if (attemptDeadline_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAttemptDeadline()); + } + if (responseTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResponseTime()); + } + if (attemptDelay_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAttemptDelay()); + } + if (status_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getStatus()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentSent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, contentSent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.StreamingSequenceReport.Attempt)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt other = (com.google.showcase.v1beta1.StreamingSequenceReport.Attempt) obj; + + if (getAttemptNumber() + != other.getAttemptNumber()) return false; + if (hasAttemptDeadline() != other.hasAttemptDeadline()) return false; + if (hasAttemptDeadline()) { + if (!getAttemptDeadline() + .equals(other.getAttemptDeadline())) return false; + } + if (hasResponseTime() != other.hasResponseTime()) return false; + if (hasResponseTime()) { + if (!getResponseTime() + .equals(other.getResponseTime())) return false; + } + if (hasAttemptDelay() != other.hasAttemptDelay()) return false; + if (hasAttemptDelay()) { + if (!getAttemptDelay() + .equals(other.getAttemptDelay())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (!getContentSent() + .equals(other.getContentSent())) return false; + if (!getUnknownFields().equals(other.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) + ATTEMPT_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getAttemptNumber(); + if (hasAttemptDeadline()) { + hash = (37 * hash) + ATTEMPT_DEADLINE_FIELD_NUMBER; + hash = (53 * hash) + getAttemptDeadline().hashCode(); + } + if (hasResponseTime()) { + hash = (37 * hash) + RESPONSE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getResponseTime().hashCode(); + } + if (hasAttemptDelay()) { + hash = (37 * hash) + ATTEMPT_DELAY_FIELD_NUMBER; + hash = (53 * hash) + getAttemptDelay().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (37 * hash) + CONTENT_SENT_FIELD_NUMBER; + hash = (53 * hash) + getContentSent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.showcase.v1beta1.StreamingSequenceReport.Attempt prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Contains metrics on individual RPC Attempts in a sequence.
+     * 
+ * + * Protobuf type {@code google.showcase.v1beta1.StreamingSequenceReport.Attempt} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.StreamingSequenceReport.Attempt) + com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.class, com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + attemptNumber_ = 0; + attemptDeadline_ = null; + if (attemptDeadlineBuilder_ != null) { + attemptDeadlineBuilder_.dispose(); + attemptDeadlineBuilder_ = null; + } + responseTime_ = null; + if (responseTimeBuilder_ != null) { + responseTimeBuilder_.dispose(); + responseTimeBuilder_ = null; + } + attemptDelay_ = null; + if (attemptDelayBuilder_ != null) { + attemptDelayBuilder_.dispose(); + attemptDelayBuilder_ = null; + } + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + contentSent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt getDefaultInstanceForType() { + return com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt build() { + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt buildPartial() { + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt result = new com.google.showcase.v1beta1.StreamingSequenceReport.Attempt(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.showcase.v1beta1.StreamingSequenceReport.Attempt result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.attemptNumber_ = attemptNumber_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.attemptDeadline_ = attemptDeadlineBuilder_ == null + ? attemptDeadline_ + : attemptDeadlineBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.responseTime_ = responseTimeBuilder_ == null + ? responseTime_ + : responseTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.attemptDelay_ = attemptDelayBuilder_ == null + ? attemptDelay_ + : attemptDelayBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.contentSent_ = contentSent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.StreamingSequenceReport.Attempt) { + return mergeFrom((com.google.showcase.v1beta1.StreamingSequenceReport.Attempt)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.StreamingSequenceReport.Attempt other) { + if (other == com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.getDefaultInstance()) return this; + if (other.getAttemptNumber() != 0) { + setAttemptNumber(other.getAttemptNumber()); + } + if (other.hasAttemptDeadline()) { + mergeAttemptDeadline(other.getAttemptDeadline()); + } + if (other.hasResponseTime()) { + mergeResponseTime(other.getResponseTime()); + } + if (other.hasAttemptDelay()) { + mergeAttemptDelay(other.getAttemptDelay()); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + if (!other.getContentSent().isEmpty()) { + contentSent_ = other.contentSent_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + attemptNumber_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getAttemptDeadlineFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getResponseTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getAttemptDelayFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + contentSent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int attemptNumber_ ; + /** + *
+       * The attempt number - starting at 0.
+       * 
+ * + * int32 attempt_number = 1; + * @return The attemptNumber. + */ + @java.lang.Override + public int getAttemptNumber() { + return attemptNumber_; + } + /** + *
+       * The attempt number - starting at 0.
+       * 
+ * + * int32 attempt_number = 1; + * @param value The attemptNumber to set. + * @return This builder for chaining. + */ + public Builder setAttemptNumber(int value) { + + attemptNumber_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The attempt number - starting at 0.
+       * 
+ * + * int32 attempt_number = 1; + * @return This builder for chaining. + */ + public Builder clearAttemptNumber() { + bitField0_ = (bitField0_ & ~0x00000001); + attemptNumber_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp attemptDeadline_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> attemptDeadlineBuilder_; + /** + *
+       * The deadline dictated by the attempt to the server.
+       * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + * @return Whether the attemptDeadline field is set. + */ + public boolean hasAttemptDeadline() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * The deadline dictated by the attempt to the server.
+       * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + * @return The attemptDeadline. + */ + public com.google.protobuf.Timestamp getAttemptDeadline() { + if (attemptDeadlineBuilder_ == null) { + return attemptDeadline_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : attemptDeadline_; + } else { + return attemptDeadlineBuilder_.getMessage(); + } + } + /** + *
+       * The deadline dictated by the attempt to the server.
+       * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + */ + public Builder setAttemptDeadline(com.google.protobuf.Timestamp value) { + if (attemptDeadlineBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attemptDeadline_ = value; + } else { + attemptDeadlineBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The deadline dictated by the attempt to the server.
+       * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + */ + public Builder setAttemptDeadline( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (attemptDeadlineBuilder_ == null) { + attemptDeadline_ = builderForValue.build(); + } else { + attemptDeadlineBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The deadline dictated by the attempt to the server.
+       * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + */ + public Builder mergeAttemptDeadline(com.google.protobuf.Timestamp value) { + if (attemptDeadlineBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + attemptDeadline_ != null && + attemptDeadline_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getAttemptDeadlineBuilder().mergeFrom(value); + } else { + attemptDeadline_ = value; + } + } else { + attemptDeadlineBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The deadline dictated by the attempt to the server.
+       * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + */ + public Builder clearAttemptDeadline() { + bitField0_ = (bitField0_ & ~0x00000002); + attemptDeadline_ = null; + if (attemptDeadlineBuilder_ != null) { + attemptDeadlineBuilder_.dispose(); + attemptDeadlineBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * The deadline dictated by the attempt to the server.
+       * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + */ + public com.google.protobuf.Timestamp.Builder getAttemptDeadlineBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAttemptDeadlineFieldBuilder().getBuilder(); + } + /** + *
+       * The deadline dictated by the attempt to the server.
+       * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + */ + public com.google.protobuf.TimestampOrBuilder getAttemptDeadlineOrBuilder() { + if (attemptDeadlineBuilder_ != null) { + return attemptDeadlineBuilder_.getMessageOrBuilder(); + } else { + return attemptDeadline_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : attemptDeadline_; + } + } + /** + *
+       * The deadline dictated by the attempt to the server.
+       * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getAttemptDeadlineFieldBuilder() { + if (attemptDeadlineBuilder_ == null) { + attemptDeadlineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getAttemptDeadline(), + getParentForChildren(), + isClean()); + attemptDeadline_ = null; + } + return attemptDeadlineBuilder_; + } + + private com.google.protobuf.Timestamp responseTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> responseTimeBuilder_; + /** + *
+       * The time that the server responded to the RPC attempt. Used for
+       * calculating attempt_delay.
+       * 
+ * + * .google.protobuf.Timestamp response_time = 3; + * @return Whether the responseTime field is set. + */ + public boolean hasResponseTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * The time that the server responded to the RPC attempt. Used for
+       * calculating attempt_delay.
+       * 
+ * + * .google.protobuf.Timestamp response_time = 3; + * @return The responseTime. + */ + public com.google.protobuf.Timestamp getResponseTime() { + if (responseTimeBuilder_ == null) { + return responseTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : responseTime_; + } else { + return responseTimeBuilder_.getMessage(); + } + } + /** + *
+       * The time that the server responded to the RPC attempt. Used for
+       * calculating attempt_delay.
+       * 
+ * + * .google.protobuf.Timestamp response_time = 3; + */ + public Builder setResponseTime(com.google.protobuf.Timestamp value) { + if (responseTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + responseTime_ = value; + } else { + responseTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * The time that the server responded to the RPC attempt. Used for
+       * calculating attempt_delay.
+       * 
+ * + * .google.protobuf.Timestamp response_time = 3; + */ + public Builder setResponseTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (responseTimeBuilder_ == null) { + responseTime_ = builderForValue.build(); + } else { + responseTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * The time that the server responded to the RPC attempt. Used for
+       * calculating attempt_delay.
+       * 
+ * + * .google.protobuf.Timestamp response_time = 3; + */ + public Builder mergeResponseTime(com.google.protobuf.Timestamp value) { + if (responseTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + responseTime_ != null && + responseTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getResponseTimeBuilder().mergeFrom(value); + } else { + responseTime_ = value; + } + } else { + responseTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * The time that the server responded to the RPC attempt. Used for
+       * calculating attempt_delay.
+       * 
+ * + * .google.protobuf.Timestamp response_time = 3; + */ + public Builder clearResponseTime() { + bitField0_ = (bitField0_ & ~0x00000004); + responseTime_ = null; + if (responseTimeBuilder_ != null) { + responseTimeBuilder_.dispose(); + responseTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * The time that the server responded to the RPC attempt. Used for
+       * calculating attempt_delay.
+       * 
+ * + * .google.protobuf.Timestamp response_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getResponseTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getResponseTimeFieldBuilder().getBuilder(); + } + /** + *
+       * The time that the server responded to the RPC attempt. Used for
+       * calculating attempt_delay.
+       * 
+ * + * .google.protobuf.Timestamp response_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() { + if (responseTimeBuilder_ != null) { + return responseTimeBuilder_.getMessageOrBuilder(); + } else { + return responseTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : responseTime_; + } + } + /** + *
+       * The time that the server responded to the RPC attempt. Used for
+       * calculating attempt_delay.
+       * 
+ * + * .google.protobuf.Timestamp response_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getResponseTimeFieldBuilder() { + if (responseTimeBuilder_ == null) { + responseTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getResponseTime(), + getParentForChildren(), + isClean()); + responseTime_ = null; + } + return responseTimeBuilder_; + } + + private com.google.protobuf.Duration attemptDelay_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> attemptDelayBuilder_; + /** + *
+       * The server perceived delay between sending the last response and
+       * receiving this attempt. Used for validating attempt delay backoff.
+       * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + * @return Whether the attemptDelay field is set. + */ + public boolean hasAttemptDelay() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+       * The server perceived delay between sending the last response and
+       * receiving this attempt. Used for validating attempt delay backoff.
+       * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + * @return The attemptDelay. + */ + public com.google.protobuf.Duration getAttemptDelay() { + if (attemptDelayBuilder_ == null) { + return attemptDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : attemptDelay_; + } else { + return attemptDelayBuilder_.getMessage(); + } + } + /** + *
+       * The server perceived delay between sending the last response and
+       * receiving this attempt. Used for validating attempt delay backoff.
+       * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + */ + public Builder setAttemptDelay(com.google.protobuf.Duration value) { + if (attemptDelayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attemptDelay_ = value; + } else { + attemptDelayBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * The server perceived delay between sending the last response and
+       * receiving this attempt. Used for validating attempt delay backoff.
+       * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + */ + public Builder setAttemptDelay( + com.google.protobuf.Duration.Builder builderForValue) { + if (attemptDelayBuilder_ == null) { + attemptDelay_ = builderForValue.build(); + } else { + attemptDelayBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * The server perceived delay between sending the last response and
+       * receiving this attempt. Used for validating attempt delay backoff.
+       * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + */ + public Builder mergeAttemptDelay(com.google.protobuf.Duration value) { + if (attemptDelayBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + attemptDelay_ != null && + attemptDelay_ != com.google.protobuf.Duration.getDefaultInstance()) { + getAttemptDelayBuilder().mergeFrom(value); + } else { + attemptDelay_ = value; + } + } else { + attemptDelayBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * The server perceived delay between sending the last response and
+       * receiving this attempt. Used for validating attempt delay backoff.
+       * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + */ + public Builder clearAttemptDelay() { + bitField0_ = (bitField0_ & ~0x00000008); + attemptDelay_ = null; + if (attemptDelayBuilder_ != null) { + attemptDelayBuilder_.dispose(); + attemptDelayBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * The server perceived delay between sending the last response and
+       * receiving this attempt. Used for validating attempt delay backoff.
+       * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + */ + public com.google.protobuf.Duration.Builder getAttemptDelayBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getAttemptDelayFieldBuilder().getBuilder(); + } + /** + *
+       * The server perceived delay between sending the last response and
+       * receiving this attempt. Used for validating attempt delay backoff.
+       * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + */ + public com.google.protobuf.DurationOrBuilder getAttemptDelayOrBuilder() { + if (attemptDelayBuilder_ != null) { + return attemptDelayBuilder_.getMessageOrBuilder(); + } else { + return attemptDelay_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : attemptDelay_; + } + } + /** + *
+       * The server perceived delay between sending the last response and
+       * receiving this attempt. Used for validating attempt delay backoff.
+       * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getAttemptDelayFieldBuilder() { + if (attemptDelayBuilder_ == null) { + attemptDelayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getAttemptDelay(), + getParentForChildren(), + isClean()); + attemptDelay_ = null; + } + return attemptDelayBuilder_; + } + + private com.google.rpc.Status status_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; + /** + *
+       * The status returned to the attempt.
+       * 
+ * + * .google.rpc.Status status = 5; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+       * The status returned to the attempt.
+       * 
+ * + * .google.rpc.Status status = 5; + * @return The status. + */ + public com.google.rpc.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + *
+       * The status returned to the attempt.
+       * 
+ * + * .google.rpc.Status status = 5; + */ + public Builder setStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * The status returned to the attempt.
+       * 
+ * + * .google.rpc.Status status = 5; + */ + public Builder setStatus( + com.google.rpc.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * The status returned to the attempt.
+       * 
+ * + * .google.rpc.Status status = 5; + */ + public Builder mergeStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + status_ != null && + status_ != com.google.rpc.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * The status returned to the attempt.
+       * 
+ * + * .google.rpc.Status status = 5; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000010); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * The status returned to the attempt.
+       * 
+ * + * .google.rpc.Status status = 5; + */ + public com.google.rpc.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + *
+       * The status returned to the attempt.
+       * 
+ * + * .google.rpc.Status status = 5; + */ + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + com.google.rpc.Status.getDefaultInstance() : status_; + } + } + /** + *
+       * The status returned to the attempt.
+       * 
+ * + * .google.rpc.Status status = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + private java.lang.Object contentSent_ = ""; + /** + * string content_sent = 6; + * @return The contentSent. + */ + public java.lang.String getContentSent() { + java.lang.Object ref = contentSent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contentSent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string content_sent = 6; + * @return The bytes for contentSent. + */ + public com.google.protobuf.ByteString + getContentSentBytes() { + java.lang.Object ref = contentSent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contentSent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string content_sent = 6; + * @param value The contentSent to set. + * @return This builder for chaining. + */ + public Builder setContentSent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + contentSent_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * string content_sent = 6; + * @return This builder for chaining. + */ + public Builder clearContentSent() { + contentSent_ = getDefaultInstance().getContentSent(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * string content_sent = 6; + * @param value The bytes for contentSent to set. + * @return This builder for chaining. + */ + public Builder setContentSentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + contentSent_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.StreamingSequenceReport.Attempt) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.StreamingSequenceReport.Attempt) + private static final com.google.showcase.v1beta1.StreamingSequenceReport.Attempt DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.StreamingSequenceReport.Attempt(); + } + + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Attempt parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * 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; + } + } + /** + * 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 ATTEMPTS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List attempts_; + /** + *
+   * The set of RPC attempts received by the server for a Sequence.
+   * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + @java.lang.Override + public java.util.List getAttemptsList() { + return attempts_; + } + /** + *
+   * The set of RPC attempts received by the server for a Sequence.
+   * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + @java.lang.Override + public java.util.List + getAttemptsOrBuilderList() { + return attempts_; + } + /** + *
+   * The set of RPC attempts received by the server for a Sequence.
+   * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + @java.lang.Override + public int getAttemptsCount() { + return attempts_.size(); + } + /** + *
+   * The set of RPC attempts received by the server for a Sequence.
+   * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + @java.lang.Override + public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt getAttempts(int index) { + return attempts_.get(index); + } + /** + *
+   * The set of RPC attempts received by the server for a Sequence.
+   * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + @java.lang.Override + public com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder getAttemptsOrBuilder( + int index) { + return attempts_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < attempts_.size(); i++) { + output.writeMessage(2, attempts_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + for (int i = 0; i < attempts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, attempts_.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.showcase.v1beta1.StreamingSequenceReport)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.StreamingSequenceReport other = (com.google.showcase.v1beta1.StreamingSequenceReport) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getAttemptsList() + .equals(other.getAttemptsList())) return false; + if (!getUnknownFields().equals(other.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 (getAttemptsCount() > 0) { + hash = (37 * hash) + ATTEMPTS_FIELD_NUMBER; + hash = (53 * hash) + getAttemptsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.StreamingSequenceReport parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.StreamingSequenceReport parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamingSequenceReport parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.StreamingSequenceReport parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamingSequenceReport parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.StreamingSequenceReport parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamingSequenceReport parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.StreamingSequenceReport parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamingSequenceReport parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.StreamingSequenceReport parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamingSequenceReport parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.StreamingSequenceReport parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.showcase.v1beta1.StreamingSequenceReport prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code google.showcase.v1beta1.StreamingSequenceReport} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.StreamingSequenceReport) + com.google.showcase.v1beta1.StreamingSequenceReportOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequenceReport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequenceReport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.StreamingSequenceReport.class, com.google.showcase.v1beta1.StreamingSequenceReport.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.StreamingSequenceReport.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + if (attemptsBuilder_ == null) { + attempts_ = java.util.Collections.emptyList(); + } else { + attempts_ = null; + attemptsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequenceReport_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamingSequenceReport getDefaultInstanceForType() { + return com.google.showcase.v1beta1.StreamingSequenceReport.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamingSequenceReport build() { + com.google.showcase.v1beta1.StreamingSequenceReport result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamingSequenceReport buildPartial() { + com.google.showcase.v1beta1.StreamingSequenceReport result = new com.google.showcase.v1beta1.StreamingSequenceReport(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.showcase.v1beta1.StreamingSequenceReport result) { + if (attemptsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + attempts_ = java.util.Collections.unmodifiableList(attempts_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.attempts_ = attempts_; + } else { + result.attempts_ = attemptsBuilder_.build(); + } + } + + private void buildPartial0(com.google.showcase.v1beta1.StreamingSequenceReport result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.StreamingSequenceReport) { + return mergeFrom((com.google.showcase.v1beta1.StreamingSequenceReport)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.StreamingSequenceReport other) { + if (other == com.google.showcase.v1beta1.StreamingSequenceReport.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (attemptsBuilder_ == null) { + if (!other.attempts_.isEmpty()) { + if (attempts_.isEmpty()) { + attempts_ = other.attempts_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAttemptsIsMutable(); + attempts_.addAll(other.attempts_); + } + onChanged(); + } + } else { + if (!other.attempts_.isEmpty()) { + if (attemptsBuilder_.isEmpty()) { + attemptsBuilder_.dispose(); + attemptsBuilder_ = null; + attempts_ = other.attempts_; + bitField0_ = (bitField0_ & ~0x00000002); + attemptsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAttemptsFieldBuilder() : null; + } else { + attemptsBuilder_.addAllMessages(other.attempts_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt m = + input.readMessage( + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.parser(), + extensionRegistry); + if (attemptsBuilder_ == null) { + ensureAttemptsIsMutable(); + attempts_.add(m); + } else { + attemptsBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * 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; + } + } + /** + * 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; + } + } + /** + * 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; + } + /** + * 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; + } + /** + * 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.util.List attempts_ = + java.util.Collections.emptyList(); + private void ensureAttemptsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + attempts_ = new java.util.ArrayList(attempts_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt, com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder, com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder> attemptsBuilder_; + + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + public java.util.List getAttemptsList() { + if (attemptsBuilder_ == null) { + return java.util.Collections.unmodifiableList(attempts_); + } else { + return attemptsBuilder_.getMessageList(); + } + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + public int getAttemptsCount() { + if (attemptsBuilder_ == null) { + return attempts_.size(); + } else { + return attemptsBuilder_.getCount(); + } + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt getAttempts(int index) { + if (attemptsBuilder_ == null) { + return attempts_.get(index); + } else { + return attemptsBuilder_.getMessage(index); + } + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + public Builder setAttempts( + int index, com.google.showcase.v1beta1.StreamingSequenceReport.Attempt value) { + if (attemptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttemptsIsMutable(); + attempts_.set(index, value); + onChanged(); + } else { + attemptsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + public Builder setAttempts( + int index, com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder builderForValue) { + if (attemptsBuilder_ == null) { + ensureAttemptsIsMutable(); + attempts_.set(index, builderForValue.build()); + onChanged(); + } else { + attemptsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + public Builder addAttempts(com.google.showcase.v1beta1.StreamingSequenceReport.Attempt value) { + if (attemptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttemptsIsMutable(); + attempts_.add(value); + onChanged(); + } else { + attemptsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + public Builder addAttempts( + int index, com.google.showcase.v1beta1.StreamingSequenceReport.Attempt value) { + if (attemptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttemptsIsMutable(); + attempts_.add(index, value); + onChanged(); + } else { + attemptsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + public Builder addAttempts( + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder builderForValue) { + if (attemptsBuilder_ == null) { + ensureAttemptsIsMutable(); + attempts_.add(builderForValue.build()); + onChanged(); + } else { + attemptsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + public Builder addAttempts( + int index, com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder builderForValue) { + if (attemptsBuilder_ == null) { + ensureAttemptsIsMutable(); + attempts_.add(index, builderForValue.build()); + onChanged(); + } else { + attemptsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + public Builder addAllAttempts( + java.lang.Iterable values) { + if (attemptsBuilder_ == null) { + ensureAttemptsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, attempts_); + onChanged(); + } else { + attemptsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + public Builder clearAttempts() { + if (attemptsBuilder_ == null) { + attempts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + attemptsBuilder_.clear(); + } + return this; + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + public Builder removeAttempts(int index) { + if (attemptsBuilder_ == null) { + ensureAttemptsIsMutable(); + attempts_.remove(index); + onChanged(); + } else { + attemptsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder getAttemptsBuilder( + int index) { + return getAttemptsFieldBuilder().getBuilder(index); + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + public com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder getAttemptsOrBuilder( + int index) { + if (attemptsBuilder_ == null) { + return attempts_.get(index); } else { + return attemptsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + public java.util.List + getAttemptsOrBuilderList() { + if (attemptsBuilder_ != null) { + return attemptsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(attempts_); + } + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder addAttemptsBuilder() { + return getAttemptsFieldBuilder().addBuilder( + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.getDefaultInstance()); + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder addAttemptsBuilder( + int index) { + return getAttemptsFieldBuilder().addBuilder( + index, com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.getDefaultInstance()); + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + public java.util.List + getAttemptsBuilderList() { + return getAttemptsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt, com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder, com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder> + getAttemptsFieldBuilder() { + if (attemptsBuilder_ == null) { + attemptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt, com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder, com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder>( + attempts_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + attempts_ = null; + } + return attemptsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.StreamingSequenceReport) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.StreamingSequenceReport) + private static final com.google.showcase.v1beta1.StreamingSequenceReport DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.StreamingSequenceReport(); + } + + public static com.google.showcase.v1beta1.StreamingSequenceReport getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingSequenceReport parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamingSequenceReport getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java new file mode 100644 index 0000000000..106c07e1f9 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java @@ -0,0 +1,170 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1; + +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 StreamingSequenceReportName implements ResourceName { + private static final PathTemplate STREAMING_SEQUENCE = + PathTemplate.createWithoutUrlEncoding( + "streamingSequences/{streaming_sequence}/streamingSequenceReport"); + private volatile Map fieldValuesMap; + private final String streamingSequence; + + @Deprecated + protected StreamingSequenceReportName() { + streamingSequence = null; + } + + private StreamingSequenceReportName(Builder builder) { + streamingSequence = Preconditions.checkNotNull(builder.getStreamingSequence()); + } + + public String getStreamingSequence() { + return streamingSequence; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static StreamingSequenceReportName of(String streamingSequence) { + return newBuilder().setStreamingSequence(streamingSequence).build(); + } + + public static String format(String streamingSequence) { + return newBuilder().setStreamingSequence(streamingSequence).build().toString(); + } + + public static StreamingSequenceReportName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + STREAMING_SEQUENCE.validatedMatch( + formattedString, + "StreamingSequenceReportName.parse: formattedString not in valid format"); + return of(matchMap.get("streaming_sequence")); + } + + 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 (StreamingSequenceReportName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return STREAMING_SEQUENCE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (streamingSequence != null) { + fieldMapBuilder.put("streaming_sequence", streamingSequence); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return STREAMING_SEQUENCE.instantiate("streaming_sequence", streamingSequence); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + StreamingSequenceReportName that = ((StreamingSequenceReportName) o); + return Objects.equals(this.streamingSequence, that.streamingSequence); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(streamingSequence); + return h; + } + + /** Builder for streamingSequences/{streaming_sequence}/streamingSequenceReport. */ + public static class Builder { + private String streamingSequence; + + protected Builder() {} + + public String getStreamingSequence() { + return streamingSequence; + } + + public Builder setStreamingSequence(String streamingSequence) { + this.streamingSequence = streamingSequence; + return this; + } + + private Builder(StreamingSequenceReportName streamingSequenceReportName) { + this.streamingSequence = streamingSequenceReportName.streamingSequence; + } + + public StreamingSequenceReportName build() { + return new StreamingSequenceReportName(this); + } + } +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportOrBuilder.java new file mode 100644 index 0000000000..810ec7b434 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportOrBuilder.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +package com.google.showcase.v1beta1; + +public interface StreamingSequenceReportOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.StreamingSequenceReport) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * The set of RPC attempts received by the server for a Sequence.
+   * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + java.util.List + getAttemptsList(); + /** + *
+   * The set of RPC attempts received by the server for a Sequence.
+   * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt getAttempts(int index); + /** + *
+   * The set of RPC attempts received by the server for a Sequence.
+   * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + int getAttemptsCount(); + /** + *
+   * The set of RPC attempts received by the server for a Sequence.
+   * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + java.util.List + getAttemptsOrBuilderList(); + /** + *
+   * The set of RPC attempts received by the server for a Sequence.
+   * 
+ * + * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; + */ + com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder getAttemptsOrBuilder( + int index); +} From 2a29c59237e123359fe423f3d7c2383482ef21ac Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Thu, 11 May 2023 15:05:00 +0000 Subject: [PATCH 03/17] chore: rename repo to `sdk-platform-java` (#1676) * chore: rename repo to sdk-platform-java * add instructions in readme --- README.md | 4 ++++ gapic-generator-java-pom-parent/pom.xml | 10 +++++----- gapic-generator-java/DEVELOPMENT.md | 12 ++++++------ gapic-generator-java/pom.xml | 2 +- .../grpc/ServiceClientTestClassComposer.java | 2 +- .../gapic/protoparser/HttpRuleParserTest.java | 2 +- .../src/test/proto/http_rule_parser_testing.proto | 2 +- .../src/main/java/com/google/api/MethodSettings.java | 4 ++-- .../src/main/proto/google/api/client.proto | 2 +- java-core/.repo-metadata.json | 2 +- 10 files changed, 23 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index a0d07b627d..fab565aac1 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=googleapis_gapic-generator-java&metric=coverage)](https://sonarcloud.io/summary/new_code?id=googleapis_gapic-generator-java) +This repository has been renamed to `sdk-platfom-java`. +For developers, please update the repo's URL in repository clones (this is not actually strictly required because redirection works). +For more information, please refer to [rename a repository](https://docs.github.com/en/repositories/creating-and-managing-repositories/renaming-a-repository). + This repository consists of the following modules: - **[gapic-generator-java](./gapic-generator-java/README.md)**: the Protobuf compiler plugin to generate Java code. diff --git a/gapic-generator-java-pom-parent/pom.xml b/gapic-generator-java-pom-parent/pom.xml index 2eaaefa92e..40afa11bdb 100644 --- a/gapic-generator-java-pom-parent/pom.xml +++ b/gapic-generator-java-pom-parent/pom.xml @@ -8,7 +8,7 @@ 2.19.1-SNAPSHOT pom GAPIC Generator Java POM Parent - https://github.com/googleapis/gapic-generator-java + https://github.com/googleapis/sdk-platform-java The top-level parent for all modules in the repository. @@ -50,13 +50,13 @@ - scm:git:git@github.com:googleapis/gapic-generator-java.git - scm:git:git@github.com:googleapis/gapic-generator-java.git - https://github.com/googleapis/gapic-generator-java + scm:git:git@github.com:googleapis/sdk-platform-java.git + scm:git:git@github.com:googleapis/sdk-platform-java.git + https://github.com/googleapis/sdk-platform-java HEAD - https://github.com/googleapis/gapic-generator-java/issues + https://github.com/googleapis/sdk-platform-java/issues GitHub Issues diff --git a/gapic-generator-java/DEVELOPMENT.md b/gapic-generator-java/DEVELOPMENT.md index 8001036264..d46ea2fb29 100644 --- a/gapic-generator-java/DEVELOPMENT.md +++ b/gapic-generator-java/DEVELOPMENT.md @@ -106,15 +106,15 @@ To generate a production GAPIC API: http_archive( name = "gapic_generator_java", - strip_prefix = "gapic-generator-java-%s" % _gapic_generator_java_version, - urls = ["https://github.com/googleapis/gapic-generator-java/archive/v%s.zip" % _gapic_generator_java_version], + strip_prefix = "sdk-platform-java-%s" % _gapic_generator_java_version, + urls = ["https://github.com/googleapis/sdk-platform-java/archive/v%s.zip" % _gapic_generator_java_version], ) - # gax-java is part of gapic-generator-java repository + # gax-java is part of sdk-platform-java repository http_archive( name = "com_google_api_gax_java", - strip_prefix = "gapic-generator-java-%s/gax-java" % _gapic_generator_java_version, - urls = ["https://github.com/googleapis/gapic-generator-java/archive/v%s.zip" % _gapic_generator_java_version], + strip_prefix = "sdk-platform-java-%s/gax-java" % _gapic_generator_java_version, + urls = ["https://github.com/googleapis/sdk-platform-java/archive/v%s.zip" % _gapic_generator_java_version], ) ``` @@ -139,7 +139,7 @@ To generate a production GAPIC API: path = "/absolute/path/to/your/local/gapic-generator-java", ) - # gax-java is part of gapic-generator-java repository + # gax-java is part of sdk-platform-java repository local_repository( name = "com_google_api_gax_java", path = "/absolute/path/to/your/local/gapic-generator-java/gax-java", diff --git a/gapic-generator-java/pom.xml b/gapic-generator-java/pom.xml index c22d1e966b..3212438ec8 100644 --- a/gapic-generator-java/pom.xml +++ b/gapic-generator-java/pom.xml @@ -453,7 +453,7 @@ javax.annotation diff --git a/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/grpc/ServiceClientTestClassComposer.java b/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/grpc/ServiceClientTestClassComposer.java index b43d4a4fc2..b6d1ff3bc3 100644 --- a/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/grpc/ServiceClientTestClassComposer.java +++ b/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/grpc/ServiceClientTestClassComposer.java @@ -162,7 +162,7 @@ protected MethodDefinition createStartStaticServerMethod( varInitExprs.add(serviceToVarInitExprFn.apply(service)); mockServiceVarExprs.add(serviceToVarExprFn.apply(service)); // Careful: Java 8 and 11 make different ordering choices if this set is not explicitly sorted. - // Context: https://github.com/googleapis/gapic-generator-java/pull/750 + // Context: https://github.com/googleapis/sdk-platform-java/pull/750 for (Service mixinService : context.mixinServices().stream() .sorted((s1, s2) -> s2.name().compareTo(s1.name())) diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/protoparser/HttpRuleParserTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/protoparser/HttpRuleParserTest.java index 5269e1d982..30cf4d4b77 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/protoparser/HttpRuleParserTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/protoparser/HttpRuleParserTest.java @@ -137,7 +137,7 @@ public void parseHttpAnnotation_missingFieldFromMessage() { // will then serialize all sub fields to query params. // We need to either traverse all the leaf level fields and exclude field in the generator or pass // the excluded fields to gax-java. Re-enable this test once - // https://github.com/googleapis/gapic-generator-java/issues/1041 is fixed + // https://github.com/googleapis/sdk-platform-java/issues/1041 is fixed public void parseHttpAnnotation_shouldExcludeFieldsFromQueryParamsIfPathParamsAreConfigured() { FileDescriptor fileDescriptor = HttpRuleParserTestingOuterClass.getDescriptor(); ServiceDescriptor serviceDescriptor = fileDescriptor.getServices().get(0); diff --git a/gapic-generator-java/src/test/proto/http_rule_parser_testing.proto b/gapic-generator-java/src/test/proto/http_rule_parser_testing.proto index d9946e2134..9a5b6f0420 100644 --- a/gapic-generator-java/src/test/proto/http_rule_parser_testing.proto +++ b/gapic-generator-java/src/test/proto/http_rule_parser_testing.proto @@ -39,7 +39,7 @@ service HttpRuleParserTesting { }; } - //TODO: Add more test cases once https://github.com/googleapis/gapic-generator-java/issues/1041 is fixed + //TODO: Add more test cases once https://github.com/googleapis/sdk-platform-java/issues/1041 is fixed } enum Continent { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java index 40b1242c37..bbfec42322 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java @@ -206,7 +206,7 @@ public interface LongRunningOrBuilder * long-running operation pattern. * All default values below are from those used in the client library * generators (e.g. - * [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). + * [Java](https://github.com/googleapis/sdk-platform-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). * * * Protobuf type {@code google.api.MethodSettings.LongRunning} @@ -639,7 +639,7 @@ protected Builder newBuilderForType( * long-running operation pattern. * All default values below are from those used in the client library * generators (e.g. - * [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). + * [Java](https://github.com/googleapis/sdk-platform-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). * * * Protobuf type {@code google.api.MethodSettings.LongRunning} diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/client.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/client.proto index 6d01954eee..d542de9e2f 100644 --- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/client.proto +++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/client.proto @@ -307,7 +307,7 @@ message MethodSettings { // long-running operation pattern. // All default values below are from those used in the client library // generators (e.g. - // [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). + // [Java](https://github.com/googleapis/sdk-platform-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). message LongRunning { // Initial delay after which the first poll request will be made. // Default value: 5 seconds. diff --git a/java-core/.repo-metadata.json b/java-core/.repo-metadata.json index 237bfe51ea..4f33b73b97 100644 --- a/java-core/.repo-metadata.json +++ b/java-core/.repo-metadata.json @@ -1,6 +1,6 @@ { "api_shortname": "google-cloud-core", - "client_documentation": "https://github.com/googleapis/gapic-generator-java/tree/main/java-core", + "client_documentation": "https://github.com/googleapis/sdk-platform-java/tree/main/java-core", "name_pretty": "Google Cloud Core", "release_level": "stable", "language": "java", From aa7c8bd4408d05785c746c106cb7e1df3c7061a1 Mon Sep 17 00:00:00 2001 From: Emily Wang Date: Thu, 11 May 2023 13:14:30 -0400 Subject: [PATCH 04/17] test: refactor test-related helpers for gapic-generator-java for inclusion in testlib jar (#1648) This PR refactors and consolidates some testing-related utils under the package com.google.api.generator.test, and creates an attached testlib jar for publish --- gapic-generator-java/pom.xml | 6 +++- .../engine/JavaCodeGeneratorTest.java | 4 +-- .../generator/engine/ast/ArrayExprTest.java | 8 ++--- .../engine/ast/JavaDocCommentTest.java | 2 +- .../writer/ImportWriterVisitorTest.java | 2 +- .../engine/writer/JavaWriterVisitorTest.java | 30 +++++++++---------- .../ClientLibraryPackageInfoComposerTest.java | 10 ++++--- .../gapic/composer/ComposerTest.java | 10 ++++--- .../BatchingDescriptorComposerTest.java | 11 +++---- .../common/RetrySettingsComposerTest.java | 3 +- .../DefaultValueComposerTest.java | 2 +- ...rviceCallableFactoryClassComposerTest.java | 1 + .../GrpcServiceStubClassComposerTest.java | 1 + .../grpc/MockServiceClassComposerTest.java | 1 + .../MockServiceImplClassComposerTest.java | 1 + .../grpc/ServiceClientClassComposerTest.java | 1 + .../ServiceClientTestClassComposerTest.java | 1 + .../ServiceSettingsClassComposerTest.java | 2 +- .../grpc/ServiceStubClassComposerTest.java | 2 +- .../ServiceStubSettingsClassComposerTest.java | 1 + ...rviceCallableFactoryClassComposerTest.java | 14 +++++---- .../GrpcServiceStubClassComposerTest.java | 13 ++++---- ...rviceCallableFactoryClassComposerTest.java | 9 ++++-- ...sonServiceClientTestClassComposerTest.java | 8 +++-- .../HttpJsonServiceStubClassComposerTest.java | 8 +++-- .../ServiceClientClassComposerTest.java | 18 ++++++----- .../ServiceClientTestClassComposerTest.java | 13 ++++---- .../ServiceSettingsClassComposerTest.java | 13 ++++---- .../ServiceStubSettingsClassComposerTest.java | 13 ++++---- .../ResourceNameHelperClassComposerTest.java | 30 +++++++++++-------- ...rviceCallableFactoryClassComposerTest.java | 9 ++++-- .../HttpJsonServiceStubClassComposerTest.java | 13 ++++---- .../ServiceClientTestClassComposerTest.java | 8 +++-- .../ServiceSettingsClassComposerTest.java | 8 +++-- .../ServiceStubSettingsClassComposerTest.java | 8 +++-- .../SampleBodyJavaFormatterTest.java | 2 +- .../samplecode/SampleCodeWriterTest.java | 2 +- .../samplecode/SampleComposerTest.java | 2 +- ...lientCallableMethodSampleComposerTest.java | 2 +- ...ServiceClientHeaderSampleComposerTest.java | 2 +- ...ServiceClientMethodSampleComposerTest.java | 2 +- .../SettingsSampleComposerTest.java | 2 +- .../composer/utils/CommentFormatterTest.java | 2 +- .../generator/gapic/model/RegionTagTest.java | 2 +- .../api/generator/test/framework/Assert.java | 9 +++--- .../{Utils.java => GoldenFileWriter.java} | 2 +- .../protoloader}/GrpcRestTestProtoLoader.java | 3 +- .../protoloader}/GrpcTestProtoLoader.java | 3 +- .../protoloader}/RestTestProtoLoader.java | 3 +- .../protoloader}/TestProtoLoader.java | 2 +- .../utils}/LineFormatter.java | 2 +- .../utils/TestExprBuilder.java} | 4 +-- .../google/api/generator/util/TrieTest.java | 2 +- 53 files changed, 196 insertions(+), 136 deletions(-) rename gapic-generator-java/src/test/java/com/google/api/generator/test/framework/{Utils.java => GoldenFileWriter.java} (98%) rename gapic-generator-java/src/test/java/com/google/api/generator/{gapic/composer/grpcrest => test/protoloader}/GrpcRestTestProtoLoader.java (97%) rename gapic-generator-java/src/test/java/com/google/api/generator/{gapic/composer/grpc => test/protoloader}/GrpcTestProtoLoader.java (88%) rename gapic-generator-java/src/test/java/com/google/api/generator/{gapic/composer/rest => test/protoloader}/RestTestProtoLoader.java (97%) rename gapic-generator-java/src/test/java/com/google/api/generator/{gapic/composer/common => test/protoloader}/TestProtoLoader.java (99%) rename gapic-generator-java/src/test/java/com/google/api/generator/{testutils => test/utils}/LineFormatter.java (94%) rename gapic-generator-java/src/test/java/com/google/api/generator/{util/TestUtils.java => test/utils/TestExprBuilder.java} (95%) diff --git a/gapic-generator-java/pom.xml b/gapic-generator-java/pom.xml index 3212438ec8..092c5f8359 100644 --- a/gapic-generator-java/pom.xml +++ b/gapic-generator-java/pom.xml @@ -306,7 +306,11 @@ test-jar - true + false + testlib + + com/google/api/generator/test/** + diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/engine/JavaCodeGeneratorTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/engine/JavaCodeGeneratorTest.java index 3bbc0808de..558952ddf1 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/engine/JavaCodeGeneratorTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/engine/JavaCodeGeneratorTest.java @@ -50,7 +50,7 @@ import com.google.api.generator.engine.ast.WhileStatement; import com.google.api.generator.engine.writer.JavaWriterVisitor; import com.google.api.generator.test.framework.Assert; -import com.google.api.generator.test.framework.Utils; +import com.google.api.generator.test.framework.GoldenFileWriter; import java.io.FileWriter; import java.io.IOException; import java.nio.file.Path; @@ -174,7 +174,7 @@ public void validJavaClass() { .build(); JavaWriterVisitor javaWriterVisitor = new JavaWriterVisitor(); libraryServiceStubClass.accept(javaWriterVisitor); - Utils.saveCodegenToFile( + GoldenFileWriter.saveCodegenToFile( this.getClass(), "JavaCodeGeneratorTest.golden", javaWriterVisitor.write()); Path goldenFilePath = Paths.get(GOLDENFILES_DIRECTORY, "JavaCodeGeneratorTest.golden"); Assert.assertCodeEquals(goldenFilePath, javaWriterVisitor.write()); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/engine/ast/ArrayExprTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/engine/ast/ArrayExprTest.java index 723c60ad4f..a5f47e27d7 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/engine/ast/ArrayExprTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/engine/ast/ArrayExprTest.java @@ -17,7 +17,7 @@ import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertThrows; -import com.google.api.generator.util.TestUtils; +import com.google.api.generator.test.utils.TestExprBuilder; import org.junit.Test; public class ArrayExprTest { @@ -27,9 +27,9 @@ public void validAnonymousArray_sametype() { ArrayExpr.Builder exprBuilder = ArrayExpr.builder() .setType(TypeNode.createArrayTypeOf(TypeNode.STRING)) - .addExpr(TestUtils.generateStringValueExpr("test1")) - .addExpr(TestUtils.generateStringValueExpr("test2")) - .addExpr(TestUtils.generateStringValueExpr("test3")) + .addExpr(TestExprBuilder.generateStringValueExpr("test1")) + .addExpr(TestExprBuilder.generateStringValueExpr("test2")) + .addExpr(TestExprBuilder.generateStringValueExpr("test3")) .addExpr( ValueExpr.withValue( PrimitiveValue.builder().setValue("1").setType(TypeNode.INT).build())); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/engine/ast/JavaDocCommentTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/engine/ast/JavaDocCommentTest.java index ebc0bfa43b..9c89e3ee44 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/engine/ast/JavaDocCommentTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/engine/ast/JavaDocCommentTest.java @@ -16,7 +16,7 @@ import static org.junit.Assert.assertEquals; -import com.google.api.generator.testutils.LineFormatter; +import com.google.api.generator.test.utils.LineFormatter; import java.util.Arrays; import java.util.List; import org.junit.Test; diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/engine/writer/ImportWriterVisitorTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/engine/writer/ImportWriterVisitorTest.java index 26bc5a015f..d0afaa9042 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/engine/writer/ImportWriterVisitorTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/engine/writer/ImportWriterVisitorTest.java @@ -55,7 +55,7 @@ import com.google.api.generator.engine.ast.VaporReference; import com.google.api.generator.engine.ast.Variable; import com.google.api.generator.engine.ast.VariableExpr; -import com.google.api.generator.testutils.LineFormatter; +import com.google.api.generator.test.utils.LineFormatter; import com.google.common.base.Function; import com.google.common.base.Strings; import java.io.File; diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/engine/writer/JavaWriterVisitorTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/engine/writer/JavaWriterVisitorTest.java index 9852b44a65..fa1301f49a 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/engine/writer/JavaWriterVisitorTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/engine/writer/JavaWriterVisitorTest.java @@ -71,8 +71,8 @@ import com.google.api.generator.engine.ast.Variable; import com.google.api.generator.engine.ast.VariableExpr; import com.google.api.generator.engine.ast.WhileStatement; -import com.google.api.generator.testutils.LineFormatter; -import com.google.api.generator.util.TestUtils; +import com.google.api.generator.test.utils.LineFormatter; +import com.google.api.generator.test.utils.TestExprBuilder; import com.google.common.base.Function; import java.io.IOException; import java.util.Arrays; @@ -321,8 +321,8 @@ public void writeAnnotation_withArrayExpr() { .setDescription( ArrayExpr.builder() .setType(TypeNode.createArrayTypeOf(TypeNode.CLASS_OBJECT)) - .addExpr(TestUtils.generateClassValueExpr("Class1")) - .addExpr(TestUtils.generateClassValueExpr("Class2")) + .addExpr(TestExprBuilder.generateClassValueExpr("Class1")) + .addExpr(TestExprBuilder.generateClassValueExpr("Class2")) .build()) .build(); annotation.accept(writerVisitor); @@ -337,8 +337,8 @@ public void writeAnnotation_withArrayExprAssignment() { ArrayExpr arrayExpr = ArrayExpr.builder() .setType(TypeNode.createArrayTypeOf(TypeNode.CLASS_OBJECT)) - .addExpr(TestUtils.generateClassValueExpr("Class1")) - .addExpr(TestUtils.generateClassValueExpr("Class2")) + .addExpr(TestExprBuilder.generateClassValueExpr("Class1")) + .addExpr(TestExprBuilder.generateClassValueExpr("Class2")) .build(); AssignmentExpr clazz1AssignExpr = AssignmentExpr.builder() @@ -391,9 +391,9 @@ public void writeArrayExpr_addManyStrExpr() { ArrayExpr expr = ArrayExpr.builder() .setType(TypeNode.createArrayTypeOf(TypeNode.STRING)) - .addExpr(TestUtils.generateStringValueExpr("test1")) - .addExpr(TestUtils.generateStringValueExpr("test2")) - .addExpr(TestUtils.generateStringValueExpr("test3")) + .addExpr(TestExprBuilder.generateStringValueExpr("test1")) + .addExpr(TestExprBuilder.generateStringValueExpr("test2")) + .addExpr(TestExprBuilder.generateStringValueExpr("test3")) .build(); expr.accept(writerVisitor); assertEquals("{\"test1\", \"test2\", \"test3\"}", writerVisitor.write()); @@ -404,9 +404,9 @@ public void writeArrayExpr_addManyClassExpr() { ArrayExpr expr = ArrayExpr.builder() .setType(TypeNode.createArrayTypeOf(TypeNode.CLASS_OBJECT)) - .addExpr(TestUtils.generateClassValueExpr("Class1")) - .addExpr(TestUtils.generateClassValueExpr("Class2")) - .addExpr(TestUtils.generateClassValueExpr("Class3")) + .addExpr(TestExprBuilder.generateClassValueExpr("Class1")) + .addExpr(TestExprBuilder.generateClassValueExpr("Class2")) + .addExpr(TestExprBuilder.generateClassValueExpr("Class3")) .build(); expr.accept(writerVisitor); assertEquals("{Class1.class, Class2.class, Class3.class}", writerVisitor.write()); @@ -423,7 +423,7 @@ public void writeArrayExpr_mixedVariablesStaticAndNormalReference() { ArrayExpr.builder() .setType(TypeNode.createArrayTypeOf(TypeNode.CLASS_OBJECT)) .addExpr(clazzVar) - .addExpr(TestUtils.generateClassValueExpr("Class2")) + .addExpr(TestExprBuilder.generateClassValueExpr("Class2")) .build(); expr.accept(writerVisitor); assertEquals("{clazz1Var, Class2.class}", writerVisitor.write()); @@ -443,8 +443,8 @@ public void writeArrayExpr_assignemntWithDeclaration() { ArrayExpr expr = ArrayExpr.builder() .setType(TypeNode.createArrayTypeOf(TypeNode.STRING)) - .addExpr(TestUtils.generateStringValueExpr("str1")) - .addExpr(TestUtils.generateStringValueExpr("str2")) + .addExpr(TestExprBuilder.generateStringValueExpr("str1")) + .addExpr(TestExprBuilder.generateStringValueExpr("str2")) .build(); AssignmentExpr assignmentExpr = AssignmentExpr.builder().setVariableExpr(varExpr).setValueExpr(expr).build(); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/ClientLibraryPackageInfoComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/ClientLibraryPackageInfoComposerTest.java index f827bfc63e..92ee331448 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/ClientLibraryPackageInfoComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/ClientLibraryPackageInfoComposerTest.java @@ -15,11 +15,11 @@ package com.google.api.generator.gapic.composer; import com.google.api.generator.engine.writer.JavaWriterVisitor; -import com.google.api.generator.gapic.composer.common.TestProtoLoader; import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.GapicPackageInfo; import com.google.api.generator.test.framework.Assert; -import com.google.api.generator.test.framework.Utils; +import com.google.api.generator.test.framework.GoldenFileWriter; +import com.google.api.generator.test.protoloader.TestProtoLoader; import java.nio.file.Path; import java.nio.file.Paths; import org.junit.Test; @@ -32,9 +32,11 @@ public void composePackageInfo_showcase() { GapicPackageInfo packageInfo = ClientLibraryPackageInfoComposer.generatePackageInfo(context); JavaWriterVisitor visitor = new JavaWriterVisitor(); packageInfo.packageInfo().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "ShowcaseWithEchoPackageInfo.golden", visitor.write()); + GoldenFileWriter.saveCodegenToFile( + this.getClass(), "ShowcaseWithEchoPackageInfo.golden", visitor.write()); Path goldenFilePath = - Paths.get(Utils.getGoldenDir(this.getClass()), "ShowcaseWithEchoPackageInfo.golden"); + Paths.get( + GoldenFileWriter.getGoldenDir(this.getClass()), "ShowcaseWithEchoPackageInfo.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/ComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/ComposerTest.java index d99325fbe8..bc99864bdd 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/ComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/ComposerTest.java @@ -22,7 +22,6 @@ import com.google.api.generator.engine.writer.JavaWriterVisitor; import com.google.api.generator.gapic.composer.comment.CommentComposer; import com.google.api.generator.gapic.composer.grpc.GrpcServiceCallableFactoryClassComposer; -import com.google.api.generator.gapic.composer.grpc.GrpcTestProtoLoader; import com.google.api.generator.gapic.model.GapicClass; import com.google.api.generator.gapic.model.GapicClass.Kind; import com.google.api.generator.gapic.model.GapicContext; @@ -30,7 +29,8 @@ import com.google.api.generator.gapic.model.Sample; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.test.framework.Assert; -import com.google.api.generator.test.framework.Utils; +import com.google.api.generator.test.framework.GoldenFileWriter; +import com.google.api.generator.test.protoloader.GrpcTestProtoLoader; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Arrays; @@ -65,9 +65,11 @@ public void gapicClass_addApacheLicense() { Composer.addApacheLicense(Arrays.asList(GapicClass.create(Kind.TEST, classDef))); JavaWriterVisitor visitor = new JavaWriterVisitor(); gapicClassWithHeaderList.get(0).classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "ComposerPostProcOnFooBar.golden", visitor.write()); + GoldenFileWriter.saveCodegenToFile( + this.getClass(), "ComposerPostProcOnFooBar.golden", visitor.write()); Path goldenFilePath = - Paths.get(Utils.getGoldenDir(this.getClass()), "ComposerPostProcOnFooBar.golden"); + Paths.get( + GoldenFileWriter.getGoldenDir(this.getClass()), "ComposerPostProcOnFooBar.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/common/BatchingDescriptorComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/common/BatchingDescriptorComposerTest.java index a3cae5106c..e03ba5c641 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/common/BatchingDescriptorComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/common/BatchingDescriptorComposerTest.java @@ -29,7 +29,8 @@ import com.google.api.generator.gapic.protoparser.Parser; import com.google.api.generator.gapic.protoparser.ServiceConfigParser; import com.google.api.generator.test.framework.Assert; -import com.google.api.generator.test.framework.Utils; +import com.google.api.generator.test.framework.GoldenFileWriter; +import com.google.api.generator.test.protoloader.TestProtoLoader; import com.google.logging.v2.LogEntryProto; import com.google.logging.v2.LoggingConfigProto; import com.google.logging.v2.LoggingMetricsProto; @@ -104,11 +105,11 @@ public void batchingDescriptor_hasSubresponseField() { method, batchingSetting, messageTypes); batchingDescriptorExpr.accept(writerVisitor); - Utils.saveCodegenToFile( + GoldenFileWriter.saveCodegenToFile( this.getClass(), "BatchingDescriptorComposerTestSubresponse.golden", writerVisitor.write()); Path goldenFilePath = Paths.get( - Utils.getGoldenDir(this.getClass()), + GoldenFileWriter.getGoldenDir(this.getClass()), "BatchingDescriptorComposerTestSubresponse.golden"); Assert.assertCodeEquals(goldenFilePath, writerVisitor.write()); } @@ -166,13 +167,13 @@ public void batchingDescriptor_noSubresponseField() { method, batchingSetting, messageTypes); batchingDescriptorExpr.accept(writerVisitor); - Utils.saveCodegenToFile( + GoldenFileWriter.saveCodegenToFile( this.getClass(), "BatchingDescriptorComposerTestNoSubresponse.golden", writerVisitor.write()); Path goldenFilePath = Paths.get( - Utils.getGoldenDir(this.getClass()), + GoldenFileWriter.getGoldenDir(this.getClass()), "BatchingDescriptorComposerTestNoSubresponse.golden"); Assert.assertCodeEquals(goldenFilePath, writerVisitor.write()); } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposerTest.java index 598f261f8a..0d567f409d 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposerTest.java @@ -38,7 +38,8 @@ import com.google.api.generator.gapic.protoparser.BatchingSettingsConfigParser; import com.google.api.generator.gapic.protoparser.Parser; import com.google.api.generator.gapic.protoparser.ServiceConfigParser; -import com.google.api.generator.testutils.LineFormatter; +import com.google.api.generator.test.protoloader.TestProtoLoader; +import com.google.api.generator.test.utils.LineFormatter; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.protobuf.Descriptors.FileDescriptor; diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/defaultvalue/DefaultValueComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/defaultvalue/DefaultValueComposerTest.java index 298d6e27d8..e77c348498 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/defaultvalue/DefaultValueComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/defaultvalue/DefaultValueComposerTest.java @@ -26,7 +26,7 @@ import com.google.api.generator.gapic.model.Message; import com.google.api.generator.gapic.model.ResourceName; import com.google.api.generator.gapic.protoparser.Parser; -import com.google.api.generator.testutils.LineFormatter; +import com.google.api.generator.test.utils.LineFormatter; import com.google.protobuf.ByteString; import com.google.protobuf.Descriptors.FileDescriptor; import com.google.protobuf.StructProto; diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceCallableFactoryClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceCallableFactoryClassComposerTest.java index 7269d61140..66e00a0da9 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceCallableFactoryClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceCallableFactoryClassComposerTest.java @@ -18,6 +18,7 @@ import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.test.framework.Assert; +import com.google.api.generator.test.protoloader.GrpcTestProtoLoader; import org.junit.Test; public class GrpcServiceCallableFactoryClassComposerTest { diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceStubClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceStubClassComposerTest.java index f41143acbe..efe0ce8222 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceStubClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceStubClassComposerTest.java @@ -18,6 +18,7 @@ import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.test.framework.Assert; +import com.google.api.generator.test.protoloader.GrpcTestProtoLoader; import org.junit.Test; public class GrpcServiceStubClassComposerTest { diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceClassComposerTest.java index 7762c6a4df..7ef8dcf97e 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceClassComposerTest.java @@ -18,6 +18,7 @@ import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.test.framework.Assert; +import com.google.api.generator.test.protoloader.GrpcTestProtoLoader; import java.util.Arrays; import java.util.Collection; import org.junit.Test; diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceImplClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceImplClassComposerTest.java index aa062279ec..f377c26e3c 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceImplClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceImplClassComposerTest.java @@ -18,6 +18,7 @@ import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.test.framework.Assert; +import com.google.api.generator.test.protoloader.GrpcTestProtoLoader; import java.util.Arrays; import java.util.Collection; import org.junit.Test; diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientClassComposerTest.java index c169c88eb3..8da1e5015c 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientClassComposerTest.java @@ -18,6 +18,7 @@ import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.test.framework.Assert; +import com.google.api.generator.test.protoloader.GrpcTestProtoLoader; import java.util.*; import org.junit.Test; import org.junit.runner.RunWith; diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientTestClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientTestClassComposerTest.java index 0eca4e060d..fc1cb2ee55 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientTestClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientTestClassComposerTest.java @@ -18,6 +18,7 @@ import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.test.framework.Assert; +import com.google.api.generator.test.protoloader.GrpcTestProtoLoader; import java.util.Arrays; import java.util.Collection; import org.junit.Test; diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceSettingsClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceSettingsClassComposerTest.java index 1d245a7490..9a9f4fb2e1 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceSettingsClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceSettingsClassComposerTest.java @@ -14,11 +14,11 @@ package com.google.api.generator.gapic.composer.grpc; -import com.google.api.generator.gapic.composer.common.TestProtoLoader; import com.google.api.generator.gapic.model.GapicClass; import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.test.framework.Assert; +import com.google.api.generator.test.protoloader.TestProtoLoader; import java.util.Arrays; import java.util.Collection; import org.junit.Test; diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubClassComposerTest.java index 730136c083..387dba166f 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubClassComposerTest.java @@ -14,11 +14,11 @@ package com.google.api.generator.gapic.composer.grpc; -import com.google.api.generator.gapic.composer.common.TestProtoLoader; import com.google.api.generator.gapic.model.GapicClass; import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.test.framework.Assert; +import com.google.api.generator.test.protoloader.TestProtoLoader; import java.util.Arrays; import java.util.Collection; import org.junit.Test; diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubSettingsClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubSettingsClassComposerTest.java index 747b19b8e0..d552342d67 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubSettingsClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubSettingsClassComposerTest.java @@ -18,6 +18,7 @@ import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.test.framework.Assert; +import com.google.api.generator.test.protoloader.GrpcTestProtoLoader; import java.util.Arrays; import java.util.Collection; import org.junit.Test; diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/GrpcServiceCallableFactoryClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/GrpcServiceCallableFactoryClassComposerTest.java index 844eea2e6e..3896549231 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/GrpcServiceCallableFactoryClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/GrpcServiceCallableFactoryClassComposerTest.java @@ -20,7 +20,8 @@ import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.test.framework.Assert; -import com.google.api.generator.test.framework.Utils; +import com.google.api.generator.test.framework.GoldenFileWriter; +import com.google.api.generator.test.protoloader.GrpcRestTestProtoLoader; import java.nio.file.Path; import java.nio.file.Paths; import org.junit.Test; @@ -35,9 +36,10 @@ public void generateServiceClasses() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "GrpcEchoCallableFactory.golden", visitor.write()); + GoldenFileWriter.saveCodegenToFile( + this.getClass(), "GrpcEchoCallableFactory.golden", visitor.write()); Path goldenFilePath = - Paths.get(Utils.getGoldenDir(this.getClass()), "GrpcEchoCallableFactory.golden"); + Paths.get(GoldenFileWriter.getGoldenDir(this.getClass()), "GrpcEchoCallableFactory.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } @@ -50,9 +52,11 @@ public void generateServiceClassesWicked() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "GrpcWickedCallableFactory.golden", visitor.write()); + GoldenFileWriter.saveCodegenToFile( + this.getClass(), "GrpcWickedCallableFactory.golden", visitor.write()); Path goldenFilePath = - Paths.get(Utils.getGoldenDir(this.getClass()), "GrpcWickedCallableFactory.golden"); + Paths.get( + GoldenFileWriter.getGoldenDir(this.getClass()), "GrpcWickedCallableFactory.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/GrpcServiceStubClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/GrpcServiceStubClassComposerTest.java index f96a5efc72..5056de88ee 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/GrpcServiceStubClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/GrpcServiceStubClassComposerTest.java @@ -20,7 +20,8 @@ import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.test.framework.Assert; -import com.google.api.generator.test.framework.Utils; +import com.google.api.generator.test.framework.GoldenFileWriter; +import com.google.api.generator.test.protoloader.GrpcRestTestProtoLoader; import java.nio.file.Path; import java.nio.file.Paths; import org.junit.Test; @@ -34,8 +35,9 @@ public void generateServiceClasses() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "GrpcEchoStub.golden", visitor.write()); - Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "GrpcEchoStub.golden"); + GoldenFileWriter.saveCodegenToFile(this.getClass(), "GrpcEchoStub.golden", visitor.write()); + Path goldenFilePath = + Paths.get(GoldenFileWriter.getGoldenDir(this.getClass()), "GrpcEchoStub.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } @@ -48,8 +50,9 @@ public void generateServiceClassesWicked() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "GrpcWickedStub.golden", visitor.write()); - Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "GrpcWickedStub.golden"); + GoldenFileWriter.saveCodegenToFile(this.getClass(), "GrpcWickedStub.golden", visitor.write()); + Path goldenFilePath = + Paths.get(GoldenFileWriter.getGoldenDir(this.getClass()), "GrpcWickedStub.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/HttpJsonServiceCallableFactoryClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/HttpJsonServiceCallableFactoryClassComposerTest.java index 6c287236df..2ab7a72170 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/HttpJsonServiceCallableFactoryClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/HttpJsonServiceCallableFactoryClassComposerTest.java @@ -22,7 +22,8 @@ import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.test.framework.Assert; -import com.google.api.generator.test.framework.Utils; +import com.google.api.generator.test.framework.GoldenFileWriter; +import com.google.api.generator.test.protoloader.GrpcRestTestProtoLoader; import java.nio.file.Path; import java.nio.file.Paths; import org.junit.Test; @@ -37,9 +38,11 @@ public void generateServiceClasses() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "HttpJsonEchoCallableFactory.golden", visitor.write()); + GoldenFileWriter.saveCodegenToFile( + this.getClass(), "HttpJsonEchoCallableFactory.golden", visitor.write()); Path goldenFilePath = - Paths.get(Utils.getGoldenDir(this.getClass()), "HttpJsonEchoCallableFactory.golden"); + Paths.get( + GoldenFileWriter.getGoldenDir(this.getClass()), "HttpJsonEchoCallableFactory.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/HttpJsonServiceClientTestClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/HttpJsonServiceClientTestClassComposerTest.java index 82f4e44e0c..a2dfe0d98a 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/HttpJsonServiceClientTestClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/HttpJsonServiceClientTestClassComposerTest.java @@ -21,7 +21,8 @@ import com.google.api.generator.gapic.model.GapicClass; import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.Service; -import com.google.api.generator.test.framework.Utils; +import com.google.api.generator.test.framework.GoldenFileWriter; +import com.google.api.generator.test.protoloader.GrpcRestTestProtoLoader; import java.nio.file.Path; import java.nio.file.Paths; import org.junit.Test; @@ -36,9 +37,10 @@ public void generateServiceClasses() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "EchoClientHttpJsonTest.golden", visitor.write()); + GoldenFileWriter.saveCodegenToFile( + this.getClass(), "EchoClientHttpJsonTest.golden", visitor.write()); Path goldenFilePath = - Paths.get(Utils.getGoldenDir(this.getClass()), "EchoClientHttpJsonTest.golden"); + Paths.get(GoldenFileWriter.getGoldenDir(this.getClass()), "EchoClientHttpJsonTest.golden"); assertCodeEquals(goldenFilePath, visitor.write()); } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/HttpJsonServiceStubClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/HttpJsonServiceStubClassComposerTest.java index 6bd960d91b..7a497ec3ac 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/HttpJsonServiceStubClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/HttpJsonServiceStubClassComposerTest.java @@ -21,7 +21,8 @@ import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.test.framework.Assert; -import com.google.api.generator.test.framework.Utils; +import com.google.api.generator.test.framework.GoldenFileWriter; +import com.google.api.generator.test.protoloader.GrpcRestTestProtoLoader; import java.nio.file.Path; import java.nio.file.Paths; import org.junit.Test; @@ -36,8 +37,9 @@ public void generateServiceClasses() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "HttpJsonEchoStub.golden", visitor.write()); - Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "HttpJsonEchoStub.golden"); + GoldenFileWriter.saveCodegenToFile(this.getClass(), "HttpJsonEchoStub.golden", visitor.write()); + Path goldenFilePath = + Paths.get(GoldenFileWriter.getGoldenDir(this.getClass()), "HttpJsonEchoStub.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/ServiceClientClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/ServiceClientClassComposerTest.java index ded1a19112..66e88d87af 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/ServiceClientClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/ServiceClientClassComposerTest.java @@ -19,7 +19,8 @@ import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.test.framework.Assert; -import com.google.api.generator.test.framework.Utils; +import com.google.api.generator.test.framework.GoldenFileWriter; +import com.google.api.generator.test.protoloader.GrpcRestTestProtoLoader; import java.nio.file.Path; import java.nio.file.Paths; import org.junit.Test; @@ -33,8 +34,9 @@ public void generateServiceClasses() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "EchoClient.golden", visitor.write()); - Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "EchoClient.golden"); + GoldenFileWriter.saveCodegenToFile(this.getClass(), "EchoClient.golden", visitor.write()); + Path goldenFilePath = + Paths.get(GoldenFileWriter.getGoldenDir(this.getClass()), "EchoClient.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } @@ -46,8 +48,9 @@ public void generateServiceClassesEmpty() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "EchoEmpty.golden", visitor.write()); - Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "EchoEmpty.golden"); + GoldenFileWriter.saveCodegenToFile(this.getClass(), "EchoEmpty.golden", visitor.write()); + Path goldenFilePath = + Paths.get(GoldenFileWriter.getGoldenDir(this.getClass()), "EchoEmpty.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } @@ -59,8 +62,9 @@ public void generateServiceClassesWicked() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "WickedClient.golden", visitor.write()); - Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "WickedClient.golden"); + GoldenFileWriter.saveCodegenToFile(this.getClass(), "WickedClient.golden", visitor.write()); + Path goldenFilePath = + Paths.get(GoldenFileWriter.getGoldenDir(this.getClass()), "WickedClient.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/ServiceClientTestClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/ServiceClientTestClassComposerTest.java index 521c15bdbd..1a1d463bce 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/ServiceClientTestClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/ServiceClientTestClassComposerTest.java @@ -22,7 +22,8 @@ import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.test.framework.Assert; -import com.google.api.generator.test.framework.Utils; +import com.google.api.generator.test.framework.GoldenFileWriter; +import com.google.api.generator.test.protoloader.GrpcRestTestProtoLoader; import java.nio.file.Path; import java.nio.file.Paths; import org.junit.Test; @@ -37,8 +38,9 @@ public void generateServiceClasses() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "EchoClientTest.golden", visitor.write()); - Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "EchoClientTest.golden"); + GoldenFileWriter.saveCodegenToFile(this.getClass(), "EchoClientTest.golden", visitor.write()); + Path goldenFilePath = + Paths.get(GoldenFileWriter.getGoldenDir(this.getClass()), "EchoClientTest.golden"); assertCodeEquals(goldenFilePath, visitor.write()); } @@ -51,8 +53,9 @@ public void generateServiceClassesWicked() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "WickedClientTest.golden", visitor.write()); - Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "WickedClientTest.golden"); + GoldenFileWriter.saveCodegenToFile(this.getClass(), "WickedClientTest.golden", visitor.write()); + Path goldenFilePath = + Paths.get(GoldenFileWriter.getGoldenDir(this.getClass()), "WickedClientTest.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/ServiceSettingsClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/ServiceSettingsClassComposerTest.java index 4b5dc73f81..3d9b7bf8f0 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/ServiceSettingsClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/ServiceSettingsClassComposerTest.java @@ -19,7 +19,8 @@ import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.test.framework.Assert; -import com.google.api.generator.test.framework.Utils; +import com.google.api.generator.test.framework.GoldenFileWriter; +import com.google.api.generator.test.protoloader.GrpcRestTestProtoLoader; import java.nio.file.Path; import java.nio.file.Paths; import org.junit.Test; @@ -33,8 +34,9 @@ public void generateServiceClasses() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "EchoSettings.golden", visitor.write()); - Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "EchoSettings.golden"); + GoldenFileWriter.saveCodegenToFile(this.getClass(), "EchoSettings.golden", visitor.write()); + Path goldenFilePath = + Paths.get(GoldenFileWriter.getGoldenDir(this.getClass()), "EchoSettings.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } @@ -47,8 +49,9 @@ public void generateServiceClassesWicked() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "WickedSettings.golden", visitor.write()); - Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "WickedSettings.golden"); + GoldenFileWriter.saveCodegenToFile(this.getClass(), "WickedSettings.golden", visitor.write()); + Path goldenFilePath = + Paths.get(GoldenFileWriter.getGoldenDir(this.getClass()), "WickedSettings.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/ServiceStubSettingsClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/ServiceStubSettingsClassComposerTest.java index 3348fd3d67..388fa54648 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/ServiceStubSettingsClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/ServiceStubSettingsClassComposerTest.java @@ -19,7 +19,8 @@ import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.test.framework.Assert; -import com.google.api.generator.test.framework.Utils; +import com.google.api.generator.test.framework.GoldenFileWriter; +import com.google.api.generator.test.protoloader.GrpcRestTestProtoLoader; import java.nio.file.Path; import java.nio.file.Paths; import org.junit.Test; @@ -34,8 +35,9 @@ public void generateServiceClasses() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "EchoStubSettings.golden", visitor.write()); - Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "EchoStubSettings.golden"); + GoldenFileWriter.saveCodegenToFile(this.getClass(), "EchoStubSettings.golden", visitor.write()); + Path goldenFilePath = + Paths.get(GoldenFileWriter.getGoldenDir(this.getClass()), "EchoStubSettings.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } @@ -48,9 +50,10 @@ public void generateServiceClassesWicked() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "WickedStubSettings.golden", visitor.write()); + GoldenFileWriter.saveCodegenToFile( + this.getClass(), "WickedStubSettings.golden", visitor.write()); Path goldenFilePath = - Paths.get(Utils.getGoldenDir(this.getClass()), "WickedStubSettings.golden"); + Paths.get(GoldenFileWriter.getGoldenDir(this.getClass()), "WickedStubSettings.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/ResourceNameHelperClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/ResourceNameHelperClassComposerTest.java index c54218a52e..f1441f5f78 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/ResourceNameHelperClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/ResourceNameHelperClassComposerTest.java @@ -18,14 +18,14 @@ import static org.junit.Assert.assertEquals; import com.google.api.generator.engine.writer.JavaWriterVisitor; -import com.google.api.generator.gapic.composer.common.TestProtoLoader; import com.google.api.generator.gapic.model.GapicClass; import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.Message; import com.google.api.generator.gapic.model.ResourceName; import com.google.api.generator.gapic.protoparser.Parser; import com.google.api.generator.test.framework.Assert; -import com.google.api.generator.test.framework.Utils; +import com.google.api.generator.test.framework.GoldenFileWriter; +import com.google.api.generator.test.protoloader.TestProtoLoader; import com.google.logging.v2.LogEntryProto; import com.google.logging.v2.LoggingConfigProto; import com.google.logging.v2.LoggingMetricsProto; @@ -107,8 +107,9 @@ public void generateResourceNameClass_echoFoobarMultiplePatterns() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "FoobarName.golden", visitor.write()); - Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "FoobarName.golden"); + GoldenFileWriter.saveCodegenToFile(this.getClass(), "FoobarName.golden", visitor.write()); + Path goldenFilePath = + Paths.get(GoldenFileWriter.getGoldenDir(this.getClass()), "FoobarName.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } @@ -151,9 +152,11 @@ public void generateResourceNameClass_loggingOnePatternMultipleVariables() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "BillingAccountLocationName.golden", visitor.write()); + GoldenFileWriter.saveCodegenToFile( + this.getClass(), "BillingAccountLocationName.golden", visitor.write()); Path goldenFilePath = - Paths.get(Utils.getGoldenDir(this.getClass()), "BillingAccountLocationName.golden"); + Paths.get( + GoldenFileWriter.getGoldenDir(this.getClass()), "BillingAccountLocationName.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } @@ -178,8 +181,9 @@ public void generateResourceNameClass_testingSessionOnePattern() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "SessionName.golden", visitor.write()); - Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "SessionName.golden"); + GoldenFileWriter.saveCodegenToFile(this.getClass(), "SessionName.golden", visitor.write()); + Path goldenFilePath = + Paths.get(GoldenFileWriter.getGoldenDir(this.getClass()), "SessionName.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } @@ -204,8 +208,9 @@ public void generateResourceNameClass_testingBlueprintPatternWithNonSlashSeparat JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "TestName.golden", visitor.write()); - Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "TestName.golden"); + GoldenFileWriter.saveCodegenToFile(this.getClass(), "TestName.golden", visitor.write()); + Path goldenFilePath = + Paths.get(GoldenFileWriter.getGoldenDir(this.getClass()), "TestName.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } @@ -228,8 +233,9 @@ public void generateResourceNameClass_childSingleton() { ResourceNameHelperClassComposer.instance().generate(agentResname, irrelevantContext); JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "AgentName.golden", visitor.write()); - Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "AgentName.golden"); + GoldenFileWriter.saveCodegenToFile(this.getClass(), "AgentName.golden", visitor.write()); + Path goldenFilePath = + Paths.get(GoldenFileWriter.getGoldenDir(this.getClass()), "AgentName.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/HttpJsonServiceCallableFactoryClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/HttpJsonServiceCallableFactoryClassComposerTest.java index 2207e3d7d1..a38773eed8 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/HttpJsonServiceCallableFactoryClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/HttpJsonServiceCallableFactoryClassComposerTest.java @@ -19,7 +19,8 @@ import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.test.framework.Assert; -import com.google.api.generator.test.framework.Utils; +import com.google.api.generator.test.framework.GoldenFileWriter; +import com.google.api.generator.test.protoloader.RestTestProtoLoader; import java.nio.file.Path; import java.nio.file.Paths; import org.junit.Test; @@ -34,10 +35,12 @@ public void generateServiceClasses() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile( + GoldenFileWriter.saveCodegenToFile( this.getClass(), "HttpJsonComplianceCallableFactory.golden", visitor.write()); Path goldenFilePath = - Paths.get(Utils.getGoldenDir(this.getClass()), "HttpJsonComplianceCallableFactory.golden"); + Paths.get( + GoldenFileWriter.getGoldenDir(this.getClass()), + "HttpJsonComplianceCallableFactory.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/HttpJsonServiceStubClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/HttpJsonServiceStubClassComposerTest.java index 9892b251f7..a99d23a7c6 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/HttpJsonServiceStubClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/HttpJsonServiceStubClassComposerTest.java @@ -27,7 +27,8 @@ import com.google.api.generator.gapic.model.HttpBindings.HttpBinding; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.test.framework.Assert; -import com.google.api.generator.test.framework.Utils; +import com.google.api.generator.test.framework.GoldenFileWriter; +import com.google.api.generator.test.protoloader.RestTestProtoLoader; import com.google.common.collect.ImmutableList; import com.google.common.truth.Truth; import java.nio.file.Path; @@ -54,9 +55,10 @@ public void generateComplianceServiceClasses() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "HttpJsonComplianceStub.golden", visitor.write()); + GoldenFileWriter.saveCodegenToFile( + this.getClass(), "HttpJsonComplianceStub.golden", visitor.write()); Path goldenFilePath = - Paths.get(Utils.getGoldenDir(this.getClass()), "HttpJsonComplianceStub.golden"); + Paths.get(GoldenFileWriter.getGoldenDir(this.getClass()), "HttpJsonComplianceStub.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } @@ -68,8 +70,9 @@ public void generateEchoServiceClasses() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "HttpJsonEchoStub.golden", visitor.write()); - Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "HttpJsonEchoStub.golden"); + GoldenFileWriter.saveCodegenToFile(this.getClass(), "HttpJsonEchoStub.golden", visitor.write()); + Path goldenFilePath = + Paths.get(GoldenFileWriter.getGoldenDir(this.getClass()), "HttpJsonEchoStub.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/ServiceClientTestClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/ServiceClientTestClassComposerTest.java index 55ca4c5f57..43e26e1f6e 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/ServiceClientTestClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/ServiceClientTestClassComposerTest.java @@ -20,7 +20,8 @@ import com.google.api.generator.gapic.model.GapicClass; import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.Service; -import com.google.api.generator.test.framework.Utils; +import com.google.api.generator.test.framework.GoldenFileWriter; +import com.google.api.generator.test.protoloader.RestTestProtoLoader; import java.nio.file.Path; import java.nio.file.Paths; import org.junit.Test; @@ -35,9 +36,10 @@ public void generateServiceClasses() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "ComplianceClientTest.golden", visitor.write()); + GoldenFileWriter.saveCodegenToFile( + this.getClass(), "ComplianceClientTest.golden", visitor.write()); Path goldenFilePath = - Paths.get(Utils.getGoldenDir(this.getClass()), "ComplianceClientTest.golden"); + Paths.get(GoldenFileWriter.getGoldenDir(this.getClass()), "ComplianceClientTest.golden"); assertCodeEquals(goldenFilePath, visitor.write()); } } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/ServiceSettingsClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/ServiceSettingsClassComposerTest.java index 5631b00607..4304e80f7c 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/ServiceSettingsClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/ServiceSettingsClassComposerTest.java @@ -19,7 +19,8 @@ import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.test.framework.Assert; -import com.google.api.generator.test.framework.Utils; +import com.google.api.generator.test.framework.GoldenFileWriter; +import com.google.api.generator.test.protoloader.RestTestProtoLoader; import java.nio.file.Path; import java.nio.file.Paths; import org.junit.Test; @@ -33,9 +34,10 @@ public void generateServiceClasses() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "ComplianceSettings.golden", visitor.write()); + GoldenFileWriter.saveCodegenToFile( + this.getClass(), "ComplianceSettings.golden", visitor.write()); Path goldenFilePath = - Paths.get(Utils.getGoldenDir(this.getClass()), "ComplianceSettings.golden"); + Paths.get(GoldenFileWriter.getGoldenDir(this.getClass()), "ComplianceSettings.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/ServiceStubSettingsClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/ServiceStubSettingsClassComposerTest.java index 309467cd2d..1869a893fe 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/ServiceStubSettingsClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/ServiceStubSettingsClassComposerTest.java @@ -19,7 +19,8 @@ import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.test.framework.Assert; -import com.google.api.generator.test.framework.Utils; +import com.google.api.generator.test.framework.GoldenFileWriter; +import com.google.api.generator.test.protoloader.RestTestProtoLoader; import java.nio.file.Path; import java.nio.file.Paths; import org.junit.Test; @@ -34,9 +35,10 @@ public void generateServiceClasses() { JavaWriterVisitor visitor = new JavaWriterVisitor(); clazz.classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "ComplianceStubSettings.golden", visitor.write()); + GoldenFileWriter.saveCodegenToFile( + this.getClass(), "ComplianceStubSettings.golden", visitor.write()); Path goldenFilePath = - Paths.get(Utils.getGoldenDir(this.getClass()), "ComplianceStubSettings.golden"); + Paths.get(GoldenFileWriter.getGoldenDir(this.getClass()), "ComplianceStubSettings.golden"); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleBodyJavaFormatterTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleBodyJavaFormatterTest.java index 3947bb5894..af58e7a30c 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleBodyJavaFormatterTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleBodyJavaFormatterTest.java @@ -17,7 +17,7 @@ import static junit.framework.TestCase.assertEquals; import static org.junit.Assert.assertThrows; -import com.google.api.generator.testutils.LineFormatter; +import com.google.api.generator.test.utils.LineFormatter; import org.junit.Test; public class SampleBodyJavaFormatterTest { diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java index d34c2d6714..d11d414816 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java @@ -30,7 +30,7 @@ import com.google.api.generator.engine.ast.VariableExpr; import com.google.api.generator.gapic.model.RegionTag; import com.google.api.generator.gapic.model.Sample; -import com.google.api.generator.testutils.LineFormatter; +import com.google.api.generator.test.utils.LineFormatter; import java.util.Arrays; import java.util.List; import org.junit.Assert; diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java index 726166861d..35d636cd32 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java @@ -32,7 +32,7 @@ import com.google.api.generator.engine.ast.VariableExpr; import com.google.api.generator.gapic.model.RegionTag; import com.google.api.generator.gapic.model.Sample; -import com.google.api.generator.testutils.LineFormatter; +import com.google.api.generator.test.utils.LineFormatter; import com.google.common.collect.ImmutableList; import java.util.Arrays; import java.util.List; diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposerTest.java index 3edd5936de..f063c50903 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposerTest.java @@ -24,7 +24,7 @@ import com.google.api.generator.gapic.model.Sample; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.gapic.protoparser.Parser; -import com.google.api.generator.testutils.LineFormatter; +import com.google.api.generator.test.utils.LineFormatter; import com.google.protobuf.Descriptors; import com.google.showcase.v1beta1.EchoOuterClass; import java.util.Arrays; diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposerTest.java index 64593d0fea..bf33f30e26 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposerTest.java @@ -27,7 +27,7 @@ import com.google.api.generator.gapic.model.Sample; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.gapic.protoparser.Parser; -import com.google.api.generator.testutils.LineFormatter; +import com.google.api.generator.test.utils.LineFormatter; import com.google.protobuf.Descriptors; import com.google.showcase.v1beta1.EchoOuterClass; import java.util.Arrays; diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientMethodSampleComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientMethodSampleComposerTest.java index 68b76374a9..6ba7985b5d 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientMethodSampleComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientMethodSampleComposerTest.java @@ -23,7 +23,7 @@ import com.google.api.generator.gapic.model.Sample; import com.google.api.generator.gapic.model.Service; import com.google.api.generator.gapic.protoparser.Parser; -import com.google.api.generator.testutils.LineFormatter; +import com.google.api.generator.test.utils.LineFormatter; import com.google.protobuf.Descriptors.FileDescriptor; import com.google.showcase.v1beta1.EchoOuterClass; import java.util.Arrays; diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleComposerTest.java index 33e428efeb..00f319b0ce 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleComposerTest.java @@ -19,7 +19,7 @@ import com.google.api.generator.engine.ast.TypeNode; import com.google.api.generator.engine.ast.VaporReference; import com.google.api.generator.gapic.model.Sample; -import com.google.api.generator.testutils.LineFormatter; +import com.google.api.generator.test.utils.LineFormatter; import java.util.Optional; import org.junit.Test; diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/utils/CommentFormatterTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/utils/CommentFormatterTest.java index 8f562de47c..2b82963899 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/utils/CommentFormatterTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/utils/CommentFormatterTest.java @@ -16,7 +16,7 @@ import static org.junit.Assert.assertEquals; -import com.google.api.generator.testutils.LineFormatter; +import com.google.api.generator.test.utils.LineFormatter; import org.junit.Test; public class CommentFormatterTest { diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java index e3a96fbd21..47667ae2ff 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java @@ -15,7 +15,7 @@ package com.google.api.generator.gapic.model; import com.google.api.generator.gapic.composer.samplecode.SampleCodeWriter; -import com.google.api.generator.testutils.LineFormatter; +import com.google.api.generator.test.utils.LineFormatter; import java.util.Arrays; import org.junit.Assert; import org.junit.Test; diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/test/framework/Assert.java b/gapic-generator-java/src/test/java/com/google/api/generator/test/framework/Assert.java index 276ad41d50..52802b14bf 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/test/framework/Assert.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/test/framework/Assert.java @@ -60,8 +60,8 @@ public static void assertEmptySamples(List samples) { public static void assertGoldenClass(Class clazz, GapicClass gapicClass, String fileName) { JavaWriterVisitor visitor = new JavaWriterVisitor(); gapicClass.classDefinition().accept(visitor); - Utils.saveCodegenToFile(clazz, fileName, visitor.write()); - Path goldenFilePath = Paths.get(Utils.getGoldenDir(clazz), fileName); + GoldenFileWriter.saveCodegenToFile(clazz, fileName, visitor.write()); + Path goldenFilePath = Paths.get(GoldenFileWriter.getGoldenDir(clazz), fileName); Assert.assertCodeEquals(goldenFilePath, visitor.write()); } @@ -70,7 +70,7 @@ public static void assertGoldenSamples( for (Sample sample : samples) { String fileName = sample.name() + ".golden"; String goldenSampleDir = - Utils.getGoldenDir(clazz) + "/samples/" + sampleDirName.toLowerCase() + "/"; + GoldenFileWriter.getGoldenDir(clazz) + "/samples/" + sampleDirName.toLowerCase() + "/"; Path goldenFilePath = Paths.get(goldenSampleDir, fileName); sample = sample @@ -79,7 +79,8 @@ public static void assertGoldenSamples( String sampleString = SampleCodeWriter.writeExecutableSample(sample, packkage + ".samples"); - Utils.saveSampleCodegenToFile(clazz, sampleDirName.toLowerCase(), fileName, sampleString); + GoldenFileWriter.saveSampleCodegenToFile( + clazz, sampleDirName.toLowerCase(), fileName, sampleString); assertCodeEquals(goldenFilePath, sampleString); } } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/test/framework/Utils.java b/gapic-generator-java/src/test/java/com/google/api/generator/test/framework/GoldenFileWriter.java similarity index 98% rename from gapic-generator-java/src/test/java/com/google/api/generator/test/framework/Utils.java rename to gapic-generator-java/src/test/java/com/google/api/generator/test/framework/GoldenFileWriter.java index 0970189ccb..a4409cc5a9 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/test/framework/Utils.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/test/framework/GoldenFileWriter.java @@ -19,7 +19,7 @@ import java.nio.file.Path; import java.nio.file.Paths; -public class Utils { +public class GoldenFileWriter { /** * Save the generated code from JUnit test to a file for updating goldens. The relative path diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/GrpcRestTestProtoLoader.java b/gapic-generator-java/src/test/java/com/google/api/generator/test/protoloader/GrpcRestTestProtoLoader.java similarity index 97% rename from gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/GrpcRestTestProtoLoader.java rename to gapic-generator-java/src/test/java/com/google/api/generator/test/protoloader/GrpcRestTestProtoLoader.java index c94dfa3d9b..a3cbaf2f0e 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/GrpcRestTestProtoLoader.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/test/protoloader/GrpcRestTestProtoLoader.java @@ -12,13 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. -package com.google.api.generator.gapic.composer.grpcrest; +package com.google.api.generator.test.protoloader; import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; -import com.google.api.generator.gapic.composer.common.TestProtoLoader; import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.GapicServiceConfig; import com.google.api.generator.gapic.model.Message; diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcTestProtoLoader.java b/gapic-generator-java/src/test/java/com/google/api/generator/test/protoloader/GrpcTestProtoLoader.java similarity index 88% rename from gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcTestProtoLoader.java rename to gapic-generator-java/src/test/java/com/google/api/generator/test/protoloader/GrpcTestProtoLoader.java index c6249121e5..324cf9a580 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcTestProtoLoader.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/test/protoloader/GrpcTestProtoLoader.java @@ -12,9 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -package com.google.api.generator.gapic.composer.grpc; +package com.google.api.generator.test.protoloader; -import com.google.api.generator.gapic.composer.common.TestProtoLoader; import com.google.api.generator.gapic.model.Transport; public class GrpcTestProtoLoader extends TestProtoLoader { diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/RestTestProtoLoader.java b/gapic-generator-java/src/test/java/com/google/api/generator/test/protoloader/RestTestProtoLoader.java similarity index 97% rename from gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/RestTestProtoLoader.java rename to gapic-generator-java/src/test/java/com/google/api/generator/test/protoloader/RestTestProtoLoader.java index fe76bb2b16..20d64c7b3a 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/RestTestProtoLoader.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/test/protoloader/RestTestProtoLoader.java @@ -12,11 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -package com.google.api.generator.gapic.composer.rest; +package com.google.api.generator.test.protoloader; import static com.google.common.truth.Truth.assertThat; -import com.google.api.generator.gapic.composer.common.TestProtoLoader; import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.GapicServiceConfig; import com.google.api.generator.gapic.model.Message; diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/common/TestProtoLoader.java b/gapic-generator-java/src/test/java/com/google/api/generator/test/protoloader/TestProtoLoader.java similarity index 99% rename from gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/common/TestProtoLoader.java rename to gapic-generator-java/src/test/java/com/google/api/generator/test/protoloader/TestProtoLoader.java index 4df5052b6b..25f6b1a50c 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/common/TestProtoLoader.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/test/protoloader/TestProtoLoader.java @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package com.google.api.generator.gapic.composer.common; +package com.google.api.generator.test.protoloader; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/testutils/LineFormatter.java b/gapic-generator-java/src/test/java/com/google/api/generator/test/utils/LineFormatter.java similarity index 94% rename from gapic-generator-java/src/test/java/com/google/api/generator/testutils/LineFormatter.java rename to gapic-generator-java/src/test/java/com/google/api/generator/test/utils/LineFormatter.java index c587a08455..13a59f9f02 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/testutils/LineFormatter.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/test/utils/LineFormatter.java @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package com.google.api.generator.testutils; +package com.google.api.generator.test.utils; public class LineFormatter { public static String lines(String... lines) { diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/util/TestUtils.java b/gapic-generator-java/src/test/java/com/google/api/generator/test/utils/TestExprBuilder.java similarity index 95% rename from gapic-generator-java/src/test/java/com/google/api/generator/util/TestUtils.java rename to gapic-generator-java/src/test/java/com/google/api/generator/test/utils/TestExprBuilder.java index ee509e0fee..64ec8b9a62 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/util/TestUtils.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/test/utils/TestExprBuilder.java @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package com.google.api.generator.util; +package com.google.api.generator.test.utils; import com.google.api.generator.engine.ast.StringObjectValue; import com.google.api.generator.engine.ast.TypeNode; @@ -22,7 +22,7 @@ import com.google.api.generator.engine.ast.Variable; import com.google.api.generator.engine.ast.VariableExpr; -public class TestUtils { +public class TestExprBuilder { public static ValueExpr generateStringValueExpr(String value) { return ValueExpr.builder().setValue(StringObjectValue.withValue(value)).build(); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/util/TrieTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/util/TrieTest.java index 8769e522cb..874195d5f3 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/util/TrieTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/util/TrieTest.java @@ -18,7 +18,7 @@ import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; -import com.google.api.generator.testutils.LineFormatter; +import com.google.api.generator.test.utils.LineFormatter; import java.util.Arrays; import java.util.List; import java.util.function.BiFunction; From bc8a4ad864f4d6f2b9d98e5fe296320fea19e74b Mon Sep 17 00:00:00 2001 From: Mattie Fu Date: Thu, 11 May 2023 16:45:20 -0400 Subject: [PATCH 05/17] feat: make stream wait timeout a first class citizen (#1473) --- .../com/google/api/gax/grpc/TimeoutTest.java | 7 ++- .../com/google/api/gax/rpc/Callables.java | 3 +- .../rpc/ServerStreamingAttemptCallable.java | 17 +------ .../gax/rpc/ServerStreamingCallSettings.java | 45 ++++++++++++++--- .../com/google/api/gax/rpc/CallableTest.java | 2 +- .../ServerStreamingAttemptCallableTest.java | 9 ++-- .../rpc/ServerStreamingCallSettingsTest.java | 14 ++++++ .../v1beta1/it/ITServerSideStreaming.java | 49 +++++++++++++++++++ 8 files changed, 115 insertions(+), 31 deletions(-) diff --git a/gax-java/gax-grpc/src/test/java/com/google/api/gax/grpc/TimeoutTest.java b/gax-java/gax-grpc/src/test/java/com/google/api/gax/grpc/TimeoutTest.java index 3b0d8ebc5f..9de95c1752 100644 --- a/gax-java/gax-grpc/src/test/java/com/google/api/gax/grpc/TimeoutTest.java +++ b/gax-java/gax-grpc/src/test/java/com/google/api/gax/grpc/TimeoutTest.java @@ -242,7 +242,12 @@ public void testNonRetryServerStreamingSettingsContextWithRetry() { .build(); Duration newTimeout = Duration.ofSeconds(5); RetrySettings contextRetrySettings = - retrySettings.toBuilder().setTotalTimeout(newTimeout).setMaxAttempts(3).build(); + retrySettings + .toBuilder() + .setInitialRpcTimeout(newTimeout) + .setMaxRpcTimeout(newTimeout) + .setMaxAttempts(3) + .build(); GrpcCallContext retryingContext = defaultCallContext .withRetrySettings(contextRetrySettings) diff --git a/gax-java/gax/src/main/java/com/google/api/gax/rpc/Callables.java b/gax-java/gax/src/main/java/com/google/api/gax/rpc/Callables.java index 413a11649c..28a76fe721 100644 --- a/gax-java/gax/src/main/java/com/google/api/gax/rpc/Callables.java +++ b/gax-java/gax/src/main/java/com/google/api/gax/rpc/Callables.java @@ -115,7 +115,8 @@ public static ServerStreamingCallable callable.withDefaultCallContext( clientContext .getDefaultCallContext() - .withStreamIdleTimeout(callSettings.getIdleTimeout())); + .withStreamIdleTimeout(callSettings.getIdleTimeout()) + .withStreamWaitTimeout(callSettings.getWaitTimeout())); return callable; } diff --git a/gax-java/gax/src/main/java/com/google/api/gax/rpc/ServerStreamingAttemptCallable.java b/gax-java/gax/src/main/java/com/google/api/gax/rpc/ServerStreamingAttemptCallable.java index 0c71d12420..70bf4eeda0 100644 --- a/gax-java/gax/src/main/java/com/google/api/gax/rpc/ServerStreamingAttemptCallable.java +++ b/gax-java/gax/src/main/java/com/google/api/gax/rpc/ServerStreamingAttemptCallable.java @@ -37,7 +37,6 @@ import java.util.concurrent.Callable; import java.util.concurrent.CancellationException; import javax.annotation.concurrent.GuardedBy; -import org.threeten.bp.Duration; /** * A callable that generates Server Streaming attempts. At any one time, it is responsible for at @@ -181,15 +180,6 @@ public void cancel() { } isStarted = true; - // Propagate the totalTimeout as the overall stream deadline, so long as the user - // has not provided a timeout via the ApiCallContext. If they have, retain it. - Duration totalTimeout = - outerRetryingFuture.getAttemptSettings().getGlobalSettings().getTotalTimeout(); - - if (totalTimeout != null && context != null && context.getTimeout() == null) { - context = context.withTimeout(totalTimeout); - } - // Call the inner callable call(); } @@ -218,13 +208,10 @@ public Void call() { ApiCallContext attemptContext = context; - // Set the streamWaitTimeout to the attempt RPC Timeout, only if the context - // does not already have a timeout set by a user via withStreamWaitTimeout. if (!outerRetryingFuture.getAttemptSettings().getRpcTimeout().isZero() - && attemptContext.getStreamWaitTimeout() == null) { + && attemptContext.getTimeout() == null) { attemptContext = - attemptContext.withStreamWaitTimeout( - outerRetryingFuture.getAttemptSettings().getRpcTimeout()); + attemptContext.withTimeout(outerRetryingFuture.getAttemptSettings().getRpcTimeout()); } attemptContext diff --git a/gax-java/gax/src/main/java/com/google/api/gax/rpc/ServerStreamingCallSettings.java b/gax-java/gax/src/main/java/com/google/api/gax/rpc/ServerStreamingCallSettings.java index eb9373e0c3..da40b657b7 100644 --- a/gax-java/gax/src/main/java/com/google/api/gax/rpc/ServerStreamingCallSettings.java +++ b/gax-java/gax/src/main/java/com/google/api/gax/rpc/ServerStreamingCallSettings.java @@ -47,9 +47,11 @@ *

This class includes settings that are applicable to all server streaming calls, which * currently just includes retries and watchdog timers. * - *

The watchdog timer is configured via {@code idleTimeout}. The watchdog will terminate any - * stream that has not has seen any demand (via {@link StreamController#request(int)}) in the - * configured interval. To turn off idle checks, set the interval to {@link Duration#ZERO}. + *

The watchdog timer is configured via {@code idleTimeout} and {@code waitTimeout}. The watchdog + * will terminate any stream that has not has seen any demand (via {@link + * StreamController#request(int)}) in the configured interval or has not seen a message from the + * server in {@code waitTimeout}. To turn off idle checks, set the interval to {@link + * Duration#ZERO}. * *

Retry configuration allows for the stream to be restarted and resumed. It is composed of 3 * parts: the retryable codes, the retry settings and the stream resumption strategy. The retryable @@ -79,12 +81,14 @@ public final class ServerStreamingCallSettings @Nonnull private final StreamResumptionStrategy resumptionStrategy; @Nonnull private final Duration idleTimeout; + @Nonnull private final Duration waitTimeout; private ServerStreamingCallSettings(Builder builder) { this.retryableCodes = ImmutableSet.copyOf(builder.retryableCodes); this.retrySettings = builder.retrySettingsBuilder.build(); this.resumptionStrategy = builder.resumptionStrategy; this.idleTimeout = builder.idleTimeout; + this.waitTimeout = builder.waitTimeout; } /** @@ -123,6 +127,15 @@ public Duration getIdleTimeout() { return idleTimeout; } + /** + * See the class documentation of {@link ServerStreamingCallSettings} for a description of what + * the {@link #waitTimeout} does. + */ + @Nonnull + public Duration getWaitTimeout() { + return waitTimeout; + } + public Builder toBuilder() { return new Builder<>(this); } @@ -135,6 +148,7 @@ public static Builder newBuilder() { public String toString() { return MoreObjects.toStringHelper(this) .add("idleTimeout", idleTimeout) + .add("waitTimeout", waitTimeout) .add("retryableCodes", retryableCodes) .add("retrySettings", retrySettings) .toString(); @@ -148,6 +162,8 @@ public static class Builder @Nonnull private Duration idleTimeout; + @Nonnull private Duration waitTimeout; + /** Initialize the builder with default settings */ private Builder() { this.retryableCodes = ImmutableSet.of(); @@ -155,6 +171,7 @@ private Builder() { this.resumptionStrategy = new SimpleStreamResumptionStrategy<>(); this.idleTimeout = Duration.ZERO; + this.waitTimeout = Duration.ZERO; } private Builder(ServerStreamingCallSettings settings) { @@ -164,6 +181,7 @@ private Builder(ServerStreamingCallSettings settings) { this.resumptionStrategy = settings.resumptionStrategy; this.idleTimeout = settings.idleTimeout; + this.waitTimeout = settings.waitTimeout; } /** @@ -233,9 +251,9 @@ public Builder setSimpleTimeoutNoRetries(@Nonnull Duration .setInitialRetryDelay(Duration.ZERO) .setRetryDelayMultiplier(1) .setMaxRetryDelay(Duration.ZERO) - .setInitialRpcTimeout(Duration.ZERO) + .setInitialRpcTimeout(timeout) .setRpcTimeoutMultiplier(1) - .setMaxRpcTimeout(Duration.ZERO) + .setMaxRpcTimeout(timeout) .setMaxAttempts(1) .build()); @@ -264,14 +282,27 @@ public Duration getIdleTimeout() { } /** - * See the class documentation of {@link ServerStreamingCallSettings} for a description of what - * the {@link #idleTimeout} does. {@link Duration#ZERO} disables the watchdog. + * Set how long to wait before considering the stream orphaned by the user and closing it. + * {@link Duration#ZERO} disables the check for abandoned streams. */ public Builder setIdleTimeout(@Nonnull Duration idleTimeout) { this.idleTimeout = Preconditions.checkNotNull(idleTimeout); return this; } + @Nonnull + public Duration getWaitTimeout() { + return waitTimeout; + } + + /** + * Set the maximum amount of time to wait for the next message from the server. {@link + * Duration#ZERO} disables the check for abandoned streams. + */ + public void setWaitTimeout(@Nonnull Duration waitTimeout) { + this.waitTimeout = waitTimeout; + } + @Override public ServerStreamingCallSettings build() { return new ServerStreamingCallSettings<>(this); diff --git a/gax-java/gax/src/test/java/com/google/api/gax/rpc/CallableTest.java b/gax-java/gax/src/test/java/com/google/api/gax/rpc/CallableTest.java index eaa0be04c7..04e025fecb 100644 --- a/gax-java/gax/src/test/java/com/google/api/gax/rpc/CallableTest.java +++ b/gax-java/gax/src/test/java/com/google/api/gax/rpc/CallableTest.java @@ -137,7 +137,7 @@ public void testNonRetriedServerStreamingCallableWithRetrySettings() throws Exce ServerStreamingCallable callable = Callables.retrying(innerServerStreamingCallable, callSettings, clientContext); - Duration timeout = retrySettings.getTotalTimeout(); + Duration timeout = retrySettings.getInitialRpcTimeout(); callable.call("Is your refrigerator running?", callContextWithRetrySettings); diff --git a/gax-java/gax/src/test/java/com/google/api/gax/rpc/ServerStreamingAttemptCallableTest.java b/gax-java/gax/src/test/java/com/google/api/gax/rpc/ServerStreamingAttemptCallableTest.java index a0c8b833f3..acc70467bf 100644 --- a/gax-java/gax/src/test/java/com/google/api/gax/rpc/ServerStreamingAttemptCallableTest.java +++ b/gax-java/gax/src/test/java/com/google/api/gax/rpc/ServerStreamingAttemptCallableTest.java @@ -62,6 +62,7 @@ public class ServerStreamingAttemptCallableTest { private FakeRetryingFuture fakeRetryingFuture; private StreamResumptionStrategy resumptionStrategy; private static Duration totalTimeout = Duration.ofHours(1); + private static final Duration attemptTimeout = Duration.ofMinutes(1); private FakeCallContext mockedCallContext; @Before @@ -100,7 +101,6 @@ public void testUserProvidedContextTimeout() { // Ensure that the callable did not overwrite the user provided timeouts Mockito.verify(mockedCallContext, Mockito.times(1)).getTimeout(); Mockito.verify(mockedCallContext, Mockito.never()).withTimeout(totalTimeout); - Mockito.verify(mockedCallContext, Mockito.times(1)).getStreamWaitTimeout(); Mockito.verify(mockedCallContext, Mockito.never()) .withStreamWaitTimeout(Mockito.any(Duration.class)); @@ -128,7 +128,7 @@ public void testNoUserProvidedContextTimeout() { Mockito.doReturn(BaseApiTracer.getInstance()).when(mockedCallContext).getTracer(); Mockito.doReturn(null).when(mockedCallContext).getTimeout(); Mockito.doReturn(null).when(mockedCallContext).getStreamWaitTimeout(); - Mockito.doReturn(mockedCallContext).when(mockedCallContext).withTimeout(totalTimeout); + Mockito.doReturn(mockedCallContext).when(mockedCallContext).withTimeout(attemptTimeout); Mockito.doReturn(mockedCallContext) .when(mockedCallContext) .withStreamWaitTimeout(Mockito.any(Duration.class)); @@ -139,10 +139,7 @@ public void testNoUserProvidedContextTimeout() { // Ensure that the callable configured the timeouts via the Settings in the // absence of user-defined timeouts. Mockito.verify(mockedCallContext, Mockito.times(1)).getTimeout(); - Mockito.verify(mockedCallContext, Mockito.times(1)).withTimeout(totalTimeout); - Mockito.verify(mockedCallContext, Mockito.times(1)).getStreamWaitTimeout(); - Mockito.verify(mockedCallContext, Mockito.times(1)) - .withStreamWaitTimeout(Mockito.any(Duration.class)); + Mockito.verify(mockedCallContext, Mockito.times(1)).withTimeout(attemptTimeout); // Should notify outer observer Truth.assertThat(observer.controller).isNotNull(); diff --git a/gax-java/gax/src/test/java/com/google/api/gax/rpc/ServerStreamingCallSettingsTest.java b/gax-java/gax/src/test/java/com/google/api/gax/rpc/ServerStreamingCallSettingsTest.java index a14268f8d5..bcd5a9272e 100644 --- a/gax-java/gax/src/test/java/com/google/api/gax/rpc/ServerStreamingCallSettingsTest.java +++ b/gax-java/gax/src/test/java/com/google/api/gax/rpc/ServerStreamingCallSettingsTest.java @@ -98,6 +98,20 @@ public void idleTimeoutIsNotLost() { assertThat(builder.build().toBuilder().getIdleTimeout()).isEqualTo(idleTimeout); } + @Test + public void waitTimeoutIsNotLost() { + Duration waitTimeout = Duration.ofSeconds(5); + + ServerStreamingCallSettings.Builder builder = + ServerStreamingCallSettings.newBuilder(); + + builder.setWaitTimeout(waitTimeout); + + assertThat(builder.getWaitTimeout()).isEqualTo(waitTimeout); + assertThat(builder.build().getWaitTimeout()).isEqualTo(waitTimeout); + assertThat(builder.build().toBuilder().getWaitTimeout()).isEqualTo(waitTimeout); + } + @Test public void testRetrySettingsBuilder() { RetrySettings initialSettings = diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITServerSideStreaming.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITServerSideStreaming.java index e8d22c2756..da78f07afa 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITServerSideStreaming.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITServerSideStreaming.java @@ -19,22 +19,28 @@ import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertThrows; +import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.rpc.CancelledException; import com.google.api.gax.rpc.ServerStream; import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.WatchdogTimeoutException; import com.google.common.collect.ImmutableList; import com.google.rpc.Status; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; +import com.google.showcase.v1beta1.EchoSettings; import com.google.showcase.v1beta1.ExpandRequest; import com.google.showcase.v1beta1.it.util.TestClientInitializer; +import io.grpc.ManagedChannelBuilder; import java.util.ArrayList; import java.util.Iterator; import java.util.stream.Collectors; import org.junit.After; +import org.junit.Assert; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; +import org.threeten.bp.Duration; public class ITServerSideStreaming { @@ -104,6 +110,49 @@ public void testGrpc_serverError_receiveErrorAfterLastWordInStream() { assertThat(cancelledException.getStatusCode().getCode()).isEqualTo(StatusCode.Code.CANCELLED); } + @Test + public void testGrpc_serverWaitTimeout_watchdogCancelsStream() throws Exception { + EchoSettings.Builder settings = + EchoSettings.newBuilder() + .setCredentialsProvider(NoCredentialsProvider.create()) + .setTransportChannelProvider( + EchoSettings.defaultGrpcTransportProviderBuilder() + .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) + .build()); + + settings + .expandSettings() + .setIdleTimeout(Duration.ofMillis(100)) + .setWaitTimeout(Duration.ofMillis(100)); + + settings.getStubSettingsBuilder().setStreamWatchdogCheckInterval(Duration.ofMillis(50)); + + EchoClient echoClient = EchoClient.create(settings.build()); + + String content = "The rain in Spain stays mainly on the plain!"; + ServerStream responseStream = + echoClient + .expandCallable() + .call( + ExpandRequest.newBuilder() + .setContent(content) + // Configure server interval for returning the next response + .setStreamWaitTime( + com.google.protobuf.Duration.newBuilder().setSeconds(1).build()) + .build()); + ArrayList responses = new ArrayList<>(); + try { + for (EchoResponse response : responseStream) { + responses.add(response.getContent()); + } + Assert.fail("No exception was thrown"); + } catch (WatchdogTimeoutException e) { + assertThat(e).hasMessageThat().contains("Canceled due to timeout waiting for next response"); + } finally { + echoClient.close(); + } + } + @Test public void testHttpJson_receiveStreamedContent() { String content = "The rain in Spain stays mainly on the plain!"; From cc5724f04722e3d60eb9b4e02ecc1bdf5dd7a7fa Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Mon, 15 May 2023 13:44:08 -0400 Subject: [PATCH 06/17] test: use Java 17 to produce Java 8-compatible bytecode (#1681) * test: java 8 when running Java 8 test * Use Java 17 to produce Java 8-compatible bytecode --- .github/workflows/ci.yaml | 23 ++++++----------------- .kokoro/release/common.cfg | 2 +- 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cd9fd9211a..fccf60117f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -65,30 +65,19 @@ jobs: - run: echo "JAVA8_HOME=${JAVA_HOME}" >> $GITHUB_ENV - uses: actions/setup-java@v3 with: - java-version: 11 + java-version: 17 distribution: temurin - - run: echo "JAVA11_HOME=${JAVA_HOME}" >> $GITHUB_ENV - - name: Compile with Java 11 + - name: Compile with Java 17 and run tests with Java 8 shell: bash run: | set -x export JAVA_HOME=$JAVA11_HOME export PATH=${JAVA_HOME}/bin:$PATH - # Why not compile? It's because the process needs to package jar so - # that gapic-generator-java module can use testlib modules of gax. + # Maven surefire plugin lets us to specify the JVM when running tests via + # the "jvm" system property. mvn verify --batch-mode --no-transfer-progress -Dcheckstyle.skip \ - -DskipTests -Dfmt.skip - - name: Run test with Java 8 for all modules except gapic-generator-java - shell: bash - run: | - set -x - export JAVA_HOME=$JAVA8_HOME - export PATH=${JAVA_HOME}/bin:$PATH - # useIncrementalCompilation=false to avoid recompiling classes - # generated by Java 11 compiler above. - mvn -B -ntp test --projects '!gapic-generator-java' \ - -Dcheckstyle.skip -Dmaven.compiler.useIncrementalCompilation=false \ - -Dfmt.skip + -Dfmt.skip \ + -Djvm="${JAVA8_HOME}/bin/java" build-java8-gapic-generator-java: name: "build(8) for gapic-generator-java" diff --git a/.kokoro/release/common.cfg b/.kokoro/release/common.cfg index a24ffe55b9..de40730e6d 100644 --- a/.kokoro/release/common.cfg +++ b/.kokoro/release/common.cfg @@ -9,7 +9,7 @@ build_file: "gapic-generator-java/.kokoro/trampoline.sh" # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" + value: "gcr.io/cloud-devrel-kokoro-resources/java17" } before_action { From 745ea58281c59b78f3fb490852718712eb081763 Mon Sep 17 00:00:00 2001 From: Diego Alonso Marquez Palacios Date: Thu, 18 May 2023 19:13:08 -0400 Subject: [PATCH 07/17] chore: exclude .iml files in showcase's diff check (#1689) --- showcase/scripts/verify.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/showcase/scripts/verify.sh b/showcase/scripts/verify.sh index 48026e9600..80cac43cad 100755 --- a/showcase/scripts/verify.sh +++ b/showcase/scripts/verify.sh @@ -57,6 +57,6 @@ case $1 in unzip -q -c "$BAZEL_ROOT/$GAPIC_JAR" temp-codegen.srcjar | jar x delete_unneeded - diff -ru "$SHOWCASE_DIR/$GAPIC_PROJECT_DIR"/src "$GAPIC_UNPACK_DIR"/src --exclude=it --exclude=resources + diff -ru "$SHOWCASE_DIR/$GAPIC_PROJECT_DIR"/src "$GAPIC_UNPACK_DIR"/src --exclude=it --exclude=resources --exclude=*.iml ;; esac From c0ea24588de744a46600fcf6f0f3c6414549e12d Mon Sep 17 00:00:00 2001 From: Alice <65933803+alicejli@users.noreply.github.com> Date: Mon, 22 May 2023 16:46:24 -0400 Subject: [PATCH 08/17] feat: Create additional tag on release for google-cloud-shared-dependencies (#1692) * test workflow to add new tag to release * test with token for forked repo * forked repo * add distribution * update pom path * edit permissions * update workflow to use versions.txt file instead of pom.xml * test workflow on forked repo only * remove release tag needed for fork only * parsing versions.txt means we don't need maven, so removing java setup * fix workflow * add back in manual input * update name of workflow * update to create multiple tags * update name of workflow * add newline * fix typo --- .../create_additional_release_tag.yaml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/create_additional_release_tag.yaml diff --git a/.github/workflows/create_additional_release_tag.yaml b/.github/workflows/create_additional_release_tag.yaml new file mode 100644 index 0000000000..4270461be5 --- /dev/null +++ b/.github/workflows/create_additional_release_tag.yaml @@ -0,0 +1,36 @@ +name: Create additional tags for each release + +on: + release: + types: [published] + workflow_dispatch: # If manually triggered, clarify which release to create the additional tags for + inputs: + releaseTag: + description: 'Release Tag' + required: true + +jobs: + build: + runs-on: ubuntu-latest + permissions: write-all + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + ref: ${{ github.event.inputs.releaseTag }} + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Set up Git + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + + - name: Create additional tags + run: | + ARTIFACT_IDS=('google-cloud-shared-dependencies' 'api-common' 'gax') + for ARTIFACT_ID in "${ARTIFACT_IDS[@]}" + do + VERSION=$(grep "${ARTIFACT_ID}" versions.txt | cut -d':' -f2) + git tag ${ARTIFACT_ID}/$VERSION ${{ github.event.inputs.releaseTag }} + git push origin ${ARTIFACT_ID}/$VERSION + done From 96324c28a258a17c76e24f59c65bdd02d1bb3d88 Mon Sep 17 00:00:00 2001 From: Burke Davison <40617934+burkedavison@users.noreply.github.com> Date: Tue, 23 May 2023 11:26:41 -0400 Subject: [PATCH 09/17] chore: add 3 minute timeout to GrpcDirectStreamControllerTest (#1690) * chore: add 2 minute timeout to GrpcDirectStreamControllerTest * chore: 3 minute timeout to GrpcDirectStreamControllerTest --- .../com/google/api/gax/grpc/GrpcDirectStreamControllerTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gax-java/gax-grpc/src/test/java/com/google/api/gax/grpc/GrpcDirectStreamControllerTest.java b/gax-java/gax-grpc/src/test/java/com/google/api/gax/grpc/GrpcDirectStreamControllerTest.java index 142eee0087..ca2c2f69f4 100644 --- a/gax-java/gax-grpc/src/test/java/com/google/api/gax/grpc/GrpcDirectStreamControllerTest.java +++ b/gax-java/gax-grpc/src/test/java/com/google/api/gax/grpc/GrpcDirectStreamControllerTest.java @@ -59,7 +59,7 @@ @RunWith(JUnit4.class) public class GrpcDirectStreamControllerTest { - @Test + @Test(timeout = 180_000) // ms public void testRetryNoRaceCondition() throws Exception { Server server = ServerBuilder.forPort(1234).addService(new FakeService()).build(); server.start(); From 1f561754ed9e797f639cbdfabe070b86b645281b Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Tue, 23 May 2023 13:39:06 -0400 Subject: [PATCH 10/17] deps: update protobuf dependencies to v3.23.1 and gprc to 1.55.1 (#1698) * deps: update protobuf dependencies to v3.23.1 and update grpc version to 1.55.1 --- .bazelrc | 3 + gapic-generator-java-pom-parent/pom.xml | 4 +- gax-java/dependencies.properties | 4 +- .../v1beta1/AttemptSequenceRequest.java | 39 +-- .../AttemptStreamingSequenceRequest.java | 39 +-- .../AttemptStreamingSequenceResponse.java | 39 +-- .../google/showcase/v1beta1/BlockRequest.java | 40 +-- .../v1beta1/BlockRequestOrBuilder.java | 2 +- .../showcase/v1beta1/BlockResponse.java | 39 +-- .../com/google/showcase/v1beta1/Blurb.java | 41 +-- .../showcase/v1beta1/BlurbOrBuilder.java | 4 +- .../showcase/v1beta1/ComplianceData.java | 71 ++--- .../showcase/v1beta1/ComplianceDataChild.java | 51 +--- .../v1beta1/ComplianceDataGrandchild.java | 43 +-- .../showcase/v1beta1/ComplianceGroup.java | 81 ++---- .../showcase/v1beta1/ComplianceSuite.java | 39 +-- .../showcase/v1beta1/ConnectRequest.java | 79 +---- .../v1beta1/ConnectRequestOrBuilder.java | 2 +- .../showcase/v1beta1/CreateBlurbRequest.java | 39 +-- .../showcase/v1beta1/CreateRoomRequest.java | 39 +-- .../v1beta1/CreateSequenceRequest.java | 39 +-- .../v1beta1/CreateSessionRequest.java | 39 +-- .../CreateStreamingSequenceRequest.java | 39 +-- .../showcase/v1beta1/CreateUserRequest.java | 39 +-- .../showcase/v1beta1/DeleteBlurbRequest.java | 39 +-- .../showcase/v1beta1/DeleteRoomRequest.java | 39 +-- .../v1beta1/DeleteSessionRequest.java | 39 +-- .../showcase/v1beta1/DeleteTestRequest.java | 39 +-- .../showcase/v1beta1/DeleteUserRequest.java | 39 +-- .../showcase/v1beta1/EchoOuterClass.java | 144 +++++----- .../google/showcase/v1beta1/EchoRequest.java | 40 +-- .../v1beta1/EchoRequestOrBuilder.java | 2 +- .../google/showcase/v1beta1/EchoResponse.java | 39 +-- .../google/showcase/v1beta1/EnumRequest.java | 41 +-- .../google/showcase/v1beta1/EnumResponse.java | 39 +-- .../showcase/v1beta1/ExpandRequest.java | 39 +-- .../showcase/v1beta1/GetBlurbRequest.java | 39 +-- .../showcase/v1beta1/GetRoomRequest.java | 39 +-- .../v1beta1/GetSequenceReportRequest.java | 39 +-- .../showcase/v1beta1/GetSessionRequest.java | 39 +-- .../GetStreamingSequenceReportRequest.java | 39 +-- .../showcase/v1beta1/GetUserRequest.java | 39 +-- .../showcase/v1beta1/IdentityOuterClass.java | 90 +++--- .../com/google/showcase/v1beta1/Issue.java | 39 +-- .../showcase/v1beta1/ListBlurbsRequest.java | 41 +-- .../showcase/v1beta1/ListBlurbsResponse.java | 39 +-- .../showcase/v1beta1/ListRoomsRequest.java | 41 +-- .../showcase/v1beta1/ListRoomsResponse.java | 39 +-- .../showcase/v1beta1/ListSessionsRequest.java | 41 +-- .../v1beta1/ListSessionsResponse.java | 39 +-- .../showcase/v1beta1/ListTestsRequest.java | 41 +-- .../showcase/v1beta1/ListTestsResponse.java | 39 +-- .../showcase/v1beta1/ListUsersRequest.java | 41 +-- .../showcase/v1beta1/ListUsersResponse.java | 39 +-- .../showcase/v1beta1/MessagingOuterClass.java | 269 +++++++++--------- .../PagedExpandLegacyMappedResponse.java | 39 +-- .../v1beta1/PagedExpandLegacyRequest.java | 41 +-- .../showcase/v1beta1/PagedExpandRequest.java | 41 +-- .../showcase/v1beta1/PagedExpandResponse.java | 39 +-- .../v1beta1/PagedExpandResponseList.java | 85 ++---- .../showcase/v1beta1/RepeatRequest.java | 53 +--- .../showcase/v1beta1/RepeatResponse.java | 39 +-- .../v1beta1/ReportSessionRequest.java | 39 +-- .../v1beta1/ReportSessionResponse.java | 39 +-- .../com/google/showcase/v1beta1/Room.java | 39 +-- .../v1beta1/SearchBlurbsMetadata.java | 39 +-- .../showcase/v1beta1/SearchBlurbsRequest.java | 41 +-- .../v1beta1/SearchBlurbsResponse.java | 39 +-- .../showcase/v1beta1/SendBlurbsResponse.java | 85 ++---- .../com/google/showcase/v1beta1/Sequence.java | 78 +---- .../showcase/v1beta1/SequenceOuterClass.java | 168 +++++------ .../showcase/v1beta1/SequenceReport.java | 80 +----- .../com/google/showcase/v1beta1/Session.java | 41 +-- .../showcase/v1beta1/StreamBlurbsRequest.java | 39 +-- .../v1beta1/StreamBlurbsResponse.java | 39 +-- .../showcase/v1beta1/StreamingSequence.java | 80 +----- .../v1beta1/StreamingSequenceReport.java | 80 +----- .../com/google/showcase/v1beta1/Test.java | 125 +------- .../com/google/showcase/v1beta1/TestRun.java | 39 +-- .../showcase/v1beta1/UpdateBlurbRequest.java | 39 +-- .../showcase/v1beta1/UpdateRoomRequest.java | 39 +-- .../showcase/v1beta1/UpdateUserRequest.java | 39 +-- .../com/google/showcase/v1beta1/User.java | 60 ++-- .../showcase/v1beta1/UserOrBuilder.java | 5 + .../showcase/v1beta1/VerifyTestRequest.java | 39 +-- .../showcase/v1beta1/VerifyTestResponse.java | 39 +-- .../google/showcase/v1beta1/WaitMetadata.java | 39 +-- .../google/showcase/v1beta1/WaitRequest.java | 41 +-- .../v1beta1/WaitRequestOrBuilder.java | 4 +- .../google/showcase/v1beta1/WaitResponse.java | 39 +-- 90 files changed, 676 insertions(+), 3559 deletions(-) diff --git a/.bazelrc b/.bazelrc index 4a1006ad99..269a7222fc 100644 --- a/.bazelrc +++ b/.bazelrc @@ -2,3 +2,6 @@ startup --batch build --show_timestamps build --protocopt=--experimental_allow_proto3_optional + +build --cxxopt=-std=c++14 +build --host_cxxopt=-std=c++14 diff --git a/gapic-generator-java-pom-parent/pom.xml b/gapic-generator-java-pom-parent/pom.xml index 40afa11bdb..ed66254ab8 100644 --- a/gapic-generator-java-pom-parent/pom.xml +++ b/gapic-generator-java-pom-parent/pom.xml @@ -26,11 +26,11 @@ 1.3.2 - 1.54.0 + 1.55.1 1.16.0 2.10.1 31.1-jre - 3.21.12 + 3.23.1 8 diff --git a/gax-java/dependencies.properties b/gax-java/dependencies.properties index 0271a7abb5..d5454f5b37 100644 --- a/gax-java/dependencies.properties +++ b/gax-java/dependencies.properties @@ -23,9 +23,9 @@ version.gax_httpjson=0.112.1-SNAPSHOT # Versions for dependencies which actual artifacts differ between Bazel and Gradle. # Gradle build depends on prebuilt maven artifacts, while Bazel build depends on Bazel workspaces # with the sources. -version.com_google_protobuf=3.21.12 +version.com_google_protobuf=3.23.1 version.google_java_format=1.15.0 -version.io_grpc=1.54.0 +version.io_grpc=1.55.1 # Maven artifacts. # Note, the actual name of each property matters (bazel build scripts depend on it). diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequest.java index d565a71b42..9b07e43f90 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequest.java @@ -26,11 +26,6 @@ protected java.lang.Object newInstance( return new AttemptSequenceRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptSequenceRequest_descriptor; @@ -191,11 +186,13 @@ public static com.google.showcase.v1beta1.AttemptSequenceRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.AttemptSequenceRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.AttemptSequenceRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -310,38 +307,6 @@ private void buildPartial0(com.google.showcase.v1beta1.AttemptSequenceRequest re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.AttemptSequenceRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequest.java index 41183edca6..637995f283 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequest.java @@ -26,11 +26,6 @@ protected java.lang.Object newInstance( return new AttemptStreamingSequenceRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_descriptor; @@ -191,11 +186,13 @@ public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseF return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -310,38 +307,6 @@ private void buildPartial0(com.google.showcase.v1beta1.AttemptStreamingSequenceR } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.AttemptStreamingSequenceRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponse.java index d51a763763..ef93a1e623 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponse.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponse.java @@ -30,11 +30,6 @@ protected java.lang.Object newInstance( return new AttemptStreamingSequenceResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_descriptor; @@ -203,11 +198,13 @@ public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parse return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -326,38 +323,6 @@ private void buildPartial0(com.google.showcase.v1beta1.AttemptStreamingSequenceR } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.AttemptStreamingSequenceResponse) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequest.java index 7cffb63983..d08182cb1a 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequest.java @@ -29,11 +29,6 @@ protected java.lang.Object newInstance( return new BlockRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_BlockRequest_descriptor; @@ -48,6 +43,7 @@ protected java.lang.Object newInstance( } private int responseCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object response_; public enum ResponseCase implements com.google.protobuf.Internal.EnumLite, @@ -368,11 +364,13 @@ public static com.google.showcase.v1beta1.BlockRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.BlockRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.BlockRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -519,38 +517,6 @@ private void buildPartialOneofs(com.google.showcase.v1beta1.BlockRequest result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.BlockRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequestOrBuilder.java index 81cce93799..99ad532a5a 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequestOrBuilder.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequestOrBuilder.java @@ -91,5 +91,5 @@ public interface BlockRequestOrBuilder extends */ com.google.showcase.v1beta1.BlockResponseOrBuilder getSuccessOrBuilder(); - public com.google.showcase.v1beta1.BlockRequest.ResponseCase getResponseCase(); + com.google.showcase.v1beta1.BlockRequest.ResponseCase getResponseCase(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponse.java index ada08eb4fb..6cce5090f1 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponse.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponse.java @@ -30,11 +30,6 @@ protected java.lang.Object newInstance( return new BlockResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_BlockResponse_descriptor; @@ -205,11 +200,13 @@ public static com.google.showcase.v1beta1.BlockResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.BlockResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.BlockResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -328,38 +325,6 @@ private void buildPartial0(com.google.showcase.v1beta1.BlockResponse result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.BlockResponse) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Blurb.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Blurb.java index 2e76160603..6f57346f9c 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Blurb.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Blurb.java @@ -32,11 +32,6 @@ protected java.lang.Object newInstance( return new Blurb(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_Blurb_descriptor; @@ -51,6 +46,7 @@ protected java.lang.Object newInstance( } private int contentCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object content_; public enum ContentCase implements com.google.protobuf.Internal.EnumLite, @@ -92,6 +88,7 @@ public int getNumber() { } private int legacyIdCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object legacyId_; public enum LegacyIdCase implements com.google.protobuf.Internal.EnumLite, @@ -762,11 +759,13 @@ public static com.google.showcase.v1beta1.Blurb parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.Blurb parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.Blurb parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -922,38 +921,6 @@ private void buildPartialOneofs(com.google.showcase.v1beta1.Blurb result) { result.legacyId_ = this.legacyId_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.Blurb) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbOrBuilder.java index 08af31258d..e98b776e42 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbOrBuilder.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbOrBuilder.java @@ -219,7 +219,7 @@ public interface BlurbOrBuilder extends com.google.protobuf.ByteString getLegacyUserIdBytes(); - public com.google.showcase.v1beta1.Blurb.ContentCase getContentCase(); + com.google.showcase.v1beta1.Blurb.ContentCase getContentCase(); - public com.google.showcase.v1beta1.Blurb.LegacyIdCase getLegacyIdCase(); + com.google.showcase.v1beta1.Blurb.LegacyIdCase getLegacyIdCase(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceData.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceData.java index 44e04e8ad0..e20a6438f5 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceData.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceData.java @@ -35,11 +35,6 @@ protected java.lang.Object newInstance( return new ComplianceData(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceData_descriptor; @@ -994,11 +989,13 @@ public static com.google.showcase.v1beta1.ComplianceData parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ComplianceData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ComplianceData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1233,38 +1230,6 @@ private void buildPartial0(com.google.showcase.v1beta1.ComplianceData result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ComplianceData) { @@ -1599,7 +1564,7 @@ public int getFInt32() { * @return This builder for chaining. */ public Builder setFInt32(int value) { - + fInt32_ = value; bitField0_ |= 0x00000002; onChanged(); @@ -1631,7 +1596,7 @@ public int getFSint32() { * @return This builder for chaining. */ public Builder setFSint32(int value) { - + fSint32_ = value; bitField0_ |= 0x00000004; onChanged(); @@ -1663,7 +1628,7 @@ public int getFSfixed32() { * @return This builder for chaining. */ public Builder setFSfixed32(int value) { - + fSfixed32_ = value; bitField0_ |= 0x00000008; onChanged(); @@ -1695,7 +1660,7 @@ public int getFUint32() { * @return This builder for chaining. */ public Builder setFUint32(int value) { - + fUint32_ = value; bitField0_ |= 0x00000010; onChanged(); @@ -1727,7 +1692,7 @@ public int getFFixed32() { * @return This builder for chaining. */ public Builder setFFixed32(int value) { - + fFixed32_ = value; bitField0_ |= 0x00000020; onChanged(); @@ -1759,7 +1724,7 @@ public long getFInt64() { * @return This builder for chaining. */ public Builder setFInt64(long value) { - + fInt64_ = value; bitField0_ |= 0x00000040; onChanged(); @@ -1791,7 +1756,7 @@ public long getFSint64() { * @return This builder for chaining. */ public Builder setFSint64(long value) { - + fSint64_ = value; bitField0_ |= 0x00000080; onChanged(); @@ -1823,7 +1788,7 @@ public long getFSfixed64() { * @return This builder for chaining. */ public Builder setFSfixed64(long value) { - + fSfixed64_ = value; bitField0_ |= 0x00000100; onChanged(); @@ -1855,7 +1820,7 @@ public long getFUint64() { * @return This builder for chaining. */ public Builder setFUint64(long value) { - + fUint64_ = value; bitField0_ |= 0x00000200; onChanged(); @@ -1887,7 +1852,7 @@ public long getFFixed64() { * @return This builder for chaining. */ public Builder setFFixed64(long value) { - + fFixed64_ = value; bitField0_ |= 0x00000400; onChanged(); @@ -1919,7 +1884,7 @@ public double getFDouble() { * @return This builder for chaining. */ public Builder setFDouble(double value) { - + fDouble_ = value; bitField0_ |= 0x00000800; onChanged(); @@ -1951,7 +1916,7 @@ public float getFFloat() { * @return This builder for chaining. */ public Builder setFFloat(float value) { - + fFloat_ = value; bitField0_ |= 0x00001000; onChanged(); @@ -1983,7 +1948,7 @@ public boolean getFBool() { * @return This builder for chaining. */ public Builder setFBool(boolean value) { - + fBool_ = value; bitField0_ |= 0x00002000; onChanged(); @@ -2306,7 +2271,7 @@ public int getPInt32() { * @return This builder for chaining. */ public Builder setPInt32(int value) { - + pInt32_ = value; bitField0_ |= 0x00040000; onChanged(); @@ -2346,7 +2311,7 @@ public double getPDouble() { * @return This builder for chaining. */ public Builder setPDouble(double value) { - + pDouble_ = value; bitField0_ |= 0x00080000; onChanged(); @@ -2386,7 +2351,7 @@ public boolean getPBool() { * @return This builder for chaining. */ public Builder setPBool(boolean value) { - + pBool_ = value; bitField0_ |= 0x00100000; onChanged(); diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChild.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChild.java index 4c7b7b1642..36b3100d87 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChild.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChild.java @@ -29,11 +29,6 @@ protected java.lang.Object newInstance( return new ComplianceDataChild(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceDataChild_descriptor; @@ -578,11 +573,13 @@ public static com.google.showcase.v1beta1.ComplianceDataChild parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ComplianceDataChild parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ComplianceDataChild parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -767,38 +764,6 @@ private void buildPartial0(com.google.showcase.v1beta1.ComplianceDataChild resul result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ComplianceDataChild) { @@ -1045,7 +1010,7 @@ public float getFFloat() { * @return This builder for chaining. */ public Builder setFFloat(float value) { - + fFloat_ = value; bitField0_ |= 0x00000002; onChanged(); @@ -1077,7 +1042,7 @@ public double getFDouble() { * @return This builder for chaining. */ public Builder setFDouble(double value) { - + fDouble_ = value; bitField0_ |= 0x00000004; onChanged(); @@ -1109,7 +1074,7 @@ public boolean getFBool() { * @return This builder for chaining. */ public Builder setFBool(boolean value) { - + fBool_ = value; bitField0_ |= 0x00000008; onChanged(); @@ -1400,7 +1365,7 @@ public float getPFloat() { * @return This builder for chaining. */ public Builder setPFloat(float value) { - + pFloat_ = value; bitField0_ |= 0x00000080; onChanged(); @@ -1440,7 +1405,7 @@ public double getPDouble() { * @return This builder for chaining. */ public Builder setPDouble(double value) { - + pDouble_ = value; bitField0_ |= 0x00000100; onChanged(); @@ -1480,7 +1445,7 @@ public boolean getPBool() { * @return This builder for chaining. */ public Builder setPBool(boolean value) { - + pBool_ = value; bitField0_ |= 0x00000200; onChanged(); diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchild.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchild.java index 72b11003cb..fcad641a3d 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchild.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchild.java @@ -26,11 +26,6 @@ protected java.lang.Object newInstance( return new ComplianceDataGrandchild(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_descriptor; @@ -238,11 +233,13 @@ public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -365,38 +362,6 @@ private void buildPartial0(com.google.showcase.v1beta1.ComplianceDataGrandchild } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ComplianceDataGrandchild) { @@ -565,7 +530,7 @@ public double getFDouble() { * @return This builder for chaining. */ public Builder setFDouble(double value) { - + fDouble_ = value; bitField0_ |= 0x00000002; onChanged(); @@ -597,7 +562,7 @@ public boolean getFBool() { * @return This builder for chaining. */ public Builder setFBool(boolean value) { - + fBool_ = value; bitField0_ |= 0x00000004; onChanged(); diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroup.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroup.java index 68c1d98408..32797468be 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroup.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroup.java @@ -23,7 +23,8 @@ private ComplianceGroup(com.google.protobuf.GeneratedMessageV3.Builder builde } private ComplianceGroup() { name_ = ""; - rpcs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + rpcs_ = + com.google.protobuf.LazyStringArrayList.emptyList(); requests_ = java.util.Collections.emptyList(); } @@ -34,11 +35,6 @@ protected java.lang.Object newInstance( return new ComplianceGroup(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceGroup_descriptor; @@ -93,7 +89,8 @@ public java.lang.String getName() { public static final int RPCS_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList rpcs_; + private com.google.protobuf.LazyStringArrayList rpcs_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string rpcs = 2; * @return A list containing the rpcs. @@ -306,11 +303,13 @@ public static com.google.showcase.v1beta1.ComplianceGroup parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ComplianceGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ComplianceGroup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -393,8 +392,8 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; - rpcs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + rpcs_ = + com.google.protobuf.LazyStringArrayList.emptyList(); if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); } else { @@ -435,11 +434,6 @@ public com.google.showcase.v1beta1.ComplianceGroup buildPartial() { } private void buildPartialRepeatedFields(com.google.showcase.v1beta1.ComplianceGroup result) { - if (((bitField0_ & 0x00000002) != 0)) { - rpcs_ = rpcs_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.rpcs_ = rpcs_; if (requestsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); @@ -456,40 +450,12 @@ private void buildPartial0(com.google.showcase.v1beta1.ComplianceGroup result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + rpcs_.makeImmutable(); + result.rpcs_ = rpcs_; + } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ComplianceGroup) { @@ -510,7 +476,7 @@ public Builder mergeFrom(com.google.showcase.v1beta1.ComplianceGroup other) { if (!other.rpcs_.isEmpty()) { if (rpcs_.isEmpty()) { rpcs_ = other.rpcs_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ |= 0x00000002; } else { ensureRpcsIsMutable(); rpcs_.addAll(other.rpcs_); @@ -682,12 +648,13 @@ public Builder setNameBytes( return this; } - private com.google.protobuf.LazyStringList rpcs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList rpcs_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureRpcsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!rpcs_.isModifiable()) { rpcs_ = new com.google.protobuf.LazyStringArrayList(rpcs_); - bitField0_ |= 0x00000002; - } + } + bitField0_ |= 0x00000002; } /** * repeated string rpcs = 2; @@ -695,7 +662,8 @@ private void ensureRpcsIsMutable() { */ public com.google.protobuf.ProtocolStringList getRpcsList() { - return rpcs_.getUnmodifiableView(); + rpcs_.makeImmutable(); + return rpcs_; } /** * repeated string rpcs = 2; @@ -732,6 +700,7 @@ public Builder setRpcs( if (value == null) { throw new NullPointerException(); } ensureRpcsIsMutable(); rpcs_.set(index, value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -745,6 +714,7 @@ public Builder addRpcs( if (value == null) { throw new NullPointerException(); } ensureRpcsIsMutable(); rpcs_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -758,6 +728,7 @@ public Builder addAllRpcs( ensureRpcsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rpcs_); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -766,8 +737,9 @@ public Builder addAllRpcs( * @return This builder for chaining. */ public Builder clearRpcs() { - rpcs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + rpcs_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } @@ -782,6 +754,7 @@ public Builder addRpcsBytes( checkByteStringIsUtf8(value); ensureRpcsIsMutable(); rpcs_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuite.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuite.java index 58cee3e006..d45ffa06da 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuite.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuite.java @@ -32,11 +32,6 @@ protected java.lang.Object newInstance( return new ComplianceSuite(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceSuite_descriptor; @@ -202,11 +197,13 @@ public static com.google.showcase.v1beta1.ComplianceSuite parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ComplianceSuite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ComplianceSuite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -343,38 +340,6 @@ private void buildPartial0(com.google.showcase.v1beta1.ComplianceSuite result) { int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ComplianceSuite) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequest.java index 0826ff499e..5541d2e9fb 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequest.java @@ -30,11 +30,6 @@ protected java.lang.Object newInstance( return new ConnectRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ConnectRequest_descriptor; @@ -95,11 +90,6 @@ protected java.lang.Object newInstance( return new ConnectConfig(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_descriptor; @@ -268,11 +258,13 @@ public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -387,38 +379,6 @@ private void buildPartial0(com.google.showcase.v1beta1.ConnectRequest.ConnectCon } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) { @@ -640,6 +600,7 @@ public com.google.showcase.v1beta1.ConnectRequest.ConnectConfig getDefaultInstan } private int requestCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object request_; public enum RequestCase implements com.google.protobuf.Internal.EnumLite, @@ -906,11 +867,13 @@ public static com.google.showcase.v1beta1.ConnectRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ConnectRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ConnectRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1048,38 +1011,6 @@ private void buildPartialOneofs(com.google.showcase.v1beta1.ConnectRequest resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ConnectRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequestOrBuilder.java index 69ed6fc296..64bf69cd41 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequestOrBuilder.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequestOrBuilder.java @@ -64,5 +64,5 @@ public interface ConnectRequestOrBuilder extends */ com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder(); - public com.google.showcase.v1beta1.ConnectRequest.RequestCase getRequestCase(); + com.google.showcase.v1beta1.ConnectRequest.RequestCase getRequestCase(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequest.java index c39ae40105..0b2fc22df3 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequest.java @@ -31,11 +31,6 @@ protected java.lang.Object newInstance( return new CreateBlurbRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_CreateBlurbRequest_descriptor; @@ -260,11 +255,13 @@ public static com.google.showcase.v1beta1.CreateBlurbRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.CreateBlurbRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.CreateBlurbRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -394,38 +391,6 @@ private void buildPartial0(com.google.showcase.v1beta1.CreateBlurbRequest result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.CreateBlurbRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequest.java index 4c7d195730..feeb7a83a3 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequest.java @@ -30,11 +30,6 @@ protected java.lang.Object newInstance( return new CreateRoomRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_CreateRoomRequest_descriptor; @@ -200,11 +195,13 @@ public static com.google.showcase.v1beta1.CreateRoomRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.CreateRoomRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.CreateRoomRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -330,38 +327,6 @@ private void buildPartial0(com.google.showcase.v1beta1.CreateRoomRequest result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.CreateRoomRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequest.java index d61cf1e5a7..23fd2f1384 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequest.java @@ -25,11 +25,6 @@ protected java.lang.Object newInstance( return new CreateSequenceRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateSequenceRequest_descriptor; @@ -183,11 +178,13 @@ public static com.google.showcase.v1beta1.CreateSequenceRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.CreateSequenceRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.CreateSequenceRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -308,38 +305,6 @@ private void buildPartial0(com.google.showcase.v1beta1.CreateSequenceRequest res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.CreateSequenceRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequest.java index 6a20488a06..675e720f35 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequest.java @@ -29,11 +29,6 @@ protected java.lang.Object newInstance( return new CreateSessionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_CreateSessionRequest_descriptor; @@ -205,11 +200,13 @@ public static com.google.showcase.v1beta1.CreateSessionRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.CreateSessionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.CreateSessionRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -334,38 +331,6 @@ private void buildPartial0(com.google.showcase.v1beta1.CreateSessionRequest resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.CreateSessionRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequest.java index 06d85837dc..e94bcd5827 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequest.java @@ -25,11 +25,6 @@ protected java.lang.Object newInstance( return new CreateStreamingSequenceRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_descriptor; @@ -183,11 +178,13 @@ public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFr return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -308,38 +305,6 @@ private void buildPartial0(com.google.showcase.v1beta1.CreateStreamingSequenceRe } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.CreateStreamingSequenceRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequest.java index 1164eb3bf0..ff704b4a69 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequest.java @@ -30,11 +30,6 @@ protected java.lang.Object newInstance( return new CreateUserRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_CreateUserRequest_descriptor; @@ -200,11 +195,13 @@ public static com.google.showcase.v1beta1.CreateUserRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.CreateUserRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.CreateUserRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -330,38 +327,6 @@ private void buildPartial0(com.google.showcase.v1beta1.CreateUserRequest result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.CreateUserRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequest.java index 37948407ed..bc371ff71a 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequest.java @@ -31,11 +31,6 @@ protected java.lang.Object newInstance( return new DeleteBlurbRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_DeleteBlurbRequest_descriptor; @@ -204,11 +199,13 @@ public static com.google.showcase.v1beta1.DeleteBlurbRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteBlurbRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.DeleteBlurbRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -328,38 +325,6 @@ private void buildPartial0(com.google.showcase.v1beta1.DeleteBlurbRequest result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.DeleteBlurbRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequest.java index 22af5de200..e9965b69b8 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequest.java @@ -31,11 +31,6 @@ protected java.lang.Object newInstance( return new DeleteRoomRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_DeleteRoomRequest_descriptor; @@ -204,11 +199,13 @@ public static com.google.showcase.v1beta1.DeleteRoomRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteRoomRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.DeleteRoomRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -328,38 +325,6 @@ private void buildPartial0(com.google.showcase.v1beta1.DeleteRoomRequest result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.DeleteRoomRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequest.java index 5dc2f44c60..8005196e2c 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequest.java @@ -30,11 +30,6 @@ protected java.lang.Object newInstance( return new DeleteSessionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_DeleteSessionRequest_descriptor; @@ -203,11 +198,13 @@ public static com.google.showcase.v1beta1.DeleteSessionRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteSessionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.DeleteSessionRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -326,38 +323,6 @@ private void buildPartial0(com.google.showcase.v1beta1.DeleteSessionRequest resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.DeleteSessionRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequest.java index 5668a946ff..d292513fc7 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequest.java @@ -30,11 +30,6 @@ protected java.lang.Object newInstance( return new DeleteTestRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_DeleteTestRequest_descriptor; @@ -203,11 +198,13 @@ public static com.google.showcase.v1beta1.DeleteTestRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteTestRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.DeleteTestRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -326,38 +323,6 @@ private void buildPartial0(com.google.showcase.v1beta1.DeleteTestRequest result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.DeleteTestRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequest.java index 1e0248e6f0..9b5a6f59f3 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequest.java @@ -31,11 +31,6 @@ protected java.lang.Object newInstance( return new DeleteUserRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_DeleteUserRequest_descriptor; @@ -204,11 +199,13 @@ public static com.google.showcase.v1beta1.DeleteUserRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteUserRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.DeleteUserRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -328,38 +325,6 @@ private void buildPartial0(com.google.showcase.v1beta1.DeleteUserRequest result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.DeleteUserRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java index a605e0df52..e11816f093 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java @@ -110,78 +110,78 @@ public static void registerAllExtensions( "1.Severity\"x\n\rExpandRequest\022\017\n\007content\030\001" + " \001(\t\022!\n\005error\030\002 \001(\0132\022.google.rpc.Status\022" + "3\n\020stream_wait_time\030\003 \001(\0132\031.google.proto" + - "buf.Duration\"Q\n\022PagedExpandRequest\022\024\n\007co" + - "ntent\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" + - "age_token\030\003 \001(\t\"Y\n\030PagedExpandLegacyRequ" + - "est\022\024\n\007content\030\001 \001(\tB\003\340A\002\022\023\n\013max_results" + - "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"h\n\023PagedExpan" + - "dResponse\0228\n\tresponses\030\001 \003(\0132%.google.sh" + - "owcase.v1beta1.EchoResponse\022\027\n\017next_page" + - "_token\030\002 \001(\t\"(\n\027PagedExpandResponseList\022" + - "\r\n\005words\030\001 \003(\t\"\203\002\n\037PagedExpandLegacyMapp" + - "edResponse\022`\n\014alphabetized\030\001 \003(\0132J.googl" + - "e.showcase.v1beta1.PagedExpandLegacyMapp" + - "edResponse.AlphabetizedEntry\022\027\n\017next_pag" + - "e_token\030\002 \001(\t\032e\n\021AlphabetizedEntry\022\013\n\003ke" + - "y\030\001 \001(\t\022?\n\005value\030\002 \001(\01320.google.showcase" + - ".v1beta1.PagedExpandResponseList:\0028\001\"\331\001\n" + - "\013WaitRequest\022.\n\010end_time\030\001 \001(\0132\032.google." + - "protobuf.TimestampH\000\022(\n\003ttl\030\004 \001(\0132\031.goog" + - "le.protobuf.DurationH\000\022#\n\005error\030\002 \001(\0132\022." + - "google.rpc.StatusH\001\0228\n\007success\030\003 \001(\0132%.g" + - "oogle.showcase.v1beta1.WaitResponseH\001B\005\n" + - "\003endB\n\n\010response\"\037\n\014WaitResponse\022\017\n\007cont" + - "ent\030\001 \001(\t\"<\n\014WaitMetadata\022,\n\010end_time\030\001 " + - "\001(\0132\032.google.protobuf.Timestamp\"\255\001\n\014Bloc" + - "kRequest\0221\n\016response_delay\030\001 \001(\0132\031.googl" + - "e.protobuf.Duration\022#\n\005error\030\002 \001(\0132\022.goo" + - "gle.rpc.StatusH\000\0229\n\007success\030\003 \001(\0132&.goog" + - "le.showcase.v1beta1.BlockResponseH\000B\n\n\010r" + - "esponse\" \n\rBlockResponse\022\017\n\007content\030\001 \001(" + - "\t*D\n\010Severity\022\017\n\013UNNECESSARY\020\000\022\r\n\tNECESS" + - "ARY\020\001\022\n\n\006URGENT\020\002\022\014\n\010CRITICAL\020\0032\377\013\n\004Echo" + - "\022\224\003\n\004Echo\022$.google.showcase.v1beta1.Echo" + - "Request\032%.google.showcase.v1beta1.EchoRe" + - "sponse\"\276\002\202\323\344\223\002\027\"\022/v1beta1/echo:echo:\001*\212\323" + - "\344\223\002\232\002\022\010\n\006header\022\031\n\006header\022\017{routing_id=*" + - "*}\022+\n\006header\022!{table_name=regions/*/zone" + - "s/*/**}\022\"\n\006header\022\030{super_id=projects/*}" + - "/**\0220\n\006header\022&{table_name=projects/*/in" + - "stances/*/**}\0221\n\006header\022\'projects/*/{ins" + - "tance_id=instances/*}/**\022\030\n\014other_header" + - "\022\010{baz=**}\022#\n\014other_header\022\023{qux=project" + - "s/*}/**\022\212\001\n\006Expand\022&.google.showcase.v1b" + - "eta1.ExpandRequest\032%.google.showcase.v1b" + - "eta1.EchoResponse\"/\202\323\344\223\002\031\"\024/v1beta1/echo" + - ":expand:\001*\332A\rcontent,error0\001\022z\n\007Collect\022" + - "$.google.showcase.v1beta1.EchoRequest\032%." + - "google.showcase.v1beta1.EchoResponse\" \202\323" + - "\344\223\002\032\"\025/v1beta1/echo:collect:\001*(\001\022W\n\004Chat" + - "\022$.google.showcase.v1beta1.EchoRequest\032%" + - ".google.showcase.v1beta1.EchoResponse(\0010" + - "\001\022\216\001\n\013PagedExpand\022+.google.showcase.v1be" + - "ta1.PagedExpandRequest\032,.google.showcase" + - ".v1beta1.PagedExpandResponse\"$\202\323\344\223\002\036\"\031/v" + - "1beta1/echo:pagedExpand:\001*\022\240\001\n\021PagedExpa" + - "ndLegacy\0221.google.showcase.v1beta1.Paged" + - "ExpandLegacyRequest\032,.google.showcase.v1" + - "beta1.PagedExpandResponse\"*\202\323\344\223\002$\"\037/v1be" + - "ta1/echo:pagedExpandLegacy:\001*\022\262\001\n\027PagedE" + - "xpandLegacyMapped\022+.google.showcase.v1be" + - "ta1.PagedExpandRequest\0328.google.showcase" + - ".v1beta1.PagedExpandLegacyMappedResponse" + - "\"0\202\323\344\223\002*\"%/v1beta1/echo:pagedExpandLegac" + - "yMapped:\001*\022\211\001\n\004Wait\022$.google.showcase.v1" + - "beta1.WaitRequest\032\035.google.longrunning.O" + - "peration\"<\202\323\344\223\002\027\"\022/v1beta1/echo:wait:\001*\312" + - "A\034\n\014WaitResponse\022\014WaitMetadata\022v\n\005Block\022" + - "%.google.showcase.v1beta1.BlockRequest\032&" + - ".google.showcase.v1beta1.BlockResponse\"\036" + - "\202\323\344\223\002\030\"\023/v1beta1/echo:block:\001*\032\021\312A\016local" + - "host:7469Bq\n\033com.google.showcase.v1beta1" + - "P\001Z4github.com/googleapis/gapic-showcase" + - "/server/genproto\352\002\031Google::Showcase::V1b" + - "eta1b\006proto3" + "buf.Duration\"R\n\022PagedExpandRequest\022\025\n\007co" + + "ntent\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\"Z\n\030PagedExpandLegacyReq" + + "uest\022\025\n\007content\030\001 \001(\tB\004\342A\001\002\022\023\n\013max_resul" + + "ts\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"h\n\023PagedExp" + + "andResponse\0228\n\tresponses\030\001 \003(\0132%.google." + + "showcase.v1beta1.EchoResponse\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\"(\n\027PagedExpandResponseLis" + + "t\022\r\n\005words\030\001 \003(\t\"\203\002\n\037PagedExpandLegacyMa" + + "ppedResponse\022`\n\014alphabetized\030\001 \003(\0132J.goo" + + "gle.showcase.v1beta1.PagedExpandLegacyMa" + + "ppedResponse.AlphabetizedEntry\022\027\n\017next_p" + + "age_token\030\002 \001(\t\032e\n\021AlphabetizedEntry\022\013\n\003" + + "key\030\001 \001(\t\022?\n\005value\030\002 \001(\01320.google.showca" + + "se.v1beta1.PagedExpandResponseList:\0028\001\"\331" + + "\001\n\013WaitRequest\022.\n\010end_time\030\001 \001(\0132\032.googl" + + "e.protobuf.TimestampH\000\022(\n\003ttl\030\004 \001(\0132\031.go" + + "ogle.protobuf.DurationH\000\022#\n\005error\030\002 \001(\0132" + + "\022.google.rpc.StatusH\001\0228\n\007success\030\003 \001(\0132%" + + ".google.showcase.v1beta1.WaitResponseH\001B" + + "\005\n\003endB\n\n\010response\"\037\n\014WaitResponse\022\017\n\007co" + + "ntent\030\001 \001(\t\"<\n\014WaitMetadata\022,\n\010end_time\030" + + "\001 \001(\0132\032.google.protobuf.Timestamp\"\255\001\n\014Bl" + + "ockRequest\0221\n\016response_delay\030\001 \001(\0132\031.goo" + + "gle.protobuf.Duration\022#\n\005error\030\002 \001(\0132\022.g" + + "oogle.rpc.StatusH\000\0229\n\007success\030\003 \001(\0132&.go" + + "ogle.showcase.v1beta1.BlockResponseH\000B\n\n" + + "\010response\" \n\rBlockResponse\022\017\n\007content\030\001 " + + "\001(\t*D\n\010Severity\022\017\n\013UNNECESSARY\020\000\022\r\n\tNECE" + + "SSARY\020\001\022\n\n\006URGENT\020\002\022\014\n\010CRITICAL\020\0032\377\013\n\004Ec" + + "ho\022\224\003\n\004Echo\022$.google.showcase.v1beta1.Ec" + + "hoRequest\032%.google.showcase.v1beta1.Echo" + + "Response\"\276\002\202\323\344\223\002\027\"\022/v1beta1/echo:echo:\001*" + + "\212\323\344\223\002\232\002\022\010\n\006header\022\031\n\006header\022\017{routing_id" + + "=**}\022+\n\006header\022!{table_name=regions/*/zo" + + "nes/*/**}\022\"\n\006header\022\030{super_id=projects/" + + "*}/**\0220\n\006header\022&{table_name=projects/*/" + + "instances/*/**}\0221\n\006header\022\'projects/*/{i" + + "nstance_id=instances/*}/**\022\030\n\014other_head" + + "er\022\010{baz=**}\022#\n\014other_header\022\023{qux=proje" + + "cts/*}/**\022\212\001\n\006Expand\022&.google.showcase.v" + + "1beta1.ExpandRequest\032%.google.showcase.v" + + "1beta1.EchoResponse\"/\332A\rcontent,error\202\323\344" + + "\223\002\031\"\024/v1beta1/echo:expand:\001*0\001\022z\n\007Collec" + + "t\022$.google.showcase.v1beta1.EchoRequest\032" + + "%.google.showcase.v1beta1.EchoResponse\" " + + "\202\323\344\223\002\032\"\025/v1beta1/echo:collect:\001*(\001\022W\n\004Ch" + + "at\022$.google.showcase.v1beta1.EchoRequest" + + "\032%.google.showcase.v1beta1.EchoResponse(" + + "\0010\001\022\216\001\n\013PagedExpand\022+.google.showcase.v1" + + "beta1.PagedExpandRequest\032,.google.showca" + + "se.v1beta1.PagedExpandResponse\"$\202\323\344\223\002\036\"\031" + + "/v1beta1/echo:pagedExpand:\001*\022\240\001\n\021PagedEx" + + "pandLegacy\0221.google.showcase.v1beta1.Pag" + + "edExpandLegacyRequest\032,.google.showcase." + + "v1beta1.PagedExpandResponse\"*\202\323\344\223\002$\"\037/v1" + + "beta1/echo:pagedExpandLegacy:\001*\022\262\001\n\027Page" + + "dExpandLegacyMapped\022+.google.showcase.v1" + + "beta1.PagedExpandRequest\0328.google.showca" + + "se.v1beta1.PagedExpandLegacyMappedRespon" + + "se\"0\202\323\344\223\002*\"%/v1beta1/echo:pagedExpandLeg" + + "acyMapped:\001*\022\211\001\n\004Wait\022$.google.showcase." + + "v1beta1.WaitRequest\032\035.google.longrunning" + + ".Operation\"<\312A\034\n\014WaitResponse\022\014WaitMetad" + + "ata\202\323\344\223\002\027\"\022/v1beta1/echo:wait:\001*\022v\n\005Bloc" + + "k\022%.google.showcase.v1beta1.BlockRequest" + + "\032&.google.showcase.v1beta1.BlockResponse" + + "\"\036\202\323\344\223\002\030\"\023/v1beta1/echo:block:\001*\032\021\312A\016loc" + + "alhost:7469Bq\n\033com.google.showcase.v1bet" + + "a1P\001Z4github.com/googleapis/gapic-showca" + + "se/server/genproto\352\002\031Google::Showcase::V" + + "1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequest.java index 5cf123e2ff..64b01d5588 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequest.java @@ -35,11 +35,6 @@ protected java.lang.Object newInstance( return new EchoRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoRequest_descriptor; @@ -54,6 +49,7 @@ protected java.lang.Object newInstance( } private int responseCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object response_; public enum ResponseCase implements com.google.protobuf.Internal.EnumLite, @@ -487,11 +483,13 @@ public static com.google.showcase.v1beta1.EchoRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.EchoRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.EchoRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -636,38 +634,6 @@ private void buildPartialOneofs(com.google.showcase.v1beta1.EchoRequest result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.EchoRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequestOrBuilder.java index 08bd7d605f..ab23d6d740 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequestOrBuilder.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequestOrBuilder.java @@ -122,5 +122,5 @@ public interface EchoRequestOrBuilder extends com.google.protobuf.ByteString getOtherHeaderBytes(); - public com.google.showcase.v1beta1.EchoRequest.ResponseCase getResponseCase(); + com.google.showcase.v1beta1.EchoRequest.ResponseCase getResponseCase(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponse.java index 7b6d388734..c6ed3d116e 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponse.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponse.java @@ -31,11 +31,6 @@ protected java.lang.Object newInstance( return new EchoResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoResponse_descriptor; @@ -240,11 +235,13 @@ public static com.google.showcase.v1beta1.EchoResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.EchoResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.EchoResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -367,38 +364,6 @@ private void buildPartial0(com.google.showcase.v1beta1.EchoResponse result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.EchoResponse) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequest.java index 098ae16ab5..ca87fc50cf 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequest.java @@ -25,11 +25,6 @@ protected java.lang.Object newInstance( return new EnumRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_EnumRequest_descriptor; @@ -168,11 +163,13 @@ public static com.google.showcase.v1beta1.EnumRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.EnumRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.EnumRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -287,38 +284,6 @@ private void buildPartial0(com.google.showcase.v1beta1.EnumRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.EnumRequest) { @@ -405,7 +370,7 @@ public boolean getUnknownEnum() { * @return This builder for chaining. */ public Builder setUnknownEnum(boolean value) { - + unknownEnum_ = value; bitField0_ |= 0x00000001; onChanged(); diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponse.java index 98bd56fdce..50c511d060 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponse.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponse.java @@ -26,11 +26,6 @@ protected java.lang.Object newInstance( return new EnumResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_EnumResponse_descriptor; @@ -232,11 +227,13 @@ public static com.google.showcase.v1beta1.EnumResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.EnumResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.EnumResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -361,38 +358,6 @@ private void buildPartial0(com.google.showcase.v1beta1.EnumResponse result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.EnumResponse) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequest.java index 3348bc259d..5b949ba7c4 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequest.java @@ -30,11 +30,6 @@ protected java.lang.Object newInstance( return new ExpandRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ExpandRequest_descriptor; @@ -311,11 +306,13 @@ public static com.google.showcase.v1beta1.ExpandRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ExpandRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ExpandRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -454,38 +451,6 @@ private void buildPartial0(com.google.showcase.v1beta1.ExpandRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ExpandRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequest.java index 73f169ec05..4fe9579c6d 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequest.java @@ -31,11 +31,6 @@ protected java.lang.Object newInstance( return new GetBlurbRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_GetBlurbRequest_descriptor; @@ -204,11 +199,13 @@ public static com.google.showcase.v1beta1.GetBlurbRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.GetBlurbRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.GetBlurbRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -328,38 +325,6 @@ private void buildPartial0(com.google.showcase.v1beta1.GetBlurbRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.GetBlurbRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequest.java index 80285bfdb2..213b70ae07 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequest.java @@ -31,11 +31,6 @@ protected java.lang.Object newInstance( return new GetRoomRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_GetRoomRequest_descriptor; @@ -204,11 +199,13 @@ public static com.google.showcase.v1beta1.GetRoomRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.GetRoomRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.GetRoomRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -328,38 +325,6 @@ private void buildPartial0(com.google.showcase.v1beta1.GetRoomRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.GetRoomRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequest.java index 2ed1542d94..4c7a62e0a6 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequest.java @@ -26,11 +26,6 @@ protected java.lang.Object newInstance( return new GetSequenceReportRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetSequenceReportRequest_descriptor; @@ -191,11 +186,13 @@ public static com.google.showcase.v1beta1.GetSequenceReportRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.GetSequenceReportRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.GetSequenceReportRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -310,38 +307,6 @@ private void buildPartial0(com.google.showcase.v1beta1.GetSequenceReportRequest } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.GetSequenceReportRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequest.java index 350804adec..2aaf796a55 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequest.java @@ -30,11 +30,6 @@ protected java.lang.Object newInstance( return new GetSessionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_GetSessionRequest_descriptor; @@ -203,11 +198,13 @@ public static com.google.showcase.v1beta1.GetSessionRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.GetSessionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.GetSessionRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -326,38 +323,6 @@ private void buildPartial0(com.google.showcase.v1beta1.GetSessionRequest result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.GetSessionRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequest.java index 96b0d6df99..bea8204a64 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequest.java @@ -26,11 +26,6 @@ protected java.lang.Object newInstance( return new GetStreamingSequenceReportRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_descriptor; @@ -191,11 +186,13 @@ public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest pars return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -310,38 +307,6 @@ private void buildPartial0(com.google.showcase.v1beta1.GetStreamingSequenceRepor } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.GetStreamingSequenceReportRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequest.java index 2b8a010c28..ff45135919 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequest.java @@ -31,11 +31,6 @@ protected java.lang.Object newInstance( return new GetUserRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_GetUserRequest_descriptor; @@ -204,11 +199,13 @@ public static com.google.showcase.v1beta1.GetUserRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.GetUserRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.GetUserRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -328,38 +325,6 @@ private void buildPartial0(com.google.showcase.v1beta1.GetUserRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.GetUserRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityOuterClass.java index 2e42ad5a01..9d5cf7e844 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityOuterClass.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityOuterClass.java @@ -65,51 +65,51 @@ public static void registerAllExtensions( "\032\031google/api/resource.proto\032\033google/prot" + "obuf/empty.proto\032 google/protobuf/field_" + "mask.proto\032\037google/protobuf/timestamp.pr" + - "oto\"\204\003\n\004User\022\014\n\004name\030\001 \001(\t\022\031\n\014display_na" + - "me\030\002 \001(\tB\003\340A\002\022\022\n\005email\030\003 \001(\tB\003\340A\002\0224\n\013cre" + - "ate_time\030\004 \001(\0132\032.google.protobuf.Timesta" + - "mpB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.google.pr" + - "otobuf.TimestampB\003\340A\003\022\020\n\003age\030\006 \001(\005H\000\210\001\001\022" + - "\030\n\013height_feet\030\007 \001(\001H\001\210\001\001\022\025\n\010nickname\030\010 " + - "\001(\tH\002\210\001\001\022!\n\024enable_notifications\030\t \001(\010H\003" + - "\210\001\001:/\352A,\n\034showcase.googleapis.com/User\022\014" + - "users/{user}B\006\n\004_ageB\016\n\014_height_feetB\013\n\t" + - "_nicknameB\027\n\025_enable_notifications\"@\n\021Cr" + - "eateUserRequest\022+\n\004user\030\001 \001(\0132\035.google.s" + - "howcase.v1beta1.User\"D\n\016GetUserRequest\0222" + - "\n\004name\030\001 \001(\tB$\372A\036\n\034showcase.googleapis.c" + - "om/User\340A\002\"q\n\021UpdateUserRequest\022+\n\004user\030" + - "\001 \001(\0132\035.google.showcase.v1beta1.User\022/\n\013" + - "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + - "dMask\"G\n\021DeleteUserRequest\0222\n\004name\030\001 \001(\t" + - "B$\372A\036\n\034showcase.googleapis.com/User\340A\002\"9" + - "\n\020ListUsersRequest\022\021\n\tpage_size\030\001 \001(\005\022\022\n" + - "\npage_token\030\002 \001(\t\"Z\n\021ListUsersResponse\022," + - "\n\005users\030\001 \003(\0132\035.google.showcase.v1beta1." + - "User\022\027\n\017next_page_token\030\002 \001(\t2\212\006\n\010Identi" + - "ty\022\363\001\n\nCreateUser\022*.google.showcase.v1be" + - "ta1.CreateUserRequest\032\035.google.showcase." + - "v1beta1.User\"\231\001\202\323\344\223\002\023\"\016/v1beta1/users:\001*" + - "\332A\034user.display_name,user.email\332A^user.d" + - "isplay_name,user.email,user.age,user.nic" + - "kname,user.enable_notifications,user.hei" + - "ght_feet\022y\n\007GetUser\022\'.google.showcase.v1" + - "beta1.GetUserRequest\032\035.google.showcase.v" + - "1beta1.User\"&\202\323\344\223\002\031\022\027/v1beta1/{name=user" + - "s/*}\332A\004name\022\203\001\n\nUpdateUser\022*.google.show" + - "case.v1beta1.UpdateUserRequest\032\035.google." + - "showcase.v1beta1.User\"*\202\323\344\223\002$2\034/v1beta1/" + - "{user.name=users/*}:\004user\022x\n\nDeleteUser\022" + - "*.google.showcase.v1beta1.DeleteUserRequ" + - "est\032\026.google.protobuf.Empty\"&\202\323\344\223\002\031*\027/v1" + - "beta1/{name=users/*}\332A\004name\022z\n\tListUsers" + - "\022).google.showcase.v1beta1.ListUsersRequ" + - "est\032*.google.showcase.v1beta1.ListUsersR" + - "esponse\"\026\202\323\344\223\002\020\022\016/v1beta1/users\032\021\312A\016loca" + - "lhost:7469Bq\n\033com.google.showcase.v1beta" + - "1P\001Z4github.com/googleapis/gapic-showcas" + - "e/server/genproto\352\002\031Google::Showcase::V1" + - "beta1b\006proto3" + "oto\"\210\003\n\004User\022\014\n\004name\030\001 \001(\t\022\032\n\014display_na" + + "me\030\002 \001(\tB\004\342A\001\002\022\023\n\005email\030\003 \001(\tB\004\342A\001\002\0225\n\013c" + + "reate_time\030\004 \001(\0132\032.google.protobuf.Times" + + "tampB\004\342A\001\003\0225\n\013update_time\030\005 \001(\0132\032.google" + + ".protobuf.TimestampB\004\342A\001\003\022\020\n\003age\030\006 \001(\005H\000" + + "\210\001\001\022\030\n\013height_feet\030\007 \001(\001H\001\210\001\001\022\025\n\010nicknam" + + "e\030\010 \001(\tH\002\210\001\001\022!\n\024enable_notifications\030\t \001" + + "(\010H\003\210\001\001:/\352A,\n\034showcase.googleapis.com/Us" + + "er\022\014users/{user}B\006\n\004_ageB\016\n\014_height_feet" + + "B\013\n\t_nicknameB\027\n\025_enable_notifications\"@" + + "\n\021CreateUserRequest\022+\n\004user\030\001 \001(\0132\035.goog" + + "le.showcase.v1beta1.User\"E\n\016GetUserReque" + + "st\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036\n\034showcase.goog" + + "leapis.com/User\"q\n\021UpdateUserRequest\022+\n\004" + + "user\030\001 \001(\0132\035.google.showcase.v1beta1.Use" + + "r\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf" + + ".FieldMask\"H\n\021DeleteUserRequest\0223\n\004name\030" + + "\001 \001(\tB%\342A\001\002\372A\036\n\034showcase.googleapis.com/" + + "User\"9\n\020ListUsersRequest\022\021\n\tpage_size\030\001 " + + "\001(\005\022\022\n\npage_token\030\002 \001(\t\"Z\n\021ListUsersResp" + + "onse\022,\n\005users\030\001 \003(\0132\035.google.showcase.v1" + + "beta1.User\022\027\n\017next_page_token\030\002 \001(\t2\212\006\n\010" + + "Identity\022\363\001\n\nCreateUser\022*.google.showcas" + + "e.v1beta1.CreateUserRequest\032\035.google.sho" + + "wcase.v1beta1.User\"\231\001\332A\034user.display_nam" + + "e,user.email\332A^user.display_name,user.em" + + "ail,user.age,user.nickname,user.enable_n" + + "otifications,user.height_feet\202\323\344\223\002\023\"\016/v1" + + "beta1/users:\001*\022y\n\007GetUser\022\'.google.showc" + + "ase.v1beta1.GetUserRequest\032\035.google.show" + + "case.v1beta1.User\"&\332A\004name\202\323\344\223\002\031\022\027/v1bet" + + "a1/{name=users/*}\022\203\001\n\nUpdateUser\022*.googl" + + "e.showcase.v1beta1.UpdateUserRequest\032\035.g" + + "oogle.showcase.v1beta1.User\"*\202\323\344\223\002$2\034/v1" + + "beta1/{user.name=users/*}:\004user\022x\n\nDelet" + + "eUser\022*.google.showcase.v1beta1.DeleteUs" + + "erRequest\032\026.google.protobuf.Empty\"&\332A\004na" + + "me\202\323\344\223\002\031*\027/v1beta1/{name=users/*}\022z\n\tLis" + + "tUsers\022).google.showcase.v1beta1.ListUse" + + "rsRequest\032*.google.showcase.v1beta1.List" + + "UsersResponse\"\026\202\323\344\223\002\020\022\016/v1beta1/users\032\021\312" + + "A\016localhost:7469Bq\n\033com.google.showcase." + + "v1beta1P\001Z4github.com/googleapis/gapic-s" + + "howcase/server/genproto\352\002\031Google::Showca" + + "se::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Issue.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Issue.java index 794571db2d..7e89d68649 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Issue.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Issue.java @@ -32,11 +32,6 @@ protected java.lang.Object newInstance( return new Issue(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Issue_descriptor; @@ -570,11 +565,13 @@ public static com.google.showcase.v1beta1.Issue parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.Issue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.Issue parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -701,38 +698,6 @@ private void buildPartial0(com.google.showcase.v1beta1.Issue result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.Issue) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequest.java index 0cff13fff3..4b975129f3 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequest.java @@ -32,11 +32,6 @@ protected java.lang.Object newInstance( return new ListBlurbsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListBlurbsRequest_descriptor; @@ -294,11 +289,13 @@ public static com.google.showcase.v1beta1.ListBlurbsRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ListBlurbsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListBlurbsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -426,38 +423,6 @@ private void buildPartial0(com.google.showcase.v1beta1.ListBlurbsRequest result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ListBlurbsRequest) { @@ -660,7 +625,7 @@ public int getPageSize() { * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponse.java index abec8b6bd8..f23bebbc03 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponse.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponse.java @@ -32,11 +32,6 @@ protected java.lang.Object newInstance( return new ListBlurbsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListBlurbsResponse_descriptor; @@ -285,11 +280,13 @@ public static com.google.showcase.v1beta1.ListBlurbsResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ListBlurbsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListBlurbsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -429,38 +426,6 @@ private void buildPartial0(com.google.showcase.v1beta1.ListBlurbsResponse result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ListBlurbsResponse) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequest.java index 0328356d1f..e4c3ef6c08 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequest.java @@ -31,11 +31,6 @@ protected java.lang.Object newInstance( return new ListRoomsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListRoomsRequest_descriptor; @@ -235,11 +230,13 @@ public static com.google.showcase.v1beta1.ListRoomsRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ListRoomsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListRoomsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -363,38 +360,6 @@ private void buildPartial0(com.google.showcase.v1beta1.ListRoomsRequest result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ListRoomsRequest) { @@ -493,7 +458,7 @@ public int getPageSize() { * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000001; onChanged(); diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponse.java index 53ff2904fa..2449f4b124 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponse.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponse.java @@ -32,11 +32,6 @@ protected java.lang.Object newInstance( return new ListRoomsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListRoomsResponse_descriptor; @@ -285,11 +280,13 @@ public static com.google.showcase.v1beta1.ListRoomsResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ListRoomsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListRoomsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -429,38 +426,6 @@ private void buildPartial0(com.google.showcase.v1beta1.ListRoomsResponse result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ListRoomsResponse) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequest.java index 051016f0cd..c14197d0d4 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequest.java @@ -30,11 +30,6 @@ protected java.lang.Object newInstance( return new ListSessionsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListSessionsRequest_descriptor; @@ -229,11 +224,13 @@ public static com.google.showcase.v1beta1.ListSessionsRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ListSessionsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListSessionsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -356,38 +353,6 @@ private void buildPartial0(com.google.showcase.v1beta1.ListSessionsRequest resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ListSessionsRequest) { @@ -484,7 +449,7 @@ public int getPageSize() { * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000001; onChanged(); diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponse.java index 851e0ab977..ea2359cd67 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponse.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponse.java @@ -31,11 +31,6 @@ protected java.lang.Object newInstance( return new ListSessionsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListSessionsResponse_descriptor; @@ -280,11 +275,13 @@ public static com.google.showcase.v1beta1.ListSessionsResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ListSessionsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListSessionsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -423,38 +420,6 @@ private void buildPartial0(com.google.showcase.v1beta1.ListSessionsResponse resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ListSessionsResponse) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequest.java index 5bcf9b2d7c..780a3f114c 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequest.java @@ -31,11 +31,6 @@ protected java.lang.Object newInstance( return new ListTestsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListTestsRequest_descriptor; @@ -287,11 +282,13 @@ public static com.google.showcase.v1beta1.ListTestsRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ListTestsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListTestsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -418,38 +415,6 @@ private void buildPartial0(com.google.showcase.v1beta1.ListTestsRequest result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ListTestsRequest) { @@ -648,7 +613,7 @@ public int getPageSize() { * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponse.java index 25f19a40d5..e0c3f76bc9 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponse.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponse.java @@ -31,11 +31,6 @@ protected java.lang.Object newInstance( return new ListTestsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListTestsResponse_descriptor; @@ -280,11 +275,13 @@ public static com.google.showcase.v1beta1.ListTestsResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ListTestsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListTestsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -423,38 +420,6 @@ private void buildPartial0(com.google.showcase.v1beta1.ListTestsResponse result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ListTestsResponse) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequest.java index a955c02b3c..1964b87814 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequest.java @@ -31,11 +31,6 @@ protected java.lang.Object newInstance( return new ListUsersRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_ListUsersRequest_descriptor; @@ -235,11 +230,13 @@ public static com.google.showcase.v1beta1.ListUsersRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ListUsersRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListUsersRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -363,38 +360,6 @@ private void buildPartial0(com.google.showcase.v1beta1.ListUsersRequest result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ListUsersRequest) { @@ -493,7 +458,7 @@ public int getPageSize() { * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000001; onChanged(); diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponse.java index 55b5a8e1c9..02e82da42a 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponse.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponse.java @@ -32,11 +32,6 @@ protected java.lang.Object newInstance( return new ListUsersResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_ListUsersResponse_descriptor; @@ -285,11 +280,13 @@ public static com.google.showcase.v1beta1.ListUsersResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ListUsersResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListUsersResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -429,38 +426,6 @@ private void buildPartial0(com.google.showcase.v1beta1.ListUsersResponse result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ListUsersResponse) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingOuterClass.java index 699e398079..8cf3bf7b2f 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingOuterClass.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingOuterClass.java @@ -141,140 +141,141 @@ public static void registerAllExtensions( "grunning/operations.proto\032\033google/protob" + "uf/empty.proto\032 google/protobuf/field_ma" + "sk.proto\032\037google/protobuf/timestamp.prot" + - "o\032\036google/rpc/error_details.proto\"\341\001\n\004Ro" + - "om\022\014\n\004name\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\tB\003" + - "\340A\002\022\023\n\013description\030\003 \001(\t\0224\n\013create_time\030" + - "\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" + - "\n\013update_time\030\005 \001(\0132\032.google.protobuf.Ti" + - "mestampB\003\340A\003:/\352A,\n\034showcase.googleapis.c" + - "om/Room\022\014rooms/{room}\"@\n\021CreateRoomReque" + - "st\022+\n\004room\030\001 \001(\0132\035.google.showcase.v1bet" + - "a1.Room\"D\n\016GetRoomRequest\0222\n\004name\030\001 \001(\tB" + - "$\372A\036\n\034showcase.googleapis.com/Room\340A\002\"q\n" + - "\021UpdateRoomRequest\022+\n\004room\030\001 \001(\0132\035.googl" + - "e.showcase.v1beta1.Room\022/\n\013update_mask\030\002" + - " \001(\0132\032.google.protobuf.FieldMask\"G\n\021Dele" + - "teRoomRequest\0222\n\004name\030\001 \001(\tB$\372A\036\n\034showca" + - "se.googleapis.com/Room\340A\002\"9\n\020ListRoomsRe" + - "quest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_token\030\002" + - " \001(\t\"Z\n\021ListRoomsResponse\022,\n\005rooms\030\001 \003(\013" + - "2\035.google.showcase.v1beta1.Room\022\027\n\017next_" + - "page_token\030\002 \001(\t\"\366\003\n\005Blurb\022\014\n\004name\030\001 \001(\t" + - "\0222\n\004user\030\002 \001(\tB$\372A\036\n\034showcase.googleapis" + - ".com/User\340A\002\022\016\n\004text\030\003 \001(\tH\000\022\017\n\005image\030\004 " + - "\001(\014H\000\0224\n\013create_time\030\005 \001(\0132\032.google.prot" + - "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\006 \001(\013" + - "2\032.google.protobuf.TimestampB\003\340A\003\022\030\n\016leg" + - "acy_room_id\030\007 \001(\tH\001\022\030\n\016legacy_user_id\030\010 " + - "\001(\tH\001:\321\001\352A\315\001\n\035showcase.googleapis.com/Bl" + - "urb\0228users/{user}/profile/blurbs/legacy/" + - "{legacy_user}~{blurb}\022#users/{user}/prof" + - "ile/blurbs/{blurb}\022\033rooms/{room}/blurbs/" + - "{blurb}\0220rooms/{room}/blurbs/legacy/{leg" + - "acy_room}.{blurb}B\t\n\007contentB\013\n\tlegacy_i" + - "d\"z\n\022CreateBlurbRequest\0225\n\006parent\030\001 \001(\tB" + - "%\372A\037\022\035showcase.googleapis.com/Blurb\340A\002\022-" + - "\n\005blurb\030\002 \001(\0132\036.google.showcase.v1beta1." + - "Blurb\"F\n\017GetBlurbRequest\0223\n\004name\030\001 \001(\tB%" + - "\372A\037\n\035showcase.googleapis.com/Blurb\340A\002\"t\n" + - "\022UpdateBlurbRequest\022-\n\005blurb\030\001 \001(\0132\036.goo" + - "gle.showcase.v1beta1.Blurb\022/\n\013update_mas" + - "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"I\n\022D" + - "eleteBlurbRequest\0223\n\004name\030\001 \001(\tB%\372A\037\n\035sh" + - "owcase.googleapis.com/Blurb\340A\002\"q\n\021ListBl" + - "urbsRequest\0225\n\006parent\030\001 \001(\tB%\372A\037\022\035showca" + - "se.googleapis.com/Blurb\340A\002\022\021\n\tpage_size\030" + - "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"]\n\022ListBlurbsR" + - "esponse\022.\n\006blurbs\030\001 \003(\0132\036.google.showcas" + - "e.v1beta1.Blurb\022\027\n\017next_page_token\030\002 \001(\t" + - "\"\204\001\n\023SearchBlurbsRequest\022\022\n\005query\030\001 \001(\tB" + - "\003\340A\002\0222\n\006parent\030\002 \001(\tB\"\372A\037\022\035showcase.goog" + - "leapis.com/Blurb\022\021\n\tpage_size\030\003 \001(\005\022\022\n\np" + - "age_token\030\004 \001(\t\"A\n\024SearchBlurbsMetadata\022" + - ")\n\nretry_info\030\001 \001(\0132\025.google.rpc.RetryIn" + - "fo\"_\n\024SearchBlurbsResponse\022.\n\006blurbs\030\001 \003" + - "(\0132\036.google.showcase.v1beta1.Blurb\022\027\n\017ne" + - "xt_page_token\030\002 \001(\t\"\200\001\n\023StreamBlurbsRequ" + - "est\0223\n\004name\030\001 \001(\tB%\372A\037\022\035showcase.googlea" + - "pis.com/Blurb\340A\002\0224\n\013expire_time\030\002 \001(\0132\032." + - "google.protobuf.TimestampB\003\340A\002\"\321\001\n\024Strea" + - "mBlurbsResponse\022-\n\005blurb\030\001 \001(\0132\036.google." + - "showcase.v1beta1.Blurb\022D\n\006action\030\002 \001(\01624" + - ".google.showcase.v1beta1.StreamBlurbsRes" + - "ponse.Action\"D\n\006Action\022\026\n\022ACTION_UNSPECI" + - "FIED\020\000\022\n\n\006CREATE\020\001\022\n\n\006UPDATE\020\002\022\n\n\006DELETE" + - "\020\003\"#\n\022SendBlurbsResponse\022\r\n\005names\030\001 \003(\t\"" + - "\332\001\n\016ConnectRequest\022G\n\006config\030\001 \001(\01325.goo" + - "gle.showcase.v1beta1.ConnectRequest.Conn" + - "ectConfigH\000\022/\n\005blurb\030\002 \001(\0132\036.google.show" + - "case.v1beta1.BlurbH\000\032C\n\rConnectConfig\0222\n" + - "\006parent\030\001 \001(\tB\"\372A\037\022\035showcase.googleapis." + - "com/BlurbB\t\n\007request2\264\023\n\tMessaging\022\227\001\n\nC" + - "reateRoom\022*.google.showcase.v1beta1.Crea" + - "teRoomRequest\032\035.google.showcase.v1beta1." + - "Room\">\202\323\344\223\002\023\"\016/v1beta1/rooms:\001*\332A\"room.d" + - "isplay_name,room.description\022y\n\007GetRoom\022" + - "\'.google.showcase.v1beta1.GetRoomRequest" + - "\032\035.google.showcase.v1beta1.Room\"&\202\323\344\223\002\031\022" + - "\027/v1beta1/{name=rooms/*}\332A\004name\022\203\001\n\nUpda" + - "teRoom\022*.google.showcase.v1beta1.UpdateR" + - "oomRequest\032\035.google.showcase.v1beta1.Roo" + - "m\"*\202\323\344\223\002$2\034/v1beta1/{room.name=rooms/*}:" + - "\004room\022x\n\nDeleteRoom\022*.google.showcase.v1" + - "beta1.DeleteRoomRequest\032\026.google.protobu" + - "f.Empty\"&\202\323\344\223\002\031*\027/v1beta1/{name=rooms/*}" + - "\332A\004name\022z\n\tListRooms\022).google.showcase.v" + - "1beta1.ListRoomsRequest\032*.google.showcas" + - "e.v1beta1.ListRoomsResponse\"\026\202\323\344\223\002\020\022\016/v1" + - "beta1/rooms\022\366\001\n\013CreateBlurb\022+.google.sho" + - "wcase.v1beta1.CreateBlurbRequest\032\036.googl" + - "e.showcase.v1beta1.Blurb\"\231\001\202\323\344\223\002T\" /v1be" + - "ta1/{parent=rooms/*}/blurbs:\001*Z-\"(/v1bet" + - "a1/{parent=users/*/profile}/blurbs:\001*\332A\034" + - "parent,blurb.user,blurb.text\332A\035parent,bl" + - "urb.user,blurb.image\022\261\001\n\010GetBlurb\022(.goog" + - "le.showcase.v1beta1.GetBlurbRequest\032\036.go" + - "ogle.showcase.v1beta1.Blurb\"[\202\323\344\223\002N\022 /v1" + - "beta1/{name=rooms/*/blurbs/*}Z*\022(/v1beta" + - "1/{name=users/*/profile/blurbs/*}\332A\004name" + - "\022\312\001\n\013UpdateBlurb\022+.google.showcase.v1bet" + - "a1.UpdateBlurbRequest\032\036.google.showcase." + - "v1beta1.Blurb\"n\202\323\344\223\002h2&/v1beta1/{blurb.n" + - "ame=rooms/*/blurbs/*}:\005blurbZ72./v1beta1" + - "/{blurb.name=users/*/profile/blurbs/*}:\005" + - "blurb\022\257\001\n\013DeleteBlurb\022+.google.showcase." + - "v1beta1.DeleteBlurbRequest\032\026.google.prot" + - "obuf.Empty\"[\202\323\344\223\002N* /v1beta1/{name=rooms" + - "/*/blurbs/*}Z**(/v1beta1/{name=users/*/p" + - "rofile/blurbs/*}\332A\004name\022\304\001\n\nListBlurbs\022*" + - ".google.showcase.v1beta1.ListBlurbsReque" + - "st\032+.google.showcase.v1beta1.ListBlurbsR" + - "esponse\"]\202\323\344\223\002N\022 /v1beta1/{parent=rooms/" + - "*}/blurbsZ*\022(/v1beta1/{parent=users/*/pr" + - "ofile}/blurbs\332A\006parent\022\201\002\n\014SearchBlurbs\022" + - ",.google.showcase.v1beta1.SearchBlurbsRe" + - "quest\032\035.google.longrunning.Operation\"\243\001\202" + - "\323\344\223\002_\"\'/v1beta1/{parent=rooms/*}/blurbs:" + - "search:\001*Z1\"//v1beta1/{parent=users/*/pr" + - "ofile}/blurbs:search\312A,\n\024SearchBlurbsRes" + - "ponse\022\024SearchBlurbsMetadata\332A\014parent,que" + - "ry\022\323\001\n\014StreamBlurbs\022,.google.showcase.v1" + - "beta1.StreamBlurbsRequest\032-.google.showc" + - "ase.v1beta1.StreamBlurbsResponse\"d\202\323\344\223\002^" + - "\"%/v1beta1/{name=rooms/*}/blurbs:stream:" + - "\001*Z2\"-/v1beta1/{name=users/*/profile}/bl" + - "urbs:stream:\001*0\001\022\316\001\n\nSendBlurbs\022+.google" + - ".showcase.v1beta1.CreateBlurbRequest\032+.g" + - "oogle.showcase.v1beta1.SendBlurbsRespons" + - "e\"d\202\323\344\223\002^\"%/v1beta1/{parent=rooms/*}/blu" + - "rbs:send:\001*Z2\"-/v1beta1/{parent=users/*/" + - "profile}/blurbs:send:\001*(\001\022e\n\007Connect\022\'.g" + - "oogle.showcase.v1beta1.ConnectRequest\032-." + - "google.showcase.v1beta1.StreamBlurbsResp" + - "onse(\0010\001\032\021\312A\016localhost:7469Bq\n\033com.googl" + - "e.showcase.v1beta1P\001Z4github.com/googlea" + - "pis/gapic-showcase/server/genproto\352\002\031Goo" + - "gle::Showcase::V1beta1b\006proto3" + "o\032\036google/rpc/error_details.proto\"\344\001\n\004Ro" + + "om\022\014\n\004name\030\001 \001(\t\022\032\n\014display_name\030\002 \001(\tB\004" + + "\342A\001\002\022\023\n\013description\030\003 \001(\t\0225\n\013create_time" + + "\030\004 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" + + "\0225\n\013update_time\030\005 \001(\0132\032.google.protobuf." + + "TimestampB\004\342A\001\003:/\352A,\n\034showcase.googleapi" + + "s.com/Room\022\014rooms/{room}\"@\n\021CreateRoomRe" + + "quest\022+\n\004room\030\001 \001(\0132\035.google.showcase.v1" + + "beta1.Room\"E\n\016GetRoomRequest\0223\n\004name\030\001 \001" + + "(\tB%\342A\001\002\372A\036\n\034showcase.googleapis.com/Roo" + + "m\"q\n\021UpdateRoomRequest\022+\n\004room\030\001 \001(\0132\035.g" + + "oogle.showcase.v1beta1.Room\022/\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\"H\n\021" + + "DeleteRoomRequest\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036" + + "\n\034showcase.googleapis.com/Room\"9\n\020ListRo" + + "omsRequest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_to" + + "ken\030\002 \001(\t\"Z\n\021ListRoomsResponse\022,\n\005rooms\030" + + "\001 \003(\0132\035.google.showcase.v1beta1.Room\022\027\n\017" + + "next_page_token\030\002 \001(\t\"\371\003\n\005Blurb\022\014\n\004name\030" + + "\001 \001(\t\0223\n\004user\030\002 \001(\tB%\342A\001\002\372A\036\n\034showcase.g" + + "oogleapis.com/User\022\016\n\004text\030\003 \001(\tH\000\022\017\n\005im" + + "age\030\004 \001(\014H\000\0225\n\013create_time\030\005 \001(\0132\032.googl" + + "e.protobuf.TimestampB\004\342A\001\003\0225\n\013update_tim" + + "e\030\006 \001(\0132\032.google.protobuf.TimestampB\004\342A\001" + + "\003\022\030\n\016legacy_room_id\030\007 \001(\tH\001\022\030\n\016legacy_us" + + "er_id\030\010 \001(\tH\001:\321\001\352A\315\001\n\035showcase.googleapi" + + "s.com/Blurb\0228users/{user}/profile/blurbs" + + "/legacy/{legacy_user}~{blurb}\022#users/{us" + + "er}/profile/blurbs/{blurb}\022\033rooms/{room}" + + "/blurbs/{blurb}\0220rooms/{room}/blurbs/leg" + + "acy/{legacy_room}.{blurb}B\t\n\007contentB\013\n\t" + + "legacy_id\"{\n\022CreateBlurbRequest\0226\n\006paren" + + "t\030\001 \001(\tB&\342A\001\002\372A\037\022\035showcase.googleapis.co" + + "m/Blurb\022-\n\005blurb\030\002 \001(\0132\036.google.showcase" + + ".v1beta1.Blurb\"G\n\017GetBlurbRequest\0224\n\004nam" + + "e\030\001 \001(\tB&\342A\001\002\372A\037\n\035showcase.googleapis.co" + + "m/Blurb\"t\n\022UpdateBlurbRequest\022-\n\005blurb\030\001" + + " \001(\0132\036.google.showcase.v1beta1.Blurb\022/\n\013" + + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + + "dMask\"J\n\022DeleteBlurbRequest\0224\n\004name\030\001 \001(" + + "\tB&\342A\001\002\372A\037\n\035showcase.googleapis.com/Blur" + + "b\"r\n\021ListBlurbsRequest\0226\n\006parent\030\001 \001(\tB&" + + "\342A\001\002\372A\037\022\035showcase.googleapis.com/Blurb\022\021" + + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"]\n" + + "\022ListBlurbsResponse\022.\n\006blurbs\030\001 \003(\0132\036.go" + + "ogle.showcase.v1beta1.Blurb\022\027\n\017next_page" + + "_token\030\002 \001(\t\"\205\001\n\023SearchBlurbsRequest\022\023\n\005" + + "query\030\001 \001(\tB\004\342A\001\002\0222\n\006parent\030\002 \001(\tB\"\372A\037\022\035" + + "showcase.googleapis.com/Blurb\022\021\n\tpage_si" + + "ze\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"A\n\024SearchBl" + + "urbsMetadata\022)\n\nretry_info\030\001 \001(\0132\025.googl" + + "e.rpc.RetryInfo\"_\n\024SearchBlurbsResponse\022" + + ".\n\006blurbs\030\001 \003(\0132\036.google.showcase.v1beta" + + "1.Blurb\022\027\n\017next_page_token\030\002 \001(\t\"\202\001\n\023Str" + + "eamBlurbsRequest\0224\n\004name\030\001 \001(\tB&\342A\001\002\372A\037\022" + + "\035showcase.googleapis.com/Blurb\0225\n\013expire" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\004\342A\001\002\"\321\001\n\024StreamBlurbsResponse\022-\n\005blurb\030" + + "\001 \001(\0132\036.google.showcase.v1beta1.Blurb\022D\n" + + "\006action\030\002 \001(\01624.google.showcase.v1beta1." + + "StreamBlurbsResponse.Action\"D\n\006Action\022\026\n" + + "\022ACTION_UNSPECIFIED\020\000\022\n\n\006CREATE\020\001\022\n\n\006UPD" + + "ATE\020\002\022\n\n\006DELETE\020\003\"#\n\022SendBlurbsResponse\022" + + "\r\n\005names\030\001 \003(\t\"\332\001\n\016ConnectRequest\022G\n\006con" + + "fig\030\001 \001(\01325.google.showcase.v1beta1.Conn" + + "ectRequest.ConnectConfigH\000\022/\n\005blurb\030\002 \001(" + + "\0132\036.google.showcase.v1beta1.BlurbH\000\032C\n\rC" + + "onnectConfig\0222\n\006parent\030\001 \001(\tB\"\372A\037\022\035showc" + + "ase.googleapis.com/BlurbB\t\n\007request2\264\023\n\t" + + "Messaging\022\227\001\n\nCreateRoom\022*.google.showca" + + "se.v1beta1.CreateRoomRequest\032\035.google.sh" + + "owcase.v1beta1.Room\">\332A\"room.display_nam" + + "e,room.description\202\323\344\223\002\023\"\016/v1beta1/rooms" + + ":\001*\022y\n\007GetRoom\022\'.google.showcase.v1beta1" + + ".GetRoomRequest\032\035.google.showcase.v1beta" + + "1.Room\"&\332A\004name\202\323\344\223\002\031\022\027/v1beta1/{name=ro" + + "oms/*}\022\203\001\n\nUpdateRoom\022*.google.showcase." + + "v1beta1.UpdateRoomRequest\032\035.google.showc" + + "ase.v1beta1.Room\"*\202\323\344\223\002$2\034/v1beta1/{room" + + ".name=rooms/*}:\004room\022x\n\nDeleteRoom\022*.goo" + + "gle.showcase.v1beta1.DeleteRoomRequest\032\026" + + ".google.protobuf.Empty\"&\332A\004name\202\323\344\223\002\031*\027/" + + "v1beta1/{name=rooms/*}\022z\n\tListRooms\022).go" + + "ogle.showcase.v1beta1.ListRoomsRequest\032*" + + ".google.showcase.v1beta1.ListRoomsRespon" + + "se\"\026\202\323\344\223\002\020\022\016/v1beta1/rooms\022\366\001\n\013CreateBlu" + + "rb\022+.google.showcase.v1beta1.CreateBlurb" + + "Request\032\036.google.showcase.v1beta1.Blurb\"" + + "\231\001\332A\034parent,blurb.user,blurb.text\332A\035pare" + + "nt,blurb.user,blurb.image\202\323\344\223\002T\" /v1beta" + + "1/{parent=rooms/*}/blurbs:\001*Z-\"(/v1beta1" + + "/{parent=users/*/profile}/blurbs:\001*\022\261\001\n\010" + + "GetBlurb\022(.google.showcase.v1beta1.GetBl" + + "urbRequest\032\036.google.showcase.v1beta1.Blu" + + "rb\"[\332A\004name\202\323\344\223\002N\022 /v1beta1/{name=rooms/" + + "*/blurbs/*}Z*\022(/v1beta1/{name=users/*/pr" + + "ofile/blurbs/*}\022\312\001\n\013UpdateBlurb\022+.google" + + ".showcase.v1beta1.UpdateBlurbRequest\032\036.g" + + "oogle.showcase.v1beta1.Blurb\"n\202\323\344\223\002h2&/v" + + "1beta1/{blurb.name=rooms/*/blurbs/*}:\005bl" + + "urbZ72./v1beta1/{blurb.name=users/*/prof" + + "ile/blurbs/*}:\005blurb\022\257\001\n\013DeleteBlurb\022+.g" + + "oogle.showcase.v1beta1.DeleteBlurbReques" + + "t\032\026.google.protobuf.Empty\"[\332A\004name\202\323\344\223\002N" + + "* /v1beta1/{name=rooms/*/blurbs/*}Z**(/v" + + "1beta1/{name=users/*/profile/blurbs/*}\022\304" + + "\001\n\nListBlurbs\022*.google.showcase.v1beta1." + + "ListBlurbsRequest\032+.google.showcase.v1be" + + "ta1.ListBlurbsResponse\"]\332A\006parent\202\323\344\223\002N\022" + + " /v1beta1/{parent=rooms/*}/blurbsZ*\022(/v1" + + "beta1/{parent=users/*/profile}/blurbs\022\201\002" + + "\n\014SearchBlurbs\022,.google.showcase.v1beta1" + + ".SearchBlurbsRequest\032\035.google.longrunnin" + + "g.Operation\"\243\001\312A,\n\024SearchBlurbsResponse\022" + + "\024SearchBlurbsMetadata\332A\014parent,query\202\323\344\223" + + "\002_\"\'/v1beta1/{parent=rooms/*}/blurbs:sea" + + "rch:\001*Z1\"//v1beta1/{parent=users/*/profi" + + "le}/blurbs:search\022\323\001\n\014StreamBlurbs\022,.goo" + + "gle.showcase.v1beta1.StreamBlurbsRequest" + + "\032-.google.showcase.v1beta1.StreamBlurbsR" + + "esponse\"d\202\323\344\223\002^\"%/v1beta1/{name=rooms/*}" + + "/blurbs:stream:\001*Z2\"-/v1beta1/{name=user" + + "s/*/profile}/blurbs:stream:\001*0\001\022\316\001\n\nSend" + + "Blurbs\022+.google.showcase.v1beta1.CreateB" + + "lurbRequest\032+.google.showcase.v1beta1.Se" + + "ndBlurbsResponse\"d\202\323\344\223\002^\"%/v1beta1/{pare" + + "nt=rooms/*}/blurbs:send:\001*Z2\"-/v1beta1/{" + + "parent=users/*/profile}/blurbs:send:\001*(\001" + + "\022e\n\007Connect\022\'.google.showcase.v1beta1.Co" + + "nnectRequest\032-.google.showcase.v1beta1.S" + + "treamBlurbsResponse(\0010\001\032\021\312A\016localhost:74" + + "69Bq\n\033com.google.showcase.v1beta1P\001Z4git" + + "hub.com/googleapis/gapic-showcase/server" + + "/genproto\352\002\031Google::Showcase::V1beta1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponse.java index 57ff574d53..256256938f 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponse.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponse.java @@ -26,11 +26,6 @@ protected java.lang.Object newInstance( return new PagedExpandLegacyMappedResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor; @@ -336,11 +331,13 @@ public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseF return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -482,38 +479,6 @@ private void buildPartial0(com.google.showcase.v1beta1.PagedExpandLegacyMappedRe } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequest.java index ed44613236..925c64c65a 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequest.java @@ -33,11 +33,6 @@ protected java.lang.Object newInstance( return new PagedExpandLegacyRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_descriptor; @@ -291,11 +286,13 @@ public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -424,38 +421,6 @@ private void buildPartial0(com.google.showcase.v1beta1.PagedExpandLegacyRequest } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.PagedExpandLegacyRequest) { @@ -658,7 +623,7 @@ public int getMaxResults() { * @return This builder for chaining. */ public Builder setMaxResults(int value) { - + maxResults_ = value; bitField0_ |= 0x00000002; onChanged(); diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequest.java index 4692f6ecfd..82135abe9b 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequest.java @@ -31,11 +31,6 @@ protected java.lang.Object newInstance( return new PagedExpandRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandRequest_descriptor; @@ -287,11 +282,13 @@ public static com.google.showcase.v1beta1.PagedExpandRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.PagedExpandRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.PagedExpandRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -418,38 +415,6 @@ private void buildPartial0(com.google.showcase.v1beta1.PagedExpandRequest result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.PagedExpandRequest) { @@ -648,7 +613,7 @@ public int getPageSize() { * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponse.java index c7856078c6..4cf041795e 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponse.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponse.java @@ -31,11 +31,6 @@ protected java.lang.Object newInstance( return new PagedExpandResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandResponse_descriptor; @@ -278,11 +273,13 @@ public static com.google.showcase.v1beta1.PagedExpandResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.PagedExpandResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.PagedExpandResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -421,38 +418,6 @@ private void buildPartial0(com.google.showcase.v1beta1.PagedExpandResponse resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.PagedExpandResponse) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseList.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseList.java index 68701c202e..c1bce83a0b 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseList.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseList.java @@ -20,7 +20,8 @@ private PagedExpandResponseList(com.google.protobuf.GeneratedMessageV3.Builderrepeated string words = 1; * @return A list containing the words. @@ -199,11 +196,13 @@ public static com.google.showcase.v1beta1.PagedExpandResponseList parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.PagedExpandResponseList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.PagedExpandResponseList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -283,8 +282,8 @@ private Builder( public Builder clear() { super.clear(); bitField0_ = 0; - words_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + words_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -311,56 +310,19 @@ public com.google.showcase.v1beta1.PagedExpandResponseList build() { @java.lang.Override public com.google.showcase.v1beta1.PagedExpandResponseList buildPartial() { com.google.showcase.v1beta1.PagedExpandResponseList result = new com.google.showcase.v1beta1.PagedExpandResponseList(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.showcase.v1beta1.PagedExpandResponseList result) { - if (((bitField0_ & 0x00000001) != 0)) { - words_ = words_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.words_ = words_; - } - private void buildPartial0(com.google.showcase.v1beta1.PagedExpandResponseList result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + words_.makeImmutable(); + result.words_ = words_; + } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.PagedExpandResponseList) { @@ -376,7 +338,7 @@ public Builder mergeFrom(com.google.showcase.v1beta1.PagedExpandResponseList oth if (!other.words_.isEmpty()) { if (words_.isEmpty()) { words_ = other.words_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensureWordsIsMutable(); words_.addAll(other.words_); @@ -432,12 +394,13 @@ public Builder mergeFrom( } private int bitField0_; - private com.google.protobuf.LazyStringList words_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList words_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureWordsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!words_.isModifiable()) { words_ = new com.google.protobuf.LazyStringArrayList(words_); - bitField0_ |= 0x00000001; - } + } + bitField0_ |= 0x00000001; } /** * repeated string words = 1; @@ -445,7 +408,8 @@ private void ensureWordsIsMutable() { */ public com.google.protobuf.ProtocolStringList getWordsList() { - return words_.getUnmodifiableView(); + words_.makeImmutable(); + return words_; } /** * repeated string words = 1; @@ -482,6 +446,7 @@ public Builder setWords( if (value == null) { throw new NullPointerException(); } ensureWordsIsMutable(); words_.set(index, value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -495,6 +460,7 @@ public Builder addWords( if (value == null) { throw new NullPointerException(); } ensureWordsIsMutable(); words_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -508,6 +474,7 @@ public Builder addAllWords( ensureWordsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, words_); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -516,8 +483,9 @@ public Builder addAllWords( * @return This builder for chaining. */ public Builder clearWords() { - words_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + words_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } @@ -532,6 +500,7 @@ public Builder addWordsBytes( checkByteStringIsUtf8(value); ensureWordsIsMutable(); words_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequest.java index 1fefa21ef5..e04cc0f30b 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequest.java @@ -27,11 +27,6 @@ protected java.lang.Object newInstance( return new RepeatRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_RepeatRequest_descriptor; @@ -519,11 +514,13 @@ public static com.google.showcase.v1beta1.RepeatRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.RepeatRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.RepeatRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -686,38 +683,6 @@ private void buildPartial0(com.google.showcase.v1beta1.RepeatRequest result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.RepeatRequest) { @@ -1075,7 +1040,7 @@ public boolean getServerVerify() { * @return This builder for chaining. */ public Builder setServerVerify(boolean value) { - + serverVerify_ = value; bitField0_ |= 0x00000004; onChanged(); @@ -1225,7 +1190,7 @@ public int getFInt32() { * @return This builder for chaining. */ public Builder setFInt32(int value) { - + fInt32_ = value; bitField0_ |= 0x00000010; onChanged(); @@ -1262,7 +1227,7 @@ public long getFInt64() { * @return This builder for chaining. */ public Builder setFInt64(long value) { - + fInt64_ = value; bitField0_ |= 0x00000020; onChanged(); @@ -1294,7 +1259,7 @@ public double getFDouble() { * @return This builder for chaining. */ public Builder setFDouble(double value) { - + fDouble_ = value; bitField0_ |= 0x00000040; onChanged(); @@ -1334,7 +1299,7 @@ public int getPInt32() { * @return This builder for chaining. */ public Builder setPInt32(int value) { - + pInt32_ = value; bitField0_ |= 0x00000080; onChanged(); @@ -1374,7 +1339,7 @@ public long getPInt64() { * @return This builder for chaining. */ public Builder setPInt64(long value) { - + pInt64_ = value; bitField0_ |= 0x00000100; onChanged(); @@ -1414,7 +1379,7 @@ public double getPDouble() { * @return This builder for chaining. */ public Builder setPDouble(double value) { - + pDouble_ = value; bitField0_ |= 0x00000200; onChanged(); diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponse.java index 63fd1bfce6..f25990dfae 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponse.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponse.java @@ -26,11 +26,6 @@ protected java.lang.Object newInstance( return new RepeatResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_RepeatResponse_descriptor; @@ -241,11 +236,13 @@ public static com.google.showcase.v1beta1.RepeatResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.RepeatResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.RepeatResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -370,38 +367,6 @@ private void buildPartial0(com.google.showcase.v1beta1.RepeatResponse result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.RepeatResponse) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequest.java index 1e8f5684a6..9206fe5bd3 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequest.java @@ -30,11 +30,6 @@ protected java.lang.Object newInstance( return new ReportSessionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ReportSessionRequest_descriptor; @@ -203,11 +198,13 @@ public static com.google.showcase.v1beta1.ReportSessionRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ReportSessionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ReportSessionRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -326,38 +323,6 @@ private void buildPartial0(com.google.showcase.v1beta1.ReportSessionRequest resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ReportSessionRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponse.java index aedf6530e7..282d983f58 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponse.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponse.java @@ -31,11 +31,6 @@ protected java.lang.Object newInstance( return new ReportSessionResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ReportSessionResponse_descriptor; @@ -411,11 +406,13 @@ public static com.google.showcase.v1beta1.ReportSessionResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ReportSessionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ReportSessionResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -554,38 +551,6 @@ private void buildPartial0(com.google.showcase.v1beta1.ReportSessionResponse res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ReportSessionResponse) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Room.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Room.java index 037a9f645a..bbc7e8a64d 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Room.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Room.java @@ -32,11 +32,6 @@ protected java.lang.Object newInstance( return new Room(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_Room_descriptor; @@ -427,11 +422,13 @@ public static com.google.showcase.v1beta1.Room parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.Room parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.Room parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -578,38 +575,6 @@ private void buildPartial0(com.google.showcase.v1beta1.Room result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.Room) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadata.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadata.java index b4209e5580..b0ef1908ce 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadata.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadata.java @@ -30,11 +30,6 @@ protected java.lang.Object newInstance( return new SearchBlurbsMetadata(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_descriptor; @@ -200,11 +195,13 @@ public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -330,38 +327,6 @@ private void buildPartial0(com.google.showcase.v1beta1.SearchBlurbsMetadata resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.SearchBlurbsMetadata) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequest.java index b98b0bc3a3..2492b230bc 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequest.java @@ -33,11 +33,6 @@ protected java.lang.Object newInstance( return new SearchBlurbsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsRequest_descriptor; @@ -358,11 +353,13 @@ public static com.google.showcase.v1beta1.SearchBlurbsRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.SearchBlurbsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.SearchBlurbsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -494,38 +491,6 @@ private void buildPartial0(com.google.showcase.v1beta1.SearchBlurbsRequest resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.SearchBlurbsRequest) { @@ -840,7 +805,7 @@ public int getPageSize() { * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000004; onChanged(); diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponse.java index 56e558fcc1..87b32ca523 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponse.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponse.java @@ -32,11 +32,6 @@ protected java.lang.Object newInstance( return new SearchBlurbsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsResponse_descriptor; @@ -285,11 +280,13 @@ public static com.google.showcase.v1beta1.SearchBlurbsResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.SearchBlurbsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.SearchBlurbsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -429,38 +426,6 @@ private void buildPartial0(com.google.showcase.v1beta1.SearchBlurbsResponse resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.SearchBlurbsResponse) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponse.java index cb3bc3bd39..cfe50a250c 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponse.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponse.java @@ -21,7 +21,8 @@ private SendBlurbsResponse(com.google.protobuf.GeneratedMessageV3.Builder bui super(builder); } private SendBlurbsResponse() { - names_ = com.google.protobuf.LazyStringArrayList.EMPTY; + names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -31,11 +32,6 @@ protected java.lang.Object newInstance( return new SendBlurbsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SendBlurbsResponse_descriptor; @@ -51,7 +47,8 @@ protected java.lang.Object newInstance( public static final int NAMES_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList names_; + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** *

    * The names of successful blurb creations.
@@ -216,11 +213,13 @@ public static com.google.showcase.v1beta1.SendBlurbsResponse parseFrom(
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.SendBlurbsResponse parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.SendBlurbsResponse parseDelimitedFrom(
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -301,8 +300,8 @@ private Builder(
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
-      names_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-      bitField0_ = (bitField0_ & ~0x00000001);
+      names_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       return this;
     }
 
@@ -329,56 +328,19 @@ public com.google.showcase.v1beta1.SendBlurbsResponse build() {
     @java.lang.Override
     public com.google.showcase.v1beta1.SendBlurbsResponse buildPartial() {
       com.google.showcase.v1beta1.SendBlurbsResponse result = new com.google.showcase.v1beta1.SendBlurbsResponse(this);
-      buildPartialRepeatedFields(result);
       if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.showcase.v1beta1.SendBlurbsResponse result) {
-      if (((bitField0_ & 0x00000001) != 0)) {
-        names_ = names_.getUnmodifiableView();
-        bitField0_ = (bitField0_ & ~0x00000001);
-      }
-      result.names_ = names_;
-    }
-
     private void buildPartial0(com.google.showcase.v1beta1.SendBlurbsResponse result) {
       int from_bitField0_ = bitField0_;
+      if (((from_bitField0_ & 0x00000001) != 0)) {
+        names_.makeImmutable();
+        result.names_ = names_;
+      }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.setField(field, value);
-    }
-    @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-    @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.SendBlurbsResponse) {
@@ -394,7 +356,7 @@ public Builder mergeFrom(com.google.showcase.v1beta1.SendBlurbsResponse other) {
       if (!other.names_.isEmpty()) {
         if (names_.isEmpty()) {
           names_ = other.names_;
-          bitField0_ = (bitField0_ & ~0x00000001);
+          bitField0_ |= 0x00000001;
         } else {
           ensureNamesIsMutable();
           names_.addAll(other.names_);
@@ -450,12 +412,13 @@ public Builder mergeFrom(
     }
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList names_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringArrayList names_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
     private void ensureNamesIsMutable() {
-      if (!((bitField0_ & 0x00000001) != 0)) {
+      if (!names_.isModifiable()) {
         names_ = new com.google.protobuf.LazyStringArrayList(names_);
-        bitField0_ |= 0x00000001;
-       }
+      }
+      bitField0_ |= 0x00000001;
     }
     /**
      * 
@@ -467,7 +430,8 @@ private void ensureNamesIsMutable() {
      */
     public com.google.protobuf.ProtocolStringList
         getNamesList() {
-      return names_.getUnmodifiableView();
+      names_.makeImmutable();
+      return names_;
     }
     /**
      * 
@@ -520,6 +484,7 @@ public Builder setNames(
       if (value == null) { throw new NullPointerException(); }
       ensureNamesIsMutable();
       names_.set(index, value);
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -537,6 +502,7 @@ public Builder addNames(
       if (value == null) { throw new NullPointerException(); }
       ensureNamesIsMutable();
       names_.add(value);
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -554,6 +520,7 @@ public Builder addAllNames(
       ensureNamesIsMutable();
       com.google.protobuf.AbstractMessageLite.Builder.addAll(
           values, names_);
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -566,8 +533,9 @@ public Builder addAllNames(
      * @return This builder for chaining.
      */
     public Builder clearNames() {
-      names_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-      bitField0_ = (bitField0_ & ~0x00000001);
+      names_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
+      bitField0_ = (bitField0_ & ~0x00000001);;
       onChanged();
       return this;
     }
@@ -586,6 +554,7 @@ public Builder addNamesBytes(
       checkByteStringIsUtf8(value);
       ensureNamesIsMutable();
       names_.add(value);
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Sequence.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Sequence.java
index 3f9f233beb..7427900e72 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Sequence.java
+++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Sequence.java
@@ -27,11 +27,6 @@ protected java.lang.Object newInstance(
     return new Sequence();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
-    return this.unknownFields;
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
     return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_Sequence_descriptor;
@@ -129,11 +124,6 @@ protected java.lang.Object newInstance(
       return new Response();
     }
 
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
-      return this.unknownFields;
-    }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
       return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_Sequence_Response_descriptor;
@@ -353,11 +343,13 @@ public static com.google.showcase.v1beta1.Sequence.Response parseFrom(
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input, extensionRegistry);
     }
+
     public static com.google.showcase.v1beta1.Sequence.Response parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseDelimitedWithIOException(PARSER, input);
     }
+
     public static com.google.showcase.v1beta1.Sequence.Response parseDelimitedFrom(
         java.io.InputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -492,38 +484,6 @@ private void buildPartial0(com.google.showcase.v1beta1.Sequence.Response result)
         }
       }
 
-      @java.lang.Override
-      public Builder clone() {
-        return super.clone();
-      }
-      @java.lang.Override
-      public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
-        return super.setField(field, value);
-      }
-      @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
-        return super.clearField(field);
-      }
-      @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-        return super.clearOneof(oneof);
-      }
-      @java.lang.Override
-      public Builder setRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
-        return super.setRepeatedField(field, index, value);
-      }
-      @java.lang.Override
-      public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
-        return super.addRepeatedField(field, value);
-      }
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.showcase.v1beta1.Sequence.Response) {
@@ -1198,11 +1158,13 @@ public static com.google.showcase.v1beta1.Sequence parseFrom(
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.Sequence parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.Sequence parseDelimitedFrom(
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1337,38 +1299,6 @@ private void buildPartial0(com.google.showcase.v1beta1.Sequence result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.setField(field, value);
-    }
-    @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-    @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.Sequence) {
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java
index a4b1da88d7..6536285f94 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java
+++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java
@@ -105,91 +105,91 @@ public static void registerAllExtensions(
       "\032\031google/api/resource.proto\032\036google/prot" +
       "obuf/duration.proto\032\033google/protobuf/emp" +
       "ty.proto\032\037google/protobuf/timestamp.prot" +
-      "o\032\027google/rpc/status.proto\"\363\001\n\010Sequence\022" +
-      "\021\n\004name\030\001 \001(\tB\003\340A\003\022=\n\tresponses\030\002 \003(\0132*." +
-      "google.showcase.v1beta1.Sequence.Respons" +
-      "e\032X\n\010Response\022\"\n\006status\030\001 \001(\0132\022.google.r" +
-      "pc.Status\022(\n\005delay\030\002 \001(\0132\031.google.protob" +
-      "uf.Duration:;\352A8\n showcase.googleapis.co" +
-      "m/Sequence\022\024sequences/{sequence}\"\312\002\n\021Str" +
-      "eamingSequence\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\017\n\007con" +
-      "tent\030\002 \001(\t\022F\n\tresponses\030\003 \003(\01323.google.s" +
-      "howcase.v1beta1.StreamingSequence.Respon" +
-      "se\032p\n\010Response\022\"\n\006status\030\001 \001(\0132\022.google." +
+      "o\032\027google/rpc/status.proto\"\364\001\n\010Sequence\022" +
+      "\022\n\004name\030\001 \001(\tB\004\342A\001\003\022=\n\tresponses\030\002 \003(\0132*" +
+      ".google.showcase.v1beta1.Sequence.Respon" +
+      "se\032X\n\010Response\022\"\n\006status\030\001 \001(\0132\022.google." +
       "rpc.Status\022(\n\005delay\030\002 \001(\0132\031.google.proto" +
-      "buf.Duration\022\026\n\016response_index\030\003 \001(\005:W\352A" +
-      "T\n)showcase.googleapis.com/StreamingSequ" +
-      "ence\022\'streamingSequences/{streaming_sequ" +
-      "ence}\"\350\003\n\027StreamingSequenceReport\022\021\n\004nam" +
-      "e\030\001 \001(\tB\003\340A\003\022J\n\010attempts\030\002 \003(\01328.google." +
-      "showcase.v1beta1.StreamingSequenceReport" +
-      ".Attempt\032\366\001\n\007Attempt\022\026\n\016attempt_number\030\001" +
-      " \001(\005\0224\n\020attempt_deadline\030\002 \001(\0132\032.google." +
-      "protobuf.Timestamp\0221\n\rresponse_time\030\003 \001(" +
-      "\0132\032.google.protobuf.Timestamp\0220\n\rattempt" +
-      "_delay\030\004 \001(\0132\031.google.protobuf.Duration\022" +
-      "\"\n\006status\030\005 \001(\0132\022.google.rpc.Status\022\024\n\014c" +
-      "ontent_sent\030\006 \001(\t:u\352Ar\n/showcase.googlea" +
-      "pis.com/StreamingSequenceReport\022?streami" +
-      "ngSequences/{streaming_sequence}/streami" +
-      "ngSequenceReport\"\233\003\n\016SequenceReport\022\021\n\004n" +
-      "ame\030\001 \001(\tB\003\340A\003\022A\n\010attempts\030\002 \003(\0132/.googl" +
-      "e.showcase.v1beta1.SequenceReport.Attemp" +
-      "t\032\340\001\n\007Attempt\022\026\n\016attempt_number\030\001 \001(\005\0224\n" +
-      "\020attempt_deadline\030\002 \001(\0132\032.google.protobu" +
-      "f.Timestamp\0221\n\rresponse_time\030\003 \001(\0132\032.goo" +
-      "gle.protobuf.Timestamp\0220\n\rattempt_delay\030" +
-      "\004 \001(\0132\031.google.protobuf.Duration\022\"\n\006stat" +
-      "us\030\005 \001(\0132\022.google.rpc.Status:P\352AM\n&showc" +
-      "ase.googleapis.com/SequenceReport\022#seque" +
-      "nces/{sequence}/sequenceReport\"L\n\025Create" +
-      "SequenceRequest\0223\n\010sequence\030\001 \001(\0132!.goog" +
-      "le.showcase.v1beta1.Sequence\"h\n\036CreateSt" +
-      "reamingSequenceRequest\022F\n\022streaming_sequ" +
-      "ence\030\001 \001(\0132*.google.showcase.v1beta1.Str" +
-      "eamingSequence\"P\n\026AttemptSequenceRequest" +
-      "\0226\n\004name\030\001 \001(\tB(\372A\"\n showcase.googleapis" +
-      ".com/Sequence\340A\002\"b\n\037AttemptStreamingSequ" +
-      "enceRequest\022?\n\004name\030\001 \001(\tB1\372A+\n)showcase" +
-      ".googleapis.com/StreamingSequence\340A\002\"3\n " +
-      "AttemptStreamingSequenceResponse\022\017\n\007cont" +
-      "ent\030\001 \001(\t\"X\n\030GetSequenceReportRequest\022<\n" +
-      "\004name\030\001 \001(\tB.\372A(\n&showcase.googleapis.co" +
-      "m/SequenceReport\340A\002\"j\n!GetStreamingSeque" +
-      "nceReportRequest\022E\n\004name\030\001 \001(\tB7\372A1\n/sho" +
-      "wcase.googleapis.com/StreamingSequenceRe" +
-      "port\340A\0022\360\010\n\017SequenceService\022\224\001\n\016CreateSe" +
-      "quence\022..google.showcase.v1beta1.CreateS" +
-      "equenceRequest\032!.google.showcase.v1beta1" +
-      ".Sequence\"/\202\323\344\223\002\036\"\022/v1beta1/sequences:\010s" +
-      "equence\332A\010sequence\022\314\001\n\027CreateStreamingSe" +
-      "quence\0227.google.showcase.v1beta1.CreateS" +
-      "treamingSequenceRequest\032*.google.showcas" +
-      "e.v1beta1.StreamingSequence\"L\202\323\344\223\0021\"\033/v1" +
-      "beta1/streamingSequences:\022streaming_sequ" +
-      "ence\332A\022streaming_sequence\022\252\001\n\021GetSequenc" +
-      "eReport\0221.google.showcase.v1beta1.GetSeq" +
-      "uenceReportRequest\032\'.google.showcase.v1b" +
-      "eta1.SequenceReport\"9\202\323\344\223\002,\022*/v1beta1/{n" +
-      "ame=sequences/*/sequenceReport}\332A\004name\022\327" +
-      "\001\n\032GetStreamingSequenceReport\022:.google.s" +
-      "howcase.v1beta1.GetStreamingSequenceRepo" +
-      "rtRequest\0320.google.showcase.v1beta1.Stre" +
-      "amingSequenceReport\"K\202\323\344\223\002>\022\022
  * A session is a suite of tests, generally being made in the context
  * of testing code generation.
+ *
  * A session defines tests it may expect, based on which version of the
  * code generation spec is in use.
  * 
@@ -34,11 +35,6 @@ protected java.lang.Object newInstance( return new Session(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Session_descriptor; @@ -392,11 +388,13 @@ public static com.google.showcase.v1beta1.Session parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.Session parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.Session parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -442,6 +440,7 @@ protected Builder newBuilderForType( *
    * A session is a suite of tests, generally being made in the context
    * of testing code generation.
+   *
    * A session defines tests it may expect, based on which version of the
    * code generation spec is in use.
    * 
@@ -522,38 +521,6 @@ private void buildPartial0(com.google.showcase.v1beta1.Session result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.Session) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequest.java index 0c9520f6db..f20d8fcebb 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequest.java @@ -31,11 +31,6 @@ protected java.lang.Object newInstance( return new StreamBlurbsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_StreamBlurbsRequest_descriptor; @@ -258,11 +253,13 @@ public static com.google.showcase.v1beta1.StreamBlurbsRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.StreamBlurbsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.StreamBlurbsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -392,38 +389,6 @@ private void buildPartial0(com.google.showcase.v1beta1.StreamBlurbsRequest resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.StreamBlurbsRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponse.java index 5310bca677..c28ad5d6b3 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponse.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponse.java @@ -31,11 +31,6 @@ protected java.lang.Object newInstance( return new StreamBlurbsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_StreamBlurbsResponse_descriptor; @@ -391,11 +386,13 @@ public static com.google.showcase.v1beta1.StreamBlurbsResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.StreamBlurbsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.StreamBlurbsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -525,38 +522,6 @@ private void buildPartial0(com.google.showcase.v1beta1.StreamBlurbsResponse resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.StreamBlurbsResponse) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequence.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequence.java index 2dd907992e..30556bc580 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequence.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequence.java @@ -28,11 +28,6 @@ protected java.lang.Object newInstance( return new StreamingSequence(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_descriptor; @@ -140,11 +135,6 @@ protected java.lang.Object newInstance( return new Response(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_Response_descriptor; @@ -390,11 +380,13 @@ public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.StreamingSequence.Response parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.StreamingSequence.Response parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -533,38 +525,6 @@ private void buildPartial0(com.google.showcase.v1beta1.StreamingSequence.Respons } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.StreamingSequence.Response) { @@ -981,7 +941,7 @@ public int getResponseIndex() { * @return This builder for chaining. */ public Builder setResponseIndex(int value) { - + responseIndex_ = value; bitField0_ |= 0x00000004; onChanged(); @@ -1348,11 +1308,13 @@ public static com.google.showcase.v1beta1.StreamingSequence parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.StreamingSequence parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.StreamingSequence parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1491,38 +1453,6 @@ private void buildPartial0(com.google.showcase.v1beta1.StreamingSequence result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.StreamingSequence) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReport.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReport.java index e25e3e3e32..d7477f5ec2 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReport.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReport.java @@ -27,11 +27,6 @@ protected java.lang.Object newInstance( return new StreamingSequenceReport(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequenceReport_descriptor; @@ -212,11 +207,6 @@ protected java.lang.Object newInstance( return new Attempt(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_descriptor; @@ -625,11 +615,13 @@ public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseF return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -792,38 +784,6 @@ private void buildPartial0(com.google.showcase.v1beta1.StreamingSequenceReport.A } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.StreamingSequenceReport.Attempt) { @@ -960,7 +920,7 @@ public int getAttemptNumber() { * @return This builder for chaining. */ public Builder setAttemptNumber(int value) { - + attemptNumber_ = value; bitField0_ |= 0x00000001; onChanged(); @@ -1975,11 +1935,13 @@ public static com.google.showcase.v1beta1.StreamingSequenceReport parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.StreamingSequenceReport parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.StreamingSequenceReport parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2114,38 +2076,6 @@ private void buildPartial0(com.google.showcase.v1beta1.StreamingSequenceReport r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.StreamingSequenceReport) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Test.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Test.java index 23df212ac0..37262875f2 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Test.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Test.java @@ -29,11 +29,6 @@ protected java.lang.Object newInstance( return new Test(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_descriptor; @@ -71,8 +66,10 @@ public enum ExpectationLevel /** *
      * This test is recommended.
+     *
      * If a generator explicitly ignores a recommended test (see `DeleteTest`),
      * then the report may still pass, but with a warning.
+     *
      * If a generator skips a recommended test and does not explicitly
      * express that intention, the report will fail.
      * 
@@ -83,8 +80,10 @@ public enum ExpectationLevel /** *
      * This test is optional.
+     *
      * If a generator explicitly ignores an optional test (see `DeleteTest`),
      * then the report may still pass, and no warning will be issued.
+     *
      * If a generator skips an optional test and does not explicitly
      * express that intention, the report may still pass, but with a
      * warning.
@@ -111,8 +110,10 @@ public enum ExpectationLevel
     /**
      * 
      * This test is recommended.
+     *
      * If a generator explicitly ignores a recommended test (see `DeleteTest`),
      * then the report may still pass, but with a warning.
+     *
      * If a generator skips a recommended test and does not explicitly
      * express that intention, the report will fail.
      * 
@@ -123,8 +124,10 @@ public enum ExpectationLevel /** *
      * This test is optional.
+     *
      * If a generator explicitly ignores an optional test (see `DeleteTest`),
      * then the report may still pass, and no warning will be issued.
+     *
      * If a generator skips an optional test and does not explicitly
      * express that intention, the report may still pass, but with a
      * warning.
@@ -366,11 +369,6 @@ protected java.lang.Object newInstance(
       return new Blueprint();
     }
 
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
-      return this.unknownFields;
-    }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
       return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_Blueprint_descriptor;
@@ -446,11 +444,6 @@ protected java.lang.Object newInstance(
         return new Invocation();
       }
 
-      @java.lang.Override
-      public final com.google.protobuf.UnknownFieldSet
-      getUnknownFields() {
-        return this.unknownFields;
-      }
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
         return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_descriptor;
@@ -645,11 +638,13 @@ public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseFrom(
         return com.google.protobuf.GeneratedMessageV3
             .parseWithIOException(PARSER, input, extensionRegistry);
       }
+
       public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseDelimitedFrom(java.io.InputStream input)
           throws java.io.IOException {
         return com.google.protobuf.GeneratedMessageV3
             .parseDelimitedWithIOException(PARSER, input);
       }
+
       public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseDelimitedFrom(
           java.io.InputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -772,38 +767,6 @@ private void buildPartial0(com.google.showcase.v1beta1.Test.Blueprint.Invocation
           }
         }
 
-        @java.lang.Override
-        public Builder clone() {
-          return super.clone();
-        }
-        @java.lang.Override
-        public Builder setField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            java.lang.Object value) {
-          return super.setField(field, value);
-        }
-        @java.lang.Override
-        public Builder clearField(
-            com.google.protobuf.Descriptors.FieldDescriptor field) {
-          return super.clearField(field);
-        }
-        @java.lang.Override
-        public Builder clearOneof(
-            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-          return super.clearOneof(oneof);
-        }
-        @java.lang.Override
-        public Builder setRepeatedField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            int index, java.lang.Object value) {
-          return super.setRepeatedField(field, index, value);
-        }
-        @java.lang.Override
-        public Builder addRepeatedField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            java.lang.Object value) {
-          return super.addRepeatedField(field, value);
-        }
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
           if (other instanceof com.google.showcase.v1beta1.Test.Blueprint.Invocation) {
@@ -1416,11 +1379,13 @@ public static com.google.showcase.v1beta1.Test.Blueprint parseFrom(
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input, extensionRegistry);
     }
+
     public static com.google.showcase.v1beta1.Test.Blueprint parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseDelimitedWithIOException(PARSER, input);
     }
+
     public static com.google.showcase.v1beta1.Test.Blueprint parseDelimitedFrom(
         java.io.InputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1576,38 +1541,6 @@ private void buildPartial0(com.google.showcase.v1beta1.Test.Blueprint result) {
         }
       }
 
-      @java.lang.Override
-      public Builder clone() {
-        return super.clone();
-      }
-      @java.lang.Override
-      public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
-        return super.setField(field, value);
-      }
-      @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
-        return super.clearField(field);
-      }
-      @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-        return super.clearOneof(oneof);
-      }
-      @java.lang.Override
-      public Builder setRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
-        return super.setRepeatedField(field, index, value);
-      }
-      @java.lang.Override
-      public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
-        return super.addRepeatedField(field, value);
-      }
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.showcase.v1beta1.Test.Blueprint) {
@@ -2787,11 +2720,13 @@ public static com.google.showcase.v1beta1.Test parseFrom(
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.Test parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.Test parseDelimitedFrom(
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -2934,38 +2869,6 @@ private void buildPartial0(com.google.showcase.v1beta1.Test result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.setField(field, value);
-    }
-    @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-    @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.Test) {
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRun.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRun.java
index be4f7a4af2..d23caf3e98 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRun.java
+++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRun.java
@@ -30,11 +30,6 @@ protected java.lang.Object newInstance(
     return new TestRun();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
-    return this.unknownFields;
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
     return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_TestRun_descriptor;
@@ -261,11 +256,13 @@ public static com.google.showcase.v1beta1.TestRun parseFrom(
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.TestRun parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.TestRun parseDelimitedFrom(
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -394,38 +391,6 @@ private void buildPartial0(com.google.showcase.v1beta1.TestRun result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.setField(field, value);
-    }
-    @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-    @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.TestRun) {
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequest.java
index 1836baf1a4..dc735ed47f 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequest.java
+++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequest.java
@@ -30,11 +30,6 @@ protected java.lang.Object newInstance(
     return new UpdateBlurbRequest();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
-    return this.unknownFields;
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
     return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_UpdateBlurbRequest_descriptor;
@@ -257,11 +252,13 @@ public static com.google.showcase.v1beta1.UpdateBlurbRequest parseFrom(
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.UpdateBlurbRequest parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.UpdateBlurbRequest parseDelimitedFrom(
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -397,38 +394,6 @@ private void buildPartial0(com.google.showcase.v1beta1.UpdateBlurbRequest result
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.setField(field, value);
-    }
-    @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-    @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.UpdateBlurbRequest) {
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequest.java
index 1fdf515410..4c1519149f 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequest.java
+++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequest.java
@@ -30,11 +30,6 @@ protected java.lang.Object newInstance(
     return new UpdateRoomRequest();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
-    return this.unknownFields;
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
     return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_UpdateRoomRequest_descriptor;
@@ -257,11 +252,13 @@ public static com.google.showcase.v1beta1.UpdateRoomRequest parseFrom(
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.UpdateRoomRequest parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.UpdateRoomRequest parseDelimitedFrom(
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -397,38 +394,6 @@ private void buildPartial0(com.google.showcase.v1beta1.UpdateRoomRequest result)
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.setField(field, value);
-    }
-    @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-    @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.UpdateRoomRequest) {
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequest.java
index 81d5c7b720..0b019a6646 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequest.java
+++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequest.java
@@ -30,11 +30,6 @@ protected java.lang.Object newInstance(
     return new UpdateUserRequest();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
-    return this.unknownFields;
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
     return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_UpdateUserRequest_descriptor;
@@ -257,11 +252,13 @@ public static com.google.showcase.v1beta1.UpdateUserRequest parseFrom(
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.UpdateUserRequest parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.UpdateUserRequest parseDelimitedFrom(
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -397,38 +394,6 @@ private void buildPartial0(com.google.showcase.v1beta1.UpdateUserRequest result)
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.setField(field, value);
-    }
-    @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-    @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.UpdateUserRequest) {
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/User.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/User.java
index 225f7a2fac..fcec000dc5 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/User.java
+++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/User.java
@@ -33,11 +33,6 @@ protected java.lang.Object newInstance(
     return new User();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
-    return this.unknownFields;
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
     return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_User_descriptor;
@@ -329,6 +324,7 @@ public double getHeightFeet() {
   /**
    * 
    * The nickname of the user.
+   *
    * (-- aip.dev/not-precedent: An empty string is a valid nickname.
    *     Ordinarily, proto3_optional should not be used on a `string` field. --)
    * 
@@ -343,6 +339,7 @@ public boolean hasNickname() { /** *
    * The nickname of the user.
+   *
    * (-- aip.dev/not-precedent: An empty string is a valid nickname.
    *     Ordinarily, proto3_optional should not be used on a `string` field. --)
    * 
@@ -366,6 +363,7 @@ public java.lang.String getNickname() { /** *
    * The nickname of the user.
+   *
    * (-- aip.dev/not-precedent: An empty string is a valid nickname.
    *     Ordinarily, proto3_optional should not be used on a `string` field. --)
    * 
@@ -393,6 +391,7 @@ public java.lang.String getNickname() { /** *
    * Enables the receiving of notifications. The default is true if unset.
+   *
    * (-- aip.dev/not-precedent: The default for the feature is true.
    *     Ordinarily, the default for a `bool` field should be false. --)
    * 
@@ -407,6 +406,7 @@ public boolean hasEnableNotifications() { /** *
    * Enables the receiving of notifications. The default is true if unset.
+   *
    * (-- aip.dev/not-precedent: The default for the feature is true.
    *     Ordinarily, the default for a `bool` field should be false. --)
    * 
@@ -645,11 +645,13 @@ public static com.google.showcase.v1beta1.User parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.User parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.User parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -818,38 +820,6 @@ private void buildPartial0(com.google.showcase.v1beta1.User result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.User) { @@ -1610,7 +1580,7 @@ public int getAge() { * @return This builder for chaining. */ public Builder setAge(int value) { - + age_ = value; bitField0_ |= 0x00000020; onChanged(); @@ -1666,7 +1636,7 @@ public double getHeightFeet() { * @return This builder for chaining. */ public Builder setHeightFeet(double value) { - + heightFeet_ = value; bitField0_ |= 0x00000040; onChanged(); @@ -1691,6 +1661,7 @@ public Builder clearHeightFeet() { /** *
      * The nickname of the user.
+     *
      * (-- aip.dev/not-precedent: An empty string is a valid nickname.
      *     Ordinarily, proto3_optional should not be used on a `string` field. --)
      * 
@@ -1704,6 +1675,7 @@ public boolean hasNickname() { /** *
      * The nickname of the user.
+     *
      * (-- aip.dev/not-precedent: An empty string is a valid nickname.
      *     Ordinarily, proto3_optional should not be used on a `string` field. --)
      * 
@@ -1726,6 +1698,7 @@ public java.lang.String getNickname() { /** *
      * The nickname of the user.
+     *
      * (-- aip.dev/not-precedent: An empty string is a valid nickname.
      *     Ordinarily, proto3_optional should not be used on a `string` field. --)
      * 
@@ -1749,6 +1722,7 @@ public java.lang.String getNickname() { /** *
      * The nickname of the user.
+     *
      * (-- aip.dev/not-precedent: An empty string is a valid nickname.
      *     Ordinarily, proto3_optional should not be used on a `string` field. --)
      * 
@@ -1768,6 +1742,7 @@ public Builder setNickname( /** *
      * The nickname of the user.
+     *
      * (-- aip.dev/not-precedent: An empty string is a valid nickname.
      *     Ordinarily, proto3_optional should not be used on a `string` field. --)
      * 
@@ -1784,6 +1759,7 @@ public Builder clearNickname() { /** *
      * The nickname of the user.
+     *
      * (-- aip.dev/not-precedent: An empty string is a valid nickname.
      *     Ordinarily, proto3_optional should not be used on a `string` field. --)
      * 
@@ -1806,6 +1782,7 @@ public Builder setNicknameBytes( /** *
      * Enables the receiving of notifications. The default is true if unset.
+     *
      * (-- aip.dev/not-precedent: The default for the feature is true.
      *     Ordinarily, the default for a `bool` field should be false. --)
      * 
@@ -1820,6 +1797,7 @@ public boolean hasEnableNotifications() { /** *
      * Enables the receiving of notifications. The default is true if unset.
+     *
      * (-- aip.dev/not-precedent: The default for the feature is true.
      *     Ordinarily, the default for a `bool` field should be false. --)
      * 
@@ -1834,6 +1812,7 @@ public boolean getEnableNotifications() { /** *
      * Enables the receiving of notifications. The default is true if unset.
+     *
      * (-- aip.dev/not-precedent: The default for the feature is true.
      *     Ordinarily, the default for a `bool` field should be false. --)
      * 
@@ -1843,7 +1822,7 @@ public boolean getEnableNotifications() { * @return This builder for chaining. */ public Builder setEnableNotifications(boolean value) { - + enableNotifications_ = value; bitField0_ |= 0x00000100; onChanged(); @@ -1852,6 +1831,7 @@ public Builder setEnableNotifications(boolean value) { /** *
      * Enables the receiving of notifications. The default is true if unset.
+     *
      * (-- aip.dev/not-precedent: The default for the feature is true.
      *     Ordinarily, the default for a `bool` field should be false. --)
      * 
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserOrBuilder.java index 25f08bb513..9d3e0d0ca4 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserOrBuilder.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserOrBuilder.java @@ -162,6 +162,7 @@ public interface UserOrBuilder extends /** *
    * The nickname of the user.
+   *
    * (-- aip.dev/not-precedent: An empty string is a valid nickname.
    *     Ordinarily, proto3_optional should not be used on a `string` field. --)
    * 
@@ -173,6 +174,7 @@ public interface UserOrBuilder extends /** *
    * The nickname of the user.
+   *
    * (-- aip.dev/not-precedent: An empty string is a valid nickname.
    *     Ordinarily, proto3_optional should not be used on a `string` field. --)
    * 
@@ -184,6 +186,7 @@ public interface UserOrBuilder extends /** *
    * The nickname of the user.
+   *
    * (-- aip.dev/not-precedent: An empty string is a valid nickname.
    *     Ordinarily, proto3_optional should not be used on a `string` field. --)
    * 
@@ -197,6 +200,7 @@ public interface UserOrBuilder extends /** *
    * Enables the receiving of notifications. The default is true if unset.
+   *
    * (-- aip.dev/not-precedent: The default for the feature is true.
    *     Ordinarily, the default for a `bool` field should be false. --)
    * 
@@ -208,6 +212,7 @@ public interface UserOrBuilder extends /** *
    * Enables the receiving of notifications. The default is true if unset.
+   *
    * (-- aip.dev/not-precedent: The default for the feature is true.
    *     Ordinarily, the default for a `bool` field should be false. --)
    * 
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequest.java index d0687846be..a1ce7c778f 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequest.java @@ -28,11 +28,6 @@ protected java.lang.Object newInstance( return new VerifyTestRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_VerifyTestRequest_descriptor; @@ -285,11 +280,13 @@ public static com.google.showcase.v1beta1.VerifyTestRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.VerifyTestRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.VerifyTestRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -418,38 +415,6 @@ private void buildPartial0(com.google.showcase.v1beta1.VerifyTestRequest result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.VerifyTestRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponse.java index 54b08318fd..06a1aefd51 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponse.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponse.java @@ -25,11 +25,6 @@ protected java.lang.Object newInstance( return new VerifyTestResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_VerifyTestResponse_descriptor; @@ -195,11 +190,13 @@ public static com.google.showcase.v1beta1.VerifyTestResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.VerifyTestResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.VerifyTestResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -320,38 +317,6 @@ private void buildPartial0(com.google.showcase.v1beta1.VerifyTestResponse result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.VerifyTestResponse) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadata.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadata.java index 532eedcb00..0daba32ecf 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadata.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadata.java @@ -29,11 +29,6 @@ protected java.lang.Object newInstance( return new WaitMetadata(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitMetadata_descriptor; @@ -199,11 +194,13 @@ public static com.google.showcase.v1beta1.WaitMetadata parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.WaitMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.WaitMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -328,38 +325,6 @@ private void buildPartial0(com.google.showcase.v1beta1.WaitMetadata result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.WaitMetadata) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequest.java index 58dfeb2365..002a8be3ae 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequest.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequest.java @@ -29,11 +29,6 @@ protected java.lang.Object newInstance( return new WaitRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitRequest_descriptor; @@ -48,6 +43,7 @@ protected java.lang.Object newInstance( } private int endCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object end_; public enum EndCase implements com.google.protobuf.Internal.EnumLite, @@ -89,6 +85,7 @@ public int getNumber() { } private int responseCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object response_; public enum ResponseCase implements com.google.protobuf.Internal.EnumLite, @@ -480,11 +477,13 @@ public static com.google.showcase.v1beta1.WaitRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.WaitRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.WaitRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -639,38 +638,6 @@ private void buildPartialOneofs(com.google.showcase.v1beta1.WaitRequest result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.WaitRequest) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequestOrBuilder.java index 1050530f9c..0f00788847 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequestOrBuilder.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequestOrBuilder.java @@ -118,7 +118,7 @@ public interface WaitRequestOrBuilder extends */ com.google.showcase.v1beta1.WaitResponseOrBuilder getSuccessOrBuilder(); - public com.google.showcase.v1beta1.WaitRequest.EndCase getEndCase(); + com.google.showcase.v1beta1.WaitRequest.EndCase getEndCase(); - public com.google.showcase.v1beta1.WaitRequest.ResponseCase getResponseCase(); + com.google.showcase.v1beta1.WaitRequest.ResponseCase getResponseCase(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitResponse.java index 4c9d077850..a277206a92 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitResponse.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitResponse.java @@ -30,11 +30,6 @@ protected java.lang.Object newInstance( return new WaitResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitResponse_descriptor; @@ -203,11 +198,13 @@ public static com.google.showcase.v1beta1.WaitResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.WaitResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.WaitResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -326,38 +323,6 @@ private void buildPartial0(com.google.showcase.v1beta1.WaitResponse result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.WaitResponse) { From 4ec1b2da10c6e9a611096e9e3e97a86f6b2a1abb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 23 May 2023 13:45:00 -0400 Subject: [PATCH 11/17] build(deps): bump requests from 2.27.1 to 2.31.0 in /.kokoro (#1694) Bumps [requests](https://github.com/psf/requests) from 2.27.1 to 2.31.0. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](https://github.com/psf/requests/compare/v2.27.1...v2.31.0) --- updated-dependencies: - dependency-name: requests dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .kokoro/requirements.txt | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt index faf46223b9..06643fd5a9 100644 --- a/.kokoro/requirements.txt +++ b/.kokoro/requirements.txt @@ -16,7 +16,7 @@ certifi==2022.12.7 \ --hash=sha256:35824b4c3a97115964b408844d64aa14db1cc518f6562e8d7261699d1350a9e3 \ --hash=sha256:4ad3232f5e926d6718ec31cfc1fcadfde020920e278684144551c91769c7bc18 # via - # -r .kokoro/requirements.in + # -r requirements.in # requests cffi==1.15.1 \ --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \ @@ -92,7 +92,7 @@ click==8.0.4 \ --hash=sha256:6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1 \ --hash=sha256:8458d7b1287c5fb128c90e23381cf99dcde74beaf6c7ff6384ce84d6fe090adb # via - # -r .kokoro/requirements.in + # -r requirements.in # gcp-docuploader # gcp-releasetool colorlog==6.7.0 \ @@ -124,17 +124,17 @@ cryptography==39.0.2 \ --hash=sha256:fa507318e427169ade4e9eccef39e9011cdc19534f55ca2f36ec3f388c1f70f3 \ --hash=sha256:ffd394c7896ed7821a6d13b24657c6a34b6e2650bd84ae063cf11ccffa4f1a97 # via - # -r .kokoro/requirements.in + # -r requirements.in # gcp-releasetool # secretstorage gcp-docuploader==0.6.5 \ --hash=sha256:30221d4ac3e5a2b9c69aa52fdbef68cc3f27d0e6d0d90e220fc024584b8d2318 \ --hash=sha256:b7458ef93f605b9d46a4bf3a8dc1755dad1f31d030c8679edf304e343b347eea - # via -r .kokoro/requirements.in + # via -r requirements.in gcp-releasetool==1.10.5 \ --hash=sha256:174b7b102d704b254f2a26a3eda2c684fd3543320ec239baf771542a2e58e109 \ --hash=sha256:e29d29927fe2ca493105a82958c6873bb2b90d503acac56be2c229e74de0eec9 - # via -r .kokoro/requirements.in + # via -r requirements.in google-api-core==2.8.2 \ --hash=sha256:06f7244c640322b508b125903bb5701bebabce8832f85aba9335ec00b3d02edc \ --hash=sha256:93c6a91ccac79079ac6bbf8b74ee75db970cc899278b97d53bc012f35908cf50 @@ -220,18 +220,20 @@ importlib-metadata==4.8.3 \ jeepney==0.7.1 \ --hash=sha256:1b5a0ea5c0e7b166b2f5895b91a08c14de8915afda4407fb5022a195224958ac \ --hash=sha256:fa9e232dfa0c498bd0b8a3a73b8d8a31978304dcef0515adc859d4e096f96f4f - # via secretstorage + # via + # keyring + # secretstorage jinja2==3.0.3 \ --hash=sha256:077ce6014f7b40d03b47d1f1ca4b0fc8328a692bd284016f806ed0eaca390ad8 \ --hash=sha256:611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7 # via - # -r .kokoro/requirements.in + # -r requirements.in # gcp-releasetool keyring==23.4.1 \ --hash=sha256:17e49fb0d6883c2b4445359434dba95aad84aabb29bbff044ad0ed7100232eca \ --hash=sha256:89cbd74d4683ed164c8082fb38619341097741323b3786905c6dac04d6915a55 # via - # -r .kokoro/requirements.in + # -r requirements.in # gcp-releasetool markupsafe==2.0.1 \ --hash=sha256:01a9b8ea66f1658938f65b93a85ebe8bc016e6769611be228d797c9d998dd298 \ @@ -368,9 +370,9 @@ python-dateutil==2.8.2 \ --hash=sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86 \ --hash=sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9 # via gcp-releasetool -requests==2.27.1 \ - --hash=sha256:68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61 \ - --hash=sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d +requests==2.31.0 \ + --hash=sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f \ + --hash=sha256:942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1 # via # gcp-releasetool # google-api-core @@ -382,7 +384,9 @@ rsa==4.9 \ secretstorage==3.3.3 \ --hash=sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77 \ --hash=sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99 - # via -r .kokoro/requirements.in + # via + # -r requirements.in + # keyring six==1.16.0 \ --hash=sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926 \ --hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254 @@ -393,7 +397,7 @@ six==1.16.0 \ typing-extensions==4.1.1 \ --hash=sha256:1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42 \ --hash=sha256:21c85e0fe4b9a155d0799430b0ad741cdce7e359660ccbd8b530613e8df88ce2 - # via -r .kokoro/requirements.in + # via -r requirements.in urllib3==1.26.15 \ --hash=sha256:8a388717b9476f934a21484e8c8e61875ab60644d29b9b39e11e4b9dc1c6b305 \ --hash=sha256:aa751d169e23c7479ce47a0cb0da579e3ede798f994f5816a74e4f4500dcea42 From a988fe7dcfc8568c9256c22b5df907b16e5eea5a Mon Sep 17 00:00:00 2001 From: Alice <65933803+alicejli@users.noreply.github.com> Date: Tue, 23 May 2023 16:16:06 -0400 Subject: [PATCH 12/17] fix: update tag workflow (#1699) * fix: update tag workflow * update indentation and remove ref --- .../create_additional_release_tag.yaml | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/create_additional_release_tag.yaml b/.github/workflows/create_additional_release_tag.yaml index 4270461be5..96feb1e790 100644 --- a/.github/workflows/create_additional_release_tag.yaml +++ b/.github/workflows/create_additional_release_tag.yaml @@ -3,11 +3,7 @@ name: Create additional tags for each release on: release: types: [published] - workflow_dispatch: # If manually triggered, clarify which release to create the additional tags for - inputs: - releaseTag: - description: 'Release Tag' - required: true + workflow_dispatch: jobs: build: @@ -17,7 +13,6 @@ jobs: - name: Checkout code uses: actions/checkout@v3 with: - ref: ${{ github.event.inputs.releaseTag }} token: ${{ secrets.GITHUB_TOKEN }} - name: Set up Git @@ -28,9 +23,13 @@ jobs: - name: Create additional tags run: | ARTIFACT_IDS=('google-cloud-shared-dependencies' 'api-common' 'gax') - for ARTIFACT_ID in "${ARTIFACT_IDS[@]}" - do - VERSION=$(grep "${ARTIFACT_ID}" versions.txt | cut -d':' -f2) - git tag ${ARTIFACT_ID}/$VERSION ${{ github.event.inputs.releaseTag }} - git push origin ${ARTIFACT_ID}/$VERSION + for ARTIFACT_ID in "${ARTIFACT_IDS[@]}"; do + VERSION=$(grep "^${ARTIFACT_ID}:" versions.txt | cut -d':' -f2 | tr -d '[:space:]') + TAG_NAME="${ARTIFACT_ID}/v$VERSION" + if git show-ref --tags | grep -q "refs/tags/$TAG_NAME"; then + echo "Tag $TAG_NAME already exists. Skipping." + continue + fi + git tag $TAG_NAME + git push origin $TAG_NAME done From ff3c1545acc8e439d6b4a3da70e368492d461500 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 23 May 2023 22:10:04 -0400 Subject: [PATCH 13/17] chore: [iam] upgrading Protobuf to 23.1 and gRPC to 1.55.0 in code generation (#1693) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: upgrading Protobuf to 23.1 and gRPC to 1.55.0 in code generation PiperOrigin-RevId: 534084593 Source-Link: https://github.com/googleapis/googleapis/commit/aa4559a97f79225fc57c9f70b5f84fe620e8292e Source-Link: https://github.com/googleapis/googleapis-gen/commit/370325af8236732f5885f5940e0ef481fee83003 Copy-Tag: eyJwIjoiamF2YS1pYW0vLk93bEJvdC55YW1sIiwiaCI6IjM3MDMyNWFmODIzNjczMmY1ODg1ZjU5NDBlMGVmNDgxZmVlODMwMDMifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * add exclusions to clirr --------- Co-authored-by: Owl Bot Co-authored-by: Mridula Peddada --- .../clirr-ignored-differences.xml | 30 ++ .../java/com/google/iam/v1/AuditConfig.java | 46 +-- .../com/google/iam/v1/AuditConfigDelta.java | 38 -- .../com/google/iam/v1/AuditLogConfig.java | 83 ++--- .../main/java/com/google/iam/v1/Binding.java | 258 ++++++++++--- .../java/com/google/iam/v1/BindingDelta.java | 38 -- .../com/google/iam/v1/BindingOrBuilder.java | 53 +++ .../google/iam/v1/GetIamPolicyRequest.java | 38 -- .../com/google/iam/v1/GetPolicyOptions.java | 54 +-- .../iam/v1/GetPolicyOptionsOrBuilder.java | 4 + .../com/google/iam/v1/IamPolicyProto.java | 50 +-- .../main/java/com/google/iam/v1/Policy.java | 105 ++++-- .../java/com/google/iam/v1/PolicyDelta.java | 38 -- .../com/google/iam/v1/PolicyOrBuilder.java | 12 + .../google/iam/v1/SetIamPolicyRequest.java | 50 +-- .../iam/v1/SetIamPolicyRequestOrBuilder.java | 3 + .../iam/v1/TestIamPermissionsRequest.java | 79 ++-- .../iam/v1/TestIamPermissionsResponse.java | 79 ++-- .../clirr-ignored-differences.xml | 30 ++ .../google/iam/v2/CreatePolicyRequest.java | 59 ++- .../iam/v2/CreatePolicyRequestOrBuilder.java | 6 + .../google/iam/v2/DeletePolicyRequest.java | 66 ++-- .../iam/v2/DeletePolicyRequestOrBuilder.java | 8 + .../main/java/com/google/iam/v2/DenyRule.java | 340 ++++++++++++------ .../com/google/iam/v2/DenyRuleOrBuilder.java | 46 +++ .../com/google/iam/v2/GetPolicyRequest.java | 59 ++- .../iam/v2/GetPolicyRequestOrBuilder.java | 6 + .../google/iam/v2/ListPoliciesRequest.java | 59 ++- .../iam/v2/ListPoliciesRequestOrBuilder.java | 6 + .../google/iam/v2/ListPoliciesResponse.java | 38 -- .../main/java/com/google/iam/v2/Policy.java | 66 ++-- .../iam/v2/PolicyOperationMetadata.java | 38 -- .../com/google/iam/v2/PolicyOrBuilder.java | 8 + .../java/com/google/iam/v2/PolicyProto.java | 105 +++--- .../java/com/google/iam/v2/PolicyRule.java | 40 +-- .../google/iam/v2/PolicyRuleOrBuilder.java | 2 +- .../google/iam/v2/UpdatePolicyRequest.java | 50 +-- .../iam/v2/UpdatePolicyRequestOrBuilder.java | 3 + .../clirr-ignored-differences.xml | 30 ++ .../iam/v2beta/CreatePolicyRequest.java | 59 ++- .../v2beta/CreatePolicyRequestOrBuilder.java | 6 + .../iam/v2beta/DeletePolicyRequest.java | 66 ++-- .../v2beta/DeletePolicyRequestOrBuilder.java | 8 + .../java/com/google/iam/v2beta/DenyRule.java | 340 ++++++++++++------ .../google/iam/v2beta/DenyRuleOrBuilder.java | 46 +++ .../google/iam/v2beta/GetPolicyRequest.java | 59 ++- .../iam/v2beta/GetPolicyRequestOrBuilder.java | 6 + .../iam/v2beta/ListPoliciesRequest.java | 59 ++- .../v2beta/ListPoliciesRequestOrBuilder.java | 6 + .../iam/v2beta/ListPoliciesResponse.java | 38 -- .../java/com/google/iam/v2beta/Policy.java | 66 ++-- .../iam/v2beta/PolicyOperationMetadata.java | 38 -- .../google/iam/v2beta/PolicyOrBuilder.java | 8 + .../com/google/iam/v2beta/PolicyProto.java | 106 +++--- .../com/google/iam/v2beta/PolicyRule.java | 40 +-- .../iam/v2beta/PolicyRuleOrBuilder.java | 2 +- .../iam/v2beta/UpdatePolicyRequest.java | 50 +-- .../v2beta/UpdatePolicyRequestOrBuilder.java | 3 + 58 files changed, 1569 insertions(+), 1560 deletions(-) diff --git a/java-iam/proto-google-iam-v1/clirr-ignored-differences.xml b/java-iam/proto-google-iam-v1/clirr-ignored-differences.xml index ca6f8c1981..f551ecf78f 100644 --- a/java-iam/proto-google-iam-v1/clirr-ignored-differences.xml +++ b/java-iam/proto-google-iam-v1/clirr-ignored-differences.xml @@ -1,6 +1,36 @@ + + 7002 + com/google/iam/v1/*Builder + * addRepeatedField(*) + + + 7002 + com/google/iam/v1/*Builder + * clearField(*) + + + 7002 + com/google/iam/v1/*Builder + * clearOneof(*) + + + 7002 + com/google/iam/v1/*Builder + * clone() + + + 7002 + com/google/iam/v1/*Builder + * setField(*) + + + 7002 + com/google/iam/v1/*Builder + * setRepeatedField(*) + 7012 com/google/iam/v1/*OrBuilder diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java index 5414ae4c2c..3607c266a6 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java @@ -26,11 +26,14 @@ * The configuration determines which permission types are logged, and what * identities, if any, are exempted from logging. * An AuditConfig must have one or more AuditLogConfigs. + * * If there are AuditConfigs for both `allServices` and a specific service, * the union of the two AuditConfigs is used for that service: the log_types * specified in each AuditConfig are enabled, and the exempted_members in each * AuditLogConfig are exempted. + * * Example Policy with multiple AuditConfigs: + * * { * "audit_configs": [ * { @@ -66,6 +69,7 @@ * } * ] * } + * * For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ * logging. It also exempts jose@example.com from DATA_READ logging, and * aliya@example.com from DATA_WRITE logging. @@ -94,11 +98,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AuditConfig(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfig_descriptor; } @@ -414,11 +413,14 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * The configuration determines which permission types are logged, and what * identities, if any, are exempted from logging. * An AuditConfig must have one or more AuditLogConfigs. + * * If there are AuditConfigs for both `allServices` and a specific service, * the union of the two AuditConfigs is used for that service: the log_types * specified in each AuditConfig are enabled, and the exempted_members in each * AuditLogConfig are exempted. + * * Example Policy with multiple AuditConfigs: + * * { * "audit_configs": [ * { @@ -454,6 +456,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * } * ] * } + * * For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ * logging. It also exempts jose@example.com from DATA_READ logging, and * aliya@example.com from DATA_WRITE logging. @@ -549,39 +552,6 @@ private void buildPartial0(com.google.iam.v1.AuditConfig result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v1.AuditConfig) { diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java index 9fc1f68b1d..b56b2552e6 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java @@ -51,11 +51,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AuditConfigDelta(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfigDelta_descriptor; } @@ -708,39 +703,6 @@ private void buildPartial0(com.google.iam.v1.AuditConfigDelta result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v1.AuditConfigDelta) { diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java index dbdb7e2c76..05f9e30d65 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java @@ -24,6 +24,7 @@ *
  * Provides the configuration for logging a type of permissions.
  * Example:
+ *
  *     {
  *       "audit_log_configs": [
  *         {
@@ -37,6 +38,7 @@
  *         }
  *       ]
  *     }
+ *
  * This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
  * jose@example.com from DATA_READ logging.
  * 
@@ -55,7 +57,7 @@ private AuditLogConfig(com.google.protobuf.GeneratedMessageV3.Builder builder private AuditLogConfig() { logType_ = 0; - exemptedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + exemptedMembers_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -64,11 +66,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AuditLogConfig(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditLogConfig_descriptor; } @@ -300,7 +297,8 @@ public com.google.iam.v1.AuditLogConfig.LogType getLogType() { public static final int EXEMPTED_MEMBERS_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList exemptedMembers_; + private com.google.protobuf.LazyStringArrayList exemptedMembers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -551,6 +549,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
    * Provides the configuration for logging a type of permissions.
    * Example:
+   *
    *     {
    *       "audit_log_configs": [
    *         {
@@ -564,6 +563,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *         }
    *       ]
    *     }
+   *
    * This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
    * jose@example.com from DATA_READ logging.
    * 
@@ -600,8 +600,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; logType_ = 0; - exemptedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + exemptedMembers_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -627,7 +626,6 @@ public com.google.iam.v1.AuditLogConfig build() { @java.lang.Override public com.google.iam.v1.AuditLogConfig buildPartial() { com.google.iam.v1.AuditLogConfig result = new com.google.iam.v1.AuditLogConfig(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -635,52 +633,15 @@ public com.google.iam.v1.AuditLogConfig buildPartial() { return result; } - private void buildPartialRepeatedFields(com.google.iam.v1.AuditLogConfig result) { - if (((bitField0_ & 0x00000002) != 0)) { - exemptedMembers_ = exemptedMembers_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.exemptedMembers_ = exemptedMembers_; - } - private void buildPartial0(com.google.iam.v1.AuditLogConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.logType_ = logType_; } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + if (((from_bitField0_ & 0x00000002) != 0)) { + exemptedMembers_.makeImmutable(); + result.exemptedMembers_ = exemptedMembers_; + } } @java.lang.Override @@ -701,7 +662,7 @@ public Builder mergeFrom(com.google.iam.v1.AuditLogConfig other) { if (!other.exemptedMembers_.isEmpty()) { if (exemptedMembers_.isEmpty()) { exemptedMembers_ = other.exemptedMembers_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ |= 0x00000002; } else { ensureExemptedMembersIsMutable(); exemptedMembers_.addAll(other.exemptedMembers_); @@ -856,14 +817,14 @@ public Builder clearLogType() { return this; } - private com.google.protobuf.LazyStringList exemptedMembers_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList exemptedMembers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureExemptedMembersIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!exemptedMembers_.isModifiable()) { exemptedMembers_ = new com.google.protobuf.LazyStringArrayList(exemptedMembers_); - bitField0_ |= 0x00000002; } + bitField0_ |= 0x00000002; } /** * @@ -880,7 +841,8 @@ private void ensureExemptedMembersIsMutable() { * @return A list containing the exemptedMembers. */ public com.google.protobuf.ProtocolStringList getExemptedMembersList() { - return exemptedMembers_.getUnmodifiableView(); + exemptedMembers_.makeImmutable(); + return exemptedMembers_; } /** * @@ -957,6 +919,7 @@ public Builder setExemptedMembers(int index, java.lang.String value) { } ensureExemptedMembersIsMutable(); exemptedMembers_.set(index, value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -981,6 +944,7 @@ public Builder addExemptedMembers(java.lang.String value) { } ensureExemptedMembersIsMutable(); exemptedMembers_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1002,6 +966,7 @@ public Builder addExemptedMembers(java.lang.String value) { public Builder addAllExemptedMembers(java.lang.Iterable values) { ensureExemptedMembersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exemptedMembers_); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1020,8 +985,9 @@ public Builder addAllExemptedMembers(java.lang.Iterable values * @return This builder for chaining. */ public Builder clearExemptedMembers() { - exemptedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + exemptedMembers_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } @@ -1047,6 +1013,7 @@ public Builder addExemptedMembersBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureExemptedMembersIsMutable(); exemptedMembers_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java index b24aa460af..3784bda197 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java @@ -39,7 +39,7 @@ private Binding(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Binding() { role_ = ""; - members_ = com.google.protobuf.LazyStringArrayList.EMPTY; + members_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Binding(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Binding_descriptor; } @@ -121,28 +116,37 @@ public com.google.protobuf.ByteString getRoleBytes() { public static final int MEMBERS_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList members_; + private com.google.protobuf.LazyStringArrayList members_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
+   *
    * * `allUsers`: A special identifier that represents anyone who is
    *    on the internet; with or without a Google account.
+   *
    * * `allAuthenticatedUsers`: A special identifier that represents anyone
    *    who is authenticated with a Google account or a service account.
+   *
    * * `user:{emailid}`: An email address that represents a specific Google
    *    account. For example, `alice@example.com` .
+   *
+   *
    * * `serviceAccount:{emailid}`: An email address that represents a service
    *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+   *
    * * `group:{emailid}`: An email address that represents a Google group.
    *    For example, `admins@example.com`.
+   *
    * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a user that has been recently deleted. For
    *    example, `alice@example.com?uid=123456789012345678901`. If the user is
    *    recovered, this value reverts to `user:{emailid}` and the recovered user
    *    retains the role in the binding.
+   *
    * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
    *    unique identifier) representing a service account that has been recently
    *    deleted. For example,
@@ -150,11 +154,14 @@ public com.google.protobuf.ByteString getRoleBytes() {
    *    If the service account is undeleted, this value reverts to
    *    `serviceAccount:{emailid}` and the undeleted service account retains the
    *    role in the binding.
+   *
    * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a Google group that has been recently
    *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
    *    the group is recovered, this value reverts to `group:{emailid}` and the
    *    recovered group retains the role in the binding.
+   *
+   *
    * * `domain:{domain}`: The G Suite domain (primary) that represents all the
    *    users of that domain. For example, `google.com` or `example.com`.
    * 
@@ -172,21 +179,29 @@ public com.google.protobuf.ProtocolStringList getMembersList() { *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
+   *
    * * `allUsers`: A special identifier that represents anyone who is
    *    on the internet; with or without a Google account.
+   *
    * * `allAuthenticatedUsers`: A special identifier that represents anyone
    *    who is authenticated with a Google account or a service account.
+   *
    * * `user:{emailid}`: An email address that represents a specific Google
    *    account. For example, `alice@example.com` .
+   *
+   *
    * * `serviceAccount:{emailid}`: An email address that represents a service
    *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+   *
    * * `group:{emailid}`: An email address that represents a Google group.
    *    For example, `admins@example.com`.
+   *
    * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a user that has been recently deleted. For
    *    example, `alice@example.com?uid=123456789012345678901`. If the user is
    *    recovered, this value reverts to `user:{emailid}` and the recovered user
    *    retains the role in the binding.
+   *
    * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
    *    unique identifier) representing a service account that has been recently
    *    deleted. For example,
@@ -194,11 +209,14 @@ public com.google.protobuf.ProtocolStringList getMembersList() {
    *    If the service account is undeleted, this value reverts to
    *    `serviceAccount:{emailid}` and the undeleted service account retains the
    *    role in the binding.
+   *
    * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a Google group that has been recently
    *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
    *    the group is recovered, this value reverts to `group:{emailid}` and the
    *    recovered group retains the role in the binding.
+   *
+   *
    * * `domain:{domain}`: The G Suite domain (primary) that represents all the
    *    users of that domain. For example, `google.com` or `example.com`.
    * 
@@ -216,21 +234,29 @@ public int getMembersCount() { *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
+   *
    * * `allUsers`: A special identifier that represents anyone who is
    *    on the internet; with or without a Google account.
+   *
    * * `allAuthenticatedUsers`: A special identifier that represents anyone
    *    who is authenticated with a Google account or a service account.
+   *
    * * `user:{emailid}`: An email address that represents a specific Google
    *    account. For example, `alice@example.com` .
+   *
+   *
    * * `serviceAccount:{emailid}`: An email address that represents a service
    *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+   *
    * * `group:{emailid}`: An email address that represents a Google group.
    *    For example, `admins@example.com`.
+   *
    * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a user that has been recently deleted. For
    *    example, `alice@example.com?uid=123456789012345678901`. If the user is
    *    recovered, this value reverts to `user:{emailid}` and the recovered user
    *    retains the role in the binding.
+   *
    * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
    *    unique identifier) representing a service account that has been recently
    *    deleted. For example,
@@ -238,11 +264,14 @@ public int getMembersCount() {
    *    If the service account is undeleted, this value reverts to
    *    `serviceAccount:{emailid}` and the undeleted service account retains the
    *    role in the binding.
+   *
    * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a Google group that has been recently
    *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
    *    the group is recovered, this value reverts to `group:{emailid}` and the
    *    recovered group retains the role in the binding.
+   *
+   *
    * * `domain:{domain}`: The G Suite domain (primary) that represents all the
    *    users of that domain. For example, `google.com` or `example.com`.
    * 
@@ -261,21 +290,29 @@ public java.lang.String getMembers(int index) { *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
+   *
    * * `allUsers`: A special identifier that represents anyone who is
    *    on the internet; with or without a Google account.
+   *
    * * `allAuthenticatedUsers`: A special identifier that represents anyone
    *    who is authenticated with a Google account or a service account.
+   *
    * * `user:{emailid}`: An email address that represents a specific Google
    *    account. For example, `alice@example.com` .
+   *
+   *
    * * `serviceAccount:{emailid}`: An email address that represents a service
    *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+   *
    * * `group:{emailid}`: An email address that represents a Google group.
    *    For example, `admins@example.com`.
+   *
    * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a user that has been recently deleted. For
    *    example, `alice@example.com?uid=123456789012345678901`. If the user is
    *    recovered, this value reverts to `user:{emailid}` and the recovered user
    *    retains the role in the binding.
+   *
    * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
    *    unique identifier) representing a service account that has been recently
    *    deleted. For example,
@@ -283,11 +320,14 @@ public java.lang.String getMembers(int index) {
    *    If the service account is undeleted, this value reverts to
    *    `serviceAccount:{emailid}` and the undeleted service account retains the
    *    role in the binding.
+   *
    * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a Google group that has been recently
    *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
    *    the group is recovered, this value reverts to `group:{emailid}` and the
    *    recovered group retains the role in the binding.
+   *
+   *
    * * `domain:{domain}`: The G Suite domain (primary) that represents all the
    *    users of that domain. For example, `google.com` or `example.com`.
    * 
@@ -308,11 +348,14 @@ public com.google.protobuf.ByteString getMembersBytes(int index) { * *
    * The condition that is associated with this binding.
+   *
    * If the condition evaluates to `true`, then this binding applies to the
    * current request.
+   *
    * If the condition evaluates to `false`, then this binding does not apply to
    * the current request. However, a different role binding might grant the same
    * role to one or more of the principals in this binding.
+   *
    * To learn which resources support conditions in their IAM policies, see the
    * [IAM
    * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -331,11 +374,14 @@ public boolean hasCondition() {
    *
    * 
    * The condition that is associated with this binding.
+   *
    * If the condition evaluates to `true`, then this binding applies to the
    * current request.
+   *
    * If the condition evaluates to `false`, then this binding does not apply to
    * the current request. However, a different role binding might grant the same
    * role to one or more of the principals in this binding.
+   *
    * To learn which resources support conditions in their IAM policies, see the
    * [IAM
    * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -354,11 +400,14 @@ public com.google.type.Expr getCondition() {
    *
    * 
    * The condition that is associated with this binding.
+   *
    * If the condition evaluates to `true`, then this binding applies to the
    * current request.
+   *
    * If the condition evaluates to `false`, then this binding does not apply to
    * the current request. However, a different role binding might grant the same
    * role to one or more of the principals in this binding.
+   *
    * To learn which resources support conditions in their IAM policies, see the
    * [IAM
    * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -595,8 +644,7 @@ public Builder clear() {
       super.clear();
       bitField0_ = 0;
       role_ = "";
-      members_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-      bitField0_ = (bitField0_ & ~0x00000002);
+      members_ = com.google.protobuf.LazyStringArrayList.emptyList();
       condition_ = null;
       if (conditionBuilder_ != null) {
         conditionBuilder_.dispose();
@@ -627,7 +675,6 @@ public com.google.iam.v1.Binding build() {
     @java.lang.Override
     public com.google.iam.v1.Binding buildPartial() {
       com.google.iam.v1.Binding result = new com.google.iam.v1.Binding(this);
-      buildPartialRepeatedFields(result);
       if (bitField0_ != 0) {
         buildPartial0(result);
       }
@@ -635,57 +682,20 @@ public com.google.iam.v1.Binding buildPartial() {
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.iam.v1.Binding result) {
-      if (((bitField0_ & 0x00000002) != 0)) {
-        members_ = members_.getUnmodifiableView();
-        bitField0_ = (bitField0_ & ~0x00000002);
-      }
-      result.members_ = members_;
-    }
-
     private void buildPartial0(com.google.iam.v1.Binding result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.role_ = role_;
       }
+      if (((from_bitField0_ & 0x00000002) != 0)) {
+        members_.makeImmutable();
+        result.members_ = members_;
+      }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build();
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.iam.v1.Binding) {
@@ -706,7 +716,7 @@ public Builder mergeFrom(com.google.iam.v1.Binding other) {
       if (!other.members_.isEmpty()) {
         if (members_.isEmpty()) {
           members_ = other.members_;
-          bitField0_ = (bitField0_ & ~0x00000002);
+          bitField0_ |= 0x00000002;
         } else {
           ensureMembersIsMutable();
           members_.addAll(other.members_);
@@ -891,14 +901,14 @@ public Builder setRoleBytes(com.google.protobuf.ByteString value) {
       return this;
     }
 
-    private com.google.protobuf.LazyStringList members_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringArrayList members_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
 
     private void ensureMembersIsMutable() {
-      if (!((bitField0_ & 0x00000002) != 0)) {
+      if (!members_.isModifiable()) {
         members_ = new com.google.protobuf.LazyStringArrayList(members_);
-        bitField0_ |= 0x00000002;
       }
+      bitField0_ |= 0x00000002;
     }
     /**
      *
@@ -906,21 +916,29 @@ private void ensureMembersIsMutable() {
      * 
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
+     *
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
+     *
      * * `allAuthenticatedUsers`: A special identifier that represents anyone
      *    who is authenticated with a Google account or a service account.
+     *
      * * `user:{emailid}`: An email address that represents a specific Google
      *    account. For example, `alice@example.com` .
+     *
+     *
      * * `serviceAccount:{emailid}`: An email address that represents a service
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+     *
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     *
      * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a user that has been recently deleted. For
      *    example, `alice@example.com?uid=123456789012345678901`. If the user is
      *    recovered, this value reverts to `user:{emailid}` and the recovered user
      *    retains the role in the binding.
+     *
      * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
      *    unique identifier) representing a service account that has been recently
      *    deleted. For example,
@@ -928,11 +946,14 @@ private void ensureMembersIsMutable() {
      *    If the service account is undeleted, this value reverts to
      *    `serviceAccount:{emailid}` and the undeleted service account retains the
      *    role in the binding.
+     *
      * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a Google group that has been recently
      *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
      *    the group is recovered, this value reverts to `group:{emailid}` and the
      *    recovered group retains the role in the binding.
+     *
+     *
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
@@ -942,7 +963,8 @@ private void ensureMembersIsMutable() { * @return A list containing the members. */ public com.google.protobuf.ProtocolStringList getMembersList() { - return members_.getUnmodifiableView(); + members_.makeImmutable(); + return members_; } /** * @@ -950,21 +972,29 @@ public com.google.protobuf.ProtocolStringList getMembersList() { *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
+     *
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
+     *
      * * `allAuthenticatedUsers`: A special identifier that represents anyone
      *    who is authenticated with a Google account or a service account.
+     *
      * * `user:{emailid}`: An email address that represents a specific Google
      *    account. For example, `alice@example.com` .
+     *
+     *
      * * `serviceAccount:{emailid}`: An email address that represents a service
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+     *
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     *
      * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a user that has been recently deleted. For
      *    example, `alice@example.com?uid=123456789012345678901`. If the user is
      *    recovered, this value reverts to `user:{emailid}` and the recovered user
      *    retains the role in the binding.
+     *
      * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
      *    unique identifier) representing a service account that has been recently
      *    deleted. For example,
@@ -972,11 +1002,14 @@ public com.google.protobuf.ProtocolStringList getMembersList() {
      *    If the service account is undeleted, this value reverts to
      *    `serviceAccount:{emailid}` and the undeleted service account retains the
      *    role in the binding.
+     *
      * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a Google group that has been recently
      *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
      *    the group is recovered, this value reverts to `group:{emailid}` and the
      *    recovered group retains the role in the binding.
+     *
+     *
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
@@ -994,21 +1027,29 @@ public int getMembersCount() { *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
+     *
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
+     *
      * * `allAuthenticatedUsers`: A special identifier that represents anyone
      *    who is authenticated with a Google account or a service account.
+     *
      * * `user:{emailid}`: An email address that represents a specific Google
      *    account. For example, `alice@example.com` .
+     *
+     *
      * * `serviceAccount:{emailid}`: An email address that represents a service
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+     *
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     *
      * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a user that has been recently deleted. For
      *    example, `alice@example.com?uid=123456789012345678901`. If the user is
      *    recovered, this value reverts to `user:{emailid}` and the recovered user
      *    retains the role in the binding.
+     *
      * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
      *    unique identifier) representing a service account that has been recently
      *    deleted. For example,
@@ -1016,11 +1057,14 @@ public int getMembersCount() {
      *    If the service account is undeleted, this value reverts to
      *    `serviceAccount:{emailid}` and the undeleted service account retains the
      *    role in the binding.
+     *
      * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a Google group that has been recently
      *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
      *    the group is recovered, this value reverts to `group:{emailid}` and the
      *    recovered group retains the role in the binding.
+     *
+     *
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
@@ -1039,21 +1083,29 @@ public java.lang.String getMembers(int index) { *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
+     *
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
+     *
      * * `allAuthenticatedUsers`: A special identifier that represents anyone
      *    who is authenticated with a Google account or a service account.
+     *
      * * `user:{emailid}`: An email address that represents a specific Google
      *    account. For example, `alice@example.com` .
+     *
+     *
      * * `serviceAccount:{emailid}`: An email address that represents a service
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+     *
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     *
      * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a user that has been recently deleted. For
      *    example, `alice@example.com?uid=123456789012345678901`. If the user is
      *    recovered, this value reverts to `user:{emailid}` and the recovered user
      *    retains the role in the binding.
+     *
      * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
      *    unique identifier) representing a service account that has been recently
      *    deleted. For example,
@@ -1061,11 +1113,14 @@ public java.lang.String getMembers(int index) {
      *    If the service account is undeleted, this value reverts to
      *    `serviceAccount:{emailid}` and the undeleted service account retains the
      *    role in the binding.
+     *
      * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a Google group that has been recently
      *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
      *    the group is recovered, this value reverts to `group:{emailid}` and the
      *    recovered group retains the role in the binding.
+     *
+     *
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
@@ -1084,21 +1139,29 @@ public com.google.protobuf.ByteString getMembersBytes(int index) { *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
+     *
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
+     *
      * * `allAuthenticatedUsers`: A special identifier that represents anyone
      *    who is authenticated with a Google account or a service account.
+     *
      * * `user:{emailid}`: An email address that represents a specific Google
      *    account. For example, `alice@example.com` .
+     *
+     *
      * * `serviceAccount:{emailid}`: An email address that represents a service
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+     *
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     *
      * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a user that has been recently deleted. For
      *    example, `alice@example.com?uid=123456789012345678901`. If the user is
      *    recovered, this value reverts to `user:{emailid}` and the recovered user
      *    retains the role in the binding.
+     *
      * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
      *    unique identifier) representing a service account that has been recently
      *    deleted. For example,
@@ -1106,11 +1169,14 @@ public com.google.protobuf.ByteString getMembersBytes(int index) {
      *    If the service account is undeleted, this value reverts to
      *    `serviceAccount:{emailid}` and the undeleted service account retains the
      *    role in the binding.
+     *
      * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a Google group that has been recently
      *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
      *    the group is recovered, this value reverts to `group:{emailid}` and the
      *    recovered group retains the role in the binding.
+     *
+     *
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
@@ -1127,6 +1193,7 @@ public Builder setMembers(int index, java.lang.String value) { } ensureMembersIsMutable(); members_.set(index, value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1136,21 +1203,29 @@ public Builder setMembers(int index, java.lang.String value) { *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
+     *
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
+     *
      * * `allAuthenticatedUsers`: A special identifier that represents anyone
      *    who is authenticated with a Google account or a service account.
+     *
      * * `user:{emailid}`: An email address that represents a specific Google
      *    account. For example, `alice@example.com` .
+     *
+     *
      * * `serviceAccount:{emailid}`: An email address that represents a service
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+     *
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     *
      * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a user that has been recently deleted. For
      *    example, `alice@example.com?uid=123456789012345678901`. If the user is
      *    recovered, this value reverts to `user:{emailid}` and the recovered user
      *    retains the role in the binding.
+     *
      * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
      *    unique identifier) representing a service account that has been recently
      *    deleted. For example,
@@ -1158,11 +1233,14 @@ public Builder setMembers(int index, java.lang.String value) {
      *    If the service account is undeleted, this value reverts to
      *    `serviceAccount:{emailid}` and the undeleted service account retains the
      *    role in the binding.
+     *
      * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a Google group that has been recently
      *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
      *    the group is recovered, this value reverts to `group:{emailid}` and the
      *    recovered group retains the role in the binding.
+     *
+     *
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
@@ -1178,6 +1256,7 @@ public Builder addMembers(java.lang.String value) { } ensureMembersIsMutable(); members_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1187,21 +1266,29 @@ public Builder addMembers(java.lang.String value) { *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
+     *
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
+     *
      * * `allAuthenticatedUsers`: A special identifier that represents anyone
      *    who is authenticated with a Google account or a service account.
+     *
      * * `user:{emailid}`: An email address that represents a specific Google
      *    account. For example, `alice@example.com` .
+     *
+     *
      * * `serviceAccount:{emailid}`: An email address that represents a service
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+     *
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     *
      * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a user that has been recently deleted. For
      *    example, `alice@example.com?uid=123456789012345678901`. If the user is
      *    recovered, this value reverts to `user:{emailid}` and the recovered user
      *    retains the role in the binding.
+     *
      * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
      *    unique identifier) representing a service account that has been recently
      *    deleted. For example,
@@ -1209,11 +1296,14 @@ public Builder addMembers(java.lang.String value) {
      *    If the service account is undeleted, this value reverts to
      *    `serviceAccount:{emailid}` and the undeleted service account retains the
      *    role in the binding.
+     *
      * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a Google group that has been recently
      *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
      *    the group is recovered, this value reverts to `group:{emailid}` and the
      *    recovered group retains the role in the binding.
+     *
+     *
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
@@ -1226,6 +1316,7 @@ public Builder addMembers(java.lang.String value) { public Builder addAllMembers(java.lang.Iterable values) { ensureMembersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, members_); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1235,21 +1326,29 @@ public Builder addAllMembers(java.lang.Iterable values) { *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
+     *
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
+     *
      * * `allAuthenticatedUsers`: A special identifier that represents anyone
      *    who is authenticated with a Google account or a service account.
+     *
      * * `user:{emailid}`: An email address that represents a specific Google
      *    account. For example, `alice@example.com` .
+     *
+     *
      * * `serviceAccount:{emailid}`: An email address that represents a service
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+     *
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     *
      * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a user that has been recently deleted. For
      *    example, `alice@example.com?uid=123456789012345678901`. If the user is
      *    recovered, this value reverts to `user:{emailid}` and the recovered user
      *    retains the role in the binding.
+     *
      * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
      *    unique identifier) representing a service account that has been recently
      *    deleted. For example,
@@ -1257,11 +1356,14 @@ public Builder addAllMembers(java.lang.Iterable values) {
      *    If the service account is undeleted, this value reverts to
      *    `serviceAccount:{emailid}` and the undeleted service account retains the
      *    role in the binding.
+     *
      * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a Google group that has been recently
      *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
      *    the group is recovered, this value reverts to `group:{emailid}` and the
      *    recovered group retains the role in the binding.
+     *
+     *
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
@@ -1271,8 +1373,9 @@ public Builder addAllMembers(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearMembers() { - members_ = com.google.protobuf.LazyStringArrayList.EMPTY; + members_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } @@ -1282,21 +1385,29 @@ public Builder clearMembers() { *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
+     *
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
+     *
      * * `allAuthenticatedUsers`: A special identifier that represents anyone
      *    who is authenticated with a Google account or a service account.
+     *
      * * `user:{emailid}`: An email address that represents a specific Google
      *    account. For example, `alice@example.com` .
+     *
+     *
      * * `serviceAccount:{emailid}`: An email address that represents a service
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+     *
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     *
      * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a user that has been recently deleted. For
      *    example, `alice@example.com?uid=123456789012345678901`. If the user is
      *    recovered, this value reverts to `user:{emailid}` and the recovered user
      *    retains the role in the binding.
+     *
      * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
      *    unique identifier) representing a service account that has been recently
      *    deleted. For example,
@@ -1304,11 +1415,14 @@ public Builder clearMembers() {
      *    If the service account is undeleted, this value reverts to
      *    `serviceAccount:{emailid}` and the undeleted service account retains the
      *    role in the binding.
+     *
      * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a Google group that has been recently
      *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
      *    the group is recovered, this value reverts to `group:{emailid}` and the
      *    recovered group retains the role in the binding.
+     *
+     *
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
@@ -1325,6 +1439,7 @@ public Builder addMembersBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureMembersIsMutable(); members_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1338,11 +1453,14 @@ public Builder addMembersBytes(com.google.protobuf.ByteString value) { * *
      * The condition that is associated with this binding.
+     *
      * If the condition evaluates to `true`, then this binding applies to the
      * current request.
+     *
      * If the condition evaluates to `false`, then this binding does not apply to
      * the current request. However, a different role binding might grant the same
      * role to one or more of the principals in this binding.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1360,11 +1478,14 @@ public boolean hasCondition() {
      *
      * 
      * The condition that is associated with this binding.
+     *
      * If the condition evaluates to `true`, then this binding applies to the
      * current request.
+     *
      * If the condition evaluates to `false`, then this binding does not apply to
      * the current request. However, a different role binding might grant the same
      * role to one or more of the principals in this binding.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1386,11 +1507,14 @@ public com.google.type.Expr getCondition() {
      *
      * 
      * The condition that is associated with this binding.
+     *
      * If the condition evaluates to `true`, then this binding applies to the
      * current request.
+     *
      * If the condition evaluates to `false`, then this binding does not apply to
      * the current request. However, a different role binding might grant the same
      * role to one or more of the principals in this binding.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1416,11 +1540,14 @@ public Builder setCondition(com.google.type.Expr value) {
      *
      * 
      * The condition that is associated with this binding.
+     *
      * If the condition evaluates to `true`, then this binding applies to the
      * current request.
+     *
      * If the condition evaluates to `false`, then this binding does not apply to
      * the current request. However, a different role binding might grant the same
      * role to one or more of the principals in this binding.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1443,11 +1570,14 @@ public Builder setCondition(com.google.type.Expr.Builder builderForValue) {
      *
      * 
      * The condition that is associated with this binding.
+     *
      * If the condition evaluates to `true`, then this binding applies to the
      * current request.
+     *
      * If the condition evaluates to `false`, then this binding does not apply to
      * the current request. However, a different role binding might grant the same
      * role to one or more of the principals in this binding.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1476,11 +1606,14 @@ public Builder mergeCondition(com.google.type.Expr value) {
      *
      * 
      * The condition that is associated with this binding.
+     *
      * If the condition evaluates to `true`, then this binding applies to the
      * current request.
+     *
      * If the condition evaluates to `false`, then this binding does not apply to
      * the current request. However, a different role binding might grant the same
      * role to one or more of the principals in this binding.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1503,11 +1636,14 @@ public Builder clearCondition() {
      *
      * 
      * The condition that is associated with this binding.
+     *
      * If the condition evaluates to `true`, then this binding applies to the
      * current request.
+     *
      * If the condition evaluates to `false`, then this binding does not apply to
      * the current request. However, a different role binding might grant the same
      * role to one or more of the principals in this binding.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1525,11 +1661,14 @@ public com.google.type.Expr.Builder getConditionBuilder() {
      *
      * 
      * The condition that is associated with this binding.
+     *
      * If the condition evaluates to `true`, then this binding applies to the
      * current request.
+     *
      * If the condition evaluates to `false`, then this binding does not apply to
      * the current request. However, a different role binding might grant the same
      * role to one or more of the principals in this binding.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1549,11 +1688,14 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
      *
      * 
      * The condition that is associated with this binding.
+     *
      * If the condition evaluates to `true`, then this binding applies to the
      * current request.
+     *
      * If the condition evaluates to `false`, then this binding does not apply to
      * the current request. However, a different role binding might grant the same
      * role to one or more of the principals in this binding.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java
index 340980bdfc..49334ca531 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java
@@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BindingDelta();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_BindingDelta_descriptor;
   }
@@ -701,39 +696,6 @@ private void buildPartial0(com.google.iam.v1.BindingDelta result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.iam.v1.BindingDelta) {
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java
index b5e660fa3a..db97e10030 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java
@@ -56,21 +56,29 @@ public interface BindingOrBuilder
    * 
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
+   *
    * * `allUsers`: A special identifier that represents anyone who is
    *    on the internet; with or without a Google account.
+   *
    * * `allAuthenticatedUsers`: A special identifier that represents anyone
    *    who is authenticated with a Google account or a service account.
+   *
    * * `user:{emailid}`: An email address that represents a specific Google
    *    account. For example, `alice@example.com` .
+   *
+   *
    * * `serviceAccount:{emailid}`: An email address that represents a service
    *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+   *
    * * `group:{emailid}`: An email address that represents a Google group.
    *    For example, `admins@example.com`.
+   *
    * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a user that has been recently deleted. For
    *    example, `alice@example.com?uid=123456789012345678901`. If the user is
    *    recovered, this value reverts to `user:{emailid}` and the recovered user
    *    retains the role in the binding.
+   *
    * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
    *    unique identifier) representing a service account that has been recently
    *    deleted. For example,
@@ -78,11 +86,14 @@ public interface BindingOrBuilder
    *    If the service account is undeleted, this value reverts to
    *    `serviceAccount:{emailid}` and the undeleted service account retains the
    *    role in the binding.
+   *
    * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a Google group that has been recently
    *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
    *    the group is recovered, this value reverts to `group:{emailid}` and the
    *    recovered group retains the role in the binding.
+   *
+   *
    * * `domain:{domain}`: The G Suite domain (primary) that represents all the
    *    users of that domain. For example, `google.com` or `example.com`.
    * 
@@ -98,21 +109,29 @@ public interface BindingOrBuilder *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
+   *
    * * `allUsers`: A special identifier that represents anyone who is
    *    on the internet; with or without a Google account.
+   *
    * * `allAuthenticatedUsers`: A special identifier that represents anyone
    *    who is authenticated with a Google account or a service account.
+   *
    * * `user:{emailid}`: An email address that represents a specific Google
    *    account. For example, `alice@example.com` .
+   *
+   *
    * * `serviceAccount:{emailid}`: An email address that represents a service
    *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+   *
    * * `group:{emailid}`: An email address that represents a Google group.
    *    For example, `admins@example.com`.
+   *
    * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a user that has been recently deleted. For
    *    example, `alice@example.com?uid=123456789012345678901`. If the user is
    *    recovered, this value reverts to `user:{emailid}` and the recovered user
    *    retains the role in the binding.
+   *
    * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
    *    unique identifier) representing a service account that has been recently
    *    deleted. For example,
@@ -120,11 +139,14 @@ public interface BindingOrBuilder
    *    If the service account is undeleted, this value reverts to
    *    `serviceAccount:{emailid}` and the undeleted service account retains the
    *    role in the binding.
+   *
    * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a Google group that has been recently
    *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
    *    the group is recovered, this value reverts to `group:{emailid}` and the
    *    recovered group retains the role in the binding.
+   *
+   *
    * * `domain:{domain}`: The G Suite domain (primary) that represents all the
    *    users of that domain. For example, `google.com` or `example.com`.
    * 
@@ -140,21 +162,29 @@ public interface BindingOrBuilder *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
+   *
    * * `allUsers`: A special identifier that represents anyone who is
    *    on the internet; with or without a Google account.
+   *
    * * `allAuthenticatedUsers`: A special identifier that represents anyone
    *    who is authenticated with a Google account or a service account.
+   *
    * * `user:{emailid}`: An email address that represents a specific Google
    *    account. For example, `alice@example.com` .
+   *
+   *
    * * `serviceAccount:{emailid}`: An email address that represents a service
    *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+   *
    * * `group:{emailid}`: An email address that represents a Google group.
    *    For example, `admins@example.com`.
+   *
    * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a user that has been recently deleted. For
    *    example, `alice@example.com?uid=123456789012345678901`. If the user is
    *    recovered, this value reverts to `user:{emailid}` and the recovered user
    *    retains the role in the binding.
+   *
    * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
    *    unique identifier) representing a service account that has been recently
    *    deleted. For example,
@@ -162,11 +192,14 @@ public interface BindingOrBuilder
    *    If the service account is undeleted, this value reverts to
    *    `serviceAccount:{emailid}` and the undeleted service account retains the
    *    role in the binding.
+   *
    * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a Google group that has been recently
    *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
    *    the group is recovered, this value reverts to `group:{emailid}` and the
    *    recovered group retains the role in the binding.
+   *
+   *
    * * `domain:{domain}`: The G Suite domain (primary) that represents all the
    *    users of that domain. For example, `google.com` or `example.com`.
    * 
@@ -183,21 +216,29 @@ public interface BindingOrBuilder *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
+   *
    * * `allUsers`: A special identifier that represents anyone who is
    *    on the internet; with or without a Google account.
+   *
    * * `allAuthenticatedUsers`: A special identifier that represents anyone
    *    who is authenticated with a Google account or a service account.
+   *
    * * `user:{emailid}`: An email address that represents a specific Google
    *    account. For example, `alice@example.com` .
+   *
+   *
    * * `serviceAccount:{emailid}`: An email address that represents a service
    *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+   *
    * * `group:{emailid}`: An email address that represents a Google group.
    *    For example, `admins@example.com`.
+   *
    * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a user that has been recently deleted. For
    *    example, `alice@example.com?uid=123456789012345678901`. If the user is
    *    recovered, this value reverts to `user:{emailid}` and the recovered user
    *    retains the role in the binding.
+   *
    * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
    *    unique identifier) representing a service account that has been recently
    *    deleted. For example,
@@ -205,11 +246,14 @@ public interface BindingOrBuilder
    *    If the service account is undeleted, this value reverts to
    *    `serviceAccount:{emailid}` and the undeleted service account retains the
    *    role in the binding.
+   *
    * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a Google group that has been recently
    *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
    *    the group is recovered, this value reverts to `group:{emailid}` and the
    *    recovered group retains the role in the binding.
+   *
+   *
    * * `domain:{domain}`: The G Suite domain (primary) that represents all the
    *    users of that domain. For example, `google.com` or `example.com`.
    * 
@@ -226,11 +270,14 @@ public interface BindingOrBuilder * *
    * The condition that is associated with this binding.
+   *
    * If the condition evaluates to `true`, then this binding applies to the
    * current request.
+   *
    * If the condition evaluates to `false`, then this binding does not apply to
    * the current request. However, a different role binding might grant the same
    * role to one or more of the principals in this binding.
+   *
    * To learn which resources support conditions in their IAM policies, see the
    * [IAM
    * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -246,11 +293,14 @@ public interface BindingOrBuilder
    *
    * 
    * The condition that is associated with this binding.
+   *
    * If the condition evaluates to `true`, then this binding applies to the
    * current request.
+   *
    * If the condition evaluates to `false`, then this binding does not apply to
    * the current request. However, a different role binding might grant the same
    * role to one or more of the principals in this binding.
+   *
    * To learn which resources support conditions in their IAM policies, see the
    * [IAM
    * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -266,11 +316,14 @@ public interface BindingOrBuilder
    *
    * 
    * The condition that is associated with this binding.
+   *
    * If the condition evaluates to `true`, then this binding applies to the
    * current request.
+   *
    * If the condition evaluates to `false`, then this binding does not apply to
    * the current request. However, a different role binding might grant the same
    * role to one or more of the principals in this binding.
+   *
    * To learn which resources support conditions in their IAM policies, see the
    * [IAM
    * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java
index 532f56549c..7a3fb09423 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetIamPolicyRequest();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.iam.v1.IamPolicyProto
         .internal_static_google_iam_v1_GetIamPolicyRequest_descriptor;
@@ -433,39 +428,6 @@ private void buildPartial0(com.google.iam.v1.GetIamPolicyRequest result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.iam.v1.GetIamPolicyRequest) {
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java
index 9484d8801c..b4e03b62c7 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java
@@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetPolicyOptions();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.iam.v1.OptionsProto.internal_static_google_iam_v1_GetPolicyOptions_descriptor;
   }
@@ -72,15 +67,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
    * Optional. The maximum policy version that will be used to format the
    * policy.
+   *
    * Valid values are 0, 1, and 3. Requests specifying an invalid value will be
    * rejected.
+   *
    * Requests for policies with any conditional role bindings must specify
    * version 3. Policies with no conditional role bindings may specify any valid
    * value or leave the field unset.
+   *
    * The policy in the response might use the policy version that you specified,
    * or it might use a lower policy version. For example, if you specify version
    * 3, but the policy has no conditional role bindings, the response uses
    * version 1.
+   *
    * To learn which resources support conditions in their IAM policies, see the
    * [IAM
    * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -332,39 +331,6 @@ private void buildPartial0(com.google.iam.v1.GetPolicyOptions result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.iam.v1.GetPolicyOptions) {
@@ -438,15 +404,19 @@ public Builder mergeFrom(
      * 
      * Optional. The maximum policy version that will be used to format the
      * policy.
+     *
      * Valid values are 0, 1, and 3. Requests specifying an invalid value will be
      * rejected.
+     *
      * Requests for policies with any conditional role bindings must specify
      * version 3. Policies with no conditional role bindings may specify any valid
      * value or leave the field unset.
+     *
      * The policy in the response might use the policy version that you specified,
      * or it might use a lower policy version. For example, if you specify version
      * 3, but the policy has no conditional role bindings, the response uses
      * version 1.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -466,15 +436,19 @@ public int getRequestedPolicyVersion() {
      * 
      * Optional. The maximum policy version that will be used to format the
      * policy.
+     *
      * Valid values are 0, 1, and 3. Requests specifying an invalid value will be
      * rejected.
+     *
      * Requests for policies with any conditional role bindings must specify
      * version 3. Policies with no conditional role bindings may specify any valid
      * value or leave the field unset.
+     *
      * The policy in the response might use the policy version that you specified,
      * or it might use a lower policy version. For example, if you specify version
      * 3, but the policy has no conditional role bindings, the response uses
      * version 1.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -498,15 +472,19 @@ public Builder setRequestedPolicyVersion(int value) {
      * 
      * Optional. The maximum policy version that will be used to format the
      * policy.
+     *
      * Valid values are 0, 1, and 3. Requests specifying an invalid value will be
      * rejected.
+     *
      * Requests for policies with any conditional role bindings must specify
      * version 3. Policies with no conditional role bindings may specify any valid
      * value or leave the field unset.
+     *
      * The policy in the response might use the policy version that you specified,
      * or it might use a lower policy version. For example, if you specify version
      * 3, but the policy has no conditional role bindings, the response uses
      * version 1.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java
index 1cd51a9971..e93425ad57 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java
@@ -29,15 +29,19 @@ public interface GetPolicyOptionsOrBuilder
    * 
    * Optional. The maximum policy version that will be used to format the
    * policy.
+   *
    * Valid values are 0, 1, and 3. Requests specifying an invalid value will be
    * rejected.
+   *
    * Requests for policies with any conditional role bindings must specify
    * version 3. Policies with no conditional role bindings may specify any valid
    * value or leave the field unset.
+   *
    * The policy in the response might use the policy version that you specified,
    * or it might use a lower policy version. For example, if you specify version
    * 3, but the policy has no conditional role bindings, the response uses
    * version 1.
+   *
    * To learn which resources support conditions in their IAM policies, see the
    * [IAM
    * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java
index e1a3a44398..a61d0e275d 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java
@@ -58,31 +58,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "_behavior.proto\032\031google/api/resource.pro"
           + "to\032\033google/iam/v1/options.proto\032\032google/"
           + "iam/v1/policy.proto\032 google/protobuf/fie"
-          + "ld_mask.proto\"\217\001\n\023SetIamPolicyRequest\022\033\n"
-          + "\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022*\n\006policy\030\002 \001"
-          + "(\0132\025.google.iam.v1.PolicyB\003\340A\002\022/\n\013update"
-          + "_mask\030\003 \001(\0132\032.google.protobuf.FieldMask\""
-          + "d\n\023GetIamPolicyRequest\022\033\n\010resource\030\001 \001(\t"
-          + "B\t\340A\002\372A\003\n\001*\0220\n\007options\030\002 \001(\0132\037.google.ia"
-          + "m.v1.GetPolicyOptions\"R\n\031TestIamPermissi"
-          + "onsRequest\022\033\n\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022"
-          + "\030\n\013permissions\030\002 \003(\tB\003\340A\002\"1\n\032TestIamPerm"
-          + "issionsResponse\022\023\n\013permissions\030\001 \003(\t2\264\003\n"
-          + "\tIAMPolicy\022t\n\014SetIamPolicy\022\".google.iam."
-          + "v1.SetIamPolicyRequest\032\025.google.iam.v1.P"
-          + "olicy\")\202\323\344\223\002#\"\036/v1/{resource=**}:setIamP"
-          + "olicy:\001*\022t\n\014GetIamPolicy\022\".google.iam.v1"
-          + ".GetIamPolicyRequest\032\025.google.iam.v1.Pol"
-          + "icy\")\202\323\344\223\002#\"\036/v1/{resource=**}:getIamPol"
-          + "icy:\001*\022\232\001\n\022TestIamPermissions\022(.google.i"
-          + "am.v1.TestIamPermissionsRequest\032).google"
-          + ".iam.v1.TestIamPermissionsResponse\"/\202\323\344\223"
-          + "\002)\"$/v1/{resource=**}:testIamPermissions"
-          + ":\001*\032\036\312A\033iam-meta-api.googleapis.comB\177\n\021c"
-          + "om.google.iam.v1B\016IamPolicyProtoP\001Z)clou"
-          + "d.google.com/go/iam/apiv1/iampb;iampb\370\001\001"
-          + "\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Cloud\\Ia"
-          + "m\\V1b\006proto3"
+          + "ld_mask.proto\"\221\001\n\023SetIamPolicyRequest\022\034\n"
+          + "\010resource\030\001 \001(\tB\n\342A\001\002\372A\003\n\001*\022+\n\006policy\030\002 "
+          + "\001(\0132\025.google.iam.v1.PolicyB\004\342A\001\002\022/\n\013upda"
+          + "te_mask\030\003 \001(\0132\032.google.protobuf.FieldMas"
+          + "k\"e\n\023GetIamPolicyRequest\022\034\n\010resource\030\001 \001"
+          + "(\tB\n\342A\001\002\372A\003\n\001*\0220\n\007options\030\002 \001(\0132\037.google"
+          + ".iam.v1.GetPolicyOptions\"T\n\031TestIamPermi"
+          + "ssionsRequest\022\034\n\010resource\030\001 \001(\tB\n\342A\001\002\372A\003"
+          + "\n\001*\022\031\n\013permissions\030\002 \003(\tB\004\342A\001\002\"1\n\032TestIa"
+          + "mPermissionsResponse\022\023\n\013permissions\030\001 \003("
+          + "\t2\264\003\n\tIAMPolicy\022t\n\014SetIamPolicy\022\".google"
+          + ".iam.v1.SetIamPolicyRequest\032\025.google.iam"
+          + ".v1.Policy\")\202\323\344\223\002#\"\036/v1/{resource=**}:se"
+          + "tIamPolicy:\001*\022t\n\014GetIamPolicy\022\".google.i"
+          + "am.v1.GetIamPolicyRequest\032\025.google.iam.v"
+          + "1.Policy\")\202\323\344\223\002#\"\036/v1/{resource=**}:getI"
+          + "amPolicy:\001*\022\232\001\n\022TestIamPermissions\022(.goo"
+          + "gle.iam.v1.TestIamPermissionsRequest\032).g"
+          + "oogle.iam.v1.TestIamPermissionsResponse\""
+          + "/\202\323\344\223\002)\"$/v1/{resource=**}:testIamPermis"
+          + "sions:\001*\032\036\312A\033iam-meta-api.googleapis.com"
+          + "B\177\n\021com.google.iam.v1B\016IamPolicyProtoP\001Z"
+          + ")cloud.google.com/go/iam/apiv1/iampb;iam"
+          + "pb\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Clo"
+          + "ud\\Iam\\V1b\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java
index 7f658f2af0..07c896a20e 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java
@@ -24,11 +24,14 @@
  * 
  * An Identity and Access Management (IAM) policy, which specifies access
  * controls for Google Cloud resources.
+ *
+ *
  * A `Policy` is a collection of `bindings`. A `binding` binds one or more
  * `members`, or principals, to a single `role`. Principals can be user
  * accounts, service accounts, Google groups, and domains (such as G Suite). A
  * `role` is a named list of permissions; each `role` can be an IAM predefined
  * role or a user-created custom role.
+ *
  * For some types of Google Cloud resources, a `binding` can also specify a
  * `condition`, which is a logical expression that allows access to a resource
  * only if the expression evaluates to `true`. A condition can add constraints
@@ -36,7 +39,9 @@
  * resources support conditions in their IAM policies, see the
  * [IAM
  * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
+ *
  * **JSON example:**
+ *
  *     {
  *       "bindings": [
  *         {
@@ -64,7 +69,9 @@
  *       "etag": "BwWWja0YfJA=",
  *       "version": 3
  *     }
+ *
  * **YAML example:**
+ *
  *     bindings:
  *     - members:
  *       - user:mike@example.com
@@ -81,6 +88,7 @@
  *         expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
  *     etag: BwWWja0YfJA=
  *     version: 3
+ *
  * For a description of IAM and its features, see the
  * [IAM documentation](https://cloud.google.com/iam/docs/).
  * 
@@ -109,11 +117,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Policy(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_descriptor; } @@ -133,21 +136,27 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Specifies the format of the policy.
+   *
    * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
    * are rejected.
+   *
    * Any operation that affects conditional role bindings must specify version
    * `3`. This requirement applies to the following operations:
+   *
    * * Getting a policy that includes a conditional role binding
    * * Adding a conditional role binding to a policy
    * * Changing a conditional role binding in a policy
    * * Removing any role binding, with or without a condition, from a policy
    *   that includes conditions
+   *
    * **Important:** If you use IAM Conditions, you must include the `etag` field
    * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
    * you to overwrite a version `3` policy with a version `1` policy, and all of
    * the conditions in the version `3` policy are lost.
+   *
    * If a policy does not include any conditions, operations on that policy may
    * specify any valid version or leave the field unset.
+   *
    * To learn which resources support conditions in their IAM policies, see the
    * [IAM
    * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -173,6 +182,7 @@ public int getVersion() {
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
    * applied. Each of the `bindings` must contain at least one principal.
+   *
    * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
    * of these principals can be Google groups. Each occurrence of a principal
    * counts towards these limits. For example, if the `bindings` grant 50
@@ -194,6 +204,7 @@ public java.util.List getBindingsList() {
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
    * applied. Each of the `bindings` must contain at least one principal.
+   *
    * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
    * of these principals can be Google groups. Each occurrence of a principal
    * counts towards these limits. For example, if the `bindings` grant 50
@@ -215,6 +226,7 @@ public java.util.List getBindingsO
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
    * applied. Each of the `bindings` must contain at least one principal.
+   *
    * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
    * of these principals can be Google groups. Each occurrence of a principal
    * counts towards these limits. For example, if the `bindings` grant 50
@@ -236,6 +248,7 @@ public int getBindingsCount() {
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
    * applied. Each of the `bindings` must contain at least one principal.
+   *
    * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
    * of these principals can be Google groups. Each occurrence of a principal
    * counts towards these limits. For example, if the `bindings` grant 50
@@ -257,6 +270,7 @@ public com.google.iam.v1.Binding getBindings(int index) {
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
    * applied. Each of the `bindings` must contain at least one principal.
+   *
    * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
    * of these principals can be Google groups. Each occurrence of a principal
    * counts towards these limits. For example, if the `bindings` grant 50
@@ -356,6 +370,7 @@ public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder(int index
    * conditions: An `etag` is returned in the response to `getIamPolicy`, and
    * systems are expected to put that etag in the request to `setIamPolicy` to
    * ensure that their change will be applied to the same version of the policy.
+   *
    * **Important:** If you use IAM Conditions, you must include the `etag` field
    * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
    * you to overwrite a version `3` policy with a version `1` policy, and all of
@@ -565,11 +580,14 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * 
    * An Identity and Access Management (IAM) policy, which specifies access
    * controls for Google Cloud resources.
+   *
+   *
    * A `Policy` is a collection of `bindings`. A `binding` binds one or more
    * `members`, or principals, to a single `role`. Principals can be user
    * accounts, service accounts, Google groups, and domains (such as G Suite). A
    * `role` is a named list of permissions; each `role` can be an IAM predefined
    * role or a user-created custom role.
+   *
    * For some types of Google Cloud resources, a `binding` can also specify a
    * `condition`, which is a logical expression that allows access to a resource
    * only if the expression evaluates to `true`. A condition can add constraints
@@ -577,7 +595,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * resources support conditions in their IAM policies, see the
    * [IAM
    * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
+   *
    * **JSON example:**
+   *
    *     {
    *       "bindings": [
    *         {
@@ -605,7 +625,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *       "etag": "BwWWja0YfJA=",
    *       "version": 3
    *     }
+   *
    * **YAML example:**
+   *
    *     bindings:
    *     - members:
    *       - user:mike@example.com
@@ -622,6 +644,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *         expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
    *     etag: BwWWja0YfJA=
    *     version: 3
+   *
    * For a description of IAM and its features, see the
    * [IAM documentation](https://cloud.google.com/iam/docs/).
    * 
@@ -735,39 +758,6 @@ private void buildPartial0(com.google.iam.v1.Policy result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v1.Policy) { @@ -927,21 +917,27 @@ public Builder mergeFrom( * *
      * Specifies the format of the policy.
+     *
      * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
      * are rejected.
+     *
      * Any operation that affects conditional role bindings must specify version
      * `3`. This requirement applies to the following operations:
+     *
      * * Getting a policy that includes a conditional role binding
      * * Adding a conditional role binding to a policy
      * * Changing a conditional role binding in a policy
      * * Removing any role binding, with or without a condition, from a policy
      *   that includes conditions
+     *
      * **Important:** If you use IAM Conditions, you must include the `etag` field
      * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
      * you to overwrite a version `3` policy with a version `1` policy, and all of
      * the conditions in the version `3` policy are lost.
+     *
      * If a policy does not include any conditions, operations on that policy may
      * specify any valid version or leave the field unset.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -960,21 +956,27 @@ public int getVersion() {
      *
      * 
      * Specifies the format of the policy.
+     *
      * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
      * are rejected.
+     *
      * Any operation that affects conditional role bindings must specify version
      * `3`. This requirement applies to the following operations:
+     *
      * * Getting a policy that includes a conditional role binding
      * * Adding a conditional role binding to a policy
      * * Changing a conditional role binding in a policy
      * * Removing any role binding, with or without a condition, from a policy
      *   that includes conditions
+     *
      * **Important:** If you use IAM Conditions, you must include the `etag` field
      * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
      * you to overwrite a version `3` policy with a version `1` policy, and all of
      * the conditions in the version `3` policy are lost.
+     *
      * If a policy does not include any conditions, operations on that policy may
      * specify any valid version or leave the field unset.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -997,21 +999,27 @@ public Builder setVersion(int value) {
      *
      * 
      * Specifies the format of the policy.
+     *
      * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
      * are rejected.
+     *
      * Any operation that affects conditional role bindings must specify version
      * `3`. This requirement applies to the following operations:
+     *
      * * Getting a policy that includes a conditional role binding
      * * Adding a conditional role binding to a policy
      * * Changing a conditional role binding in a policy
      * * Removing any role binding, with or without a condition, from a policy
      *   that includes conditions
+     *
      * **Important:** If you use IAM Conditions, you must include the `etag` field
      * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
      * you to overwrite a version `3` policy with a version `1` policy, and all of
      * the conditions in the version `3` policy are lost.
+     *
      * If a policy does not include any conditions, operations on that policy may
      * specify any valid version or leave the field unset.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1050,6 +1058,7 @@ private void ensureBindingsIsMutable() {
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1074,6 +1083,7 @@ public java.util.List getBindingsList() {
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1098,6 +1108,7 @@ public int getBindingsCount() {
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1122,6 +1133,7 @@ public com.google.iam.v1.Binding getBindings(int index) {
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1152,6 +1164,7 @@ public Builder setBindings(int index, com.google.iam.v1.Binding value) {
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1179,6 +1192,7 @@ public Builder setBindings(int index, com.google.iam.v1.Binding.Builder builderF
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1209,6 +1223,7 @@ public Builder addBindings(com.google.iam.v1.Binding value) {
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1239,6 +1254,7 @@ public Builder addBindings(int index, com.google.iam.v1.Binding value) {
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1266,6 +1282,7 @@ public Builder addBindings(com.google.iam.v1.Binding.Builder builderForValue) {
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1293,6 +1310,7 @@ public Builder addBindings(int index, com.google.iam.v1.Binding.Builder builderF
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1320,6 +1338,7 @@ public Builder addAllBindings(java.lang.Iterable getBindingsO
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1462,6 +1486,7 @@ public com.google.iam.v1.Binding.Builder addBindingsBuilder() {
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1483,6 +1508,7 @@ public com.google.iam.v1.Binding.Builder addBindingsBuilder(int index) {
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1874,6 +1900,7 @@ public java.util.List getAuditConfigsBuil
      * conditions: An `etag` is returned in the response to `getIamPolicy`, and
      * systems are expected to put that etag in the request to `setIamPolicy` to
      * ensure that their change will be applied to the same version of the policy.
+     *
      * **Important:** If you use IAM Conditions, you must include the `etag` field
      * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
      * you to overwrite a version `3` policy with a version `1` policy, and all of
@@ -1899,6 +1926,7 @@ public com.google.protobuf.ByteString getEtag() {
      * conditions: An `etag` is returned in the response to `getIamPolicy`, and
      * systems are expected to put that etag in the request to `setIamPolicy` to
      * ensure that their change will be applied to the same version of the policy.
+     *
      * **Important:** If you use IAM Conditions, you must include the `etag` field
      * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
      * you to overwrite a version `3` policy with a version `1` policy, and all of
@@ -1930,6 +1958,7 @@ public Builder setEtag(com.google.protobuf.ByteString value) {
      * conditions: An `etag` is returned in the response to `getIamPolicy`, and
      * systems are expected to put that etag in the request to `setIamPolicy` to
      * ensure that their change will be applied to the same version of the policy.
+     *
      * **Important:** If you use IAM Conditions, you must include the `etag` field
      * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
      * you to overwrite a version `3` policy with a version `1` policy, and all of
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java
index 9ee92e988c..167801f546 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PolicyDelta();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_PolicyDelta_descriptor;
   }
@@ -488,39 +483,6 @@ private void buildPartial0(com.google.iam.v1.PolicyDelta result) {
       int from_bitField0_ = bitField0_;
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.iam.v1.PolicyDelta) {
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java
index 449c1d790c..2039d3792a 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java
@@ -28,21 +28,27 @@ public interface PolicyOrBuilder
    *
    * 
    * Specifies the format of the policy.
+   *
    * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
    * are rejected.
+   *
    * Any operation that affects conditional role bindings must specify version
    * `3`. This requirement applies to the following operations:
+   *
    * * Getting a policy that includes a conditional role binding
    * * Adding a conditional role binding to a policy
    * * Changing a conditional role binding in a policy
    * * Removing any role binding, with or without a condition, from a policy
    *   that includes conditions
+   *
    * **Important:** If you use IAM Conditions, you must include the `etag` field
    * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
    * you to overwrite a version `3` policy with a version `1` policy, and all of
    * the conditions in the version `3` policy are lost.
+   *
    * If a policy does not include any conditions, operations on that policy may
    * specify any valid version or leave the field unset.
+   *
    * To learn which resources support conditions in their IAM policies, see the
    * [IAM
    * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -61,6 +67,7 @@ public interface PolicyOrBuilder
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
    * applied. Each of the `bindings` must contain at least one principal.
+   *
    * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
    * of these principals can be Google groups. Each occurrence of a principal
    * counts towards these limits. For example, if the `bindings` grant 50
@@ -79,6 +86,7 @@ public interface PolicyOrBuilder
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
    * applied. Each of the `bindings` must contain at least one principal.
+   *
    * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
    * of these principals can be Google groups. Each occurrence of a principal
    * counts towards these limits. For example, if the `bindings` grant 50
@@ -97,6 +105,7 @@ public interface PolicyOrBuilder
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
    * applied. Each of the `bindings` must contain at least one principal.
+   *
    * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
    * of these principals can be Google groups. Each occurrence of a principal
    * counts towards these limits. For example, if the `bindings` grant 50
@@ -115,6 +124,7 @@ public interface PolicyOrBuilder
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
    * applied. Each of the `bindings` must contain at least one principal.
+   *
    * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
    * of these principals can be Google groups. Each occurrence of a principal
    * counts towards these limits. For example, if the `bindings` grant 50
@@ -133,6 +143,7 @@ public interface PolicyOrBuilder
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
    * applied. Each of the `bindings` must contain at least one principal.
+   *
    * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
    * of these principals can be Google groups. Each occurrence of a principal
    * counts towards these limits. For example, if the `bindings` grant 50
@@ -207,6 +218,7 @@ public interface PolicyOrBuilder
    * conditions: An `etag` is returned in the response to `getIamPolicy`, and
    * systems are expected to put that etag in the request to `setIamPolicy` to
    * ensure that their change will be applied to the same version of the policy.
+   *
    * **Important:** If you use IAM Conditions, you must include the `etag` field
    * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
    * you to overwrite a version `3` policy with a version `1` policy, and all of
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java
index 15561955bd..7790e2c1c3 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SetIamPolicyRequest();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.iam.v1.IamPolicyProto
         .internal_static_google_iam_v1_SetIamPolicyRequest_descriptor;
@@ -188,6 +183,7 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
    * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
    * the fields in the mask will be modified. If no mask is provided, the
    * following default mask is used:
+   *
    * `paths: "bindings, etag"`
    * 
* @@ -206,6 +202,7 @@ public boolean hasUpdateMask() { * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only * the fields in the mask will be modified. If no mask is provided, the * following default mask is used: + * * `paths: "bindings, etag"` *
* @@ -224,6 +221,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only * the fields in the mask will be modified. If no mask is provided, the * following default mask is used: + * * `paths: "bindings, etag"` *
* @@ -516,39 +514,6 @@ private void buildPartial0(com.google.iam.v1.SetIamPolicyRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v1.SetIamPolicyRequest) { @@ -974,6 +939,7 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only * the fields in the mask will be modified. If no mask is provided, the * following default mask is used: + * * `paths: "bindings, etag"` *
* @@ -991,6 +957,7 @@ public boolean hasUpdateMask() { * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only * the fields in the mask will be modified. If no mask is provided, the * following default mask is used: + * * `paths: "bindings, etag"` *
* @@ -1014,6 +981,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only * the fields in the mask will be modified. If no mask is provided, the * following default mask is used: + * * `paths: "bindings, etag"` *
* @@ -1039,6 +1007,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only * the fields in the mask will be modified. If no mask is provided, the * following default mask is used: + * * `paths: "bindings, etag"` *
* @@ -1061,6 +1030,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only * the fields in the mask will be modified. If no mask is provided, the * following default mask is used: + * * `paths: "bindings, etag"` *
* @@ -1089,6 +1059,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only * the fields in the mask will be modified. If no mask is provided, the * following default mask is used: + * * `paths: "bindings, etag"` *
* @@ -1111,6 +1082,7 @@ public Builder clearUpdateMask() { * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only * the fields in the mask will be modified. If no mask is provided, the * following default mask is used: + * * `paths: "bindings, etag"` *
* @@ -1128,6 +1100,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only * the fields in the mask will be modified. If no mask is provided, the * following default mask is used: + * * `paths: "bindings, etag"` *
* @@ -1149,6 +1122,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only * the fields in the mask will be modified. If no mask is provided, the * following default mask is used: + * * `paths: "bindings, etag"` *
* diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java index 48ab0dff5d..b7c42c8855 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java @@ -105,6 +105,7 @@ public interface SetIamPolicyRequestOrBuilder * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only * the fields in the mask will be modified. If no mask is provided, the * following default mask is used: + * * `paths: "bindings, etag"` *
* @@ -120,6 +121,7 @@ public interface SetIamPolicyRequestOrBuilder * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only * the fields in the mask will be modified. If no mask is provided, the * following default mask is used: + * * `paths: "bindings, etag"` *
* @@ -135,6 +137,7 @@ public interface SetIamPolicyRequestOrBuilder * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only * the fields in the mask will be modified. If no mask is provided, the * following default mask is used: + * * `paths: "bindings, etag"` *
* diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java index ee3530d94e..4393be5528 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java @@ -39,7 +39,7 @@ private TestIamPermissionsRequest(com.google.protobuf.GeneratedMessageV3.Builder private TestIamPermissionsRequest() { resource_ = ""; - permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TestIamPermissionsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v1.IamPolicyProto .internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; @@ -128,7 +123,8 @@ public com.google.protobuf.ByteString getResourceBytes() { public static final int PERMISSIONS_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList permissions_; + private com.google.protobuf.LazyStringArrayList permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -415,8 +411,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; resource_ = ""; - permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -444,7 +439,6 @@ public com.google.iam.v1.TestIamPermissionsRequest build() { public com.google.iam.v1.TestIamPermissionsRequest buildPartial() { com.google.iam.v1.TestIamPermissionsRequest result = new com.google.iam.v1.TestIamPermissionsRequest(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -452,52 +446,15 @@ public com.google.iam.v1.TestIamPermissionsRequest buildPartial() { return result; } - private void buildPartialRepeatedFields(com.google.iam.v1.TestIamPermissionsRequest result) { - if (((bitField0_ & 0x00000002) != 0)) { - permissions_ = permissions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.permissions_ = permissions_; - } - private void buildPartial0(com.google.iam.v1.TestIamPermissionsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.resource_ = resource_; } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + if (((from_bitField0_ & 0x00000002) != 0)) { + permissions_.makeImmutable(); + result.permissions_ = permissions_; + } } @java.lang.Override @@ -520,7 +477,7 @@ public Builder mergeFrom(com.google.iam.v1.TestIamPermissionsRequest other) { if (!other.permissions_.isEmpty()) { if (permissions_.isEmpty()) { permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ |= 0x00000002; } else { ensurePermissionsIsMutable(); permissions_.addAll(other.permissions_); @@ -706,14 +663,14 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList permissions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensurePermissionsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!permissions_.isModifiable()) { permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); - bitField0_ |= 0x00000002; } + bitField0_ |= 0x00000002; } /** * @@ -730,7 +687,8 @@ private void ensurePermissionsIsMutable() { * @return A list containing the permissions. */ public com.google.protobuf.ProtocolStringList getPermissionsList() { - return permissions_.getUnmodifiableView(); + permissions_.makeImmutable(); + return permissions_; } /** * @@ -807,6 +765,7 @@ public Builder setPermissions(int index, java.lang.String value) { } ensurePermissionsIsMutable(); permissions_.set(index, value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -831,6 +790,7 @@ public Builder addPermissions(java.lang.String value) { } ensurePermissionsIsMutable(); permissions_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -852,6 +812,7 @@ public Builder addPermissions(java.lang.String value) { public Builder addAllPermissions(java.lang.Iterable values) { ensurePermissionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, permissions_); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -870,8 +831,9 @@ public Builder addAllPermissions(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearPermissions() { - permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } @@ -897,6 +859,7 @@ public Builder addPermissionsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensurePermissionsIsMutable(); permissions_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java index 25fb71590e..4eb8379bbd 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java @@ -38,7 +38,7 @@ private TestIamPermissionsResponse(com.google.protobuf.GeneratedMessageV3.Builde } private TestIamPermissionsResponse() { - permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TestIamPermissionsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v1.IamPolicyProto .internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; @@ -70,7 +65,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int PERMISSIONS_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList permissions_; + private com.google.protobuf.LazyStringArrayList permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -339,8 +335,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -368,7 +363,6 @@ public com.google.iam.v1.TestIamPermissionsResponse build() { public com.google.iam.v1.TestIamPermissionsResponse buildPartial() { com.google.iam.v1.TestIamPermissionsResponse result = new com.google.iam.v1.TestIamPermissionsResponse(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -376,49 +370,12 @@ public com.google.iam.v1.TestIamPermissionsResponse buildPartial() { return result; } - private void buildPartialRepeatedFields(com.google.iam.v1.TestIamPermissionsResponse result) { - if (((bitField0_ & 0x00000001) != 0)) { - permissions_ = permissions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.permissions_ = permissions_; - } - private void buildPartial0(com.google.iam.v1.TestIamPermissionsResponse result) { int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + if (((from_bitField0_ & 0x00000001) != 0)) { + permissions_.makeImmutable(); + result.permissions_ = permissions_; + } } @java.lang.Override @@ -436,7 +393,7 @@ public Builder mergeFrom(com.google.iam.v1.TestIamPermissionsResponse other) { if (!other.permissions_.isEmpty()) { if (permissions_.isEmpty()) { permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensurePermissionsIsMutable(); permissions_.addAll(other.permissions_); @@ -495,14 +452,14 @@ public Builder mergeFrom( private int bitField0_; - private com.google.protobuf.LazyStringList permissions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensurePermissionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!permissions_.isModifiable()) { permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); - bitField0_ |= 0x00000001; } + bitField0_ |= 0x00000001; } /** * @@ -517,7 +474,8 @@ private void ensurePermissionsIsMutable() { * @return A list containing the permissions. */ public com.google.protobuf.ProtocolStringList getPermissionsList() { - return permissions_.getUnmodifiableView(); + permissions_.makeImmutable(); + return permissions_; } /** * @@ -586,6 +544,7 @@ public Builder setPermissions(int index, java.lang.String value) { } ensurePermissionsIsMutable(); permissions_.set(index, value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -608,6 +567,7 @@ public Builder addPermissions(java.lang.String value) { } ensurePermissionsIsMutable(); permissions_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -627,6 +587,7 @@ public Builder addPermissions(java.lang.String value) { public Builder addAllPermissions(java.lang.Iterable values) { ensurePermissionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, permissions_); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -643,8 +604,9 @@ public Builder addAllPermissions(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearPermissions() { - permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } @@ -668,6 +630,7 @@ public Builder addPermissionsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensurePermissionsIsMutable(); permissions_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-iam/proto-google-iam-v2/clirr-ignored-differences.xml b/java-iam/proto-google-iam-v2/clirr-ignored-differences.xml index f9346449b7..dca810c57f 100644 --- a/java-iam/proto-google-iam-v2/clirr-ignored-differences.xml +++ b/java-iam/proto-google-iam-v2/clirr-ignored-differences.xml @@ -1,6 +1,36 @@ + + 7002 + com/google/iam/v2/*Builder + * addRepeatedField(*) + + + 7002 + com/google/iam/v2/*Builder + * clearField(*) + + + 7002 + com/google/iam/v2/*Builder + * clearOneof(*) + + + 7002 + com/google/iam/v2/*Builder + * clone() + + + 7002 + com/google/iam/v2/*Builder + * setField(*) + + + 7002 + com/google/iam/v2/*Builder + * setRepeatedField(*) + 7012 com/google/iam/v2/*OrBuilder diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java index 6d67c52f34..038188c87f 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreatePolicyRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2.PolicyProto .internal_static_google_iam_v2_CreatePolicyRequest_descriptor; @@ -78,10 +73,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
@@ -108,10 +106,13 @@ public java.lang.String getParent() { *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
@@ -509,39 +510,6 @@ private void buildPartial0(com.google.iam.v2.CreatePolicyRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v2.CreatePolicyRequest) { @@ -637,10 +605,13 @@ public Builder mergeFrom( *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -666,10 +637,13 @@ public java.lang.String getParent() { *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -695,10 +669,13 @@ public com.google.protobuf.ByteString getParentBytes() { *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -723,10 +700,13 @@ public Builder setParent(java.lang.String value) { *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -747,10 +727,13 @@ public Builder clearParent() { *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java index 3825ae18ff..750931920c 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java @@ -29,10 +29,13 @@ public interface CreatePolicyRequestOrBuilder *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
@@ -48,10 +51,13 @@ public interface CreatePolicyRequestOrBuilder *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java index a1fc39876b..0c0b229bf6 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeletePolicyRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2.PolicyProto .internal_static_google_iam_v2_DeletePolicyRequest_descriptor; @@ -78,9 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The resource name of the policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
@@ -107,9 +105,12 @@ public java.lang.String getName() { *
    * Required. The resource name of the policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
@@ -142,6 +143,7 @@ public com.google.protobuf.ByteString getNameBytes() { * Optional. The expected `etag` of the policy to delete. If the value does not match * the value that is stored in IAM, the request fails with a `409` error code * and `ABORTED` status. + * * If you omit this field, the policy is deleted regardless of its current * `etag`. *
@@ -169,6 +171,7 @@ public java.lang.String getEtag() { * Optional. The expected `etag` of the policy to delete. If the value does not match * the value that is stored in IAM, the request fails with a `409` error code * and `ABORTED` status. + * * If you omit this field, the policy is deleted regardless of its current * `etag`. *
@@ -441,39 +444,6 @@ private void buildPartial0(com.google.iam.v2.DeletePolicyRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v2.DeletePolicyRequest) { @@ -560,9 +530,12 @@ public Builder mergeFrom( *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -588,9 +561,12 @@ public java.lang.String getName() { *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -616,9 +592,12 @@ public com.google.protobuf.ByteString getNameBytes() { *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -643,9 +622,12 @@ public Builder setName(java.lang.String value) { *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -666,9 +648,12 @@ public Builder clearName() { *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -697,6 +682,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * Optional. The expected `etag` of the policy to delete. If the value does not match * the value that is stored in IAM, the request fails with a `409` error code * and `ABORTED` status. + * * If you omit this field, the policy is deleted regardless of its current * `etag`. *
@@ -723,6 +709,7 @@ public java.lang.String getEtag() { * Optional. The expected `etag` of the policy to delete. If the value does not match * the value that is stored in IAM, the request fails with a `409` error code * and `ABORTED` status. + * * If you omit this field, the policy is deleted regardless of its current * `etag`. *
@@ -749,6 +736,7 @@ public com.google.protobuf.ByteString getEtagBytes() { * Optional. The expected `etag` of the policy to delete. If the value does not match * the value that is stored in IAM, the request fails with a `409` error code * and `ABORTED` status. + * * If you omit this field, the policy is deleted regardless of its current * `etag`. *
@@ -774,6 +762,7 @@ public Builder setEtag(java.lang.String value) { * Optional. The expected `etag` of the policy to delete. If the value does not match * the value that is stored in IAM, the request fails with a `409` error code * and `ABORTED` status. + * * If you omit this field, the policy is deleted regardless of its current * `etag`. *
@@ -795,6 +784,7 @@ public Builder clearEtag() { * Optional. The expected `etag` of the policy to delete. If the value does not match * the value that is stored in IAM, the request fails with a `409` error code * and `ABORTED` status. + * * If you omit this field, the policy is deleted regardless of its current * `etag`. *
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java index 9bdd7fc3d3..16a7afe664 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java @@ -29,9 +29,12 @@ public interface DeletePolicyRequestOrBuilder *
    * Required. The resource name of the policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
@@ -47,9 +50,12 @@ public interface DeletePolicyRequestOrBuilder *
    * Required. The resource name of the policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
@@ -67,6 +73,7 @@ public interface DeletePolicyRequestOrBuilder * Optional. The expected `etag` of the policy to delete. If the value does not match * the value that is stored in IAM, the request fails with a `409` error code * and `ABORTED` status. + * * If you omit this field, the policy is deleted regardless of its current * `etag`. *
@@ -83,6 +90,7 @@ public interface DeletePolicyRequestOrBuilder * Optional. The expected `etag` of the policy to delete. If the value does not match * the value that is stored in IAM, the request fails with a `409` error code * and `ABORTED` status. + * * If you omit this field, the policy is deleted regardless of its current * `etag`. *
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java index 8fcf2a56fe..be4c9b2f25 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java @@ -38,10 +38,10 @@ private DenyRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { } private DenyRule() { - deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; - exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; - deniedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + deniedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DenyRule(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2.DenyRuleProto.internal_static_google_iam_v2_DenyRule_descriptor; } @@ -70,39 +65,48 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int DENIED_PRINCIPALS_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList deniedPrincipals_; + private com.google.protobuf.LazyStringArrayList deniedPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -122,32 +126,40 @@ public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() {
    * 
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -167,32 +179,40 @@ public int getDeniedPrincipalsCount() {
    * 
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -213,32 +233,40 @@ public java.lang.String getDeniedPrincipals(int index) {
    * 
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -257,7 +285,8 @@ public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) {
   public static final int EXCEPTION_PRINCIPALS_FIELD_NUMBER = 2;
 
   @SuppressWarnings("serial")
-  private com.google.protobuf.LazyStringList exceptionPrincipals_;
+  private com.google.protobuf.LazyStringArrayList exceptionPrincipals_ =
+      com.google.protobuf.LazyStringArrayList.emptyList();
   /**
    *
    *
@@ -266,6 +295,7 @@ public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) {
    * listed in the `denied_principals`. For example, you could add a Google
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
@@ -286,6 +316,7 @@ public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() {
    * listed in the `denied_principals`. For example, you could add a Google
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
@@ -306,6 +337,7 @@ public int getExceptionPrincipalsCount() {
    * listed in the `denied_principals`. For example, you could add a Google
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
@@ -327,6 +359,7 @@ public java.lang.String getExceptionPrincipals(int index) {
    * listed in the `denied_principals`. For example, you could add a Google
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
@@ -344,7 +377,8 @@ public com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index) {
   public static final int DENIED_PERMISSIONS_FIELD_NUMBER = 3;
 
   @SuppressWarnings("serial")
-  private com.google.protobuf.LazyStringList deniedPermissions_;
+  private com.google.protobuf.LazyStringArrayList deniedPermissions_ =
+      com.google.protobuf.LazyStringArrayList.emptyList();
   /**
    *
    *
@@ -419,7 +453,8 @@ public com.google.protobuf.ByteString getDeniedPermissionsBytes(int index) {
   public static final int EXCEPTION_PERMISSIONS_FIELD_NUMBER = 4;
 
   @SuppressWarnings("serial")
-  private com.google.protobuf.LazyStringList exceptionPermissions_;
+  private com.google.protobuf.LazyStringArrayList exceptionPermissions_ =
+      com.google.protobuf.LazyStringArrayList.emptyList();
   /**
    *
    *
@@ -428,6 +463,7 @@ public com.google.protobuf.ByteString getDeniedPermissionsBytes(int index) {
    * permissions given by `denied_permissions`. If a permission appears in
    * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
    * denied.
+   *
    * The excluded permissions can be specified using the same syntax as
    * `denied_permissions`.
    * 
@@ -447,6 +483,7 @@ public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() { * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -466,6 +503,7 @@ public int getExceptionPermissionsCount() { * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -486,6 +524,7 @@ public java.lang.String getExceptionPermissions(int index) { * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -508,8 +547,10 @@ public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) { * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -531,8 +572,10 @@ public boolean hasDenialCondition() { * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -554,8 +597,10 @@ public com.google.type.Expr getDenialCondition() { * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -833,14 +878,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - deniedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + deniedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); denialCondition_ = null; if (denialConditionBuilder_ != null) { denialConditionBuilder_.dispose(); @@ -871,7 +912,6 @@ public com.google.iam.v2.DenyRule build() { @java.lang.Override public com.google.iam.v2.DenyRule buildPartial() { com.google.iam.v2.DenyRule result = new com.google.iam.v2.DenyRule(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -879,70 +919,30 @@ public com.google.iam.v2.DenyRule buildPartial() { return result; } - private void buildPartialRepeatedFields(com.google.iam.v2.DenyRule result) { - if (((bitField0_ & 0x00000001) != 0)) { - deniedPrincipals_ = deniedPrincipals_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + private void buildPartial0(com.google.iam.v2.DenyRule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + deniedPrincipals_.makeImmutable(); + result.deniedPrincipals_ = deniedPrincipals_; } - result.deniedPrincipals_ = deniedPrincipals_; - if (((bitField0_ & 0x00000002) != 0)) { - exceptionPrincipals_ = exceptionPrincipals_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + if (((from_bitField0_ & 0x00000002) != 0)) { + exceptionPrincipals_.makeImmutable(); + result.exceptionPrincipals_ = exceptionPrincipals_; } - result.exceptionPrincipals_ = exceptionPrincipals_; - if (((bitField0_ & 0x00000004) != 0)) { - deniedPermissions_ = deniedPermissions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); + if (((from_bitField0_ & 0x00000004) != 0)) { + deniedPermissions_.makeImmutable(); + result.deniedPermissions_ = deniedPermissions_; } - result.deniedPermissions_ = deniedPermissions_; - if (((bitField0_ & 0x00000008) != 0)) { - exceptionPermissions_ = exceptionPermissions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); + if (((from_bitField0_ & 0x00000008) != 0)) { + exceptionPermissions_.makeImmutable(); + result.exceptionPermissions_ = exceptionPermissions_; } - result.exceptionPermissions_ = exceptionPermissions_; - } - - private void buildPartial0(com.google.iam.v2.DenyRule result) { - int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000010) != 0)) { result.denialCondition_ = denialConditionBuilder_ == null ? denialCondition_ : denialConditionBuilder_.build(); } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v2.DenyRule) { @@ -958,7 +958,7 @@ public Builder mergeFrom(com.google.iam.v2.DenyRule other) { if (!other.deniedPrincipals_.isEmpty()) { if (deniedPrincipals_.isEmpty()) { deniedPrincipals_ = other.deniedPrincipals_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensureDeniedPrincipalsIsMutable(); deniedPrincipals_.addAll(other.deniedPrincipals_); @@ -968,7 +968,7 @@ public Builder mergeFrom(com.google.iam.v2.DenyRule other) { if (!other.exceptionPrincipals_.isEmpty()) { if (exceptionPrincipals_.isEmpty()) { exceptionPrincipals_ = other.exceptionPrincipals_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ |= 0x00000002; } else { ensureExceptionPrincipalsIsMutable(); exceptionPrincipals_.addAll(other.exceptionPrincipals_); @@ -978,7 +978,7 @@ public Builder mergeFrom(com.google.iam.v2.DenyRule other) { if (!other.deniedPermissions_.isEmpty()) { if (deniedPermissions_.isEmpty()) { deniedPermissions_ = other.deniedPermissions_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ |= 0x00000004; } else { ensureDeniedPermissionsIsMutable(); deniedPermissions_.addAll(other.deniedPermissions_); @@ -988,7 +988,7 @@ public Builder mergeFrom(com.google.iam.v2.DenyRule other) { if (!other.exceptionPermissions_.isEmpty()) { if (exceptionPermissions_.isEmpty()) { exceptionPermissions_ = other.exceptionPermissions_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ |= 0x00000008; } else { ensureExceptionPermissionsIsMutable(); exceptionPermissions_.addAll(other.exceptionPermissions_); @@ -1077,14 +1077,14 @@ public Builder mergeFrom( private int bitField0_; - private com.google.protobuf.LazyStringList deniedPrincipals_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList deniedPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureDeniedPrincipalsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!deniedPrincipals_.isModifiable()) { deniedPrincipals_ = new com.google.protobuf.LazyStringArrayList(deniedPrincipals_); - bitField0_ |= 0x00000001; } + bitField0_ |= 0x00000001; } /** * @@ -1092,32 +1092,40 @@ private void ensureDeniedPrincipalsIsMutable() { *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1129,7 +1137,8 @@ private void ensureDeniedPrincipalsIsMutable() {
      * @return A list containing the deniedPrincipals.
      */
     public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() {
-      return deniedPrincipals_.getUnmodifiableView();
+      deniedPrincipals_.makeImmutable();
+      return deniedPrincipals_;
     }
     /**
      *
@@ -1137,32 +1146,40 @@ public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() {
      * 
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1182,32 +1199,40 @@ public int getDeniedPrincipalsCount() {
      * 
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1228,32 +1253,40 @@ public java.lang.String getDeniedPrincipals(int index) {
      * 
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1274,32 +1307,40 @@ public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) {
      * 
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1318,6 +1359,7 @@ public Builder setDeniedPrincipals(int index, java.lang.String value) {
       }
       ensureDeniedPrincipalsIsMutable();
       deniedPrincipals_.set(index, value);
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -1327,32 +1369,40 @@ public Builder setDeniedPrincipals(int index, java.lang.String value) {
      * 
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1370,6 +1420,7 @@ public Builder addDeniedPrincipals(java.lang.String value) {
       }
       ensureDeniedPrincipalsIsMutable();
       deniedPrincipals_.add(value);
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -1379,32 +1430,40 @@ public Builder addDeniedPrincipals(java.lang.String value) {
      * 
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1419,6 +1478,7 @@ public Builder addDeniedPrincipals(java.lang.String value) {
     public Builder addAllDeniedPrincipals(java.lang.Iterable values) {
       ensureDeniedPrincipalsIsMutable();
       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deniedPrincipals_);
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -1428,32 +1488,40 @@ public Builder addAllDeniedPrincipals(java.lang.Iterable value
      * 
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1465,8 +1533,9 @@ public Builder addAllDeniedPrincipals(java.lang.Iterable value
      * @return This builder for chaining.
      */
     public Builder clearDeniedPrincipals() {
-      deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList();
       bitField0_ = (bitField0_ & ~0x00000001);
+      ;
       onChanged();
       return this;
     }
@@ -1476,32 +1545,40 @@ public Builder clearDeniedPrincipals() {
      * 
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1520,18 +1597,19 @@ public Builder addDeniedPrincipalsBytes(com.google.protobuf.ByteString value) {
       checkByteStringIsUtf8(value);
       ensureDeniedPrincipalsIsMutable();
       deniedPrincipals_.add(value);
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
 
-    private com.google.protobuf.LazyStringList exceptionPrincipals_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringArrayList exceptionPrincipals_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
 
     private void ensureExceptionPrincipalsIsMutable() {
-      if (!((bitField0_ & 0x00000002) != 0)) {
+      if (!exceptionPrincipals_.isModifiable()) {
         exceptionPrincipals_ = new com.google.protobuf.LazyStringArrayList(exceptionPrincipals_);
-        bitField0_ |= 0x00000002;
       }
+      bitField0_ |= 0x00000002;
     }
     /**
      *
@@ -1541,6 +1619,7 @@ private void ensureExceptionPrincipalsIsMutable() {
      * listed in the `denied_principals`. For example, you could add a Google
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
@@ -1551,7 +1630,8 @@ private void ensureExceptionPrincipalsIsMutable() {
      * @return A list containing the exceptionPrincipals.
      */
     public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() {
-      return exceptionPrincipals_.getUnmodifiableView();
+      exceptionPrincipals_.makeImmutable();
+      return exceptionPrincipals_;
     }
     /**
      *
@@ -1561,6 +1641,7 @@ public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() {
      * listed in the `denied_principals`. For example, you could add a Google
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
@@ -1581,6 +1662,7 @@ public int getExceptionPrincipalsCount() {
      * listed in the `denied_principals`. For example, you could add a Google
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
@@ -1602,6 +1684,7 @@ public java.lang.String getExceptionPrincipals(int index) {
      * listed in the `denied_principals`. For example, you could add a Google
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
@@ -1623,6 +1706,7 @@ public com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index) {
      * listed in the `denied_principals`. For example, you could add a Google
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
@@ -1640,6 +1724,7 @@ public Builder setExceptionPrincipals(int index, java.lang.String value) {
       }
       ensureExceptionPrincipalsIsMutable();
       exceptionPrincipals_.set(index, value);
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -1651,6 +1736,7 @@ public Builder setExceptionPrincipals(int index, java.lang.String value) {
      * listed in the `denied_principals`. For example, you could add a Google
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
@@ -1667,6 +1753,7 @@ public Builder addExceptionPrincipals(java.lang.String value) {
       }
       ensureExceptionPrincipalsIsMutable();
       exceptionPrincipals_.add(value);
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -1678,6 +1765,7 @@ public Builder addExceptionPrincipals(java.lang.String value) {
      * listed in the `denied_principals`. For example, you could add a Google
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
@@ -1691,6 +1779,7 @@ public Builder addExceptionPrincipals(java.lang.String value) {
     public Builder addAllExceptionPrincipals(java.lang.Iterable values) {
       ensureExceptionPrincipalsIsMutable();
       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exceptionPrincipals_);
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -1702,6 +1791,7 @@ public Builder addAllExceptionPrincipals(java.lang.Iterable va
      * listed in the `denied_principals`. For example, you could add a Google
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
@@ -1712,8 +1802,9 @@ public Builder addAllExceptionPrincipals(java.lang.Iterable va
      * @return This builder for chaining.
      */
     public Builder clearExceptionPrincipals() {
-      exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList();
       bitField0_ = (bitField0_ & ~0x00000002);
+      ;
       onChanged();
       return this;
     }
@@ -1725,6 +1816,7 @@ public Builder clearExceptionPrincipals() {
      * listed in the `denied_principals`. For example, you could add a Google
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
@@ -1742,18 +1834,19 @@ public Builder addExceptionPrincipalsBytes(com.google.protobuf.ByteString value)
       checkByteStringIsUtf8(value);
       ensureExceptionPrincipalsIsMutable();
       exceptionPrincipals_.add(value);
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
 
-    private com.google.protobuf.LazyStringList deniedPermissions_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringArrayList deniedPermissions_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
 
     private void ensureDeniedPermissionsIsMutable() {
-      if (!((bitField0_ & 0x00000004) != 0)) {
+      if (!deniedPermissions_.isModifiable()) {
         deniedPermissions_ = new com.google.protobuf.LazyStringArrayList(deniedPermissions_);
-        bitField0_ |= 0x00000004;
       }
+      bitField0_ |= 0x00000004;
     }
     /**
      *
@@ -1770,7 +1863,8 @@ private void ensureDeniedPermissionsIsMutable() {
      * @return A list containing the deniedPermissions.
      */
     public com.google.protobuf.ProtocolStringList getDeniedPermissionsList() {
-      return deniedPermissions_.getUnmodifiableView();
+      deniedPermissions_.makeImmutable();
+      return deniedPermissions_;
     }
     /**
      *
@@ -1847,6 +1941,7 @@ public Builder setDeniedPermissions(int index, java.lang.String value) {
       }
       ensureDeniedPermissionsIsMutable();
       deniedPermissions_.set(index, value);
+      bitField0_ |= 0x00000004;
       onChanged();
       return this;
     }
@@ -1871,6 +1966,7 @@ public Builder addDeniedPermissions(java.lang.String value) {
       }
       ensureDeniedPermissionsIsMutable();
       deniedPermissions_.add(value);
+      bitField0_ |= 0x00000004;
       onChanged();
       return this;
     }
@@ -1892,6 +1988,7 @@ public Builder addDeniedPermissions(java.lang.String value) {
     public Builder addAllDeniedPermissions(java.lang.Iterable values) {
       ensureDeniedPermissionsIsMutable();
       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deniedPermissions_);
+      bitField0_ |= 0x00000004;
       onChanged();
       return this;
     }
@@ -1910,8 +2007,9 @@ public Builder addAllDeniedPermissions(java.lang.Iterable valu
      * @return This builder for chaining.
      */
     public Builder clearDeniedPermissions() {
-      deniedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      deniedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList();
       bitField0_ = (bitField0_ & ~0x00000004);
+      ;
       onChanged();
       return this;
     }
@@ -1937,18 +2035,19 @@ public Builder addDeniedPermissionsBytes(com.google.protobuf.ByteString value) {
       checkByteStringIsUtf8(value);
       ensureDeniedPermissionsIsMutable();
       deniedPermissions_.add(value);
+      bitField0_ |= 0x00000004;
       onChanged();
       return this;
     }
 
-    private com.google.protobuf.LazyStringList exceptionPermissions_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringArrayList exceptionPermissions_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
 
     private void ensureExceptionPermissionsIsMutable() {
-      if (!((bitField0_ & 0x00000008) != 0)) {
+      if (!exceptionPermissions_.isModifiable()) {
         exceptionPermissions_ = new com.google.protobuf.LazyStringArrayList(exceptionPermissions_);
-        bitField0_ |= 0x00000008;
       }
+      bitField0_ |= 0x00000008;
     }
     /**
      *
@@ -1958,6 +2057,7 @@ private void ensureExceptionPermissionsIsMutable() {
      * permissions given by `denied_permissions`. If a permission appears in
      * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
      * denied.
+     *
      * The excluded permissions can be specified using the same syntax as
      * `denied_permissions`.
      * 
@@ -1967,7 +2067,8 @@ private void ensureExceptionPermissionsIsMutable() { * @return A list containing the exceptionPermissions. */ public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() { - return exceptionPermissions_.getUnmodifiableView(); + exceptionPermissions_.makeImmutable(); + return exceptionPermissions_; } /** * @@ -1977,6 +2078,7 @@ public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() { * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -1996,6 +2098,7 @@ public int getExceptionPermissionsCount() { * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -2016,6 +2119,7 @@ public java.lang.String getExceptionPermissions(int index) { * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -2036,6 +2140,7 @@ public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) { * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -2052,6 +2157,7 @@ public Builder setExceptionPermissions(int index, java.lang.String value) { } ensureExceptionPermissionsIsMutable(); exceptionPermissions_.set(index, value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2063,6 +2169,7 @@ public Builder setExceptionPermissions(int index, java.lang.String value) { * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -2078,6 +2185,7 @@ public Builder addExceptionPermissions(java.lang.String value) { } ensureExceptionPermissionsIsMutable(); exceptionPermissions_.add(value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2089,6 +2197,7 @@ public Builder addExceptionPermissions(java.lang.String value) { * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -2101,6 +2210,7 @@ public Builder addExceptionPermissions(java.lang.String value) { public Builder addAllExceptionPermissions(java.lang.Iterable values) { ensureExceptionPermissionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exceptionPermissions_); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2112,6 +2222,7 @@ public Builder addAllExceptionPermissions(java.lang.Iterable v * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -2121,8 +2232,9 @@ public Builder addAllExceptionPermissions(java.lang.Iterable v * @return This builder for chaining. */ public Builder clearExceptionPermissions() { - exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); + ; onChanged(); return this; } @@ -2134,6 +2246,7 @@ public Builder clearExceptionPermissions() { * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -2150,6 +2263,7 @@ public Builder addExceptionPermissionsBytes(com.google.protobuf.ByteString value checkByteStringIsUtf8(value); ensureExceptionPermissionsIsMutable(); exceptionPermissions_.add(value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2165,8 +2279,10 @@ public Builder addExceptionPermissionsBytes(com.google.protobuf.ByteString value * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -2187,8 +2303,10 @@ public boolean hasDenialCondition() { * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -2215,8 +2333,10 @@ public com.google.type.Expr getDenialCondition() { * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -2245,8 +2365,10 @@ public Builder setDenialCondition(com.google.type.Expr value) { * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -2272,8 +2394,10 @@ public Builder setDenialCondition(com.google.type.Expr.Builder builderForValue) * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -2305,8 +2429,10 @@ public Builder mergeDenialCondition(com.google.type.Expr value) { * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -2332,8 +2458,10 @@ public Builder clearDenialCondition() { * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -2354,8 +2482,10 @@ public com.google.type.Expr.Builder getDenialConditionBuilder() { * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -2380,8 +2510,10 @@ public com.google.type.ExprOrBuilder getDenialConditionOrBuilder() { * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java index 1d35367fb8..cb8dd9758c 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java @@ -29,32 +29,40 @@ public interface DenyRuleOrBuilder *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -72,32 +80,40 @@ public interface DenyRuleOrBuilder
    * 
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -115,32 +131,40 @@ public interface DenyRuleOrBuilder
    * 
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -159,32 +183,40 @@ public interface DenyRuleOrBuilder
    * 
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -206,6 +238,7 @@ public interface DenyRuleOrBuilder
    * listed in the `denied_principals`. For example, you could add a Google
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
@@ -224,6 +257,7 @@ public interface DenyRuleOrBuilder
    * listed in the `denied_principals`. For example, you could add a Google
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
@@ -242,6 +276,7 @@ public interface DenyRuleOrBuilder
    * listed in the `denied_principals`. For example, you could add a Google
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
@@ -261,6 +296,7 @@ public interface DenyRuleOrBuilder
    * listed in the `denied_principals`. For example, you could add a Google
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
@@ -344,6 +380,7 @@ public interface DenyRuleOrBuilder
    * permissions given by `denied_permissions`. If a permission appears in
    * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
    * denied.
+   *
    * The excluded permissions can be specified using the same syntax as
    * `denied_permissions`.
    * 
@@ -361,6 +398,7 @@ public interface DenyRuleOrBuilder * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -378,6 +416,7 @@ public interface DenyRuleOrBuilder * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -396,6 +435,7 @@ public interface DenyRuleOrBuilder * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -414,8 +454,10 @@ public interface DenyRuleOrBuilder * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -434,8 +476,10 @@ public interface DenyRuleOrBuilder * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -454,8 +498,10 @@ public interface DenyRuleOrBuilder * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java index 31ae9840b5..1f51e3a3e6 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetPolicyRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_GetPolicyRequest_descriptor; } @@ -76,9 +71,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The resource name of the policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
@@ -105,9 +103,12 @@ public java.lang.String getName() { *
    * Required. The resource name of the policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
@@ -366,39 +367,6 @@ private void buildPartial0(com.google.iam.v2.GetPolicyRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v2.GetPolicyRequest) { @@ -474,9 +442,12 @@ public Builder mergeFrom( *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -502,9 +473,12 @@ public java.lang.String getName() { *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -530,9 +504,12 @@ public com.google.protobuf.ByteString getNameBytes() { *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -557,9 +534,12 @@ public Builder setName(java.lang.String value) { *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -580,9 +560,12 @@ public Builder clearName() { *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java index 6f293a3267..4756f85ed0 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java @@ -29,9 +29,12 @@ public interface GetPolicyRequestOrBuilder *
    * Required. The resource name of the policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
@@ -47,9 +50,12 @@ public interface GetPolicyRequestOrBuilder *
    * Required. The resource name of the policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java index 42f23221d0..053058d820 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPoliciesRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2.PolicyProto .internal_static_google_iam_v2_ListPoliciesRequest_descriptor; @@ -79,10 +74,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. The resource that the policy is attached to, along with the kind of policy * to list. Format: * `policies/{attachment_point}/denypolicies` + * + * * The attachment point is identified by its URL-encoded full resource name, * which means that the forward-slash character, `/`, must be written as * `%2F`. For example, * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + * * For organizations and folders, use the numeric ID in the full resource * name. For projects, you can use the alphanumeric or the numeric ID. *
@@ -110,10 +108,13 @@ public java.lang.String getParent() { * Required. The resource that the policy is attached to, along with the kind of policy * to list. Format: * `policies/{attachment_point}/denypolicies` + * + * * The attachment point is identified by its URL-encoded full resource name, * which means that the forward-slash character, `/`, must be written as * `%2F`. For example, * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + * * For organizations and folders, use the numeric ID in the full resource * name. For projects, you can use the alphanumeric or the numeric ID. *
@@ -471,39 +472,6 @@ private void buildPartial0(com.google.iam.v2.ListPoliciesRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v2.ListPoliciesRequest) { @@ -600,10 +568,13 @@ public Builder mergeFrom( * Required. The resource that the policy is attached to, along with the kind of policy * to list. Format: * `policies/{attachment_point}/denypolicies` + * + * * The attachment point is identified by its URL-encoded full resource name, * which means that the forward-slash character, `/`, must be written as * `%2F`. For example, * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + * * For organizations and folders, use the numeric ID in the full resource * name. For projects, you can use the alphanumeric or the numeric ID. *
@@ -630,10 +601,13 @@ public java.lang.String getParent() { * Required. The resource that the policy is attached to, along with the kind of policy * to list. Format: * `policies/{attachment_point}/denypolicies` + * + * * The attachment point is identified by its URL-encoded full resource name, * which means that the forward-slash character, `/`, must be written as * `%2F`. For example, * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + * * For organizations and folders, use the numeric ID in the full resource * name. For projects, you can use the alphanumeric or the numeric ID. *
@@ -660,10 +634,13 @@ public com.google.protobuf.ByteString getParentBytes() { * Required. The resource that the policy is attached to, along with the kind of policy * to list. Format: * `policies/{attachment_point}/denypolicies` + * + * * The attachment point is identified by its URL-encoded full resource name, * which means that the forward-slash character, `/`, must be written as * `%2F`. For example, * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + * * For organizations and folders, use the numeric ID in the full resource * name. For projects, you can use the alphanumeric or the numeric ID. *
@@ -689,10 +666,13 @@ public Builder setParent(java.lang.String value) { * Required. The resource that the policy is attached to, along with the kind of policy * to list. Format: * `policies/{attachment_point}/denypolicies` + * + * * The attachment point is identified by its URL-encoded full resource name, * which means that the forward-slash character, `/`, must be written as * `%2F`. For example, * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + * * For organizations and folders, use the numeric ID in the full resource * name. For projects, you can use the alphanumeric or the numeric ID. * @@ -714,10 +694,13 @@ public Builder clearParent() { * Required. The resource that the policy is attached to, along with the kind of policy * to list. Format: * `policies/{attachment_point}/denypolicies` + * + * * The attachment point is identified by its URL-encoded full resource name, * which means that the forward-slash character, `/`, must be written as * `%2F`. For example, * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + * * For organizations and folders, use the numeric ID in the full resource * name. For projects, you can use the alphanumeric or the numeric ID. * diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java index bfea871b46..45bde87af8 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java @@ -30,10 +30,13 @@ public interface ListPoliciesRequestOrBuilder * Required. The resource that the policy is attached to, along with the kind of policy * to list. Format: * `policies/{attachment_point}/denypolicies` + * + * * The attachment point is identified by its URL-encoded full resource name, * which means that the forward-slash character, `/`, must be written as * `%2F`. For example, * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + * * For organizations and folders, use the numeric ID in the full resource * name. For projects, you can use the alphanumeric or the numeric ID. * @@ -50,10 +53,13 @@ public interface ListPoliciesRequestOrBuilder * Required. The resource that the policy is attached to, along with the kind of policy * to list. Format: * `policies/{attachment_point}/denypolicies` + * + * * The attachment point is identified by its URL-encoded full resource name, * which means that the forward-slash character, `/`, must be written as * `%2F`. For example, * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + * * For organizations and folders, use the numeric ID in the full resource * name. For projects, you can use the alphanumeric or the numeric ID. * diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java index 85d5cf7b5d..0003d236d0 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPoliciesResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2.PolicyProto .internal_static_google_iam_v2_ListPoliciesResponse_descriptor; @@ -461,39 +456,6 @@ private void buildPartial0(com.google.iam.v2.ListPoliciesResponse result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v2.ListPoliciesResponse) { diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java index 2c6ad8972b..7b4e45d901 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java @@ -53,11 +53,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Policy(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_Policy_descriptor; } @@ -91,10 +86,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { *
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, requests can use the alphanumeric or the numeric ID.
    * Responses always contain the numeric ID.
@@ -122,10 +120,13 @@ public java.lang.String getName() {
    * 
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, requests can use the alphanumeric or the numeric ID.
    * Responses always contain the numeric ID.
@@ -423,6 +424,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
    * An opaque tag that identifies the current version of the `Policy`. IAM uses
    * this value to help manage concurrent updates, so they do not cause one
    * update to be overwritten by another.
+   *
    * If this field is present in a [CreatePolicy][] request, the value is
    * ignored.
    * 
@@ -450,6 +452,7 @@ public java.lang.String getEtag() { * An opaque tag that identifies the current version of the `Policy`. IAM uses * this value to help manage concurrent updates, so they do not cause one * update to be overwritten by another. + * * If this field is present in a [CreatePolicy][] request, the value is * ignored. *
@@ -1183,39 +1186,6 @@ private void buildPartial0(com.google.iam.v2.Policy result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v2.Policy) { @@ -1426,10 +1396,13 @@ public Builder mergeFrom( *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, requests can use the alphanumeric or the numeric ID.
      * Responses always contain the numeric ID.
@@ -1456,10 +1429,13 @@ public java.lang.String getName() {
      * 
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, requests can use the alphanumeric or the numeric ID.
      * Responses always contain the numeric ID.
@@ -1486,10 +1462,13 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, requests can use the alphanumeric or the numeric ID.
      * Responses always contain the numeric ID.
@@ -1515,10 +1494,13 @@ public Builder setName(java.lang.String value) {
      * 
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, requests can use the alphanumeric or the numeric ID.
      * Responses always contain the numeric ID.
@@ -1540,10 +1522,13 @@ public Builder clearName() {
      * 
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, requests can use the alphanumeric or the numeric ID.
      * Responses always contain the numeric ID.
@@ -2074,6 +2059,7 @@ public Builder putAllAnnotations(java.util.Map
@@ -2100,6 +2086,7 @@ public java.lang.String getEtag() {
      * An opaque tag that identifies the current version of the `Policy`. IAM uses
      * this value to help manage concurrent updates, so they do not cause one
      * update to be overwritten by another.
+     *
      * If this field is present in a [CreatePolicy][] request, the value is
      * ignored.
      * 
@@ -2126,6 +2113,7 @@ public com.google.protobuf.ByteString getEtagBytes() { * An opaque tag that identifies the current version of the `Policy`. IAM uses * this value to help manage concurrent updates, so they do not cause one * update to be overwritten by another. + * * If this field is present in a [CreatePolicy][] request, the value is * ignored. *
@@ -2151,6 +2139,7 @@ public Builder setEtag(java.lang.String value) { * An opaque tag that identifies the current version of the `Policy`. IAM uses * this value to help manage concurrent updates, so they do not cause one * update to be overwritten by another. + * * If this field is present in a [CreatePolicy][] request, the value is * ignored. *
@@ -2172,6 +2161,7 @@ public Builder clearEtag() { * An opaque tag that identifies the current version of the `Policy`. IAM uses * this value to help manage concurrent updates, so they do not cause one * update to be overwritten by another. + * * If this field is present in a [CreatePolicy][] request, the value is * ignored. *
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java index 15a04e7840..ba3e43f112 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PolicyOperationMetadata(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2.PolicyProto .internal_static_google_iam_v2_PolicyOperationMetadata_descriptor; @@ -360,39 +355,6 @@ private void buildPartial0(com.google.iam.v2.PolicyOperationMetadata result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v2.PolicyOperationMetadata) { diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java index 44e15c3d3b..8e87db6374 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java @@ -29,10 +29,13 @@ public interface PolicyOrBuilder *
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, requests can use the alphanumeric or the numeric ID.
    * Responses always contain the numeric ID.
@@ -49,10 +52,13 @@ public interface PolicyOrBuilder
    * 
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, requests can use the alphanumeric or the numeric ID.
    * Responses always contain the numeric ID.
@@ -213,6 +219,7 @@ java.lang.String getAnnotationsOrDefault(
    * An opaque tag that identifies the current version of the `Policy`. IAM uses
    * this value to help manage concurrent updates, so they do not cause one
    * update to be overwritten by another.
+   *
    * If this field is present in a [CreatePolicy][] request, the value is
    * ignored.
    * 
@@ -229,6 +236,7 @@ java.lang.String getAnnotationsOrDefault( * An opaque tag that identifies the current version of the `Policy`. IAM uses * this value to help manage concurrent updates, so they do not cause one * update to be overwritten by another. + * * If this field is present in a [CreatePolicy][] request, the value is * ignored. *
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java index d7b59bfe2a..e8933f1a0c 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java @@ -81,58 +81,59 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e/api/client.proto\032\037google/api/field_beh" + "avior.proto\032\030google/iam/v2/deny.proto\032#g" + "oogle/longrunning/operations.proto\032\037goog" - + "le/protobuf/timestamp.proto\"\302\003\n\006Policy\022\021" - + "\n\004name\030\001 \001(\tB\003\340A\005\022\020\n\003uid\030\002 \001(\tB\003\340A\005\022\021\n\004k" - + "ind\030\003 \001(\tB\003\340A\003\022\024\n\014display_name\030\004 \001(\t\022;\n\013" - + "annotations\030\005 \003(\0132&.google.iam.v2.Policy" - + ".AnnotationsEntry\022\014\n\004etag\030\006 \001(\t\0224\n\013creat" - + "e_time\030\007 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\003\0224\n\013delete_time\030\t \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\022(\n\005rul" - + "es\030\n \003(\0132\031.google.iam.v2.PolicyRule\022\037\n\022m" - + "anaging_authority\030\013 \001(\tB\003\340A\005\0322\n\020Annotati" - + "onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "\"W\n\nPolicyRule\022,\n\tdeny_rule\030\002 \001(\0132\027.goog" - + "le.iam.v2.DenyRuleH\000\022\023\n\013description\030\001 \001(" - + "\tB\006\n\004kind\"Q\n\023ListPoliciesRequest\022\023\n\006pare" - + "nt\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" - + "_token\030\003 \001(\t\"X\n\024ListPoliciesResponse\022\'\n\010" - + "policies\030\001 \003(\0132\025.google.iam.v2.Policy\022\027\n" - + "\017next_page_token\030\002 \001(\t\"%\n\020GetPolicyReque" - + "st\022\021\n\004name\030\001 \001(\tB\003\340A\002\"i\n\023CreatePolicyReq" - + "uest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022*\n\006policy\030\002 \001(" - + "\0132\025.google.iam.v2.PolicyB\003\340A\002\022\021\n\tpolicy_" - + "id\030\003 \001(\t\"A\n\023UpdatePolicyRequest\022*\n\006polic" - + "y\030\001 \001(\0132\025.google.iam.v2.PolicyB\003\340A\002\";\n\023D" - + "eletePolicyRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\021\n" - + "\004etag\030\002 \001(\tB\003\340A\001\"J\n\027PolicyOperationMetad" - + "ata\022/\n\013create_time\030\001 \001(\0132\032.google.protob" - + "uf.Timestamp2\320\006\n\010Policies\022\203\001\n\014ListPolici" - + "es\022\".google.iam.v2.ListPoliciesRequest\032#" - + ".google.iam.v2.ListPoliciesResponse\"*\202\323\344" - + "\223\002\033\022\031/v2/{parent=policies/*/*}\332A\006parent\022" - + "m\n\tGetPolicy\022\037.google.iam.v2.GetPolicyRe" - + "quest\032\025.google.iam.v2.Policy\"(\202\323\344\223\002\033\022\031/v" - + "2/{name=policies/*/*/*}\332A\004name\022\272\001\n\014Creat" - + "ePolicy\022\".google.iam.v2.CreatePolicyRequ" - + "est\032\035.google.longrunning.Operation\"g\202\323\344\223" - + "\002#\"\031/v2/{parent=policies/*/*}:\006policy\332A\027" - + "parent,policy,policy_id\312A!\n\006Policy\022\027Poli" - + "cyOperationMetadata\022\247\001\n\014UpdatePolicy\022\".g" - + "oogle.iam.v2.UpdatePolicyRequest\032\035.googl" - + "e.longrunning.Operation\"T\202\323\344\223\002*\032 /v2/{po" - + "licy.name=policies/*/*/*}:\006policy\312A!\n\006Po" - + "licy\022\027PolicyOperationMetadata\022\237\001\n\014Delete" - + "Policy\022\".google.iam.v2.DeletePolicyReque" - + "st\032\035.google.longrunning.Operation\"L\202\323\344\223\002" - + "\033*\031/v2/{name=policies/*/*/*}\332A\004name\312A!\n\006" - + "Policy\022\027PolicyOperationMetadata\032F\312A\022iam." - + "googleapis.com\322A.https://www.googleapis." - + "com/auth/cloud-platformBy\n\021com.google.ia" - + "m.v2B\013PolicyProtoP\001Z)cloud.google.com/go" - + "/iam/apiv2/iampb;iampb\252\002\023Google.Cloud.Ia" - + "m.V2\312\002\023Google\\Cloud\\Iam\\V2b\006proto3" + + "le/protobuf/timestamp.proto\"\311\003\n\006Policy\022\022" + + "\n\004name\030\001 \001(\tB\004\342A\001\005\022\021\n\003uid\030\002 \001(\tB\004\342A\001\005\022\022\n" + + "\004kind\030\003 \001(\tB\004\342A\001\003\022\024\n\014display_name\030\004 \001(\t\022" + + ";\n\013annotations\030\005 \003(\0132&.google.iam.v2.Pol" + + "icy.AnnotationsEntry\022\014\n\004etag\030\006 \001(\t\0225\n\013cr" + + "eate_time\030\007 \001(\0132\032.google.protobuf.Timest" + + "ampB\004\342A\001\003\0225\n\013update_time\030\010 \001(\0132\032.google." + + "protobuf.TimestampB\004\342A\001\003\0225\n\013delete_time\030" + + "\t \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022" + + "(\n\005rules\030\n \003(\0132\031.google.iam.v2.PolicyRul" + + "e\022 \n\022managing_authority\030\013 \001(\tB\004\342A\001\005\0322\n\020A" + + "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\"W\n\nPolicyRule\022,\n\tdeny_rule\030\002 \001(\013" + + "2\027.google.iam.v2.DenyRuleH\000\022\023\n\013descripti" + + "on\030\001 \001(\tB\006\n\004kind\"R\n\023ListPoliciesRequest\022" + + "\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005" + + "\022\022\n\npage_token\030\003 \001(\t\"X\n\024ListPoliciesResp" + + "onse\022\'\n\010policies\030\001 \003(\0132\025.google.iam.v2.P" + + "olicy\022\027\n\017next_page_token\030\002 \001(\t\"&\n\020GetPol" + + "icyRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\"k\n\023Create" + + "PolicyRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022+\n\006p" + + "olicy\030\002 \001(\0132\025.google.iam.v2.PolicyB\004\342A\001\002" + + "\022\021\n\tpolicy_id\030\003 \001(\t\"B\n\023UpdatePolicyReque" + + "st\022+\n\006policy\030\001 \001(\0132\025.google.iam.v2.Polic" + + "yB\004\342A\001\002\"=\n\023DeletePolicyRequest\022\022\n\004name\030\001" + + " \001(\tB\004\342A\001\002\022\022\n\004etag\030\002 \001(\tB\004\342A\001\001\"J\n\027Policy" + + "OperationMetadata\022/\n\013create_time\030\001 \001(\0132\032" + + ".google.protobuf.Timestamp2\320\006\n\010Policies\022" + + "\203\001\n\014ListPolicies\022\".google.iam.v2.ListPol" + + "iciesRequest\032#.google.iam.v2.ListPolicie" + + "sResponse\"*\332A\006parent\202\323\344\223\002\033\022\031/v2/{parent=" + + "policies/*/*}\022m\n\tGetPolicy\022\037.google.iam." + + "v2.GetPolicyRequest\032\025.google.iam.v2.Poli" + + "cy\"(\332A\004name\202\323\344\223\002\033\022\031/v2/{name=policies/*/" + + "*/*}\022\272\001\n\014CreatePolicy\022\".google.iam.v2.Cr" + + "eatePolicyRequest\032\035.google.longrunning.O" + + "peration\"g\312A!\n\006Policy\022\027PolicyOperationMe" + + "tadata\332A\027parent,policy,policy_id\202\323\344\223\002#\"\031" + + "/v2/{parent=policies/*/*}:\006policy\022\247\001\n\014Up" + + "datePolicy\022\".google.iam.v2.UpdatePolicyR" + + "equest\032\035.google.longrunning.Operation\"T\312" + + "A!\n\006Policy\022\027PolicyOperationMetadata\202\323\344\223\002" + + "*\032 /v2/{policy.name=policies/*/*/*}:\006pol" + + "icy\022\237\001\n\014DeletePolicy\022\".google.iam.v2.Del" + + "etePolicyRequest\032\035.google.longrunning.Op" + + "eration\"L\312A!\n\006Policy\022\027PolicyOperationMet" + + "adata\332A\004name\202\323\344\223\002\033*\031/v2/{name=policies/*" + + "/*/*}\032F\312A\022iam.googleapis.com\322A.https://w" + + "ww.googleapis.com/auth/cloud-platformBy\n" + + "\021com.google.iam.v2B\013PolicyProtoP\001Z)cloud" + + ".google.com/go/iam/apiv2/iampb;iampb\252\002\023G" + + "oogle.Cloud.Iam.V2\312\002\023Google\\Cloud\\Iam\\V2" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java index 9e842ab3f1..8de7d2eb9b 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PolicyRule(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_PolicyRule_descriptor; } @@ -65,6 +60,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int kindCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object kind_; public enum KindCase @@ -484,39 +481,6 @@ private void buildPartialOneofs(com.google.iam.v2.PolicyRule result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v2.PolicyRule) { diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java index 712ec0723f..d3c32e76c7 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java @@ -85,5 +85,5 @@ public interface PolicyRuleOrBuilder */ com.google.protobuf.ByteString getDescriptionBytes(); - public com.google.iam.v2.PolicyRule.KindCase getKindCase(); + com.google.iam.v2.PolicyRule.KindCase getKindCase(); } diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java index bc506e2671..cc7bdd8393 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdatePolicyRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2.PolicyProto .internal_static_google_iam_v2_UpdatePolicyRequest_descriptor; @@ -72,6 +67,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The policy to update.
+   *
    * To prevent conflicting updates, the `etag` value must match the value that
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.
@@ -90,6 +86,7 @@ public boolean hasPolicy() {
    *
    * 
    * Required. The policy to update.
+   *
    * To prevent conflicting updates, the `etag` value must match the value that
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.
@@ -108,6 +105,7 @@ public com.google.iam.v2.Policy getPolicy() {
    *
    * 
    * Required. The policy to update.
+   *
    * To prevent conflicting updates, the `etag` value must match the value that
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.
@@ -367,39 +365,6 @@ private void buildPartial0(com.google.iam.v2.UpdatePolicyRequest result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.iam.v2.UpdatePolicyRequest) {
@@ -477,6 +442,7 @@ public Builder mergeFrom(
      *
      * 
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -494,6 +460,7 @@ public boolean hasPolicy() {
      *
      * 
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -515,6 +482,7 @@ public com.google.iam.v2.Policy getPolicy() {
      *
      * 
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -540,6 +508,7 @@ public Builder setPolicy(com.google.iam.v2.Policy value) {
      *
      * 
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -562,6 +531,7 @@ public Builder setPolicy(com.google.iam.v2.Policy.Builder builderForValue) {
      *
      * 
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -590,6 +560,7 @@ public Builder mergePolicy(com.google.iam.v2.Policy value) {
      *
      * 
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -612,6 +583,7 @@ public Builder clearPolicy() {
      *
      * 
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -629,6 +601,7 @@ public com.google.iam.v2.Policy.Builder getPolicyBuilder() {
      *
      * 
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -648,6 +621,7 @@ public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() {
      *
      * 
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java
index fa20ec03d5..3a26ee64ee 100644
--- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java
@@ -28,6 +28,7 @@ public interface UpdatePolicyRequestOrBuilder
    *
    * 
    * Required. The policy to update.
+   *
    * To prevent conflicting updates, the `etag` value must match the value that
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.
@@ -43,6 +44,7 @@ public interface UpdatePolicyRequestOrBuilder
    *
    * 
    * Required. The policy to update.
+   *
    * To prevent conflicting updates, the `etag` value must match the value that
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.
@@ -58,6 +60,7 @@ public interface UpdatePolicyRequestOrBuilder
    *
    * 
    * Required. The policy to update.
+   *
    * To prevent conflicting updates, the `etag` value must match the value that
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.
diff --git a/java-iam/proto-google-iam-v2beta/clirr-ignored-differences.xml b/java-iam/proto-google-iam-v2beta/clirr-ignored-differences.xml
index 136c027be8..7c7553c4b6 100644
--- a/java-iam/proto-google-iam-v2beta/clirr-ignored-differences.xml
+++ b/java-iam/proto-google-iam-v2beta/clirr-ignored-differences.xml
@@ -1,6 +1,36 @@
 
 
 
+  
+    7002
+    com/google/iam/v2beta/*Builder
+    * addRepeatedField(*)
+  
+  
+    7002
+    com/google/iam/v2beta/*Builder
+    * clearField(*)
+  
+  
+    7002
+    com/google/iam/v2beta/*Builder
+    * clearOneof(*)
+  
+  
+    7002
+    com/google/iam/v2beta/*Builder
+    * clone()
+  
+  
+    7002
+    com/google/iam/v2beta/*Builder
+    * setField(*)
+  
+  
+    7002
+    com/google/iam/v2beta/*Builder
+    * setRepeatedField(*)
+  
   
     7012
     com/google/iam/v2beta/*OrBuilder
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java
index 370189917a..65f5f6cda6 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreatePolicyRequest();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.iam.v2beta.PolicyProto
         .internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor;
@@ -78,10 +73,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
@@ -108,10 +106,13 @@ public java.lang.String getParent() { *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
@@ -511,39 +512,6 @@ private void buildPartial0(com.google.iam.v2beta.CreatePolicyRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v2beta.CreatePolicyRequest) { @@ -639,10 +607,13 @@ public Builder mergeFrom( *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -668,10 +639,13 @@ public java.lang.String getParent() { *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -697,10 +671,13 @@ public com.google.protobuf.ByteString getParentBytes() { *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -725,10 +702,13 @@ public Builder setParent(java.lang.String value) { *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -749,10 +729,13 @@ public Builder clearParent() { *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java index 24c4fc2fb6..51a7e57106 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java @@ -29,10 +29,13 @@ public interface CreatePolicyRequestOrBuilder *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
@@ -48,10 +51,13 @@ public interface CreatePolicyRequestOrBuilder *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java index 9eae189aef..d9a1ca0ad5 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeletePolicyRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2beta.PolicyProto .internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor; @@ -78,9 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The resource name of the policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
@@ -107,9 +105,12 @@ public java.lang.String getName() { *
    * Required. The resource name of the policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
@@ -142,6 +143,7 @@ public com.google.protobuf.ByteString getNameBytes() { * Optional. The expected `etag` of the policy to delete. If the value does not match * the value that is stored in IAM, the request fails with a `409` error code * and `ABORTED` status. + * * If you omit this field, the policy is deleted regardless of its current * `etag`. *
@@ -169,6 +171,7 @@ public java.lang.String getEtag() { * Optional. The expected `etag` of the policy to delete. If the value does not match * the value that is stored in IAM, the request fails with a `409` error code * and `ABORTED` status. + * * If you omit this field, the policy is deleted regardless of its current * `etag`. *
@@ -443,39 +446,6 @@ private void buildPartial0(com.google.iam.v2beta.DeletePolicyRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v2beta.DeletePolicyRequest) { @@ -562,9 +532,12 @@ public Builder mergeFrom( *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -590,9 +563,12 @@ public java.lang.String getName() { *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -618,9 +594,12 @@ public com.google.protobuf.ByteString getNameBytes() { *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -645,9 +624,12 @@ public Builder setName(java.lang.String value) { *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -668,9 +650,12 @@ public Builder clearName() { *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -699,6 +684,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * Optional. The expected `etag` of the policy to delete. If the value does not match * the value that is stored in IAM, the request fails with a `409` error code * and `ABORTED` status. + * * If you omit this field, the policy is deleted regardless of its current * `etag`. *
@@ -725,6 +711,7 @@ public java.lang.String getEtag() { * Optional. The expected `etag` of the policy to delete. If the value does not match * the value that is stored in IAM, the request fails with a `409` error code * and `ABORTED` status. + * * If you omit this field, the policy is deleted regardless of its current * `etag`. *
@@ -751,6 +738,7 @@ public com.google.protobuf.ByteString getEtagBytes() { * Optional. The expected `etag` of the policy to delete. If the value does not match * the value that is stored in IAM, the request fails with a `409` error code * and `ABORTED` status. + * * If you omit this field, the policy is deleted regardless of its current * `etag`. *
@@ -776,6 +764,7 @@ public Builder setEtag(java.lang.String value) { * Optional. The expected `etag` of the policy to delete. If the value does not match * the value that is stored in IAM, the request fails with a `409` error code * and `ABORTED` status. + * * If you omit this field, the policy is deleted regardless of its current * `etag`. *
@@ -797,6 +786,7 @@ public Builder clearEtag() { * Optional. The expected `etag` of the policy to delete. If the value does not match * the value that is stored in IAM, the request fails with a `409` error code * and `ABORTED` status. + * * If you omit this field, the policy is deleted regardless of its current * `etag`. *
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java index 1b19529885..101572706d 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java @@ -29,9 +29,12 @@ public interface DeletePolicyRequestOrBuilder *
    * Required. The resource name of the policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
@@ -47,9 +50,12 @@ public interface DeletePolicyRequestOrBuilder *
    * Required. The resource name of the policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
@@ -67,6 +73,7 @@ public interface DeletePolicyRequestOrBuilder * Optional. The expected `etag` of the policy to delete. If the value does not match * the value that is stored in IAM, the request fails with a `409` error code * and `ABORTED` status. + * * If you omit this field, the policy is deleted regardless of its current * `etag`. *
@@ -83,6 +90,7 @@ public interface DeletePolicyRequestOrBuilder * Optional. The expected `etag` of the policy to delete. If the value does not match * the value that is stored in IAM, the request fails with a `409` error code * and `ABORTED` status. + * * If you omit this field, the policy is deleted regardless of its current * `etag`. *
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java index 2d2a3b6363..2763ff66f0 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java @@ -38,10 +38,10 @@ private DenyRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { } private DenyRule() { - deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; - exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; - deniedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + deniedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DenyRule(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2beta.DenyRuleProto .internal_static_google_iam_v2beta_DenyRule_descriptor; @@ -72,39 +67,48 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int DENIED_PRINCIPALS_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList deniedPrincipals_; + private com.google.protobuf.LazyStringArrayList deniedPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -124,32 +128,40 @@ public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() {
    * 
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -169,32 +181,40 @@ public int getDeniedPrincipalsCount() {
    * 
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -215,32 +235,40 @@ public java.lang.String getDeniedPrincipals(int index) {
    * 
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -259,7 +287,8 @@ public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) {
   public static final int EXCEPTION_PRINCIPALS_FIELD_NUMBER = 2;
 
   @SuppressWarnings("serial")
-  private com.google.protobuf.LazyStringList exceptionPrincipals_;
+  private com.google.protobuf.LazyStringArrayList exceptionPrincipals_ =
+      com.google.protobuf.LazyStringArrayList.emptyList();
   /**
    *
    *
@@ -268,6 +297,7 @@ public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) {
    * listed in the `denied_principals`. For example, you could add a Google
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
@@ -288,6 +318,7 @@ public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() {
    * listed in the `denied_principals`. For example, you could add a Google
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
@@ -308,6 +339,7 @@ public int getExceptionPrincipalsCount() {
    * listed in the `denied_principals`. For example, you could add a Google
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
@@ -329,6 +361,7 @@ public java.lang.String getExceptionPrincipals(int index) {
    * listed in the `denied_principals`. For example, you could add a Google
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
@@ -346,7 +379,8 @@ public com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index) {
   public static final int DENIED_PERMISSIONS_FIELD_NUMBER = 3;
 
   @SuppressWarnings("serial")
-  private com.google.protobuf.LazyStringList deniedPermissions_;
+  private com.google.protobuf.LazyStringArrayList deniedPermissions_ =
+      com.google.protobuf.LazyStringArrayList.emptyList();
   /**
    *
    *
@@ -421,7 +455,8 @@ public com.google.protobuf.ByteString getDeniedPermissionsBytes(int index) {
   public static final int EXCEPTION_PERMISSIONS_FIELD_NUMBER = 4;
 
   @SuppressWarnings("serial")
-  private com.google.protobuf.LazyStringList exceptionPermissions_;
+  private com.google.protobuf.LazyStringArrayList exceptionPermissions_ =
+      com.google.protobuf.LazyStringArrayList.emptyList();
   /**
    *
    *
@@ -430,6 +465,7 @@ public com.google.protobuf.ByteString getDeniedPermissionsBytes(int index) {
    * permissions given by `denied_permissions`. If a permission appears in
    * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
    * denied.
+   *
    * The excluded permissions can be specified using the same syntax as
    * `denied_permissions`.
    * 
@@ -449,6 +485,7 @@ public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() { * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -468,6 +505,7 @@ public int getExceptionPermissionsCount() { * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -488,6 +526,7 @@ public java.lang.String getExceptionPermissions(int index) { * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -510,8 +549,10 @@ public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) { * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -533,8 +574,10 @@ public boolean hasDenialCondition() { * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -556,8 +599,10 @@ public com.google.type.Expr getDenialCondition() { * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -836,14 +881,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - deniedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + deniedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); denialCondition_ = null; if (denialConditionBuilder_ != null) { denialConditionBuilder_.dispose(); @@ -875,7 +916,6 @@ public com.google.iam.v2beta.DenyRule build() { @java.lang.Override public com.google.iam.v2beta.DenyRule buildPartial() { com.google.iam.v2beta.DenyRule result = new com.google.iam.v2beta.DenyRule(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -883,70 +923,30 @@ public com.google.iam.v2beta.DenyRule buildPartial() { return result; } - private void buildPartialRepeatedFields(com.google.iam.v2beta.DenyRule result) { - if (((bitField0_ & 0x00000001) != 0)) { - deniedPrincipals_ = deniedPrincipals_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + private void buildPartial0(com.google.iam.v2beta.DenyRule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + deniedPrincipals_.makeImmutable(); + result.deniedPrincipals_ = deniedPrincipals_; } - result.deniedPrincipals_ = deniedPrincipals_; - if (((bitField0_ & 0x00000002) != 0)) { - exceptionPrincipals_ = exceptionPrincipals_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + if (((from_bitField0_ & 0x00000002) != 0)) { + exceptionPrincipals_.makeImmutable(); + result.exceptionPrincipals_ = exceptionPrincipals_; } - result.exceptionPrincipals_ = exceptionPrincipals_; - if (((bitField0_ & 0x00000004) != 0)) { - deniedPermissions_ = deniedPermissions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); + if (((from_bitField0_ & 0x00000004) != 0)) { + deniedPermissions_.makeImmutable(); + result.deniedPermissions_ = deniedPermissions_; } - result.deniedPermissions_ = deniedPermissions_; - if (((bitField0_ & 0x00000008) != 0)) { - exceptionPermissions_ = exceptionPermissions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); + if (((from_bitField0_ & 0x00000008) != 0)) { + exceptionPermissions_.makeImmutable(); + result.exceptionPermissions_ = exceptionPermissions_; } - result.exceptionPermissions_ = exceptionPermissions_; - } - - private void buildPartial0(com.google.iam.v2beta.DenyRule result) { - int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000010) != 0)) { result.denialCondition_ = denialConditionBuilder_ == null ? denialCondition_ : denialConditionBuilder_.build(); } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v2beta.DenyRule) { @@ -962,7 +962,7 @@ public Builder mergeFrom(com.google.iam.v2beta.DenyRule other) { if (!other.deniedPrincipals_.isEmpty()) { if (deniedPrincipals_.isEmpty()) { deniedPrincipals_ = other.deniedPrincipals_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensureDeniedPrincipalsIsMutable(); deniedPrincipals_.addAll(other.deniedPrincipals_); @@ -972,7 +972,7 @@ public Builder mergeFrom(com.google.iam.v2beta.DenyRule other) { if (!other.exceptionPrincipals_.isEmpty()) { if (exceptionPrincipals_.isEmpty()) { exceptionPrincipals_ = other.exceptionPrincipals_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ |= 0x00000002; } else { ensureExceptionPrincipalsIsMutable(); exceptionPrincipals_.addAll(other.exceptionPrincipals_); @@ -982,7 +982,7 @@ public Builder mergeFrom(com.google.iam.v2beta.DenyRule other) { if (!other.deniedPermissions_.isEmpty()) { if (deniedPermissions_.isEmpty()) { deniedPermissions_ = other.deniedPermissions_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ |= 0x00000004; } else { ensureDeniedPermissionsIsMutable(); deniedPermissions_.addAll(other.deniedPermissions_); @@ -992,7 +992,7 @@ public Builder mergeFrom(com.google.iam.v2beta.DenyRule other) { if (!other.exceptionPermissions_.isEmpty()) { if (exceptionPermissions_.isEmpty()) { exceptionPermissions_ = other.exceptionPermissions_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ |= 0x00000008; } else { ensureExceptionPermissionsIsMutable(); exceptionPermissions_.addAll(other.exceptionPermissions_); @@ -1081,14 +1081,14 @@ public Builder mergeFrom( private int bitField0_; - private com.google.protobuf.LazyStringList deniedPrincipals_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList deniedPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureDeniedPrincipalsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!deniedPrincipals_.isModifiable()) { deniedPrincipals_ = new com.google.protobuf.LazyStringArrayList(deniedPrincipals_); - bitField0_ |= 0x00000001; } + bitField0_ |= 0x00000001; } /** * @@ -1096,32 +1096,40 @@ private void ensureDeniedPrincipalsIsMutable() { *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1133,7 +1141,8 @@ private void ensureDeniedPrincipalsIsMutable() {
      * @return A list containing the deniedPrincipals.
      */
     public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() {
-      return deniedPrincipals_.getUnmodifiableView();
+      deniedPrincipals_.makeImmutable();
+      return deniedPrincipals_;
     }
     /**
      *
@@ -1141,32 +1150,40 @@ public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() {
      * 
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1186,32 +1203,40 @@ public int getDeniedPrincipalsCount() {
      * 
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1232,32 +1257,40 @@ public java.lang.String getDeniedPrincipals(int index) {
      * 
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1278,32 +1311,40 @@ public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) {
      * 
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1322,6 +1363,7 @@ public Builder setDeniedPrincipals(int index, java.lang.String value) {
       }
       ensureDeniedPrincipalsIsMutable();
       deniedPrincipals_.set(index, value);
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -1331,32 +1373,40 @@ public Builder setDeniedPrincipals(int index, java.lang.String value) {
      * 
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1374,6 +1424,7 @@ public Builder addDeniedPrincipals(java.lang.String value) {
       }
       ensureDeniedPrincipalsIsMutable();
       deniedPrincipals_.add(value);
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -1383,32 +1434,40 @@ public Builder addDeniedPrincipals(java.lang.String value) {
      * 
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1423,6 +1482,7 @@ public Builder addDeniedPrincipals(java.lang.String value) {
     public Builder addAllDeniedPrincipals(java.lang.Iterable values) {
       ensureDeniedPrincipalsIsMutable();
       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deniedPrincipals_);
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -1432,32 +1492,40 @@ public Builder addAllDeniedPrincipals(java.lang.Iterable value
      * 
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1469,8 +1537,9 @@ public Builder addAllDeniedPrincipals(java.lang.Iterable value
      * @return This builder for chaining.
      */
     public Builder clearDeniedPrincipals() {
-      deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList();
       bitField0_ = (bitField0_ & ~0x00000001);
+      ;
       onChanged();
       return this;
     }
@@ -1480,32 +1549,40 @@ public Builder clearDeniedPrincipals() {
      * 
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1524,18 +1601,19 @@ public Builder addDeniedPrincipalsBytes(com.google.protobuf.ByteString value) {
       checkByteStringIsUtf8(value);
       ensureDeniedPrincipalsIsMutable();
       deniedPrincipals_.add(value);
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
 
-    private com.google.protobuf.LazyStringList exceptionPrincipals_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringArrayList exceptionPrincipals_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
 
     private void ensureExceptionPrincipalsIsMutable() {
-      if (!((bitField0_ & 0x00000002) != 0)) {
+      if (!exceptionPrincipals_.isModifiable()) {
         exceptionPrincipals_ = new com.google.protobuf.LazyStringArrayList(exceptionPrincipals_);
-        bitField0_ |= 0x00000002;
       }
+      bitField0_ |= 0x00000002;
     }
     /**
      *
@@ -1545,6 +1623,7 @@ private void ensureExceptionPrincipalsIsMutable() {
      * listed in the `denied_principals`. For example, you could add a Google
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
@@ -1555,7 +1634,8 @@ private void ensureExceptionPrincipalsIsMutable() {
      * @return A list containing the exceptionPrincipals.
      */
     public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() {
-      return exceptionPrincipals_.getUnmodifiableView();
+      exceptionPrincipals_.makeImmutable();
+      return exceptionPrincipals_;
     }
     /**
      *
@@ -1565,6 +1645,7 @@ public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() {
      * listed in the `denied_principals`. For example, you could add a Google
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
@@ -1585,6 +1666,7 @@ public int getExceptionPrincipalsCount() {
      * listed in the `denied_principals`. For example, you could add a Google
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
@@ -1606,6 +1688,7 @@ public java.lang.String getExceptionPrincipals(int index) {
      * listed in the `denied_principals`. For example, you could add a Google
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
@@ -1627,6 +1710,7 @@ public com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index) {
      * listed in the `denied_principals`. For example, you could add a Google
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
@@ -1644,6 +1728,7 @@ public Builder setExceptionPrincipals(int index, java.lang.String value) {
       }
       ensureExceptionPrincipalsIsMutable();
       exceptionPrincipals_.set(index, value);
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -1655,6 +1740,7 @@ public Builder setExceptionPrincipals(int index, java.lang.String value) {
      * listed in the `denied_principals`. For example, you could add a Google
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
@@ -1671,6 +1757,7 @@ public Builder addExceptionPrincipals(java.lang.String value) {
       }
       ensureExceptionPrincipalsIsMutable();
       exceptionPrincipals_.add(value);
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -1682,6 +1769,7 @@ public Builder addExceptionPrincipals(java.lang.String value) {
      * listed in the `denied_principals`. For example, you could add a Google
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
@@ -1695,6 +1783,7 @@ public Builder addExceptionPrincipals(java.lang.String value) {
     public Builder addAllExceptionPrincipals(java.lang.Iterable values) {
       ensureExceptionPrincipalsIsMutable();
       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exceptionPrincipals_);
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -1706,6 +1795,7 @@ public Builder addAllExceptionPrincipals(java.lang.Iterable va
      * listed in the `denied_principals`. For example, you could add a Google
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
@@ -1716,8 +1806,9 @@ public Builder addAllExceptionPrincipals(java.lang.Iterable va
      * @return This builder for chaining.
      */
     public Builder clearExceptionPrincipals() {
-      exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList();
       bitField0_ = (bitField0_ & ~0x00000002);
+      ;
       onChanged();
       return this;
     }
@@ -1729,6 +1820,7 @@ public Builder clearExceptionPrincipals() {
      * listed in the `denied_principals`. For example, you could add a Google
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
@@ -1746,18 +1838,19 @@ public Builder addExceptionPrincipalsBytes(com.google.protobuf.ByteString value)
       checkByteStringIsUtf8(value);
       ensureExceptionPrincipalsIsMutable();
       exceptionPrincipals_.add(value);
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
 
-    private com.google.protobuf.LazyStringList deniedPermissions_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringArrayList deniedPermissions_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
 
     private void ensureDeniedPermissionsIsMutable() {
-      if (!((bitField0_ & 0x00000004) != 0)) {
+      if (!deniedPermissions_.isModifiable()) {
         deniedPermissions_ = new com.google.protobuf.LazyStringArrayList(deniedPermissions_);
-        bitField0_ |= 0x00000004;
       }
+      bitField0_ |= 0x00000004;
     }
     /**
      *
@@ -1774,7 +1867,8 @@ private void ensureDeniedPermissionsIsMutable() {
      * @return A list containing the deniedPermissions.
      */
     public com.google.protobuf.ProtocolStringList getDeniedPermissionsList() {
-      return deniedPermissions_.getUnmodifiableView();
+      deniedPermissions_.makeImmutable();
+      return deniedPermissions_;
     }
     /**
      *
@@ -1851,6 +1945,7 @@ public Builder setDeniedPermissions(int index, java.lang.String value) {
       }
       ensureDeniedPermissionsIsMutable();
       deniedPermissions_.set(index, value);
+      bitField0_ |= 0x00000004;
       onChanged();
       return this;
     }
@@ -1875,6 +1970,7 @@ public Builder addDeniedPermissions(java.lang.String value) {
       }
       ensureDeniedPermissionsIsMutable();
       deniedPermissions_.add(value);
+      bitField0_ |= 0x00000004;
       onChanged();
       return this;
     }
@@ -1896,6 +1992,7 @@ public Builder addDeniedPermissions(java.lang.String value) {
     public Builder addAllDeniedPermissions(java.lang.Iterable values) {
       ensureDeniedPermissionsIsMutable();
       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deniedPermissions_);
+      bitField0_ |= 0x00000004;
       onChanged();
       return this;
     }
@@ -1914,8 +2011,9 @@ public Builder addAllDeniedPermissions(java.lang.Iterable valu
      * @return This builder for chaining.
      */
     public Builder clearDeniedPermissions() {
-      deniedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      deniedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList();
       bitField0_ = (bitField0_ & ~0x00000004);
+      ;
       onChanged();
       return this;
     }
@@ -1941,18 +2039,19 @@ public Builder addDeniedPermissionsBytes(com.google.protobuf.ByteString value) {
       checkByteStringIsUtf8(value);
       ensureDeniedPermissionsIsMutable();
       deniedPermissions_.add(value);
+      bitField0_ |= 0x00000004;
       onChanged();
       return this;
     }
 
-    private com.google.protobuf.LazyStringList exceptionPermissions_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringArrayList exceptionPermissions_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
 
     private void ensureExceptionPermissionsIsMutable() {
-      if (!((bitField0_ & 0x00000008) != 0)) {
+      if (!exceptionPermissions_.isModifiable()) {
         exceptionPermissions_ = new com.google.protobuf.LazyStringArrayList(exceptionPermissions_);
-        bitField0_ |= 0x00000008;
       }
+      bitField0_ |= 0x00000008;
     }
     /**
      *
@@ -1962,6 +2061,7 @@ private void ensureExceptionPermissionsIsMutable() {
      * permissions given by `denied_permissions`. If a permission appears in
      * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
      * denied.
+     *
      * The excluded permissions can be specified using the same syntax as
      * `denied_permissions`.
      * 
@@ -1971,7 +2071,8 @@ private void ensureExceptionPermissionsIsMutable() { * @return A list containing the exceptionPermissions. */ public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() { - return exceptionPermissions_.getUnmodifiableView(); + exceptionPermissions_.makeImmutable(); + return exceptionPermissions_; } /** * @@ -1981,6 +2082,7 @@ public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() { * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -2000,6 +2102,7 @@ public int getExceptionPermissionsCount() { * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -2020,6 +2123,7 @@ public java.lang.String getExceptionPermissions(int index) { * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -2040,6 +2144,7 @@ public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) { * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -2056,6 +2161,7 @@ public Builder setExceptionPermissions(int index, java.lang.String value) { } ensureExceptionPermissionsIsMutable(); exceptionPermissions_.set(index, value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2067,6 +2173,7 @@ public Builder setExceptionPermissions(int index, java.lang.String value) { * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -2082,6 +2189,7 @@ public Builder addExceptionPermissions(java.lang.String value) { } ensureExceptionPermissionsIsMutable(); exceptionPermissions_.add(value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2093,6 +2201,7 @@ public Builder addExceptionPermissions(java.lang.String value) { * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -2105,6 +2214,7 @@ public Builder addExceptionPermissions(java.lang.String value) { public Builder addAllExceptionPermissions(java.lang.Iterable values) { ensureExceptionPermissionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exceptionPermissions_); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2116,6 +2226,7 @@ public Builder addAllExceptionPermissions(java.lang.Iterable v * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -2125,8 +2236,9 @@ public Builder addAllExceptionPermissions(java.lang.Iterable v * @return This builder for chaining. */ public Builder clearExceptionPermissions() { - exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); + ; onChanged(); return this; } @@ -2138,6 +2250,7 @@ public Builder clearExceptionPermissions() { * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -2154,6 +2267,7 @@ public Builder addExceptionPermissionsBytes(com.google.protobuf.ByteString value checkByteStringIsUtf8(value); ensureExceptionPermissionsIsMutable(); exceptionPermissions_.add(value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2169,8 +2283,10 @@ public Builder addExceptionPermissionsBytes(com.google.protobuf.ByteString value * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -2191,8 +2307,10 @@ public boolean hasDenialCondition() { * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -2219,8 +2337,10 @@ public com.google.type.Expr getDenialCondition() { * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -2249,8 +2369,10 @@ public Builder setDenialCondition(com.google.type.Expr value) { * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -2276,8 +2398,10 @@ public Builder setDenialCondition(com.google.type.Expr.Builder builderForValue) * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -2309,8 +2433,10 @@ public Builder mergeDenialCondition(com.google.type.Expr value) { * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -2336,8 +2462,10 @@ public Builder clearDenialCondition() { * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -2358,8 +2486,10 @@ public com.google.type.Expr.Builder getDenialConditionBuilder() { * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -2384,8 +2514,10 @@ public com.google.type.ExprOrBuilder getDenialConditionOrBuilder() { * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java index 30258206ce..28e0b45b8f 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java @@ -29,32 +29,40 @@ public interface DenyRuleOrBuilder *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -72,32 +80,40 @@ public interface DenyRuleOrBuilder
    * 
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -115,32 +131,40 @@ public interface DenyRuleOrBuilder
    * 
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -159,32 +183,40 @@ public interface DenyRuleOrBuilder
    * 
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -206,6 +238,7 @@ public interface DenyRuleOrBuilder
    * listed in the `denied_principals`. For example, you could add a Google
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
@@ -224,6 +257,7 @@ public interface DenyRuleOrBuilder
    * listed in the `denied_principals`. For example, you could add a Google
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
@@ -242,6 +276,7 @@ public interface DenyRuleOrBuilder
    * listed in the `denied_principals`. For example, you could add a Google
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
@@ -261,6 +296,7 @@ public interface DenyRuleOrBuilder
    * listed in the `denied_principals`. For example, you could add a Google
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
@@ -344,6 +380,7 @@ public interface DenyRuleOrBuilder
    * permissions given by `denied_permissions`. If a permission appears in
    * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
    * denied.
+   *
    * The excluded permissions can be specified using the same syntax as
    * `denied_permissions`.
    * 
@@ -361,6 +398,7 @@ public interface DenyRuleOrBuilder * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -378,6 +416,7 @@ public interface DenyRuleOrBuilder * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -396,6 +435,7 @@ public interface DenyRuleOrBuilder * permissions given by `denied_permissions`. If a permission appears in * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be * denied. + * * The excluded permissions can be specified using the same syntax as * `denied_permissions`. *
@@ -414,8 +454,10 @@ public interface DenyRuleOrBuilder * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -434,8 +476,10 @@ public interface DenyRuleOrBuilder * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other @@ -454,8 +498,10 @@ public interface DenyRuleOrBuilder * The condition that determines whether this deny rule applies to a request. * If the condition expression evaluates to `true`, then the deny rule is * applied; otherwise, the deny rule is not applied. + * * Each deny rule is evaluated independently. If this deny rule does not apply * to a request, other deny rules might still apply. + * * The condition can use CEL functions that evaluate * [resource * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java index fbe4827adc..31ac088455 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetPolicyRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2beta.PolicyProto .internal_static_google_iam_v2beta_GetPolicyRequest_descriptor; @@ -77,9 +72,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The resource name of the policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
@@ -106,9 +104,12 @@ public java.lang.String getName() { *
    * Required. The resource name of the policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
@@ -369,39 +370,6 @@ private void buildPartial0(com.google.iam.v2beta.GetPolicyRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v2beta.GetPolicyRequest) { @@ -477,9 +445,12 @@ public Builder mergeFrom( *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -505,9 +476,12 @@ public java.lang.String getName() { *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -533,9 +507,12 @@ public com.google.protobuf.ByteString getNameBytes() { *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -560,9 +537,12 @@ public Builder setName(java.lang.String value) { *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
@@ -583,9 +563,12 @@ public Builder clearName() { *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java index def786214b..589313315d 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java @@ -29,9 +29,12 @@ public interface GetPolicyRequestOrBuilder *
    * Required. The resource name of the policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
@@ -47,9 +50,12 @@ public interface GetPolicyRequestOrBuilder *
    * Required. The resource name of the policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java index 36db2f0ff0..24ce49a716 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPoliciesRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2beta.PolicyProto .internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor; @@ -79,10 +74,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. The resource that the policy is attached to, along with the kind of policy * to list. Format: * `policies/{attachment_point}/denypolicies` + * + * * The attachment point is identified by its URL-encoded full resource name, * which means that the forward-slash character, `/`, must be written as * `%2F`. For example, * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + * * For organizations and folders, use the numeric ID in the full resource * name. For projects, you can use the alphanumeric or the numeric ID. *
@@ -110,10 +108,13 @@ public java.lang.String getParent() { * Required. The resource that the policy is attached to, along with the kind of policy * to list. Format: * `policies/{attachment_point}/denypolicies` + * + * * The attachment point is identified by its URL-encoded full resource name, * which means that the forward-slash character, `/`, must be written as * `%2F`. For example, * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + * * For organizations and folders, use the numeric ID in the full resource * name. For projects, you can use the alphanumeric or the numeric ID. *
@@ -473,39 +474,6 @@ private void buildPartial0(com.google.iam.v2beta.ListPoliciesRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v2beta.ListPoliciesRequest) { @@ -602,10 +570,13 @@ public Builder mergeFrom( * Required. The resource that the policy is attached to, along with the kind of policy * to list. Format: * `policies/{attachment_point}/denypolicies` + * + * * The attachment point is identified by its URL-encoded full resource name, * which means that the forward-slash character, `/`, must be written as * `%2F`. For example, * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + * * For organizations and folders, use the numeric ID in the full resource * name. For projects, you can use the alphanumeric or the numeric ID. *
@@ -632,10 +603,13 @@ public java.lang.String getParent() { * Required. The resource that the policy is attached to, along with the kind of policy * to list. Format: * `policies/{attachment_point}/denypolicies` + * + * * The attachment point is identified by its URL-encoded full resource name, * which means that the forward-slash character, `/`, must be written as * `%2F`. For example, * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + * * For organizations and folders, use the numeric ID in the full resource * name. For projects, you can use the alphanumeric or the numeric ID. *
@@ -662,10 +636,13 @@ public com.google.protobuf.ByteString getParentBytes() { * Required. The resource that the policy is attached to, along with the kind of policy * to list. Format: * `policies/{attachment_point}/denypolicies` + * + * * The attachment point is identified by its URL-encoded full resource name, * which means that the forward-slash character, `/`, must be written as * `%2F`. For example, * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + * * For organizations and folders, use the numeric ID in the full resource * name. For projects, you can use the alphanumeric or the numeric ID. *
@@ -691,10 +668,13 @@ public Builder setParent(java.lang.String value) { * Required. The resource that the policy is attached to, along with the kind of policy * to list. Format: * `policies/{attachment_point}/denypolicies` + * + * * The attachment point is identified by its URL-encoded full resource name, * which means that the forward-slash character, `/`, must be written as * `%2F`. For example, * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + * * For organizations and folders, use the numeric ID in the full resource * name. For projects, you can use the alphanumeric or the numeric ID. *
@@ -716,10 +696,13 @@ public Builder clearParent() { * Required. The resource that the policy is attached to, along with the kind of policy * to list. Format: * `policies/{attachment_point}/denypolicies` + * + * * The attachment point is identified by its URL-encoded full resource name, * which means that the forward-slash character, `/`, must be written as * `%2F`. For example, * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + * * For organizations and folders, use the numeric ID in the full resource * name. For projects, you can use the alphanumeric or the numeric ID. *
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java index 3090b50243..1370a31505 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java @@ -30,10 +30,13 @@ public interface ListPoliciesRequestOrBuilder * Required. The resource that the policy is attached to, along with the kind of policy * to list. Format: * `policies/{attachment_point}/denypolicies` + * + * * The attachment point is identified by its URL-encoded full resource name, * which means that the forward-slash character, `/`, must be written as * `%2F`. For example, * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + * * For organizations and folders, use the numeric ID in the full resource * name. For projects, you can use the alphanumeric or the numeric ID. * @@ -50,10 +53,13 @@ public interface ListPoliciesRequestOrBuilder * Required. The resource that the policy is attached to, along with the kind of policy * to list. Format: * `policies/{attachment_point}/denypolicies` + * + * * The attachment point is identified by its URL-encoded full resource name, * which means that the forward-slash character, `/`, must be written as * `%2F`. For example, * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + * * For organizations and folders, use the numeric ID in the full resource * name. For projects, you can use the alphanumeric or the numeric ID. * diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java index 423bc3f3ff..388e703aa4 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPoliciesResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2beta.PolicyProto .internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor; @@ -463,39 +458,6 @@ private void buildPartial0(com.google.iam.v2beta.ListPoliciesResponse result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v2beta.ListPoliciesResponse) { diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java index 55ce515fb5..708315bd33 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java @@ -52,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Policy(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_Policy_descriptor; } @@ -91,10 +86,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { *
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, requests can use the alphanumeric or the numeric ID.
    * Responses always contain the numeric ID.
@@ -122,10 +120,13 @@ public java.lang.String getName() {
    * 
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, requests can use the alphanumeric or the numeric ID.
    * Responses always contain the numeric ID.
@@ -423,6 +424,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
    * An opaque tag that identifies the current version of the `Policy`. IAM uses
    * this value to help manage concurrent updates, so they do not cause one
    * update to be overwritten by another.
+   *
    * If this field is present in a [CreatePolicy][] request, the value is
    * ignored.
    * 
@@ -450,6 +452,7 @@ public java.lang.String getEtag() { * An opaque tag that identifies the current version of the `Policy`. IAM uses * this value to help manage concurrent updates, so they do not cause one * update to be overwritten by another. + * * If this field is present in a [CreatePolicy][] request, the value is * ignored. *
@@ -1119,39 +1122,6 @@ private void buildPartial0(com.google.iam.v2beta.Policy result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v2beta.Policy) { @@ -1351,10 +1321,13 @@ public Builder mergeFrom( *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, requests can use the alphanumeric or the numeric ID.
      * Responses always contain the numeric ID.
@@ -1381,10 +1354,13 @@ public java.lang.String getName() {
      * 
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, requests can use the alphanumeric or the numeric ID.
      * Responses always contain the numeric ID.
@@ -1411,10 +1387,13 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, requests can use the alphanumeric or the numeric ID.
      * Responses always contain the numeric ID.
@@ -1440,10 +1419,13 @@ public Builder setName(java.lang.String value) {
      * 
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, requests can use the alphanumeric or the numeric ID.
      * Responses always contain the numeric ID.
@@ -1465,10 +1447,13 @@ public Builder clearName() {
      * 
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, requests can use the alphanumeric or the numeric ID.
      * Responses always contain the numeric ID.
@@ -1999,6 +1984,7 @@ public Builder putAllAnnotations(java.util.Map
@@ -2025,6 +2011,7 @@ public java.lang.String getEtag() {
      * An opaque tag that identifies the current version of the `Policy`. IAM uses
      * this value to help manage concurrent updates, so they do not cause one
      * update to be overwritten by another.
+     *
      * If this field is present in a [CreatePolicy][] request, the value is
      * ignored.
      * 
@@ -2051,6 +2038,7 @@ public com.google.protobuf.ByteString getEtagBytes() { * An opaque tag that identifies the current version of the `Policy`. IAM uses * this value to help manage concurrent updates, so they do not cause one * update to be overwritten by another. + * * If this field is present in a [CreatePolicy][] request, the value is * ignored. *
@@ -2076,6 +2064,7 @@ public Builder setEtag(java.lang.String value) { * An opaque tag that identifies the current version of the `Policy`. IAM uses * this value to help manage concurrent updates, so they do not cause one * update to be overwritten by another. + * * If this field is present in a [CreatePolicy][] request, the value is * ignored. *
@@ -2097,6 +2086,7 @@ public Builder clearEtag() { * An opaque tag that identifies the current version of the `Policy`. IAM uses * this value to help manage concurrent updates, so they do not cause one * update to be overwritten by another. + * * If this field is present in a [CreatePolicy][] request, the value is * ignored. *
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java index 7c1c6a9bb9..e64fe2d448 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PolicyOperationMetadata(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2beta.PolicyProto .internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor; @@ -360,39 +355,6 @@ private void buildPartial0(com.google.iam.v2beta.PolicyOperationMetadata result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v2beta.PolicyOperationMetadata) { diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java index a1a4d2a7b2..2c6929cd7e 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java @@ -29,10 +29,13 @@ public interface PolicyOrBuilder *
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, requests can use the alphanumeric or the numeric ID.
    * Responses always contain the numeric ID.
@@ -49,10 +52,13 @@ public interface PolicyOrBuilder
    * 
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, requests can use the alphanumeric or the numeric ID.
    * Responses always contain the numeric ID.
@@ -213,6 +219,7 @@ java.lang.String getAnnotationsOrDefault(
    * An opaque tag that identifies the current version of the `Policy`. IAM uses
    * this value to help manage concurrent updates, so they do not cause one
    * update to be overwritten by another.
+   *
    * If this field is present in a [CreatePolicy][] request, the value is
    * ignored.
    * 
@@ -229,6 +236,7 @@ java.lang.String getAnnotationsOrDefault( * An opaque tag that identifies the current version of the `Policy`. IAM uses * this value to help manage concurrent updates, so they do not cause one * update to be overwritten by another. + * * If this field is present in a [CreatePolicy][] request, the value is * ignored. *
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java index ac3be8e6d1..fab21840a2 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java @@ -82,59 +82,59 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ield_behavior.proto\032\034google/iam/v2beta/d" + "eny.proto\032#google/longrunning/operations" + ".proto\032\037google/protobuf/timestamp.proto\"" - + "\251\003\n\006Policy\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\020\n\003uid\030\002 \001" - + "(\tB\003\340A\005\022\021\n\004kind\030\003 \001(\tB\003\340A\003\022\024\n\014display_na" - + "me\030\004 \001(\t\022?\n\013annotations\030\005 \003(\0132*.google.i" - + "am.v2beta.Policy.AnnotationsEntry\022\014\n\004eta" - + "g\030\006 \001(\t\0224\n\013create_time\030\007 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\0224\n\013update_time\030\010 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013d" - + "elete_time\030\t \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\022,\n\005rules\030\n \003(\0132\035.google.iam.v2" - + "beta.PolicyRule\0322\n\020AnnotationsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"[\n\nPolicyRul" - + "e\0220\n\tdeny_rule\030\002 \001(\0132\033.google.iam.v2beta" - + ".DenyRuleH\000\022\023\n\013description\030\001 \001(\tB\006\n\004kind" - + "\"Q\n\023ListPoliciesRequest\022\023\n\006parent\030\001 \001(\tB" - + "\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " - + "\001(\t\"\\\n\024ListPoliciesResponse\022+\n\010policies\030" - + "\001 \003(\0132\031.google.iam.v2beta.Policy\022\027\n\017next" - + "_page_token\030\002 \001(\t\"%\n\020GetPolicyRequest\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\"m\n\023CreatePolicyRequest\022" - + "\023\n\006parent\030\001 \001(\tB\003\340A\002\022.\n\006policy\030\002 \001(\0132\031.g" - + "oogle.iam.v2beta.PolicyB\003\340A\002\022\021\n\tpolicy_i" - + "d\030\003 \001(\t\"E\n\023UpdatePolicyRequest\022.\n\006policy" - + "\030\001 \001(\0132\031.google.iam.v2beta.PolicyB\003\340A\002\";" - + "\n\023DeletePolicyRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002" - + "\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"J\n\027PolicyOperationMe" - + "tadata\022/\n\013create_time\030\001 \001(\0132\032.google.pro" - + "tobuf.Timestamp2\200\007\n\010Policies\022\217\001\n\014ListPol" - + "icies\022&.google.iam.v2beta.ListPoliciesRe" - + "quest\032\'.google.iam.v2beta.ListPoliciesRe" - + "sponse\".\202\323\344\223\002\037\022\035/v2beta/{parent=policies" - + "/*/*}\332A\006parent\022y\n\tGetPolicy\022#.google.iam" - + ".v2beta.GetPolicyRequest\032\031.google.iam.v2" - + "beta.Policy\",\202\323\344\223\002\037\022\035/v2beta/{name=polic" - + "ies/*/*/*}\332A\004name\022\302\001\n\014CreatePolicy\022&.goo" - + "gle.iam.v2beta.CreatePolicyRequest\032\035.goo" - + "gle.longrunning.Operation\"k\202\323\344\223\002\'\"\035/v2be" - + "ta/{parent=policies/*/*}:\006policy\332A\027paren" - + "t,policy,policy_id\312A!\n\006Policy\022\027PolicyOpe" - + "rationMetadata\022\257\001\n\014UpdatePolicy\022&.google" - + ".iam.v2beta.UpdatePolicyRequest\032\035.google" - + ".longrunning.Operation\"X\202\323\344\223\002.\032$/v2beta/" - + "{policy.name=policies/*/*/*}:\006policy\312A!\n" - + "\006Policy\022\027PolicyOperationMetadata\022\247\001\n\014Del" - + "etePolicy\022&.google.iam.v2beta.DeletePoli" - + "cyRequest\032\035.google.longrunning.Operation" - + "\"P\202\323\344\223\002\037*\035/v2beta/{name=policies/*/*/*}\332" - + "A\004name\312A!\n\006Policy\022\027PolicyOperationMetada" - + "ta\032F\312A\022iam.googleapis.com\322A.https://www." - + "googleapis.com/auth/cloud-platformB\211\001\n\025c" - + "om.google.iam.v2betaB\013PolicyProtoP\001Z-clo" - + "ud.google.com/go/iam/apiv2beta/iampb;iam" - + "pb\252\002\027Google.Cloud.Iam.V2Beta\312\002\027Google\\Cl" - + "oud\\Iam\\V2betab\006proto3" + + "\257\003\n\006Policy\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022\021\n\003uid\030\002 " + + "\001(\tB\004\342A\001\005\022\022\n\004kind\030\003 \001(\tB\004\342A\001\003\022\024\n\014display" + + "_name\030\004 \001(\t\022?\n\013annotations\030\005 \003(\0132*.googl" + + "e.iam.v2beta.Policy.AnnotationsEntry\022\014\n\004" + + "etag\030\006 \001(\t\0225\n\013create_time\030\007 \001(\0132\032.google" + + ".protobuf.TimestampB\004\342A\001\003\0225\n\013update_time" + + "\030\010 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" + + "\0225\n\013delete_time\030\t \001(\0132\032.google.protobuf." + + "TimestampB\004\342A\001\003\022,\n\005rules\030\n \003(\0132\035.google." + + "iam.v2beta.PolicyRule\0322\n\020AnnotationsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"[\n\nPol" + + "icyRule\0220\n\tdeny_rule\030\002 \001(\0132\033.google.iam." + + "v2beta.DenyRuleH\000\022\023\n\013description\030\001 \001(\tB\006" + + "\n\004kind\"R\n\023ListPoliciesRequest\022\024\n\006parent\030" + + "\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" + + "oken\030\003 \001(\t\"\\\n\024ListPoliciesResponse\022+\n\010po" + + "licies\030\001 \003(\0132\031.google.iam.v2beta.Policy\022" + + "\027\n\017next_page_token\030\002 \001(\t\"&\n\020GetPolicyReq" + + "uest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\"o\n\023CreatePolicy" + + "Request\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022/\n\006policy\030" + + "\002 \001(\0132\031.google.iam.v2beta.PolicyB\004\342A\001\002\022\021" + + "\n\tpolicy_id\030\003 \001(\t\"F\n\023UpdatePolicyRequest" + + "\022/\n\006policy\030\001 \001(\0132\031.google.iam.v2beta.Pol" + + "icyB\004\342A\001\002\"=\n\023DeletePolicyRequest\022\022\n\004name" + + "\030\001 \001(\tB\004\342A\001\002\022\022\n\004etag\030\002 \001(\tB\004\342A\001\001\"J\n\027Poli" + + "cyOperationMetadata\022/\n\013create_time\030\001 \001(\013" + + "2\032.google.protobuf.Timestamp2\200\007\n\010Policie" + + "s\022\217\001\n\014ListPolicies\022&.google.iam.v2beta.L" + + "istPoliciesRequest\032\'.google.iam.v2beta.L" + + "istPoliciesResponse\".\332A\006parent\202\323\344\223\002\037\022\035/v" + + "2beta/{parent=policies/*/*}\022y\n\tGetPolicy" + + "\022#.google.iam.v2beta.GetPolicyRequest\032\031." + + "google.iam.v2beta.Policy\",\332A\004name\202\323\344\223\002\037\022" + + "\035/v2beta/{name=policies/*/*/*}\022\302\001\n\014Creat" + + "ePolicy\022&.google.iam.v2beta.CreatePolicy" + + "Request\032\035.google.longrunning.Operation\"k" + + "\312A!\n\006Policy\022\027PolicyOperationMetadata\332A\027p" + + "arent,policy,policy_id\202\323\344\223\002\'\"\035/v2beta/{p" + + "arent=policies/*/*}:\006policy\022\257\001\n\014UpdatePo" + + "licy\022&.google.iam.v2beta.UpdatePolicyReq" + + "uest\032\035.google.longrunning.Operation\"X\312A!" + + "\n\006Policy\022\027PolicyOperationMetadata\202\323\344\223\002.\032" + + "$/v2beta/{policy.name=policies/*/*/*}:\006p" + + "olicy\022\247\001\n\014DeletePolicy\022&.google.iam.v2be" + + "ta.DeletePolicyRequest\032\035.google.longrunn" + + "ing.Operation\"P\312A!\n\006Policy\022\027PolicyOperat" + + "ionMetadata\332A\004name\202\323\344\223\002\037*\035/v2beta/{name=" + + "policies/*/*/*}\032F\312A\022iam.googleapis.com\322A" + + ".https://www.googleapis.com/auth/cloud-p" + + "latformB\211\001\n\025com.google.iam.v2betaB\013Polic" + + "yProtoP\001Z-cloud.google.com/go/iam/apiv2b" + + "eta/iampb;iampb\252\002\027Google.Cloud.Iam.V2Bet" + + "a\312\002\027Google\\Cloud\\Iam\\V2betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java index 8da3bc2c5e..c326c9b44e 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PolicyRule(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2beta.PolicyProto .internal_static_google_iam_v2beta_PolicyRule_descriptor; @@ -67,6 +62,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int kindCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object kind_; public enum KindCase @@ -489,39 +486,6 @@ private void buildPartialOneofs(com.google.iam.v2beta.PolicyRule result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v2beta.PolicyRule) { diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java index 1c71f86bff..f6463abdbb 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java @@ -85,5 +85,5 @@ public interface PolicyRuleOrBuilder */ com.google.protobuf.ByteString getDescriptionBytes(); - public com.google.iam.v2beta.PolicyRule.KindCase getKindCase(); + com.google.iam.v2beta.PolicyRule.KindCase getKindCase(); } diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java index 97a01efac9..ef0b3c287f 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdatePolicyRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2beta.PolicyProto .internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor; @@ -72,6 +67,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The policy to update.
+   *
    * To prevent conflicting updates, the `etag` value must match the value that
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.
@@ -90,6 +86,7 @@ public boolean hasPolicy() {
    *
    * 
    * Required. The policy to update.
+   *
    * To prevent conflicting updates, the `etag` value must match the value that
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.
@@ -108,6 +105,7 @@ public com.google.iam.v2beta.Policy getPolicy() {
    *
    * 
    * Required. The policy to update.
+   *
    * To prevent conflicting updates, the `etag` value must match the value that
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.
@@ -369,39 +367,6 @@ private void buildPartial0(com.google.iam.v2beta.UpdatePolicyRequest result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.iam.v2beta.UpdatePolicyRequest) {
@@ -479,6 +444,7 @@ public Builder mergeFrom(
      *
      * 
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -496,6 +462,7 @@ public boolean hasPolicy() {
      *
      * 
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -517,6 +484,7 @@ public com.google.iam.v2beta.Policy getPolicy() {
      *
      * 
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -542,6 +510,7 @@ public Builder setPolicy(com.google.iam.v2beta.Policy value) {
      *
      * 
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -564,6 +533,7 @@ public Builder setPolicy(com.google.iam.v2beta.Policy.Builder builderForValue) {
      *
      * 
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -592,6 +562,7 @@ public Builder mergePolicy(com.google.iam.v2beta.Policy value) {
      *
      * 
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -614,6 +585,7 @@ public Builder clearPolicy() {
      *
      * 
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -631,6 +603,7 @@ public com.google.iam.v2beta.Policy.Builder getPolicyBuilder() {
      *
      * 
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -650,6 +623,7 @@ public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() {
      *
      * 
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java
index ffbd2892e1..231607713a 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java
@@ -28,6 +28,7 @@ public interface UpdatePolicyRequestOrBuilder
    *
    * 
    * Required. The policy to update.
+   *
    * To prevent conflicting updates, the `etag` value must match the value that
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.
@@ -43,6 +44,7 @@ public interface UpdatePolicyRequestOrBuilder
    *
    * 
    * Required. The policy to update.
+   *
    * To prevent conflicting updates, the `etag` value must match the value that
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.
@@ -58,6 +60,7 @@ public interface UpdatePolicyRequestOrBuilder
    *
    * 
    * Required. The policy to update.
+   *
    * To prevent conflicting updates, the `etag` value must match the value that
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.

From 99b0c967fbed22967cd072825de403ed9bac0209 Mon Sep 17 00:00:00 2001
From: Alice <65933803+alicejli@users.noreply.github.com>
Date: Wed, 24 May 2023 10:23:19 -0400
Subject: [PATCH 14/17] fix: fix release tag workflow to fetch all tags first
 (#1700)

---
 .github/workflows/create_additional_release_tag.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.github/workflows/create_additional_release_tag.yaml b/.github/workflows/create_additional_release_tag.yaml
index 96feb1e790..419cab0ac6 100644
--- a/.github/workflows/create_additional_release_tag.yaml
+++ b/.github/workflows/create_additional_release_tag.yaml
@@ -20,6 +20,9 @@ jobs:
         git config --local user.email "action@github.com"
         git config --local user.name "GitHub Action"
 
+    - name: Fetch all tags
+      run: git fetch --tags
+
     - name: Create additional tags
       run: |
         ARTIFACT_IDS=('google-cloud-shared-dependencies' 'api-common' 'gax')

From b204f3f6ea0528edd0d642538a892c3a53aba251 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
 <55107282+release-please[bot]@users.noreply.github.com>
Date: Wed, 24 May 2023 11:33:19 -0400
Subject: [PATCH 15/17] chore(main): release 2.20.0 (#1674)

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
 CHANGELOG.md                                  | 20 ++++++++++++
 WORKSPACE                                     |  2 +-
 api-common-java/pom.xml                       |  4 +--
 coverage-report/pom.xml                       |  8 ++---
 gapic-generator-java-bom/pom.xml              | 26 +++++++--------
 gapic-generator-java-pom-parent/pom.xml       |  2 +-
 gapic-generator-java/pom.xml                  |  6 ++--
 gax-java/dependencies.properties              |  8 ++---
 gax-java/gax-bom/pom.xml                      | 20 ++++++------
 gax-java/gax-grpc/pom.xml                     |  4 +--
 gax-java/gax-httpjson/pom.xml                 |  4 +--
 gax-java/gax/pom.xml                          |  4 +--
 gax-java/pom.xml                              | 14 ++++----
 .../grpc-google-common-protos/pom.xml         |  4 +--
 java-common-protos/pom.xml                    |  8 ++---
 .../proto-google-common-protos/pom.xml        |  4 +--
 java-core/google-cloud-core-bom/pom.xml       | 10 +++---
 java-core/google-cloud-core-grpc/pom.xml      |  4 +--
 java-core/google-cloud-core-http/pom.xml      |  4 +--
 java-core/google-cloud-core/pom.xml           |  4 +--
 java-core/pom.xml                             |  6 ++--
 java-iam/grpc-google-iam-v1/pom.xml           |  4 +--
 java-iam/grpc-google-iam-v2/pom.xml           |  4 +--
 java-iam/grpc-google-iam-v2beta/pom.xml       |  4 +--
 java-iam/pom.xml                              | 20 ++++++------
 java-iam/proto-google-iam-v1/pom.xml          |  4 +--
 java-iam/proto-google-iam-v2/pom.xml          |  4 +--
 java-iam/proto-google-iam-v2beta/pom.xml      |  4 +--
 .../dependency-convergence-check/pom.xml      |  2 +-
 .../first-party-dependencies/pom.xml          | 10 +++---
 java-shared-dependencies/pom.xml              |  8 ++---
 .../third-party-dependencies/pom.xml          |  2 +-
 .../upper-bound-check/pom.xml                 |  4 +--
 showcase/pom.xml                              |  2 +-
 versions.txt                                  | 32 +++++++++----------
 35 files changed, 145 insertions(+), 125 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 60f3543a30..2af5864dd4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,25 @@
 # Changelog
 
+## [2.20.0](https://github.com/googleapis/sdk-platform-java/compare/v2.19.0...v2.20.0) (2023-05-24)
+
+
+### Features
+
+* Create additional tag on release for google-cloud-shared-dependencies ([#1692](https://github.com/googleapis/sdk-platform-java/issues/1692)) ([c0ea245](https://github.com/googleapis/sdk-platform-java/commit/c0ea24588de744a46600fcf6f0f3c6414549e12d))
+* Make stream wait timeout a first class citizen ([#1473](https://github.com/googleapis/sdk-platform-java/issues/1473)) ([bc8a4ad](https://github.com/googleapis/sdk-platform-java/commit/bc8a4ad864f4d6f2b9d98e5fe296320fea19e74b))
+
+
+### Bug Fixes
+
+* Fix release tag workflow to fetch all tags first ([#1700](https://github.com/googleapis/sdk-platform-java/issues/1700)) ([99b0c96](https://github.com/googleapis/sdk-platform-java/commit/99b0c967fbed22967cd072825de403ed9bac0209))
+* Update tag workflow ([#1699](https://github.com/googleapis/sdk-platform-java/issues/1699)) ([a988fe7](https://github.com/googleapis/sdk-platform-java/commit/a988fe7dcfc8568c9256c22b5df907b16e5eea5a))
+
+
+### Dependencies
+
+* Update protobuf dependencies to v3.23.1 and gprc to 1.55.1 ([#1698](https://github.com/googleapis/sdk-platform-java/issues/1698)) ([1f56175](https://github.com/googleapis/sdk-platform-java/commit/1f561754ed9e797f639cbdfabe070b86b645281b))
+* Update showcase version to 0.28.1 ([#1673](https://github.com/googleapis/sdk-platform-java/issues/1673)) ([9a120e9](https://github.com/googleapis/sdk-platform-java/commit/9a120e98524018fa54ae5dcbe2fb0f524c2a0f1b))
+
 ## [2.19.0](https://github.com/googleapis/gapic-generator-java/compare/v2.18.0...v2.19.0) (2023-05-09)
 
 
diff --git a/WORKSPACE b/WORKSPACE
index 62b1e8e511..ccf71d1064 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -60,7 +60,7 @@ maven_install(
     repositories = ["https://repo.maven.apache.org/maven2/"],
 )
 
-_gapic_generator_java_version = "2.19.1-SNAPSHOT"  # {x-version-update:gapic-generator-java:current}
+_gapic_generator_java_version = "2.20.0"  # {x-version-update:gapic-generator-java:current}
 
 maven_install(
     artifacts = [
diff --git a/api-common-java/pom.xml b/api-common-java/pom.xml
index fe8612850a..b6d60a250a 100644
--- a/api-common-java/pom.xml
+++ b/api-common-java/pom.xml
@@ -5,14 +5,14 @@
     com.google.api
     api-common
     jar
-    2.10.1-SNAPSHOT
+    2.11.0
     API Common
     Common utilities for Google APIs in Java
 
     
         com.google.api
         gapic-generator-java-pom-parent
-        2.19.1-SNAPSHOT
+        2.20.0
         ../gapic-generator-java-pom-parent
     
 
diff --git a/coverage-report/pom.xml b/coverage-report/pom.xml
index 328841a20c..64b49454b9 100644
--- a/coverage-report/pom.xml
+++ b/coverage-report/pom.xml
@@ -31,22 +31,22 @@
             
                 com.google.api
                 gax
-                2.27.1-SNAPSHOT 
+                2.28.0 
             
             
                 com.google.api
                 gax-grpc
-                2.27.1-SNAPSHOT 
+                2.28.0 
             
             
                 com.google.api
                 gax-httpjson
-                0.112.1-SNAPSHOT 
+                0.113.0 
             
             
                 com.google.api
                 api-common
-                2.10.1-SNAPSHOT 
+                2.11.0 
             
         
 
diff --git a/gapic-generator-java-bom/pom.xml b/gapic-generator-java-bom/pom.xml
index a383d77b3f..a5150b4c8b 100644
--- a/gapic-generator-java-bom/pom.xml
+++ b/gapic-generator-java-bom/pom.xml
@@ -4,7 +4,7 @@
   com.google.api
   gapic-generator-java-bom
   pom
-  2.19.1-SNAPSHOT
+  2.20.0
   GAPIC Generator Java BOM
   
     BOM for the libraries in gapic-generator-java repository. Users should not
@@ -15,7 +15,7 @@
   
     com.google.api
     gapic-generator-java-pom-parent
-    2.19.1-SNAPSHOT
+    2.20.0
     ../gapic-generator-java-pom-parent
   
 
@@ -60,61 +60,61 @@
       
         com.google.api
         api-common
-        2.10.1-SNAPSHOT
+        2.11.0
       
       
         com.google.api
         gax-bom
-        2.27.1-SNAPSHOT
+        2.28.0
         pom
         import
       
       
         com.google.api
         gapic-generator-java
-        2.19.1-SNAPSHOT
+        2.20.0
       
       
         com.google.api.grpc
         grpc-google-common-protos
-        2.18.1-SNAPSHOT
+        2.19.0
       
       
         com.google.api.grpc
         proto-google-common-protos
-        2.18.1-SNAPSHOT
+        2.19.0
       
       
         com.google.api.grpc
         proto-google-iam-v1
-        1.13.1-SNAPSHOT
+        1.14.0
       
       
         com.google.api.grpc
         proto-google-iam-v2
-        1.13.1-SNAPSHOT
+        1.14.0
       
       
         com.google.api.grpc
         proto-google-iam-v2beta
-        1.13.1-SNAPSHOT
+        1.14.0
       
 
       
       
         com.google.api.grpc
         grpc-google-iam-v1
-        1.13.1-SNAPSHOT
+        1.14.0
       
       
         com.google.api.grpc
         grpc-google-iam-v2
-        1.13.1-SNAPSHOT
+        1.14.0
       
       
         com.google.api.grpc
         grpc-google-iam-v2beta
-        1.13.1-SNAPSHOT
+        1.14.0
       
     
 
diff --git a/gapic-generator-java-pom-parent/pom.xml b/gapic-generator-java-pom-parent/pom.xml
index ed66254ab8..bfdbbe78cb 100644
--- a/gapic-generator-java-pom-parent/pom.xml
+++ b/gapic-generator-java-pom-parent/pom.xml
@@ -5,7 +5,7 @@
   4.0.0
   com.google.api
   gapic-generator-java-pom-parent
-  2.19.1-SNAPSHOT
+  2.20.0
   pom
   GAPIC Generator Java POM Parent
   https://github.com/googleapis/sdk-platform-java
diff --git a/gapic-generator-java/pom.xml b/gapic-generator-java/pom.xml
index 092c5f8359..d9d18ba96f 100644
--- a/gapic-generator-java/pom.xml
+++ b/gapic-generator-java/pom.xml
@@ -4,7 +4,7 @@
   4.0.0
   com.google.api
   gapic-generator-java
-  2.19.1-SNAPSHOT
+  2.20.0
   GAPIC Generator Java
   GAPIC generator Java
 
@@ -23,7 +23,7 @@
   
     com.google.api
     gapic-generator-java-pom-parent
-    2.19.1-SNAPSHOT
+    2.20.0
     ../gapic-generator-java-pom-parent
   
 
@@ -32,7 +32,7 @@
       
         com.google.api
         gapic-generator-java-bom
-        2.19.1-SNAPSHOT
+        2.20.0
         pom
         import
       
diff --git a/gax-java/dependencies.properties b/gax-java/dependencies.properties
index d5454f5b37..0b7373d33f 100644
--- a/gax-java/dependencies.properties
+++ b/gax-java/dependencies.properties
@@ -8,16 +8,16 @@
 
 # Versions of oneself
 # {x-version-update-start:gax:current}
-version.gax=2.27.1-SNAPSHOT
+version.gax=2.28.0
 # {x-version-update-end}
 # {x-version-update-start:gax:current}
-version.gax_grpc=2.27.1-SNAPSHOT
+version.gax_grpc=2.28.0
 # {x-version-update-end}
 # {x-version-update-start:gax:current}
-version.gax_bom=2.27.1-SNAPSHOT
+version.gax_bom=2.28.0
 # {x-version-update-end}
 # {x-version-update-start:gax-httpjson:current}
-version.gax_httpjson=0.112.1-SNAPSHOT
+version.gax_httpjson=0.113.0
 # {x-version-update-end}
 
 # Versions for dependencies which actual artifacts differ between Bazel and Gradle.
diff --git a/gax-java/gax-bom/pom.xml b/gax-java/gax-bom/pom.xml
index d88566a6dc..c91bc97e44 100644
--- a/gax-java/gax-bom/pom.xml
+++ b/gax-java/gax-bom/pom.xml
@@ -3,7 +3,7 @@
   4.0.0
   com.google.api
   gax-bom
-  2.27.1-SNAPSHOT
+  2.28.0
   pom
   GAX (Google Api eXtensions) for Java (BOM)
   Google Api eXtensions for Java (BOM)
@@ -43,55 +43,55 @@
       
         com.google.api
         gax
-        2.27.1-SNAPSHOT
+        2.28.0
       
       
         com.google.api
         gax
-        2.27.1-SNAPSHOT
+        2.28.0
         test-jar
         testlib
       
       
         com.google.api
         gax
-        2.27.1-SNAPSHOT
+        2.28.0
         testlib
       
       
         com.google.api
         gax-grpc
-        2.27.1-SNAPSHOT
+        2.28.0
       
       
         com.google.api
         gax-grpc
-        2.27.1-SNAPSHOT
+        2.28.0
         test-jar
         testlib
       
       
         com.google.api
         gax-grpc
-        2.27.1-SNAPSHOT
+        2.28.0
         testlib
       
       
         com.google.api
         gax-httpjson
-        0.112.1-SNAPSHOT
+        0.113.0
       
       
         com.google.api
         gax-httpjson
-        0.112.1-SNAPSHOT
+        0.113.0
         test-jar
         testlib
       
       
         com.google.api
         gax-httpjson
-        0.112.1-SNAPSHOT
+        0.113.0
         testlib
       
     
diff --git a/gax-java/gax-grpc/pom.xml b/gax-java/gax-grpc/pom.xml
index 8fec881745..24ddf256cb 100644
--- a/gax-java/gax-grpc/pom.xml
+++ b/gax-java/gax-grpc/pom.xml
@@ -3,7 +3,7 @@
   4.0.0
 
   gax-grpc
-  2.27.1-SNAPSHOT
+  2.28.0
   jar
   GAX (Google Api eXtensions) for Java (gRPC)
   Google Api eXtensions for Java (gRPC)
@@ -11,7 +11,7 @@
   
     com.google.api
     gax-parent
-    2.27.1-SNAPSHOT
+    2.28.0
   
 
   
diff --git a/gax-java/gax-httpjson/pom.xml b/gax-java/gax-httpjson/pom.xml
index 60b6c2efb8..b248322b43 100644
--- a/gax-java/gax-httpjson/pom.xml
+++ b/gax-java/gax-httpjson/pom.xml
@@ -3,7 +3,7 @@
   4.0.0
 
   gax-httpjson
-  0.112.1-SNAPSHOT 
+  0.113.0 
   jar
   GAX (Google Api eXtensions) for Java (HTTP JSON)
   Google Api eXtensions for Java (HTTP JSON)
@@ -11,7 +11,7 @@
   
     com.google.api
     gax-parent
-    2.27.1-SNAPSHOT
+    2.28.0
   
 
   
diff --git a/gax-java/gax/pom.xml b/gax-java/gax/pom.xml
index 7d2864b00d..229a5782c3 100644
--- a/gax-java/gax/pom.xml
+++ b/gax-java/gax/pom.xml
@@ -3,7 +3,7 @@
   4.0.0
 
   gax
-  2.27.1-SNAPSHOT
+  2.28.0
   jar
   GAX (Google Api eXtensions) for Java (Core)
   Google Api eXtensions for Java (Core)
@@ -11,7 +11,7 @@
   
     com.google.api
     gax-parent
-    2.27.1-SNAPSHOT
+    2.28.0
   
 
   
diff --git a/gax-java/pom.xml b/gax-java/pom.xml
index ba70db393e..0f6e091b63 100644
--- a/gax-java/pom.xml
+++ b/gax-java/pom.xml
@@ -4,14 +4,14 @@
   com.google.api
   gax-parent
   pom
-  2.27.1-SNAPSHOT
+  2.28.0
   GAX (Google Api eXtensions) for Java (Parent)
   Google Api eXtensions for Java (Parent)
 
   
     com.google.api
     gapic-generator-java-pom-parent
-    2.19.1-SNAPSHOT
+    2.20.0
     ../gapic-generator-java-pom-parent
   
 
@@ -51,7 +51,7 @@
       
         com.google.api
         api-common
-        2.10.1-SNAPSHOT
+        2.11.0
       
       
         com.google.auth
@@ -109,24 +109,24 @@
       
         com.google.api
         gax
-        2.27.1-SNAPSHOT 
+        2.28.0 
       
       
         com.google.api
         gax
-        2.27.1-SNAPSHOT 
+        2.28.0 
         test-jar
         testlib
       
       
         com.google.api.grpc
         proto-google-common-protos
-        2.18.1-SNAPSHOT
+        2.19.0
       
       
         com.google.api.grpc
         grpc-google-common-protos
-        2.18.1-SNAPSHOT
+        2.19.0
       
       
         io.grpc
diff --git a/java-common-protos/grpc-google-common-protos/pom.xml b/java-common-protos/grpc-google-common-protos/pom.xml
index a20ca06faf..d92b14d332 100644
--- a/java-common-protos/grpc-google-common-protos/pom.xml
+++ b/java-common-protos/grpc-google-common-protos/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   grpc-google-common-protos
-  2.18.1-SNAPSHOT
+  2.19.0
   grpc-google-common-protos
   GRPC library for grpc-google-common-protos
   
     com.google.api.grpc
     google-common-protos-parent
-    2.18.1-SNAPSHOT
+    2.19.0
   
   
     
diff --git a/java-common-protos/pom.xml b/java-common-protos/pom.xml
index 36b8077993..85ce896420 100644
--- a/java-common-protos/pom.xml
+++ b/java-common-protos/pom.xml
@@ -4,7 +4,7 @@
   com.google.api.grpc
   google-common-protos-parent
   pom
-  2.18.1-SNAPSHOT
+  2.19.0
   Google Common Protos Parent
   
     Java idiomatic client for Google Cloud Platform services.
@@ -13,7 +13,7 @@
   
     com.google.api
     gapic-generator-java-pom-parent
-    2.19.1-SNAPSHOT
+    2.20.0
     ../gapic-generator-java-pom-parent
   
 
@@ -69,7 +69,7 @@
       
         com.google.api.grpc
         grpc-google-common-protos
-        2.18.1-SNAPSHOT
+        2.19.0
       
       
         io.grpc
@@ -81,7 +81,7 @@
       
         com.google.api.grpc
         proto-google-common-protos
-        2.18.1-SNAPSHOT
+        2.19.0
       
       
         com.google.guava
diff --git a/java-common-protos/proto-google-common-protos/pom.xml b/java-common-protos/proto-google-common-protos/pom.xml
index 40b820b3b4..95f4d415c5 100644
--- a/java-common-protos/proto-google-common-protos/pom.xml
+++ b/java-common-protos/proto-google-common-protos/pom.xml
@@ -3,13 +3,13 @@
   4.0.0
   com.google.api.grpc
   proto-google-common-protos
-  2.18.1-SNAPSHOT
+  2.19.0
   proto-google-common-protos
   PROTO library for proto-google-common-protos
   
     com.google.api.grpc
     google-common-protos-parent
-    2.18.1-SNAPSHOT
+    2.19.0
   
   
     
diff --git a/java-core/google-cloud-core-bom/pom.xml b/java-core/google-cloud-core-bom/pom.xml
index 0aee1588a9..71410d6f0b 100644
--- a/java-core/google-cloud-core-bom/pom.xml
+++ b/java-core/google-cloud-core-bom/pom.xml
@@ -3,13 +3,13 @@
   4.0.0
   com.google.cloud
   google-cloud-core-bom
-  2.17.1-SNAPSHOT
+  2.18.0
   pom
 
   
     com.google.api
     gapic-generator-java-pom-parent
-    2.19.1-SNAPSHOT
+    2.20.0
     ../../gapic-generator-java-pom-parent
   
 
@@ -23,17 +23,17 @@
       
         com.google.cloud
         google-cloud-core
-        2.17.1-SNAPSHOT
+        2.18.0
       
       
         com.google.cloud
         google-cloud-core-grpc
-        2.17.1-SNAPSHOT
+        2.18.0
       
       
         com.google.cloud
         google-cloud-core-http
-        2.17.1-SNAPSHOT
+        2.18.0
       
     
   
diff --git a/java-core/google-cloud-core-grpc/pom.xml b/java-core/google-cloud-core-grpc/pom.xml
index da8f7b859c..d92037201f 100644
--- a/java-core/google-cloud-core-grpc/pom.xml
+++ b/java-core/google-cloud-core-grpc/pom.xml
@@ -3,7 +3,7 @@
   4.0.0
   com.google.cloud
   google-cloud-core-grpc
-  2.17.1-SNAPSHOT
+  2.18.0
   jar
   Google Cloud Core gRPC
   
@@ -12,7 +12,7 @@
   
     com.google.cloud
     google-cloud-core-parent
-    2.17.1-SNAPSHOT
+    2.18.0
   
   
     google-cloud-core-grpc
diff --git a/java-core/google-cloud-core-http/pom.xml b/java-core/google-cloud-core-http/pom.xml
index ccfcefda95..8d159a928e 100644
--- a/java-core/google-cloud-core-http/pom.xml
+++ b/java-core/google-cloud-core-http/pom.xml
@@ -3,7 +3,7 @@
   4.0.0
   com.google.cloud
   google-cloud-core-http
-  2.17.1-SNAPSHOT
+  2.18.0
   jar
   Google Cloud Core HTTP
   
@@ -12,7 +12,7 @@
   
     com.google.cloud
     google-cloud-core-parent
-    2.17.1-SNAPSHOT
+    2.18.0
   
   
     google-cloud-core-http
diff --git a/java-core/google-cloud-core/pom.xml b/java-core/google-cloud-core/pom.xml
index 7a74f23bc9..fef9194dfe 100644
--- a/java-core/google-cloud-core/pom.xml
+++ b/java-core/google-cloud-core/pom.xml
@@ -3,7 +3,7 @@
   4.0.0
   com.google.cloud
   google-cloud-core
-  2.17.1-SNAPSHOT
+  2.18.0
   jar
   Google Cloud Core
   
@@ -12,7 +12,7 @@
   
     com.google.cloud
     google-cloud-core-parent
-    2.17.1-SNAPSHOT
+    2.18.0
   
   
     google-cloud-core
diff --git a/java-core/pom.xml b/java-core/pom.xml
index d51c7a2d65..0f34d37dee 100644
--- a/java-core/pom.xml
+++ b/java-core/pom.xml
@@ -4,7 +4,7 @@
   com.google.cloud
   google-cloud-core-parent
   pom
-  2.17.1-SNAPSHOT
+  2.18.0
   Google Cloud Core Parent
   
     Java idiomatic client for Google Cloud Platform services.
@@ -13,7 +13,7 @@
   
     com.google.api
     gapic-generator-java-pom-parent
-    2.19.1-SNAPSHOT
+    2.20.0
     ../gapic-generator-java-pom-parent
   
 
@@ -33,7 +33,7 @@
       
         com.google.cloud
         google-cloud-shared-dependencies
-        3.9.1-SNAPSHOT
+        3.10.0
         pom
         import
       
diff --git a/java-iam/grpc-google-iam-v1/pom.xml b/java-iam/grpc-google-iam-v1/pom.xml
index 6bd0a1b6b1..e93b138817 100644
--- a/java-iam/grpc-google-iam-v1/pom.xml
+++ b/java-iam/grpc-google-iam-v1/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   grpc-google-iam-v1
-  1.13.1-SNAPSHOT
+  1.14.0
   grpc-google-iam-v1
   GRPC library for grpc-google-iam-v1
   
     com.google.cloud
     google-iam-parent
-    1.13.1-SNAPSHOT
+    1.14.0
   
   
     
diff --git a/java-iam/grpc-google-iam-v2/pom.xml b/java-iam/grpc-google-iam-v2/pom.xml
index e6731e8272..c1c7bc00c7 100644
--- a/java-iam/grpc-google-iam-v2/pom.xml
+++ b/java-iam/grpc-google-iam-v2/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   grpc-google-iam-v2
-  1.13.1-SNAPSHOT
+  1.14.0
   grpc-google-iam-v2
   GRPC library for proto-google-iam-v2
   
     com.google.cloud
     google-iam-parent
-    1.13.1-SNAPSHOT
+    1.14.0
   
   
     
diff --git a/java-iam/grpc-google-iam-v2beta/pom.xml b/java-iam/grpc-google-iam-v2beta/pom.xml
index 4d229070b9..0feb47a809 100644
--- a/java-iam/grpc-google-iam-v2beta/pom.xml
+++ b/java-iam/grpc-google-iam-v2beta/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   grpc-google-iam-v2beta
-  1.13.1-SNAPSHOT
+  1.14.0
   grpc-google-iam-v2beta
   GRPC library for proto-google-iam-v1
   
     com.google.cloud
     google-iam-parent
-    1.13.1-SNAPSHOT
+    1.14.0
   
   
     
diff --git a/java-iam/pom.xml b/java-iam/pom.xml
index 32677b3454..c05b801c64 100644
--- a/java-iam/pom.xml
+++ b/java-iam/pom.xml
@@ -4,7 +4,7 @@
   com.google.cloud
   google-iam-parent
   pom
-  1.13.1-SNAPSHOT
+  1.14.0
   Google IAM Parent
   
     Java idiomatic client for Google Cloud Platform services.
@@ -13,7 +13,7 @@
   
     com.google.api
     gapic-generator-java-pom-parent
-    2.19.1-SNAPSHOT
+    2.20.0
     ../gapic-generator-java-pom-parent
   
 
@@ -81,44 +81,44 @@
       
         com.google.api
         gax-bom
-        2.27.1-SNAPSHOT
+        2.28.0
         pom
         import
       
       
         com.google.api.grpc
         proto-google-iam-v2
-        1.13.1-SNAPSHOT
+        1.14.0
       
       
         com.google.api.grpc
         grpc-google-iam-v2
-        1.13.1-SNAPSHOT
+        1.14.0
       
       
         com.google.api.grpc
         proto-google-common-protos
-        2.18.1-SNAPSHOT
+        2.19.0
       
       
         com.google.api.grpc
         proto-google-iam-v2beta
-        1.13.1-SNAPSHOT
+        1.14.0
       
       
         com.google.api.grpc
         grpc-google-iam-v1
-        1.13.1-SNAPSHOT
+        1.14.0
       
       
         com.google.api.grpc
         grpc-google-iam-v2beta
-        1.13.1-SNAPSHOT
+        1.14.0
       
       
         com.google.api.grpc
         proto-google-iam-v1
-        1.13.1-SNAPSHOT
+        1.14.0
       
       
         javax.annotation
diff --git a/java-iam/proto-google-iam-v1/pom.xml b/java-iam/proto-google-iam-v1/pom.xml
index 7bf24adb1d..e5e7b3eff5 100644
--- a/java-iam/proto-google-iam-v1/pom.xml
+++ b/java-iam/proto-google-iam-v1/pom.xml
@@ -3,13 +3,13 @@
   4.0.0
   com.google.api.grpc
   proto-google-iam-v1
-  1.13.1-SNAPSHOT
+  1.14.0
   proto-google-iam-v1
   PROTO library for proto-google-iam-v1
   
     com.google.cloud
     google-iam-parent
-    1.13.1-SNAPSHOT
+    1.14.0
   
   
     
diff --git a/java-iam/proto-google-iam-v2/pom.xml b/java-iam/proto-google-iam-v2/pom.xml
index ac5afab0c6..105f00840b 100644
--- a/java-iam/proto-google-iam-v2/pom.xml
+++ b/java-iam/proto-google-iam-v2/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   proto-google-iam-v2
-  1.13.1-SNAPSHOT
+  1.14.0
   proto-google-iam-v2
   Proto library for proto-google-iam-v1
   
     com.google.cloud
     google-iam-parent
-    1.13.1-SNAPSHOT
+    1.14.0
   
   
     
diff --git a/java-iam/proto-google-iam-v2beta/pom.xml b/java-iam/proto-google-iam-v2beta/pom.xml
index d5fc2dbaa3..399524f2df 100644
--- a/java-iam/proto-google-iam-v2beta/pom.xml
+++ b/java-iam/proto-google-iam-v2beta/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   proto-google-iam-v2beta
-  1.13.1-SNAPSHOT
+  1.14.0
   proto-google-iam-v2beta
   Proto library for proto-google-iam-v1
   
     com.google.cloud
     google-iam-parent
-    1.13.1-SNAPSHOT
+    1.14.0
   
   
     
diff --git a/java-shared-dependencies/dependency-convergence-check/pom.xml b/java-shared-dependencies/dependency-convergence-check/pom.xml
index 73c4079fdd..e5aed6bf61 100644
--- a/java-shared-dependencies/dependency-convergence-check/pom.xml
+++ b/java-shared-dependencies/dependency-convergence-check/pom.xml
@@ -3,7 +3,7 @@
   4.0.0
   com.google.cloud
   shared-dependencies-dependency-convergence-test
-  3.9.1-SNAPSHOT
+  3.10.0
   Dependency convergence test for certain artifacts in Google Cloud Shared Dependencies
   
     An dependency convergence test case for the shared dependencies BOM. A failure of this test case means
diff --git a/java-shared-dependencies/first-party-dependencies/pom.xml b/java-shared-dependencies/first-party-dependencies/pom.xml
index e0aed43f56..57e59d3260 100644
--- a/java-shared-dependencies/first-party-dependencies/pom.xml
+++ b/java-shared-dependencies/first-party-dependencies/pom.xml
@@ -6,7 +6,7 @@
   com.google.cloud
   first-party-dependencies
   pom
-  3.9.1-SNAPSHOT
+  3.10.0
   Google Cloud First-party Shared Dependencies
   
     Shared first-party dependencies for Google Cloud Java libraries.
@@ -35,7 +35,7 @@
         
         com.google.api
         gapic-generator-java-bom
-        2.19.1-SNAPSHOT
+        2.20.0
         pom
         import
       
@@ -52,7 +52,7 @@
       
         com.google.cloud
         google-cloud-core-bom
-        2.17.1-SNAPSHOT
+        2.18.0
         pom
         import
       
@@ -83,13 +83,13 @@
       
         com.google.cloud
         google-cloud-core
-        2.17.1-SNAPSHOT
+        2.18.0
         test-jar
       
       
         com.google.cloud
         google-cloud-core
-        2.17.1-SNAPSHOT
+        2.18.0
         tests
       
     
diff --git a/java-shared-dependencies/pom.xml b/java-shared-dependencies/pom.xml
index 68d776cacc..695a6cc631 100644
--- a/java-shared-dependencies/pom.xml
+++ b/java-shared-dependencies/pom.xml
@@ -4,7 +4,7 @@
   com.google.cloud
   google-cloud-shared-dependencies
   pom
-  3.9.1-SNAPSHOT
+  3.10.0
   
     first-party-dependencies
     third-party-dependencies
@@ -17,7 +17,7 @@
   
     com.google.api
     gapic-generator-java-pom-parent
-    2.19.1-SNAPSHOT
+    2.20.0
     ../gapic-generator-java-pom-parent
   
 
@@ -31,14 +31,14 @@
       
         com.google.cloud
         first-party-dependencies
-        3.9.1-SNAPSHOT
+        3.10.0
         pom
         import
       
       
         com.google.cloud
         third-party-dependencies
-        3.9.1-SNAPSHOT
+        3.10.0
         pom
         import
       
diff --git a/java-shared-dependencies/third-party-dependencies/pom.xml b/java-shared-dependencies/third-party-dependencies/pom.xml
index 4079c07080..c2808c7b94 100644
--- a/java-shared-dependencies/third-party-dependencies/pom.xml
+++ b/java-shared-dependencies/third-party-dependencies/pom.xml
@@ -6,7 +6,7 @@
   com.google.cloud
   third-party-dependencies
   pom
-  3.9.1-SNAPSHOT
+  3.10.0
   Google Cloud Third-party Shared Dependencies
   
     Shared third-party dependencies for Google Cloud Java libraries.
diff --git a/java-shared-dependencies/upper-bound-check/pom.xml b/java-shared-dependencies/upper-bound-check/pom.xml
index 1d0c297f38..3952404b34 100644
--- a/java-shared-dependencies/upper-bound-check/pom.xml
+++ b/java-shared-dependencies/upper-bound-check/pom.xml
@@ -4,7 +4,7 @@
   com.google.cloud
   shared-dependencies-upper-bound-test
   pom
-  3.9.1-SNAPSHOT
+  3.10.0
   Upper bound test for Google Cloud Shared Dependencies
   
     An upper bound test case for the shared dependencies BOM. A failure of this test case means
@@ -30,7 +30,7 @@
       
         com.google.cloud
         google-cloud-shared-dependencies
-        3.9.1-SNAPSHOT
+        3.10.0
         pom
         import
       
diff --git a/showcase/pom.xml b/showcase/pom.xml
index ff8e3da7e7..3900b4788a 100644
--- a/showcase/pom.xml
+++ b/showcase/pom.xml
@@ -15,7 +15,7 @@
   
     com.google.api
     gapic-generator-java-bom
-    2.19.1-SNAPSHOT
+    2.20.0
     ../gapic-generator-java-bom
   
 
diff --git a/versions.txt b/versions.txt
index 668f5a5878..9a0d90e306 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,19 +1,19 @@
 # Format:
 # module:released-version:current-version
 
-gapic-generator-java:2.19.0:2.19.1-SNAPSHOT
-api-common:2.10.0:2.10.1-SNAPSHOT
-gax:2.27.0:2.27.1-SNAPSHOT
-gax-grpc:2.27.0:2.27.1-SNAPSHOT
-gax-httpjson:0.112.0:0.112.1-SNAPSHOT
-proto-google-common-protos:2.18.0:2.18.1-SNAPSHOT
-grpc-google-common-protos:2.18.0:2.18.1-SNAPSHOT
-proto-google-iam-v1:1.13.0:1.13.1-SNAPSHOT
-grpc-google-iam-v1:1.13.0:1.13.1-SNAPSHOT
-proto-google-iam-v2beta:1.13.0:1.13.1-SNAPSHOT
-grpc-google-iam-v2beta:1.13.0:1.13.1-SNAPSHOT
-google-iam-policy:1.13.0:1.13.1-SNAPSHOT
-proto-google-iam-v2:1.13.0:1.13.1-SNAPSHOT
-grpc-google-iam-v2:1.13.0:1.13.1-SNAPSHOT
-google-cloud-core:2.17.0:2.17.1-SNAPSHOT
-google-cloud-shared-dependencies:3.9.0:3.9.1-SNAPSHOT
+gapic-generator-java:2.20.0:2.20.0
+api-common:2.11.0:2.11.0
+gax:2.28.0:2.28.0
+gax-grpc:2.28.0:2.28.0
+gax-httpjson:0.113.0:0.113.0
+proto-google-common-protos:2.19.0:2.19.0
+grpc-google-common-protos:2.19.0:2.19.0
+proto-google-iam-v1:1.14.0:1.14.0
+grpc-google-iam-v1:1.14.0:1.14.0
+proto-google-iam-v2beta:1.14.0:1.14.0
+grpc-google-iam-v2beta:1.14.0:1.14.0
+google-iam-policy:1.14.0:1.14.0
+proto-google-iam-v2:1.14.0:1.14.0
+grpc-google-iam-v2:1.14.0:1.14.0
+google-cloud-core:2.18.0:2.18.0
+google-cloud-shared-dependencies:3.10.0:3.10.0

From cf07ea826002edb1b4a36af5849c5085b9853cd1 Mon Sep 17 00:00:00 2001
From: Mridula <66699525+mpeddada1@users.noreply.github.com>
Date: Wed, 24 May 2023 13:50:12 -0400
Subject: [PATCH 16/17] chore: add workaround for sonatype issue with Java 17
 (#1703)

The release in https://togithub.com/googleapis/sdk-platform-java/pull/1674 failed with the following error:
```
[ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.13:release (default-cli) on project gapic-generator-java-root: Execution default-cli of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.13:release failed: No converter available
[ERROR] ---- Debugging information ----
[ERROR] message             : No converter available
[ERROR] type                : java.util.Arrays$ArrayList
[ERROR] converter           : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
[ERROR] message[1]          : Unable to make field protected transient int java.util.AbstractList.modCount accessible: module java.base does not "opens java.util" to unnamed module @6a1d526c
[ERROR] -------------------------------
```
Using the workaround created in https://togithub.com/GoogleCloudPlatform/spring-cloud-gcp/pull/1576 to resolve this issue.
---
 .kokoro/release/stage.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh
index 5ff691d31a..c4afa39810 100755
--- a/.kokoro/release/stage.sh
+++ b/.kokoro/release/stage.sh
@@ -30,6 +30,9 @@ pushd $(dirname "$0")/../../
 setup_environment_secrets
 create_settings_xml_file "settings.xml"
 
+# workaround for nexus maven plugin issue with Java 16+: https://issues.sonatype.org/browse/OSSRH-66257
+export MAVEN_OPTS="--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED"
+
 mvn clean deploy -B \
   -DskipTests=true \
   -Dclirr.skip=true \

From 64a27141b68d935e7cbb8157c8dbbf3e8a71c423 Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Wed, 24 May 2023 14:53:45 -0400
Subject: [PATCH 17/17] chore: [common-protos] upgrading Protobuf to 23.1 and
 gRPC to 1.55.0 in code generation (#1705)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* chore: upgrading Protobuf to 23.1 and gRPC to 1.55.0 in code generation

PiperOrigin-RevId: 534084593

Source-Link: https://github.com/googleapis/googleapis/commit/aa4559a97f79225fc57c9f70b5f84fe620e8292e

Source-Link: https://github.com/googleapis/googleapis-gen/commit/370325af8236732f5885f5940e0ef481fee83003
Copy-Tag: eyJwIjoiamF2YS1jb21tb24tcHJvdG9zLy5Pd2xCb3QueWFtbCIsImgiOiIzNzAzMjVhZjgyMzY3MzJmNTg4NWY1OTQwZTBlZjQ4MWZlZTgzMDAzIn0=

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* add exclusions to clirr

* chore: upgrading Protobuf to 23.1 and gRPC to 1.55.0 in code generation

PiperOrigin-RevId: 534084593

Source-Link: https://github.com/googleapis/googleapis/commit/aa4559a97f79225fc57c9f70b5f84fe620e8292e

Source-Link: https://github.com/googleapis/googleapis-gen/commit/370325af8236732f5885f5940e0ef481fee83003
Copy-Tag: eyJwIjoiamF2YS1jb21tb24tcHJvdG9zLy5Pd2xCb3QueWFtbCIsImgiOiIzNzAzMjVhZjgyMzY3MzJmNTg4NWY1OTQwZTBlZjQ4MWZlZTgzMDAzIn0=

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot 
Co-authored-by: Mridula Peddada 
---
 .../clirr-ignored-differences.xml             |  30 ++
 .../src/main/java/com/google/api/Advice.java  |  38 --
 .../java/com/google/api/AuthProvider.java     | 142 +++--
 .../com/google/api/AuthProviderOrBuilder.java |  25 +
 .../java/com/google/api/AuthRequirement.java  |  73 ++-
 .../google/api/AuthRequirementOrBuilder.java  |  10 +
 .../java/com/google/api/Authentication.java   |  65 +--
 .../google/api/AuthenticationOrBuilder.java   |   5 +
 .../com/google/api/AuthenticationRule.java    |  49 +-
 .../api/AuthenticationRuleOrBuilder.java      |   2 +
 .../src/main/java/com/google/api/Backend.java |  61 +--
 .../java/com/google/api/BackendOrBuilder.java |   5 +
 .../main/java/com/google/api/BackendRule.java | 142 +++--
 .../com/google/api/BackendRuleOrBuilder.java  |  24 +-
 .../src/main/java/com/google/api/Billing.java | 125 +----
 .../com/google/api/ClientLibrarySettings.java |  38 --
 .../main/java/com/google/api/ClientProto.java |  15 +
 .../google/api/CommonLanguageSettings.java    |  38 --
 .../java/com/google/api/ConfigChange.java     |  40 +-
 .../src/main/java/com/google/api/Context.java |  77 +--
 .../java/com/google/api/ContextOrBuilder.java |   5 +
 .../main/java/com/google/api/ContextRule.java | 197 ++++---
 .../com/google/api/ContextRuleOrBuilder.java  |   2 +
 .../src/main/java/com/google/api/Control.java |  42 +-
 .../main/java/com/google/api/CppSettings.java |  38 --
 .../com/google/api/CustomHttpPattern.java     |  38 --
 .../java/com/google/api/Distribution.java     | 450 ++++++----------
 .../com/google/api/DistributionOrBuilder.java |   9 +
 .../java/com/google/api/Documentation.java    |  71 ++-
 .../google/api/DocumentationOrBuilder.java    |   5 +
 .../com/google/api/DocumentationRule.java     |  38 --
 .../java/com/google/api/DotnetSettings.java   | 153 +++---
 .../main/java/com/google/api/Endpoint.java    | 109 ++--
 .../com/google/api/EndpointOrBuilder.java     |   8 +
 .../main/java/com/google/api/ErrorReason.java | 142 +++++
 .../java/com/google/api/FieldBehavior.java    |   1 +
 .../com/google/api/FieldBehaviorProto.java    |   2 +
 .../main/java/com/google/api/GoSettings.java  |  38 --
 .../src/main/java/com/google/api/Http.java    |  65 +--
 .../main/java/com/google/api/HttpBody.java    |  64 +--
 .../java/com/google/api/HttpOrBuilder.java    |   6 +
 .../main/java/com/google/api/HttpRule.java    | 155 ++++--
 .../com/google/api/HttpRuleOrBuilder.java     |   8 +-
 .../java/com/google/api/JavaSettings.java     |  74 ++-
 .../com/google/api/JavaSettingsOrBuilder.java |  14 +
 .../main/java/com/google/api/JwtLocation.java |  47 +-
 .../com/google/api/JwtLocationOrBuilder.java  |   4 +-
 .../java/com/google/api/LabelDescriptor.java  |  38 --
 .../java/com/google/api/LogDescriptor.java    |  40 +-
 .../src/main/java/com/google/api/Logging.java | 123 +----
 .../java/com/google/api/MethodSettings.java   | 106 +---
 .../google/api/MethodSettingsOrBuilder.java   |   6 +
 .../src/main/java/com/google/api/Metric.java  |  38 --
 .../java/com/google/api/MetricDescriptor.java | 255 +++++----
 .../google/api/MetricDescriptorOrBuilder.java |  40 ++
 .../main/java/com/google/api/MetricRule.java  |  56 +-
 .../com/google/api/MetricRuleOrBuilder.java   |   7 +
 .../com/google/api/MonitoredResource.java     |  40 +-
 .../api/MonitoredResourceDescriptor.java      |  40 +-
 .../google/api/MonitoredResourceMetadata.java |  50 +-
 .../MonitoredResourceMetadataOrBuilder.java   |   3 +
 .../main/java/com/google/api/Monitoring.java  | 124 +----
 .../java/com/google/api/NodeSettings.java     |  38 --
 .../com/google/api/OAuthRequirements.java     |  60 +--
 .../api/OAuthRequirementsOrBuilder.java       |   4 +
 .../src/main/java/com/google/api/Page.java    |  38 --
 .../main/java/com/google/api/PhpSettings.java |  38 --
 .../com/google/api/ProjectProperties.java     |  42 +-
 .../main/java/com/google/api/Property.java    |  42 +-
 .../main/java/com/google/api/Publishing.java  |  75 +--
 .../java/com/google/api/PythonSettings.java   |  38 --
 .../src/main/java/com/google/api/Quota.java   |  56 +-
 .../main/java/com/google/api/QuotaLimit.java  |  93 ++--
 .../com/google/api/QuotaLimitOrBuilder.java   |  15 +
 .../com/google/api/ResourceDescriptor.java    | 199 +++++--
 .../api/ResourceDescriptorOrBuilder.java      |  30 ++
 .../com/google/api/ResourceReference.java     |  87 +--
 .../api/ResourceReferenceOrBuilder.java       |  14 +
 .../java/com/google/api/RoutingParameter.java |  94 ++--
 .../google/api/RoutingParameterOrBuilder.java |  16 +
 .../main/java/com/google/api/RoutingRule.java | 222 ++++++--
 .../java/com/google/api/RubySettings.java     |  38 --
 .../src/main/java/com/google/api/Service.java | 104 ++--
 .../java/com/google/api/ServiceOrBuilder.java |  13 +
 .../main/java/com/google/api/SourceInfo.java  |  38 --
 .../java/com/google/api/SystemParameter.java  |  38 --
 .../com/google/api/SystemParameterRule.java   |  45 +-
 .../api/SystemParameterRuleOrBuilder.java     |   2 +
 .../java/com/google/api/SystemParameters.java | 201 +++++--
 .../google/api/SystemParametersOrBuilder.java |  35 ++
 .../src/main/java/com/google/api/Usage.java   | 118 +++--
 .../java/com/google/api/UsageOrBuilder.java   |  11 +
 .../main/java/com/google/api/UsageRule.java   |  59 +--
 .../com/google/api/UsageRuleOrBuilder.java    |   2 +
 .../main/java/com/google/api/Visibility.java  |  71 ++-
 .../com/google/api/VisibilityOrBuilder.java   |   5 +
 .../java/com/google/api/VisibilityRule.java   |  73 ++-
 .../google/api/VisibilityRuleOrBuilder.java   |  10 +
 .../java/com/google/cloud/audit/AuditLog.java |  52 +-
 .../google/cloud/audit/AuditLogOrBuilder.java |   4 +
 .../com/google/cloud/audit/AuditLogProto.java |  36 +-
 .../cloud/audit/AuthenticationInfo.java       |  45 +-
 .../audit/AuthenticationInfoOrBuilder.java    |   2 +
 .../google/cloud/audit/AuthorizationInfo.java |  57 +-
 .../audit/AuthorizationInfoOrBuilder.java     |   5 +
 .../cloud/audit/OrgPolicyViolationInfo.java   |  49 +-
 .../OrgPolicyViolationInfoOrBuilder.java      |   5 +
 .../cloud/audit/PolicyViolationInfo.java      |  38 --
 .../google/cloud/audit/RequestMetadata.java   |  76 +--
 .../cloud/audit/RequestMetadataOrBuilder.java |  10 +
 .../google/cloud/audit/ResourceLocation.java  | 142 +++--
 .../audit/ResourceLocationOrBuilder.java      |   8 +
 .../audit/ServiceAccountDelegationInfo.java   | 120 +----
 ...ServiceAccountDelegationInfoOrBuilder.java |   2 +-
 .../com/google/cloud/audit/ViolationInfo.java |  38 --
 .../cloud/location/GetLocationRequest.java    |  38 --
 .../cloud/location/ListLocationsRequest.java  |  38 --
 .../cloud/location/ListLocationsResponse.java |  38 --
 .../com/google/cloud/location/Location.java   |  49 +-
 .../cloud/location/LocationOrBuilder.java     |   5 +
 .../java/com/google/geo/type/Viewport.java    |  54 +-
 .../com/google/logging/type/HttpRequest.java  |  38 --
 .../com/google/logging/type/LogSeverity.java  |   3 +
 .../longrunning/CancelOperationRequest.java   |  38 --
 .../longrunning/DeleteOperationRequest.java   |  38 --
 .../longrunning/GetOperationRequest.java      |  38 --
 .../longrunning/ListOperationsRequest.java    |  38 --
 .../longrunning/ListOperationsResponse.java   |  38 --
 .../com/google/longrunning/Operation.java     |  40 +-
 .../com/google/longrunning/OperationInfo.java |  70 ++-
 .../longrunning/OperationInfoOrBuilder.java   |   8 +
 .../longrunning/OperationOrBuilder.java       |   2 +-
 .../google/longrunning/OperationsProto.java   |  17 +-
 .../longrunning/WaitOperationRequest.java     |  38 --
 .../main/java/com/google/rpc/BadRequest.java  | 150 +++---
 .../src/main/java/com/google/rpc/Code.java    |  48 ++
 .../main/java/com/google/rpc/DebugInfo.java   |  79 +--
 .../main/java/com/google/rpc/ErrorInfo.java   |  59 +--
 .../com/google/rpc/ErrorInfoOrBuilder.java    |   5 +
 .../src/main/java/com/google/rpc/Help.java    |  80 +--
 .../java/com/google/rpc/LocalizedMessage.java |  38 --
 .../com/google/rpc/PreconditionFailure.java   |  89 +---
 .../java/com/google/rpc/QuotaFailure.java     |  91 +---
 .../main/java/com/google/rpc/RequestInfo.java |  38 --
 .../java/com/google/rpc/ResourceInfo.java     |  38 --
 .../main/java/com/google/rpc/RetryInfo.java   |  42 +-
 .../src/main/java/com/google/rpc/Status.java  |  40 +-
 .../google/rpc/context/AttributeContext.java  | 497 +++++++-----------
 .../com/google/rpc/context/AuditContext.java  |  38 --
 .../src/main/java/com/google/type/Color.java  |  96 ++--
 .../java/com/google/type/ColorOrBuilder.java  |   6 +
 .../src/main/java/com/google/type/Date.java   |  42 +-
 .../main/java/com/google/type/DateTime.java   |  52 +-
 .../com/google/type/DateTimeOrBuilder.java    |   2 +-
 .../main/java/com/google/type/Decimal.java    | 152 ++++--
 .../com/google/type/DecimalOrBuilder.java     |  32 ++
 .../src/main/java/com/google/type/Expr.java   |  56 +-
 .../main/java/com/google/type/Fraction.java   |  38 --
 .../main/java/com/google/type/Interval.java   |  64 +--
 .../com/google/type/IntervalOrBuilder.java    |   6 +
 .../src/main/java/com/google/type/LatLng.java |  38 --
 .../java/com/google/type/LocalizedText.java   |  45 +-
 .../google/type/LocalizedTextOrBuilder.java   |   2 +
 .../src/main/java/com/google/type/Money.java  |  38 --
 .../java/com/google/type/PhoneNumber.java     | 142 +++--
 .../com/google/type/PhoneNumberOrBuilder.java |  13 +-
 .../java/com/google/type/PostalAddress.java   | 179 ++++---
 .../google/type/PostalAddressOrBuilder.java   |  17 +
 .../main/java/com/google/type/Quaternion.java |  62 +--
 .../main/java/com/google/type/TimeOfDay.java  |  38 --
 .../main/java/com/google/type/TimeZone.java   |  38 --
 .../src/main/proto/google/api/client.proto    |   2 +-
 172 files changed, 3944 insertions(+), 5684 deletions(-)

diff --git a/java-common-protos/proto-google-common-protos/clirr-ignored-differences.xml b/java-common-protos/proto-google-common-protos/clirr-ignored-differences.xml
index 999a997772..6b1aaa345b 100644
--- a/java-common-protos/proto-google-common-protos/clirr-ignored-differences.xml
+++ b/java-common-protos/proto-google-common-protos/clirr-ignored-differences.xml
@@ -1,6 +1,36 @@
 
 
 
+  
+    7002
+    com/google/**/*Builder
+    * addRepeatedField(*)
+  
+  
+    7002
+    com/google/**/*Builder
+    * clearField(*)
+  
+  
+    7002
+    com/google/**/*Builder
+    * clearOneof(*)
+  
+  
+    7002
+    com/google/**/*Builder
+    * clone()
+  
+  
+    7002
+    com/google/**/*Builder
+    * setField(*)
+  
+  
+    7002
+    com/google/**/*Builder
+    * setRepeatedField(*)
+  
   
     7012
     com/google/api/*OrBuilder
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Advice.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Advice.java
index 16305c553e..1497403693 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Advice.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Advice.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Advice();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.ConfigChangeProto.internal_static_google_api_Advice_descriptor;
   }
@@ -352,39 +347,6 @@ private void buildPartial0(com.google.api.Advice result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.Advice) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java
index b5e3be7c88..52083e4a44 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java
@@ -54,11 +54,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AuthProvider();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.AuthProto.internal_static_google_api_AuthProvider_descriptor;
   }
@@ -81,6 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
    * The unique identifier of the auth provider. It will be referred to by
    * `AuthRequirement.provider_id`.
+   *
    * Example: "bookstore_auth".
    * 
* @@ -106,6 +102,7 @@ public java.lang.String getId() { *
    * The unique identifier of the auth provider. It will be referred to by
    * `AuthRequirement.provider_id`.
+   *
    * Example: "bookstore_auth".
    * 
* @@ -137,6 +134,7 @@ public com.google.protobuf.ByteString getIdBytes() { * Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 * Usually a URL or an email address. + * * Example: https://securetoken.google.com * Example: 1234567-compute@developer.gserviceaccount.com *
@@ -164,6 +162,7 @@ public java.lang.String getIssuer() { * Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 * Usually a URL or an email address. + * * Example: https://securetoken.google.com * Example: 1234567-compute@developer.gserviceaccount.com *
@@ -203,6 +202,7 @@ public com.google.protobuf.ByteString getIssuerBytes() { * of the issuer. * - can be inferred from the email domain of the issuer (e.g. a Google * service account). + * * Example: https://www.googleapis.com/oauth2/v1/certs *
* @@ -236,6 +236,7 @@ public java.lang.String getJwksUri() { * of the issuer. * - can be inferred from the email domain of the issuer (e.g. a Google * service account). + * * Example: https://www.googleapis.com/oauth2/v1/certs *
* @@ -276,7 +277,9 @@ public com.google.protobuf.ByteString getJwksUriBytes() { * - * https://library-example.googleapis.com/google.example.library.v1.LibraryService * - https://library-example.googleapis.com/ + * * Example: + * * audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com *
@@ -313,7 +316,9 @@ public java.lang.String getAudiences() { * - * https://library-example.googleapis.com/google.example.library.v1.LibraryService * - https://library-example.googleapis.com/ + * * Example: + * * audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com *
@@ -399,12 +404,15 @@ public com.google.protobuf.ByteString getAuthorizationUrlBytes() { * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -426,12 +434,15 @@ public java.util.List getJwtLocationsList() { * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -454,12 +465,15 @@ public java.util.List getJwtLocationsList() { * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -481,12 +495,15 @@ public int getJwtLocationsCount() { * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -508,12 +525,15 @@ public com.google.api.JwtLocation getJwtLocations(int index) { * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -847,39 +867,6 @@ private void buildPartial0(com.google.api.AuthProvider result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.AuthProvider) { @@ -1038,6 +1025,7 @@ public Builder mergeFrom( *
      * The unique identifier of the auth provider. It will be referred to by
      * `AuthRequirement.provider_id`.
+     *
      * Example: "bookstore_auth".
      * 
* @@ -1062,6 +1050,7 @@ public java.lang.String getId() { *
      * The unique identifier of the auth provider. It will be referred to by
      * `AuthRequirement.provider_id`.
+     *
      * Example: "bookstore_auth".
      * 
* @@ -1086,6 +1075,7 @@ public com.google.protobuf.ByteString getIdBytes() { *
      * The unique identifier of the auth provider. It will be referred to by
      * `AuthRequirement.provider_id`.
+     *
      * Example: "bookstore_auth".
      * 
* @@ -1109,6 +1099,7 @@ public Builder setId(java.lang.String value) { *
      * The unique identifier of the auth provider. It will be referred to by
      * `AuthRequirement.provider_id`.
+     *
      * Example: "bookstore_auth".
      * 
* @@ -1128,6 +1119,7 @@ public Builder clearId() { *
      * The unique identifier of the auth provider. It will be referred to by
      * `AuthRequirement.provider_id`.
+     *
      * Example: "bookstore_auth".
      * 
* @@ -1155,6 +1147,7 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { * Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 * Usually a URL or an email address. + * * Example: https://securetoken.google.com * Example: 1234567-compute@developer.gserviceaccount.com *
@@ -1181,6 +1174,7 @@ public java.lang.String getIssuer() { * Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 * Usually a URL or an email address. + * * Example: https://securetoken.google.com * Example: 1234567-compute@developer.gserviceaccount.com *
@@ -1207,6 +1201,7 @@ public com.google.protobuf.ByteString getIssuerBytes() { * Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 * Usually a URL or an email address. + * * Example: https://securetoken.google.com * Example: 1234567-compute@developer.gserviceaccount.com *
@@ -1232,6 +1227,7 @@ public Builder setIssuer(java.lang.String value) { * Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 * Usually a URL or an email address. + * * Example: https://securetoken.google.com * Example: 1234567-compute@developer.gserviceaccount.com *
@@ -1253,6 +1249,7 @@ public Builder clearIssuer() { * Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 * Usually a URL or an email address. + * * Example: https://securetoken.google.com * Example: 1234567-compute@developer.gserviceaccount.com *
@@ -1288,6 +1285,7 @@ public Builder setIssuerBytes(com.google.protobuf.ByteString value) { * of the issuer. * - can be inferred from the email domain of the issuer (e.g. a Google * service account). + * * Example: https://www.googleapis.com/oauth2/v1/certs *
* @@ -1320,6 +1318,7 @@ public java.lang.String getJwksUri() { * of the issuer. * - can be inferred from the email domain of the issuer (e.g. a Google * service account). + * * Example: https://www.googleapis.com/oauth2/v1/certs *
* @@ -1352,6 +1351,7 @@ public com.google.protobuf.ByteString getJwksUriBytes() { * of the issuer. * - can be inferred from the email domain of the issuer (e.g. a Google * service account). + * * Example: https://www.googleapis.com/oauth2/v1/certs *
* @@ -1383,6 +1383,7 @@ public Builder setJwksUri(java.lang.String value) { * of the issuer. * - can be inferred from the email domain of the issuer (e.g. a Google * service account). + * * Example: https://www.googleapis.com/oauth2/v1/certs *
* @@ -1410,6 +1411,7 @@ public Builder clearJwksUri() { * of the issuer. * - can be inferred from the email domain of the issuer (e.g. a Google * service account). + * * Example: https://www.googleapis.com/oauth2/v1/certs *
* @@ -1446,7 +1448,9 @@ public Builder setJwksUriBytes(com.google.protobuf.ByteString value) { * - * https://library-example.googleapis.com/google.example.library.v1.LibraryService * - https://library-example.googleapis.com/ + * * Example: + * * audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com * @@ -1482,7 +1486,9 @@ public java.lang.String getAudiences() { * - * https://library-example.googleapis.com/google.example.library.v1.LibraryService * - https://library-example.googleapis.com/ + * * Example: + * * audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com * @@ -1518,7 +1524,9 @@ public com.google.protobuf.ByteString getAudiencesBytes() { * - * https://library-example.googleapis.com/google.example.library.v1.LibraryService * - https://library-example.googleapis.com/ + * * Example: + * * audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com * @@ -1553,7 +1561,9 @@ public Builder setAudiences(java.lang.String value) { * - * https://library-example.googleapis.com/google.example.library.v1.LibraryService * - https://library-example.googleapis.com/ + * * Example: + * * audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com * @@ -1584,7 +1594,9 @@ public Builder clearAudiences() { * - * https://library-example.googleapis.com/google.example.library.v1.LibraryService * - https://library-example.googleapis.com/ + * * Example: + * * audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com * @@ -1739,12 +1751,15 @@ private void ensureJwtLocationsIsMutable() { * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -1769,12 +1784,15 @@ public java.util.List getJwtLocationsList() { * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -1799,12 +1817,15 @@ public int getJwtLocationsCount() { * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -1829,12 +1850,15 @@ public com.google.api.JwtLocation getJwtLocations(int index) { * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -1865,12 +1889,15 @@ public Builder setJwtLocations(int index, com.google.api.JwtLocation value) { * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -1898,12 +1925,15 @@ public Builder setJwtLocations(int index, com.google.api.JwtLocation.Builder bui * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -1934,12 +1964,15 @@ public Builder addJwtLocations(com.google.api.JwtLocation value) { * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -1970,12 +2003,15 @@ public Builder addJwtLocations(int index, com.google.api.JwtLocation value) { * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -2003,12 +2039,15 @@ public Builder addJwtLocations(com.google.api.JwtLocation.Builder builderForValu * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -2036,12 +2075,15 @@ public Builder addJwtLocations(int index, com.google.api.JwtLocation.Builder bui * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -2070,12 +2112,15 @@ public Builder addAllJwtLocations( * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -2103,12 +2148,15 @@ public Builder clearJwtLocations() { * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -2136,12 +2184,15 @@ public Builder removeJwtLocations(int index) { * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -2162,12 +2213,15 @@ public com.google.api.JwtLocation.Builder getJwtLocationsBuilder(int index) { * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -2192,12 +2246,15 @@ public com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder(int index) { * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -2223,12 +2280,15 @@ public com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder(int index) { * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -2250,12 +2310,15 @@ public com.google.api.JwtLocation.Builder addJwtLocationsBuilder() { * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -2277,12 +2340,15 @@ public com.google.api.JwtLocation.Builder addJwtLocationsBuilder(int index) { * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java index 87ac693a46..ac0f0426ee 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java @@ -29,6 +29,7 @@ public interface AuthProviderOrBuilder *
    * The unique identifier of the auth provider. It will be referred to by
    * `AuthRequirement.provider_id`.
+   *
    * Example: "bookstore_auth".
    * 
* @@ -43,6 +44,7 @@ public interface AuthProviderOrBuilder *
    * The unique identifier of the auth provider. It will be referred to by
    * `AuthRequirement.provider_id`.
+   *
    * Example: "bookstore_auth".
    * 
* @@ -59,6 +61,7 @@ public interface AuthProviderOrBuilder * Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 * Usually a URL or an email address. + * * Example: https://securetoken.google.com * Example: 1234567-compute@developer.gserviceaccount.com * @@ -75,6 +78,7 @@ public interface AuthProviderOrBuilder * Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 * Usually a URL or an email address. + * * Example: https://securetoken.google.com * Example: 1234567-compute@developer.gserviceaccount.com * @@ -99,6 +103,7 @@ public interface AuthProviderOrBuilder * of the issuer. * - can be inferred from the email domain of the issuer (e.g. a Google * service account). + * * Example: https://www.googleapis.com/oauth2/v1/certs * * @@ -121,6 +126,7 @@ public interface AuthProviderOrBuilder * of the issuer. * - can be inferred from the email domain of the issuer (e.g. a Google * service account). + * * Example: https://www.googleapis.com/oauth2/v1/certs * * @@ -146,7 +152,9 @@ public interface AuthProviderOrBuilder * - * https://library-example.googleapis.com/google.example.library.v1.LibraryService * - https://library-example.googleapis.com/ + * * Example: + * * audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com * @@ -172,7 +180,9 @@ public interface AuthProviderOrBuilder * - * https://library-example.googleapis.com/google.example.library.v1.LibraryService * - https://library-example.googleapis.com/ + * * Example: + * * audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com * @@ -217,12 +227,15 @@ public interface AuthProviderOrBuilder * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -241,12 +254,15 @@ public interface AuthProviderOrBuilder * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -265,12 +281,15 @@ public interface AuthProviderOrBuilder * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -289,12 +308,15 @@ public interface AuthProviderOrBuilder * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization @@ -313,12 +335,15 @@ public interface AuthProviderOrBuilder * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. + * * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter + * * Default locations can be specified as followings: * jwt_locations: * - header: Authorization diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java index 1c3418f5f3..cb424414e2 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java @@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AuthRequirement(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.AuthProto.internal_static_google_api_AuthRequirement_descriptor; } @@ -76,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * [id][google.api.AuthProvider.id] from authentication provider.
+   *
    * Example:
+   *
    *     provider_id: bookstore_auth
    * 
* @@ -101,7 +98,9 @@ public java.lang.String getProviderId() { * *
    * [id][google.api.AuthProvider.id] from authentication provider.
+   *
    * Example:
+   *
    *     provider_id: bookstore_auth
    * 
* @@ -132,6 +131,7 @@ public com.google.protobuf.ByteString getProviderIdBytes() { *
    * NOTE: This will be deprecated soon, once AuthProvider.audiences is
    * implemented and accepted in all the runtime components.
+   *
    * The list of JWT
    * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
    * that are allowed to access. A JWT containing any of these audiences will
@@ -140,7 +140,9 @@ public com.google.protobuf.ByteString getProviderIdBytes() {
    * will be accepted. For example, if no audiences are in the setting,
    * LibraryService API will only accept JWTs with the following audience
    * "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
+   *
    * Example:
+   *
    *     audiences: bookstore_android.apps.googleusercontent.com,
    *                bookstore_web.apps.googleusercontent.com
    * 
@@ -167,6 +169,7 @@ public java.lang.String getAudiences() { *
    * NOTE: This will be deprecated soon, once AuthProvider.audiences is
    * implemented and accepted in all the runtime components.
+   *
    * The list of JWT
    * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
    * that are allowed to access. A JWT containing any of these audiences will
@@ -175,7 +178,9 @@ public java.lang.String getAudiences() {
    * will be accepted. For example, if no audiences are in the setting,
    * LibraryService API will only accept JWTs with the following audience
    * "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
+   *
    * Example:
+   *
    *     audiences: bookstore_android.apps.googleusercontent.com,
    *                bookstore_web.apps.googleusercontent.com
    * 
@@ -445,39 +450,6 @@ private void buildPartial0(com.google.api.AuthRequirement result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.AuthRequirement) { @@ -563,7 +535,9 @@ public Builder mergeFrom( * *
      * [id][google.api.AuthProvider.id] from authentication provider.
+     *
      * Example:
+     *
      *     provider_id: bookstore_auth
      * 
* @@ -587,7 +561,9 @@ public java.lang.String getProviderId() { * *
      * [id][google.api.AuthProvider.id] from authentication provider.
+     *
      * Example:
+     *
      *     provider_id: bookstore_auth
      * 
* @@ -611,7 +587,9 @@ public com.google.protobuf.ByteString getProviderIdBytes() { * *
      * [id][google.api.AuthProvider.id] from authentication provider.
+     *
      * Example:
+     *
      *     provider_id: bookstore_auth
      * 
* @@ -634,7 +612,9 @@ public Builder setProviderId(java.lang.String value) { * *
      * [id][google.api.AuthProvider.id] from authentication provider.
+     *
      * Example:
+     *
      *     provider_id: bookstore_auth
      * 
* @@ -653,7 +633,9 @@ public Builder clearProviderId() { * *
      * [id][google.api.AuthProvider.id] from authentication provider.
+     *
      * Example:
+     *
      *     provider_id: bookstore_auth
      * 
* @@ -680,6 +662,7 @@ public Builder setProviderIdBytes(com.google.protobuf.ByteString value) { *
      * NOTE: This will be deprecated soon, once AuthProvider.audiences is
      * implemented and accepted in all the runtime components.
+     *
      * The list of JWT
      * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
      * that are allowed to access. A JWT containing any of these audiences will
@@ -688,7 +671,9 @@ public Builder setProviderIdBytes(com.google.protobuf.ByteString value) {
      * will be accepted. For example, if no audiences are in the setting,
      * LibraryService API will only accept JWTs with the following audience
      * "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
+     *
      * Example:
+     *
      *     audiences: bookstore_android.apps.googleusercontent.com,
      *                bookstore_web.apps.googleusercontent.com
      * 
@@ -714,6 +699,7 @@ public java.lang.String getAudiences() { *
      * NOTE: This will be deprecated soon, once AuthProvider.audiences is
      * implemented and accepted in all the runtime components.
+     *
      * The list of JWT
      * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
      * that are allowed to access. A JWT containing any of these audiences will
@@ -722,7 +708,9 @@ public java.lang.String getAudiences() {
      * will be accepted. For example, if no audiences are in the setting,
      * LibraryService API will only accept JWTs with the following audience
      * "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
+     *
      * Example:
+     *
      *     audiences: bookstore_android.apps.googleusercontent.com,
      *                bookstore_web.apps.googleusercontent.com
      * 
@@ -748,6 +736,7 @@ public com.google.protobuf.ByteString getAudiencesBytes() { *
      * NOTE: This will be deprecated soon, once AuthProvider.audiences is
      * implemented and accepted in all the runtime components.
+     *
      * The list of JWT
      * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
      * that are allowed to access. A JWT containing any of these audiences will
@@ -756,7 +745,9 @@ public com.google.protobuf.ByteString getAudiencesBytes() {
      * will be accepted. For example, if no audiences are in the setting,
      * LibraryService API will only accept JWTs with the following audience
      * "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
+     *
      * Example:
+     *
      *     audiences: bookstore_android.apps.googleusercontent.com,
      *                bookstore_web.apps.googleusercontent.com
      * 
@@ -781,6 +772,7 @@ public Builder setAudiences(java.lang.String value) { *
      * NOTE: This will be deprecated soon, once AuthProvider.audiences is
      * implemented and accepted in all the runtime components.
+     *
      * The list of JWT
      * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
      * that are allowed to access. A JWT containing any of these audiences will
@@ -789,7 +781,9 @@ public Builder setAudiences(java.lang.String value) {
      * will be accepted. For example, if no audiences are in the setting,
      * LibraryService API will only accept JWTs with the following audience
      * "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
+     *
      * Example:
+     *
      *     audiences: bookstore_android.apps.googleusercontent.com,
      *                bookstore_web.apps.googleusercontent.com
      * 
@@ -810,6 +804,7 @@ public Builder clearAudiences() { *
      * NOTE: This will be deprecated soon, once AuthProvider.audiences is
      * implemented and accepted in all the runtime components.
+     *
      * The list of JWT
      * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
      * that are allowed to access. A JWT containing any of these audiences will
@@ -818,7 +813,9 @@ public Builder clearAudiences() {
      * will be accepted. For example, if no audiences are in the setting,
      * LibraryService API will only accept JWTs with the following audience
      * "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
+     *
      * Example:
+     *
      *     audiences: bookstore_android.apps.googleusercontent.com,
      *                bookstore_web.apps.googleusercontent.com
      * 
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java index da45b4a941..86a8a37c7c 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java @@ -28,7 +28,9 @@ public interface AuthRequirementOrBuilder * *
    * [id][google.api.AuthProvider.id] from authentication provider.
+   *
    * Example:
+   *
    *     provider_id: bookstore_auth
    * 
* @@ -42,7 +44,9 @@ public interface AuthRequirementOrBuilder * *
    * [id][google.api.AuthProvider.id] from authentication provider.
+   *
    * Example:
+   *
    *     provider_id: bookstore_auth
    * 
* @@ -58,6 +62,7 @@ public interface AuthRequirementOrBuilder *
    * NOTE: This will be deprecated soon, once AuthProvider.audiences is
    * implemented and accepted in all the runtime components.
+   *
    * The list of JWT
    * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
    * that are allowed to access. A JWT containing any of these audiences will
@@ -66,7 +71,9 @@ public interface AuthRequirementOrBuilder
    * will be accepted. For example, if no audiences are in the setting,
    * LibraryService API will only accept JWTs with the following audience
    * "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
+   *
    * Example:
+   *
    *     audiences: bookstore_android.apps.googleusercontent.com,
    *                bookstore_web.apps.googleusercontent.com
    * 
@@ -82,6 +89,7 @@ public interface AuthRequirementOrBuilder *
    * NOTE: This will be deprecated soon, once AuthProvider.audiences is
    * implemented and accepted in all the runtime components.
+   *
    * The list of JWT
    * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
    * that are allowed to access. A JWT containing any of these audiences will
@@ -90,7 +98,9 @@ public interface AuthRequirementOrBuilder
    * will be accepted. For example, if no audiences are in the setting,
    * LibraryService API will only accept JWTs with the following audience
    * "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
+   *
    * Example:
+   *
    *     audiences: bookstore_android.apps.googleusercontent.com,
    *                bookstore_web.apps.googleusercontent.com
    * 
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Authentication.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Authentication.java index cc415379a2..c3e5c2f8b2 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Authentication.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Authentication.java @@ -24,7 +24,9 @@ *
  * `Authentication` defines the authentication configuration for API methods
  * provided by an API service.
+ *
  * Example:
+ *
  *     name: calendar.googleapis.com
  *     authentication:
  *       providers:
@@ -63,11 +65,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Authentication();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.AuthProto.internal_static_google_api_Authentication_descriptor;
   }
@@ -89,6 +86,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * 
    * A list of authentication rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -103,6 +101,7 @@ public java.util.List getRulesList() { * *
    * A list of authentication rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -118,6 +117,7 @@ public java.util.List getRulesList() { * *
    * A list of authentication rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -132,6 +132,7 @@ public int getRulesCount() { * *
    * A list of authentication rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -146,6 +147,7 @@ public com.google.api.AuthenticationRule getRules(int index) { * *
    * A list of authentication rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -403,7 +405,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
    * `Authentication` defines the authentication configuration for API methods
    * provided by an API service.
+   *
    * Example:
+   *
    *     name: calendar.googleapis.com
    *     authentication:
    *       providers:
@@ -520,39 +524,6 @@ private void buildPartial0(com.google.api.Authentication result) {
       int from_bitField0_ = bitField0_;
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.Authentication) {
@@ -710,6 +681,7 @@ private void ensureRulesIsMutable() {
      *
      * 
      * A list of authentication rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -727,6 +699,7 @@ public java.util.List getRulesList() { * *
      * A list of authentication rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -744,6 +717,7 @@ public int getRulesCount() { * *
      * A list of authentication rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -761,6 +735,7 @@ public com.google.api.AuthenticationRule getRules(int index) { * *
      * A list of authentication rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -784,6 +759,7 @@ public Builder setRules(int index, com.google.api.AuthenticationRule value) { * *
      * A list of authentication rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -804,6 +780,7 @@ public Builder setRules(int index, com.google.api.AuthenticationRule.Builder bui * *
      * A list of authentication rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -827,6 +804,7 @@ public Builder addRules(com.google.api.AuthenticationRule value) { * *
      * A list of authentication rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -850,6 +828,7 @@ public Builder addRules(int index, com.google.api.AuthenticationRule value) { * *
      * A list of authentication rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -870,6 +849,7 @@ public Builder addRules(com.google.api.AuthenticationRule.Builder builderForValu * *
      * A list of authentication rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -890,6 +870,7 @@ public Builder addRules(int index, com.google.api.AuthenticationRule.Builder bui * *
      * A list of authentication rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -911,6 +892,7 @@ public Builder addAllRules( * *
      * A list of authentication rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -931,6 +913,7 @@ public Builder clearRules() { * *
      * A list of authentication rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -951,6 +934,7 @@ public Builder removeRules(int index) { * *
      * A list of authentication rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -964,6 +948,7 @@ public com.google.api.AuthenticationRule.Builder getRulesBuilder(int index) { * *
      * A list of authentication rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -981,6 +966,7 @@ public com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder(int index) { * *
      * A list of authentication rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -999,6 +985,7 @@ public com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder(int index) { * *
      * A list of authentication rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1013,6 +1000,7 @@ public com.google.api.AuthenticationRule.Builder addRulesBuilder() { * *
      * A list of authentication rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1027,6 +1015,7 @@ public com.google.api.AuthenticationRule.Builder addRulesBuilder(int index) { * *
      * A list of authentication rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationOrBuilder.java index d7dd35ee0e..148735aae4 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationOrBuilder.java @@ -28,6 +28,7 @@ public interface AuthenticationOrBuilder * *
    * A list of authentication rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -39,6 +40,7 @@ public interface AuthenticationOrBuilder * *
    * A list of authentication rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -50,6 +52,7 @@ public interface AuthenticationOrBuilder * *
    * A list of authentication rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -61,6 +64,7 @@ public interface AuthenticationOrBuilder * *
    * A list of authentication rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -72,6 +76,7 @@ public interface AuthenticationOrBuilder * *
    * A list of authentication rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java index 15ab9eb377..801f7e8d26 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java @@ -23,10 +23,12 @@ * *
  * Authentication rules for the service.
+ *
  * By default, if a method has any authentication requirements, every request
  * must include a valid credential matching one of the requirements.
  * It's an error to include more than one kind of credential in a single
  * request.
+ *
  * If a method doesn't have any auth requirements, request credentials will be
  * ignored.
  * 
@@ -54,11 +56,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AuthenticationRule(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.AuthProto.internal_static_google_api_AuthenticationRule_descriptor; } @@ -81,6 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Selects the methods to which this rule applies.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -106,6 +104,7 @@ public java.lang.String getSelector() { * *
    * Selects the methods to which this rule applies.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -459,10 +458,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Authentication rules for the service.
+   *
    * By default, if a method has any authentication requirements, every request
    * must include a valid credential matching one of the requirements.
    * It's an error to include more than one kind of credential in a single
    * request.
+   *
    * If a method doesn't have any auth requirements, request credentials will be
    * ignored.
    * 
@@ -570,39 +571,6 @@ private void buildPartial0(com.google.api.AuthenticationRule result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.AuthenticationRule) { @@ -734,6 +702,7 @@ public Builder mergeFrom( * *
      * Selects the methods to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -758,6 +727,7 @@ public java.lang.String getSelector() { * *
      * Selects the methods to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -782,6 +752,7 @@ public com.google.protobuf.ByteString getSelectorBytes() { * *
      * Selects the methods to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -805,6 +776,7 @@ public Builder setSelector(java.lang.String value) { * *
      * Selects the methods to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -824,6 +796,7 @@ public Builder clearSelector() { * *
      * Selects the methods to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRuleOrBuilder.java index ca38fc60e7..fdcffb5e88 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRuleOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRuleOrBuilder.java @@ -28,6 +28,7 @@ public interface AuthenticationRuleOrBuilder * *
    * Selects the methods to which this rule applies.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -42,6 +43,7 @@ public interface AuthenticationRuleOrBuilder * *
    * Selects the methods to which this rule applies.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Backend.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Backend.java index 316b08163d..2a3a35a847 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Backend.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Backend.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Backend(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.BackendProto.internal_static_google_api_Backend_descriptor; } @@ -73,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * A list of API backend rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -87,6 +83,7 @@ public java.util.List getRulesList() { * *
    * A list of API backend rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -101,6 +98,7 @@ public java.util.List getRulesOrB * *
    * A list of API backend rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -115,6 +113,7 @@ public int getRulesCount() { * *
    * A list of API backend rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -129,6 +128,7 @@ public com.google.api.BackendRule getRules(int index) { * *
    * A list of API backend rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -390,39 +390,6 @@ private void buildPartial0(com.google.api.Backend result) { int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.Backend) { @@ -539,6 +506,7 @@ private void ensureRulesIsMutable() { * *
      * A list of API backend rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -556,6 +524,7 @@ public java.util.List getRulesList() { * *
      * A list of API backend rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -573,6 +542,7 @@ public int getRulesCount() { * *
      * A list of API backend rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -590,6 +560,7 @@ public com.google.api.BackendRule getRules(int index) { * *
      * A list of API backend rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -613,6 +584,7 @@ public Builder setRules(int index, com.google.api.BackendRule value) { * *
      * A list of API backend rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -633,6 +605,7 @@ public Builder setRules(int index, com.google.api.BackendRule.Builder builderFor * *
      * A list of API backend rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -656,6 +629,7 @@ public Builder addRules(com.google.api.BackendRule value) { * *
      * A list of API backend rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -679,6 +653,7 @@ public Builder addRules(int index, com.google.api.BackendRule value) { * *
      * A list of API backend rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -699,6 +674,7 @@ public Builder addRules(com.google.api.BackendRule.Builder builderForValue) { * *
      * A list of API backend rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -719,6 +695,7 @@ public Builder addRules(int index, com.google.api.BackendRule.Builder builderFor * *
      * A list of API backend rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -739,6 +716,7 @@ public Builder addAllRules(java.lang.Iterable * A list of API backend rules that apply to individual API methods. + * * **NOTE:** All service configuration rules follow "last one wins" order. *
* @@ -759,6 +737,7 @@ public Builder clearRules() { * *
      * A list of API backend rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -779,6 +758,7 @@ public Builder removeRules(int index) { * *
      * A list of API backend rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -792,6 +772,7 @@ public com.google.api.BackendRule.Builder getRulesBuilder(int index) { * *
      * A list of API backend rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -809,6 +790,7 @@ public com.google.api.BackendRuleOrBuilder getRulesOrBuilder(int index) { * *
      * A list of API backend rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -826,6 +808,7 @@ public java.util.List getRulesOrB * *
      * A list of API backend rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -839,6 +822,7 @@ public com.google.api.BackendRule.Builder addRulesBuilder() { * *
      * A list of API backend rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -853,6 +837,7 @@ public com.google.api.BackendRule.Builder addRulesBuilder(int index) { * *
      * A list of API backend rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendOrBuilder.java index 807191b594..9649071c93 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendOrBuilder.java @@ -28,6 +28,7 @@ public interface BackendOrBuilder * *
    * A list of API backend rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -39,6 +40,7 @@ public interface BackendOrBuilder * *
    * A list of API backend rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -50,6 +52,7 @@ public interface BackendOrBuilder * *
    * A list of API backend rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -61,6 +64,7 @@ public interface BackendOrBuilder * *
    * A list of API backend rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -72,6 +76,7 @@ public interface BackendOrBuilder * *
    * A list of API backend rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java index 8eb90a0d77..161bb7092a 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java @@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BackendRule(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.BackendProto.internal_static_google_api_BackendRule_descriptor; } @@ -85,6 +80,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * Path Translation specifies how to combine the backend address with the * request path in order to produce the appropriate forwarding URL for the * request. + * * Path Translation is applicable only to HTTP-based backends. Backends which * do not accept requests over HTTP/HTTPS should leave `path_translation` * unspecified. @@ -104,15 +100,21 @@ public enum PathTranslation implements com.google.protobuf.ProtocolMessageEnum { * appended to the query string. If a query string parameter and a URL * pattern variable have the same name, this may result in duplicate keys in * the query string. + * * # Examples + * * Given the following operation config: + * * Method path: /api/company/{cid}/user/{uid} * Backend address: https://example.cloudfunctions.net/getUser + * * Requests to the following request paths will call the backend at the * translated path: + * * Request path: /api/company/widgetworks/user/johndoe * Translated: * https://example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe + * * Request path: /api/company/widgetworks/user/johndoe?timezone=EST * Translated: * https://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe @@ -126,15 +128,21 @@ public enum PathTranslation implements com.google.protobuf.ProtocolMessageEnum { * *
      * The request path will be appended to the backend address.
+     *
      * # Examples
+     *
      * Given the following operation config:
+     *
      *     Method path:        /api/company/{cid}/user/{uid}
      *     Backend address:    https://example.appspot.com
+     *
      * Requests to the following request paths will call the backend at the
      * translated path:
+     *
      *     Request path: /api/company/widgetworks/user/johndoe
      *     Translated:
      *     https://example.appspot.com/api/company/widgetworks/user/johndoe
+     *
      *     Request path: /api/company/widgetworks/user/johndoe?timezone=EST
      *     Translated:
      *     https://example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST
@@ -157,15 +165,21 @@ public enum PathTranslation implements com.google.protobuf.ProtocolMessageEnum {
      * appended to the query string. If a query string parameter and a URL
      * pattern variable have the same name, this may result in duplicate keys in
      * the query string.
+     *
      * # Examples
+     *
      * Given the following operation config:
+     *
      *     Method path:        /api/company/{cid}/user/{uid}
      *     Backend address:    https://example.cloudfunctions.net/getUser
+     *
      * Requests to the following request paths will call the backend at the
      * translated path:
+     *
      *     Request path: /api/company/widgetworks/user/johndoe
      *     Translated:
      *     https://example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe
+     *
      *     Request path: /api/company/widgetworks/user/johndoe?timezone=EST
      *     Translated:
      *     https://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe
@@ -179,15 +193,21 @@ public enum PathTranslation implements com.google.protobuf.ProtocolMessageEnum {
      *
      * 
      * The request path will be appended to the backend address.
+     *
      * # Examples
+     *
      * Given the following operation config:
+     *
      *     Method path:        /api/company/{cid}/user/{uid}
      *     Backend address:    https://example.appspot.com
+     *
      * Requests to the following request paths will call the backend at the
      * translated path:
+     *
      *     Request path: /api/company/widgetworks/user/johndoe
      *     Translated:
      *     https://example.appspot.com/api/company/widgetworks/user/johndoe
+     *
      *     Request path: /api/company/widgetworks/user/johndoe?timezone=EST
      *     Translated:
      *     https://example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST
@@ -283,6 +303,8 @@ private PathTranslation(int value) {
   }
 
   private int authenticationCase_ = 0;
+
+  @SuppressWarnings("serial")
   private java.lang.Object authentication_;
 
   public enum AuthenticationCase
@@ -338,6 +360,7 @@ public AuthenticationCase getAuthenticationCase() {
    *
    * 
    * Selects the methods to which this rule applies.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -363,6 +386,7 @@ public java.lang.String getSelector() { * *
    * Selects the methods to which this rule applies.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -393,18 +417,23 @@ public com.google.protobuf.ByteString getSelectorBytes() { * *
    * The address of the API backend.
+   *
    * The scheme is used to determine the backend protocol and security.
    * The following schemes are accepted:
+   *
    *    SCHEME        PROTOCOL    SECURITY
    *    http://       HTTP        None
    *    https://      HTTP        TLS
    *    grpc://       gRPC        None
    *    grpcs://      gRPC        TLS
+   *
    * It is recommended to explicitly include a scheme. Leaving out the scheme
    * may cause constrasting behaviors across platforms.
+   *
    * If the port is unspecified, the default is:
    * - 80 for schemes without TLS
    * - 443 for schemes with TLS
+   *
    * For HTTP backends, use [protocol][google.api.BackendRule.protocol]
    * to specify the protocol version.
    * 
@@ -430,18 +459,23 @@ public java.lang.String getAddress() { * *
    * The address of the API backend.
+   *
    * The scheme is used to determine the backend protocol and security.
    * The following schemes are accepted:
+   *
    *    SCHEME        PROTOCOL    SECURITY
    *    http://       HTTP        None
    *    https://      HTTP        TLS
    *    grpc://       gRPC        None
    *    grpcs://      gRPC        TLS
+   *
    * It is recommended to explicitly include a scheme. Leaving out the scheme
    * may cause constrasting behaviors across platforms.
+   *
    * If the port is unspecified, the default is:
    * - 80 for schemes without TLS
    * - 443 for schemes with TLS
+   *
    * For HTTP backends, use [protocol][google.api.BackendRule.protocol]
    * to specify the protocol version.
    * 
@@ -672,17 +706,22 @@ public boolean getDisableAuth() { *
    * The protocol used for sending a request to the backend.
    * The supported values are "http/1.1" and "h2".
+   *
    * The default value is inferred from the scheme in the
    * [address][google.api.BackendRule.address] field:
+   *
    *    SCHEME        PROTOCOL
    *    http://       http/1.1
    *    https://      http/1.1
    *    grpc://       h2
    *    grpcs://      h2
+   *
    * For secure HTTP backends (https://) that support HTTP/2, set this field
    * to "h2" for improved performance.
+   *
    * Configuring this field to non-default values is only supported for secure
    * HTTP backends. This field will be ignored for all other backends.
+   *
    * See
    * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
    * for more details on the supported values.
@@ -710,17 +749,22 @@ public java.lang.String getProtocol() {
    * 
    * The protocol used for sending a request to the backend.
    * The supported values are "http/1.1" and "h2".
+   *
    * The default value is inferred from the scheme in the
    * [address][google.api.BackendRule.address] field:
+   *
    *    SCHEME        PROTOCOL
    *    http://       http/1.1
    *    https://      http/1.1
    *    grpc://       h2
    *    grpcs://      h2
+   *
    * For secure HTTP backends (https://) that support HTTP/2, set this field
    * to "h2" for improved performance.
+   *
    * Configuring this field to non-default values is only supported for secure
    * HTTP backends. This field will be ignored for all other backends.
+   *
    * See
    * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
    * for more details on the supported values.
@@ -1273,39 +1317,6 @@ private void buildPartialOneofs(com.google.api.BackendRule result) {
       result.authentication_ = this.authentication_;
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.BackendRule) {
@@ -1502,6 +1513,7 @@ public Builder clearAuthentication() {
      *
      * 
      * Selects the methods to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -1526,6 +1538,7 @@ public java.lang.String getSelector() { * *
      * Selects the methods to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -1550,6 +1563,7 @@ public com.google.protobuf.ByteString getSelectorBytes() { * *
      * Selects the methods to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -1573,6 +1587,7 @@ public Builder setSelector(java.lang.String value) { * *
      * Selects the methods to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -1592,6 +1607,7 @@ public Builder clearSelector() { * *
      * Selects the methods to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -1618,18 +1634,23 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) { * *
      * The address of the API backend.
+     *
      * The scheme is used to determine the backend protocol and security.
      * The following schemes are accepted:
+     *
      *    SCHEME        PROTOCOL    SECURITY
      *    http://       HTTP        None
      *    https://      HTTP        TLS
      *    grpc://       gRPC        None
      *    grpcs://      gRPC        TLS
+     *
      * It is recommended to explicitly include a scheme. Leaving out the scheme
      * may cause constrasting behaviors across platforms.
+     *
      * If the port is unspecified, the default is:
      * - 80 for schemes without TLS
      * - 443 for schemes with TLS
+     *
      * For HTTP backends, use [protocol][google.api.BackendRule.protocol]
      * to specify the protocol version.
      * 
@@ -1654,18 +1675,23 @@ public java.lang.String getAddress() { * *
      * The address of the API backend.
+     *
      * The scheme is used to determine the backend protocol and security.
      * The following schemes are accepted:
+     *
      *    SCHEME        PROTOCOL    SECURITY
      *    http://       HTTP        None
      *    https://      HTTP        TLS
      *    grpc://       gRPC        None
      *    grpcs://      gRPC        TLS
+     *
      * It is recommended to explicitly include a scheme. Leaving out the scheme
      * may cause constrasting behaviors across platforms.
+     *
      * If the port is unspecified, the default is:
      * - 80 for schemes without TLS
      * - 443 for schemes with TLS
+     *
      * For HTTP backends, use [protocol][google.api.BackendRule.protocol]
      * to specify the protocol version.
      * 
@@ -1690,18 +1716,23 @@ public com.google.protobuf.ByteString getAddressBytes() { * *
      * The address of the API backend.
+     *
      * The scheme is used to determine the backend protocol and security.
      * The following schemes are accepted:
+     *
      *    SCHEME        PROTOCOL    SECURITY
      *    http://       HTTP        None
      *    https://      HTTP        TLS
      *    grpc://       gRPC        None
      *    grpcs://      gRPC        TLS
+     *
      * It is recommended to explicitly include a scheme. Leaving out the scheme
      * may cause constrasting behaviors across platforms.
+     *
      * If the port is unspecified, the default is:
      * - 80 for schemes without TLS
      * - 443 for schemes with TLS
+     *
      * For HTTP backends, use [protocol][google.api.BackendRule.protocol]
      * to specify the protocol version.
      * 
@@ -1725,18 +1756,23 @@ public Builder setAddress(java.lang.String value) { * *
      * The address of the API backend.
+     *
      * The scheme is used to determine the backend protocol and security.
      * The following schemes are accepted:
+     *
      *    SCHEME        PROTOCOL    SECURITY
      *    http://       HTTP        None
      *    https://      HTTP        TLS
      *    grpc://       gRPC        None
      *    grpcs://      gRPC        TLS
+     *
      * It is recommended to explicitly include a scheme. Leaving out the scheme
      * may cause constrasting behaviors across platforms.
+     *
      * If the port is unspecified, the default is:
      * - 80 for schemes without TLS
      * - 443 for schemes with TLS
+     *
      * For HTTP backends, use [protocol][google.api.BackendRule.protocol]
      * to specify the protocol version.
      * 
@@ -1756,18 +1792,23 @@ public Builder clearAddress() { * *
      * The address of the API backend.
+     *
      * The scheme is used to determine the backend protocol and security.
      * The following schemes are accepted:
+     *
      *    SCHEME        PROTOCOL    SECURITY
      *    http://       HTTP        None
      *    https://      HTTP        TLS
      *    grpc://       gRPC        None
      *    grpcs://      gRPC        TLS
+     *
      * It is recommended to explicitly include a scheme. Leaving out the scheme
      * may cause constrasting behaviors across platforms.
+     *
      * If the port is unspecified, the default is:
      * - 80 for schemes without TLS
      * - 443 for schemes with TLS
+     *
      * For HTTP backends, use [protocol][google.api.BackendRule.protocol]
      * to specify the protocol version.
      * 
@@ -2257,17 +2298,22 @@ public Builder clearDisableAuth() { *
      * The protocol used for sending a request to the backend.
      * The supported values are "http/1.1" and "h2".
+     *
      * The default value is inferred from the scheme in the
      * [address][google.api.BackendRule.address] field:
+     *
      *    SCHEME        PROTOCOL
      *    http://       http/1.1
      *    https://      http/1.1
      *    grpc://       h2
      *    grpcs://      h2
+     *
      * For secure HTTP backends (https://) that support HTTP/2, set this field
      * to "h2" for improved performance.
+     *
      * Configuring this field to non-default values is only supported for secure
      * HTTP backends. This field will be ignored for all other backends.
+     *
      * See
      * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
      * for more details on the supported values.
@@ -2294,17 +2340,22 @@ public java.lang.String getProtocol() {
      * 
      * The protocol used for sending a request to the backend.
      * The supported values are "http/1.1" and "h2".
+     *
      * The default value is inferred from the scheme in the
      * [address][google.api.BackendRule.address] field:
+     *
      *    SCHEME        PROTOCOL
      *    http://       http/1.1
      *    https://      http/1.1
      *    grpc://       h2
      *    grpcs://      h2
+     *
      * For secure HTTP backends (https://) that support HTTP/2, set this field
      * to "h2" for improved performance.
+     *
      * Configuring this field to non-default values is only supported for secure
      * HTTP backends. This field will be ignored for all other backends.
+     *
      * See
      * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
      * for more details on the supported values.
@@ -2331,17 +2382,22 @@ public com.google.protobuf.ByteString getProtocolBytes() {
      * 
      * The protocol used for sending a request to the backend.
      * The supported values are "http/1.1" and "h2".
+     *
      * The default value is inferred from the scheme in the
      * [address][google.api.BackendRule.address] field:
+     *
      *    SCHEME        PROTOCOL
      *    http://       http/1.1
      *    https://      http/1.1
      *    grpc://       h2
      *    grpcs://      h2
+     *
      * For secure HTTP backends (https://) that support HTTP/2, set this field
      * to "h2" for improved performance.
+     *
      * Configuring this field to non-default values is only supported for secure
      * HTTP backends. This field will be ignored for all other backends.
+     *
      * See
      * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
      * for more details on the supported values.
@@ -2367,17 +2423,22 @@ public Builder setProtocol(java.lang.String value) {
      * 
      * The protocol used for sending a request to the backend.
      * The supported values are "http/1.1" and "h2".
+     *
      * The default value is inferred from the scheme in the
      * [address][google.api.BackendRule.address] field:
+     *
      *    SCHEME        PROTOCOL
      *    http://       http/1.1
      *    https://      http/1.1
      *    grpc://       h2
      *    grpcs://      h2
+     *
      * For secure HTTP backends (https://) that support HTTP/2, set this field
      * to "h2" for improved performance.
+     *
      * Configuring this field to non-default values is only supported for secure
      * HTTP backends. This field will be ignored for all other backends.
+     *
      * See
      * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
      * for more details on the supported values.
@@ -2399,17 +2460,22 @@ public Builder clearProtocol() {
      * 
      * The protocol used for sending a request to the backend.
      * The supported values are "http/1.1" and "h2".
+     *
      * The default value is inferred from the scheme in the
      * [address][google.api.BackendRule.address] field:
+     *
      *    SCHEME        PROTOCOL
      *    http://       http/1.1
      *    https://      http/1.1
      *    grpc://       h2
      *    grpcs://      h2
+     *
      * For secure HTTP backends (https://) that support HTTP/2, set this field
      * to "h2" for improved performance.
+     *
      * Configuring this field to non-default values is only supported for secure
      * HTTP backends. This field will be ignored for all other backends.
+     *
      * See
      * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
      * for more details on the supported values.
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java
index e4d76647a7..e1cc5b2630 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java
@@ -28,6 +28,7 @@ public interface BackendRuleOrBuilder
    *
    * 
    * Selects the methods to which this rule applies.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -42,6 +43,7 @@ public interface BackendRuleOrBuilder * *
    * Selects the methods to which this rule applies.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -57,18 +59,23 @@ public interface BackendRuleOrBuilder * *
    * The address of the API backend.
+   *
    * The scheme is used to determine the backend protocol and security.
    * The following schemes are accepted:
+   *
    *    SCHEME        PROTOCOL    SECURITY
    *    http://       HTTP        None
    *    https://      HTTP        TLS
    *    grpc://       gRPC        None
    *    grpcs://      gRPC        TLS
+   *
    * It is recommended to explicitly include a scheme. Leaving out the scheme
    * may cause constrasting behaviors across platforms.
+   *
    * If the port is unspecified, the default is:
    * - 80 for schemes without TLS
    * - 443 for schemes with TLS
+   *
    * For HTTP backends, use [protocol][google.api.BackendRule.protocol]
    * to specify the protocol version.
    * 
@@ -83,18 +90,23 @@ public interface BackendRuleOrBuilder * *
    * The address of the API backend.
+   *
    * The scheme is used to determine the backend protocol and security.
    * The following schemes are accepted:
+   *
    *    SCHEME        PROTOCOL    SECURITY
    *    http://       HTTP        None
    *    https://      HTTP        TLS
    *    grpc://       gRPC        None
    *    grpcs://      gRPC        TLS
+   *
    * It is recommended to explicitly include a scheme. Leaving out the scheme
    * may cause constrasting behaviors across platforms.
+   *
    * If the port is unspecified, the default is:
    * - 80 for schemes without TLS
    * - 443 for schemes with TLS
+   *
    * For HTTP backends, use [protocol][google.api.BackendRule.protocol]
    * to specify the protocol version.
    * 
@@ -242,17 +254,22 @@ public interface BackendRuleOrBuilder *
    * The protocol used for sending a request to the backend.
    * The supported values are "http/1.1" and "h2".
+   *
    * The default value is inferred from the scheme in the
    * [address][google.api.BackendRule.address] field:
+   *
    *    SCHEME        PROTOCOL
    *    http://       http/1.1
    *    https://      http/1.1
    *    grpc://       h2
    *    grpcs://      h2
+   *
    * For secure HTTP backends (https://) that support HTTP/2, set this field
    * to "h2" for improved performance.
+   *
    * Configuring this field to non-default values is only supported for secure
    * HTTP backends. This field will be ignored for all other backends.
+   *
    * See
    * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
    * for more details on the supported values.
@@ -269,17 +286,22 @@ public interface BackendRuleOrBuilder
    * 
    * The protocol used for sending a request to the backend.
    * The supported values are "http/1.1" and "h2".
+   *
    * The default value is inferred from the scheme in the
    * [address][google.api.BackendRule.address] field:
+   *
    *    SCHEME        PROTOCOL
    *    http://       http/1.1
    *    https://      http/1.1
    *    grpc://       h2
    *    grpcs://      h2
+   *
    * For secure HTTP backends (https://) that support HTTP/2, set this field
    * to "h2" for improved performance.
+   *
    * Configuring this field to non-default values is only supported for secure
    * HTTP backends. This field will be ignored for all other backends.
+   *
    * See
    * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
    * for more details on the supported values.
@@ -349,5 +371,5 @@ com.google.api.BackendRule getOverridesByRequestProtocolOrDefault(
    */
   com.google.api.BackendRule getOverridesByRequestProtocolOrThrow(java.lang.String key);
 
-  public com.google.api.BackendRule.AuthenticationCase getAuthenticationCase();
+  com.google.api.BackendRule.AuthenticationCase getAuthenticationCase();
 }
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Billing.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Billing.java
index 081f409851..77a1b33e54 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Billing.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Billing.java
@@ -23,12 +23,15 @@
  *
  * 
  * Billing related configuration of the service.
+ *
  * The following example shows how to configure monitored resources and metrics
  * for billing, `consumer_destinations` is the only supported destination and
  * the monitored resources need at least one label key
  * `cloud.googleapis.com/location` to indicate the location of the billing
  * usage, using different monitored resources between monitoring and billing is
  * recommended so they can be evolved independently:
+ *
+ *
  *     monitored_resources:
  *     - type: library.googleapis.com/billing_branch
  *       labels:
@@ -75,11 +78,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Billing();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.BillingProto.internal_static_google_api_Billing_descriptor;
   }
@@ -207,7 +205,7 @@ private BillingDestination(com.google.protobuf.GeneratedMessageV3.Builder bui
 
     private BillingDestination() {
       monitoredResource_ = "";
-      metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      metrics_ = com.google.protobuf.LazyStringArrayList.emptyList();
     }
 
     @java.lang.Override
@@ -216,11 +214,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new BillingDestination();
     }
 
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-      return this.unknownFields;
-    }
-
     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.api.BillingProto
           .internal_static_google_api_Billing_BillingDestination_descriptor;
@@ -294,7 +287,8 @@ public com.google.protobuf.ByteString getMonitoredResourceBytes() {
     public static final int METRICS_FIELD_NUMBER = 2;
 
     @SuppressWarnings("serial")
-    private com.google.protobuf.LazyStringList metrics_;
+    private com.google.protobuf.LazyStringArrayList metrics_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
     /**
      *
      *
@@ -580,8 +574,7 @@ public Builder clear() {
         super.clear();
         bitField0_ = 0;
         monitoredResource_ = "";
-        metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-        bitField0_ = (bitField0_ & ~0x00000002);
+        metrics_ = com.google.protobuf.LazyStringArrayList.emptyList();
         return this;
       }
 
@@ -609,7 +602,6 @@ public com.google.api.Billing.BillingDestination build() {
       public com.google.api.Billing.BillingDestination buildPartial() {
         com.google.api.Billing.BillingDestination result =
             new com.google.api.Billing.BillingDestination(this);
-        buildPartialRepeatedFields(result);
         if (bitField0_ != 0) {
           buildPartial0(result);
         }
@@ -617,54 +609,15 @@ public com.google.api.Billing.BillingDestination buildPartial() {
         return result;
       }
 
-      private void buildPartialRepeatedFields(com.google.api.Billing.BillingDestination result) {
-        if (((bitField0_ & 0x00000002) != 0)) {
-          metrics_ = metrics_.getUnmodifiableView();
-          bitField0_ = (bitField0_ & ~0x00000002);
-        }
-        result.metrics_ = metrics_;
-      }
-
       private void buildPartial0(com.google.api.Billing.BillingDestination result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.monitoredResource_ = monitoredResource_;
         }
-      }
-
-      @java.lang.Override
-      public Builder clone() {
-        return super.clone();
-      }
-
-      @java.lang.Override
-      public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-        return super.setField(field, value);
-      }
-
-      @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-        return super.clearField(field);
-      }
-
-      @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-        return super.clearOneof(oneof);
-      }
-
-      @java.lang.Override
-      public Builder setRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
-        return super.setRepeatedField(field, index, value);
-      }
-
-      @java.lang.Override
-      public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-        return super.addRepeatedField(field, value);
+        if (((from_bitField0_ & 0x00000002) != 0)) {
+          metrics_.makeImmutable();
+          result.metrics_ = metrics_;
+        }
       }
 
       @java.lang.Override
@@ -687,7 +640,7 @@ public Builder mergeFrom(com.google.api.Billing.BillingDestination other) {
         if (!other.metrics_.isEmpty()) {
           if (metrics_.isEmpty()) {
             metrics_ = other.metrics_;
-            bitField0_ = (bitField0_ & ~0x00000002);
+            bitField0_ |= 0x00000002;
           } else {
             ensureMetricsIsMutable();
             metrics_.addAll(other.metrics_);
@@ -868,14 +821,14 @@ public Builder setMonitoredResourceBytes(com.google.protobuf.ByteString value) {
         return this;
       }
 
-      private com.google.protobuf.LazyStringList metrics_ =
-          com.google.protobuf.LazyStringArrayList.EMPTY;
+      private com.google.protobuf.LazyStringArrayList metrics_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
 
       private void ensureMetricsIsMutable() {
-        if (!((bitField0_ & 0x00000002) != 0)) {
+        if (!metrics_.isModifiable()) {
           metrics_ = new com.google.protobuf.LazyStringArrayList(metrics_);
-          bitField0_ |= 0x00000002;
         }
+        bitField0_ |= 0x00000002;
       }
       /**
        *
@@ -891,7 +844,8 @@ private void ensureMetricsIsMutable() {
        * @return A list containing the metrics.
        */
       public com.google.protobuf.ProtocolStringList getMetricsList() {
-        return metrics_.getUnmodifiableView();
+        metrics_.makeImmutable();
+        return metrics_;
       }
       /**
        *
@@ -964,6 +918,7 @@ public Builder setMetrics(int index, java.lang.String value) {
         }
         ensureMetricsIsMutable();
         metrics_.set(index, value);
+        bitField0_ |= 0x00000002;
         onChanged();
         return this;
       }
@@ -987,6 +942,7 @@ public Builder addMetrics(java.lang.String value) {
         }
         ensureMetricsIsMutable();
         metrics_.add(value);
+        bitField0_ |= 0x00000002;
         onChanged();
         return this;
       }
@@ -1007,6 +963,7 @@ public Builder addMetrics(java.lang.String value) {
       public Builder addAllMetrics(java.lang.Iterable values) {
         ensureMetricsIsMutable();
         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_);
+        bitField0_ |= 0x00000002;
         onChanged();
         return this;
       }
@@ -1024,8 +981,9 @@ public Builder addAllMetrics(java.lang.Iterable values) {
        * @return This builder for chaining.
        */
       public Builder clearMetrics() {
-        metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+        metrics_ = com.google.protobuf.LazyStringArrayList.emptyList();
         bitField0_ = (bitField0_ & ~0x00000002);
+        ;
         onChanged();
         return this;
       }
@@ -1050,6 +1008,7 @@ public Builder addMetricsBytes(com.google.protobuf.ByteString value) {
         checkByteStringIsUtf8(value);
         ensureMetricsIsMutable();
         metrics_.add(value);
+        bitField0_ |= 0x00000002;
         onChanged();
         return this;
       }
@@ -1370,12 +1329,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 
    * Billing related configuration of the service.
+   *
    * The following example shows how to configure monitored resources and metrics
    * for billing, `consumer_destinations` is the only supported destination and
    * the monitored resources need at least one label key
    * `cloud.googleapis.com/location` to indicate the location of the billing
    * usage, using different monitored resources between monitoring and billing is
    * recommended so they can be evolved independently:
+   *
+   *
    *     monitored_resources:
    *     - type: library.googleapis.com/billing_branch
    *       labels:
@@ -1485,39 +1447,6 @@ private void buildPartial0(com.google.api.Billing result) {
       int from_bitField0_ = bitField0_;
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.Billing) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettings.java
index 22e1d6a886..12400b691c 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettings.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ClientLibrarySettings();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.ClientProto.internal_static_google_api_ClientLibrarySettings_descriptor;
   }
@@ -995,39 +990,6 @@ private void buildPartial0(com.google.api.ClientLibrarySettings result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.ClientLibrarySettings) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientProto.java
index 1a5e87bc39..8bdd110ef1 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientProto.java
@@ -37,23 +37,31 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
    *
    * 
    * A definition of a client library method signature.
+   *
    * In client libraries, each proto RPC corresponds to one or more methods
    * which the end user is able to call, and calls the underlying RPC.
    * Normally, this method receives a single argument (a struct or instance
    * corresponding to the RPC request object). Defining this field will
    * add one or more overloads providing flattened or simpler method signatures
    * in some languages.
+   *
    * The fields on the method signature are provided as a comma-separated
    * string.
+   *
    * For example, the proto RPC and annotation:
+   *
    *   rpc CreateSubscription(CreateSubscriptionRequest)
    *       returns (Subscription) {
    *     option (google.api.method_signature) = "name,topic";
    *   }
+   *
    * Would add the following Java overload (in addition to the method accepting
    * the request object):
+   *
    *   public final Subscription createSubscription(String name, String topic)
+   *
    * The following backwards-compatibility guidelines apply:
+   *
    *   * Adding this annotation to an unannotated method is backwards
    *     compatible.
    *   * Adding this annotation to a method which already has existing
@@ -80,7 +88,9 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
    * 
    * The hostname for this service.
    * This should be specified with no prefix or protocol.
+   *
    * Example:
+   *
    *   service Foo {
    *     option (google.api.default_host) = "foo.googleapi.com";
    *     ...
@@ -101,14 +111,19 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
    *
    * 
    * OAuth scopes needed for the client.
+   *
    * Example:
+   *
    *   service Foo {
    *     option (google.api.oauth_scopes) = \
    *       "https://www.googleapis.com/auth/cloud-platform";
    *     ...
    *   }
+   *
    * If there is more than one scope, use a comma-separated string:
+   *
    * Example:
+   *
    *   service Foo {
    *     option (google.api.oauth_scopes) = \
    *       "https://www.googleapis.com/auth/cloud-platform,"
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettings.java
index cd775f9434..e2dc7ee3c4 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettings.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CommonLanguageSettings();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.ClientProto.internal_static_google_api_CommonLanguageSettings_descriptor;
   }
@@ -499,39 +494,6 @@ private void buildPartial0(com.google.api.CommonLanguageSettings result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.CommonLanguageSettings) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChange.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChange.java
index 2d38026dd4..f9c91ce5cf 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChange.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChange.java
@@ -24,6 +24,7 @@
  * 
  * Output generated from semantically comparing two versions of a service
  * configuration.
+ *
  * Includes detailed information about a field that have changed with
  * applicable advice about potential consequences for the change, such as
  * backwards-incompatibility.
@@ -55,11 +56,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ConfigChange();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.ConfigChangeProto.internal_static_google_api_ConfigChange_descriptor;
   }
@@ -556,6 +552,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * 
    * Output generated from semantically comparing two versions of a service
    * configuration.
+   *
    * Includes detailed information about a field that have changed with
    * applicable advice about potential consequences for the change, such as
    * backwards-incompatibility.
@@ -663,39 +660,6 @@ private void buildPartial0(com.google.api.ConfigChange result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.ConfigChange) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Context.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Context.java
index f3f2c60cf3..80f9bb90f5 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Context.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Context.java
@@ -23,24 +23,31 @@
  *
  * 
  * `Context` defines which contexts an API requests.
+ *
  * Example:
+ *
  *     context:
  *       rules:
  *       - selector: "*"
  *         requested:
  *         - google.rpc.context.ProjectContext
  *         - google.rpc.context.OriginContext
+ *
  * The above specifies that all methods in the API request
  * `google.rpc.context.ProjectContext` and
  * `google.rpc.context.OriginContext`.
+ *
  * Available context types are defined in package
  * `google.rpc.context`.
+ *
  * This also provides mechanism to allowlist any protobuf message extension that
  * can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and
  * “x-goog-ext-<extension_id>-jspb” format. For example, list any service
  * specific protobuf types that can appear in grpc metadata as follows in your
  * yaml file:
+ *
  * Example:
+ *
  *     context:
  *       rules:
  *        - selector: "google.example.library.v1.LibraryService.CreateBook"
@@ -48,6 +55,7 @@
  *          - google.foo.v1.NewExtension
  *          allowed_response_extensions:
  *          - google.foo.v1.NewExtension
+ *
  * You can also specify extension ID instead of fully qualified extension name
  * here.
  * 
@@ -74,11 +82,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Context(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.ContextProto.internal_static_google_api_Context_descriptor; } @@ -100,6 +103,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * A list of RPC context rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -114,6 +118,7 @@ public java.util.List getRulesList() { * *
    * A list of RPC context rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -128,6 +133,7 @@ public java.util.List getRulesOrB * *
    * A list of RPC context rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -142,6 +148,7 @@ public int getRulesCount() { * *
    * A list of RPC context rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -156,6 +163,7 @@ public com.google.api.ContextRule getRules(int index) { * *
    * A list of RPC context rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -330,24 +338,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * `Context` defines which contexts an API requests.
+   *
    * Example:
+   *
    *     context:
    *       rules:
    *       - selector: "*"
    *         requested:
    *         - google.rpc.context.ProjectContext
    *         - google.rpc.context.OriginContext
+   *
    * The above specifies that all methods in the API request
    * `google.rpc.context.ProjectContext` and
    * `google.rpc.context.OriginContext`.
+   *
    * Available context types are defined in package
    * `google.rpc.context`.
+   *
    * This also provides mechanism to allowlist any protobuf message extension that
    * can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and
    * “x-goog-ext-<extension_id>-jspb” format. For example, list any service
    * specific protobuf types that can appear in grpc metadata as follows in your
    * yaml file:
+   *
    * Example:
+   *
    *     context:
    *       rules:
    *        - selector: "google.example.library.v1.LibraryService.CreateBook"
@@ -355,6 +370,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *          - google.foo.v1.NewExtension
    *          allowed_response_extensions:
    *          - google.foo.v1.NewExtension
+   *
    * You can also specify extension ID instead of fully qualified extension name
    * here.
    * 
@@ -444,39 +460,6 @@ private void buildPartial0(com.google.api.Context result) { int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.Context) { @@ -593,6 +576,7 @@ private void ensureRulesIsMutable() { * *
      * A list of RPC context rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -610,6 +594,7 @@ public java.util.List getRulesList() { * *
      * A list of RPC context rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -627,6 +612,7 @@ public int getRulesCount() { * *
      * A list of RPC context rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -644,6 +630,7 @@ public com.google.api.ContextRule getRules(int index) { * *
      * A list of RPC context rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -667,6 +654,7 @@ public Builder setRules(int index, com.google.api.ContextRule value) { * *
      * A list of RPC context rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -687,6 +675,7 @@ public Builder setRules(int index, com.google.api.ContextRule.Builder builderFor * *
      * A list of RPC context rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -710,6 +699,7 @@ public Builder addRules(com.google.api.ContextRule value) { * *
      * A list of RPC context rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -733,6 +723,7 @@ public Builder addRules(int index, com.google.api.ContextRule value) { * *
      * A list of RPC context rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -753,6 +744,7 @@ public Builder addRules(com.google.api.ContextRule.Builder builderForValue) { * *
      * A list of RPC context rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -773,6 +765,7 @@ public Builder addRules(int index, com.google.api.ContextRule.Builder builderFor * *
      * A list of RPC context rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -793,6 +786,7 @@ public Builder addAllRules(java.lang.Iterable * A list of RPC context rules that apply to individual API methods. + * * **NOTE:** All service configuration rules follow "last one wins" order. *
* @@ -813,6 +807,7 @@ public Builder clearRules() { * *
      * A list of RPC context rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -833,6 +828,7 @@ public Builder removeRules(int index) { * *
      * A list of RPC context rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -846,6 +842,7 @@ public com.google.api.ContextRule.Builder getRulesBuilder(int index) { * *
      * A list of RPC context rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -863,6 +860,7 @@ public com.google.api.ContextRuleOrBuilder getRulesOrBuilder(int index) { * *
      * A list of RPC context rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -880,6 +878,7 @@ public java.util.List getRulesOrB * *
      * A list of RPC context rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -893,6 +892,7 @@ public com.google.api.ContextRule.Builder addRulesBuilder() { * *
      * A list of RPC context rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -907,6 +907,7 @@ public com.google.api.ContextRule.Builder addRulesBuilder(int index) { * *
      * A list of RPC context rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextOrBuilder.java index f7018ada23..8a776db816 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextOrBuilder.java @@ -28,6 +28,7 @@ public interface ContextOrBuilder * *
    * A list of RPC context rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -39,6 +40,7 @@ public interface ContextOrBuilder * *
    * A list of RPC context rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -50,6 +52,7 @@ public interface ContextOrBuilder * *
    * A list of RPC context rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -61,6 +64,7 @@ public interface ContextOrBuilder * *
    * A list of RPC context rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -72,6 +76,7 @@ public interface ContextOrBuilder * *
    * A list of RPC context rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextRule.java index de05105937..c03d4701c2 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextRule.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextRule.java @@ -40,10 +40,10 @@ private ContextRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { private ContextRule() { selector_ = ""; - requested_ = com.google.protobuf.LazyStringArrayList.EMPTY; - provided_ = com.google.protobuf.LazyStringArrayList.EMPTY; - allowedRequestExtensions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - allowedResponseExtensions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + requested_ = com.google.protobuf.LazyStringArrayList.emptyList(); + provided_ = com.google.protobuf.LazyStringArrayList.emptyList(); + allowedRequestExtensions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + allowedResponseExtensions_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -52,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ContextRule(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.ContextProto.internal_static_google_api_ContextRule_descriptor; } @@ -78,6 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Selects the methods to which this rule applies.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -103,6 +99,7 @@ public java.lang.String getSelector() { * *
    * Selects the methods to which this rule applies.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -127,7 +124,8 @@ public com.google.protobuf.ByteString getSelectorBytes() { public static final int REQUESTED_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList requested_; + private com.google.protobuf.LazyStringArrayList requested_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -190,7 +188,8 @@ public com.google.protobuf.ByteString getRequestedBytes(int index) { public static final int PROVIDED_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList provided_; + private com.google.protobuf.LazyStringArrayList provided_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -253,7 +252,8 @@ public com.google.protobuf.ByteString getProvidedBytes(int index) { public static final int ALLOWED_REQUEST_EXTENSIONS_FIELD_NUMBER = 4; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList allowedRequestExtensions_; + private com.google.protobuf.LazyStringArrayList allowedRequestExtensions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -320,7 +320,8 @@ public com.google.protobuf.ByteString getAllowedRequestExtensionsBytes(int index public static final int ALLOWED_RESPONSE_EXTENSIONS_FIELD_NUMBER = 5; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList allowedResponseExtensions_; + private com.google.protobuf.LazyStringArrayList allowedResponseExtensions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -647,14 +648,10 @@ public Builder clear() { super.clear(); bitField0_ = 0; selector_ = ""; - requested_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - provided_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - allowedRequestExtensions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - allowedResponseExtensions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); + requested_ = com.google.protobuf.LazyStringArrayList.emptyList(); + provided_ = com.google.protobuf.LazyStringArrayList.emptyList(); + allowedRequestExtensions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + allowedResponseExtensions_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -680,7 +677,6 @@ public com.google.api.ContextRule build() { @java.lang.Override public com.google.api.ContextRule buildPartial() { com.google.api.ContextRule result = new com.google.api.ContextRule(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -688,67 +684,27 @@ public com.google.api.ContextRule buildPartial() { return result; } - private void buildPartialRepeatedFields(com.google.api.ContextRule result) { - if (((bitField0_ & 0x00000002) != 0)) { - requested_ = requested_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.requested_ = requested_; - if (((bitField0_ & 0x00000004) != 0)) { - provided_ = provided_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.provided_ = provided_; - if (((bitField0_ & 0x00000008) != 0)) { - allowedRequestExtensions_ = allowedRequestExtensions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.allowedRequestExtensions_ = allowedRequestExtensions_; - if (((bitField0_ & 0x00000010) != 0)) { - allowedResponseExtensions_ = allowedResponseExtensions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.allowedResponseExtensions_ = allowedResponseExtensions_; - } - private void buildPartial0(com.google.api.ContextRule result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.selector_ = selector_; } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + if (((from_bitField0_ & 0x00000002) != 0)) { + requested_.makeImmutable(); + result.requested_ = requested_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + provided_.makeImmutable(); + result.provided_ = provided_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + allowedRequestExtensions_.makeImmutable(); + result.allowedRequestExtensions_ = allowedRequestExtensions_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + allowedResponseExtensions_.makeImmutable(); + result.allowedResponseExtensions_ = allowedResponseExtensions_; + } } @java.lang.Override @@ -771,7 +727,7 @@ public Builder mergeFrom(com.google.api.ContextRule other) { if (!other.requested_.isEmpty()) { if (requested_.isEmpty()) { requested_ = other.requested_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ |= 0x00000002; } else { ensureRequestedIsMutable(); requested_.addAll(other.requested_); @@ -781,7 +737,7 @@ public Builder mergeFrom(com.google.api.ContextRule other) { if (!other.provided_.isEmpty()) { if (provided_.isEmpty()) { provided_ = other.provided_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ |= 0x00000004; } else { ensureProvidedIsMutable(); provided_.addAll(other.provided_); @@ -791,7 +747,7 @@ public Builder mergeFrom(com.google.api.ContextRule other) { if (!other.allowedRequestExtensions_.isEmpty()) { if (allowedRequestExtensions_.isEmpty()) { allowedRequestExtensions_ = other.allowedRequestExtensions_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ |= 0x00000008; } else { ensureAllowedRequestExtensionsIsMutable(); allowedRequestExtensions_.addAll(other.allowedRequestExtensions_); @@ -801,7 +757,7 @@ public Builder mergeFrom(com.google.api.ContextRule other) { if (!other.allowedResponseExtensions_.isEmpty()) { if (allowedResponseExtensions_.isEmpty()) { allowedResponseExtensions_ = other.allowedResponseExtensions_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ |= 0x00000010; } else { ensureAllowedResponseExtensionsIsMutable(); allowedResponseExtensions_.addAll(other.allowedResponseExtensions_); @@ -893,6 +849,7 @@ public Builder mergeFrom( * *
      * Selects the methods to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -917,6 +874,7 @@ public java.lang.String getSelector() { * *
      * Selects the methods to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -941,6 +899,7 @@ public com.google.protobuf.ByteString getSelectorBytes() { * *
      * Selects the methods to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -964,6 +923,7 @@ public Builder setSelector(java.lang.String value) { * *
      * Selects the methods to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -983,6 +943,7 @@ public Builder clearSelector() { * *
      * Selects the methods to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -1003,14 +964,14 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList requested_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList requested_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureRequestedIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!requested_.isModifiable()) { requested_ = new com.google.protobuf.LazyStringArrayList(requested_); - bitField0_ |= 0x00000002; } + bitField0_ |= 0x00000002; } /** * @@ -1024,7 +985,8 @@ private void ensureRequestedIsMutable() { * @return A list containing the requested. */ public com.google.protobuf.ProtocolStringList getRequestedList() { - return requested_.getUnmodifiableView(); + requested_.makeImmutable(); + return requested_; } /** * @@ -1089,6 +1051,7 @@ public Builder setRequested(int index, java.lang.String value) { } ensureRequestedIsMutable(); requested_.set(index, value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1110,6 +1073,7 @@ public Builder addRequested(java.lang.String value) { } ensureRequestedIsMutable(); requested_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1128,6 +1092,7 @@ public Builder addRequested(java.lang.String value) { public Builder addAllRequested(java.lang.Iterable values) { ensureRequestedIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requested_); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1143,8 +1108,9 @@ public Builder addAllRequested(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearRequested() { - requested_ = com.google.protobuf.LazyStringArrayList.EMPTY; + requested_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } @@ -1167,18 +1133,19 @@ public Builder addRequestedBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureRequestedIsMutable(); requested_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } - private com.google.protobuf.LazyStringList provided_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList provided_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureProvidedIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!provided_.isModifiable()) { provided_ = new com.google.protobuf.LazyStringArrayList(provided_); - bitField0_ |= 0x00000004; } + bitField0_ |= 0x00000004; } /** * @@ -1192,7 +1159,8 @@ private void ensureProvidedIsMutable() { * @return A list containing the provided. */ public com.google.protobuf.ProtocolStringList getProvidedList() { - return provided_.getUnmodifiableView(); + provided_.makeImmutable(); + return provided_; } /** * @@ -1257,6 +1225,7 @@ public Builder setProvided(int index, java.lang.String value) { } ensureProvidedIsMutable(); provided_.set(index, value); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1278,6 +1247,7 @@ public Builder addProvided(java.lang.String value) { } ensureProvidedIsMutable(); provided_.add(value); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1296,6 +1266,7 @@ public Builder addProvided(java.lang.String value) { public Builder addAllProvided(java.lang.Iterable values) { ensureProvidedIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, provided_); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1311,8 +1282,9 @@ public Builder addAllProvided(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearProvided() { - provided_ = com.google.protobuf.LazyStringArrayList.EMPTY; + provided_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } @@ -1335,19 +1307,20 @@ public Builder addProvidedBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureProvidedIsMutable(); provided_.add(value); + bitField0_ |= 0x00000004; onChanged(); return this; } - private com.google.protobuf.LazyStringList allowedRequestExtensions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList allowedRequestExtensions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureAllowedRequestExtensionsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!allowedRequestExtensions_.isModifiable()) { allowedRequestExtensions_ = new com.google.protobuf.LazyStringArrayList(allowedRequestExtensions_); - bitField0_ |= 0x00000008; } + bitField0_ |= 0x00000008; } /** * @@ -1362,7 +1335,8 @@ private void ensureAllowedRequestExtensionsIsMutable() { * @return A list containing the allowedRequestExtensions. */ public com.google.protobuf.ProtocolStringList getAllowedRequestExtensionsList() { - return allowedRequestExtensions_.getUnmodifiableView(); + allowedRequestExtensions_.makeImmutable(); + return allowedRequestExtensions_; } /** * @@ -1431,6 +1405,7 @@ public Builder setAllowedRequestExtensions(int index, java.lang.String value) { } ensureAllowedRequestExtensionsIsMutable(); allowedRequestExtensions_.set(index, value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1453,6 +1428,7 @@ public Builder addAllowedRequestExtensions(java.lang.String value) { } ensureAllowedRequestExtensionsIsMutable(); allowedRequestExtensions_.add(value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1472,6 +1448,7 @@ public Builder addAllowedRequestExtensions(java.lang.String value) { public Builder addAllAllowedRequestExtensions(java.lang.Iterable values) { ensureAllowedRequestExtensionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedRequestExtensions_); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1488,8 +1465,9 @@ public Builder addAllAllowedRequestExtensions(java.lang.Iterable values) { ensureAllowedResponseExtensionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedResponseExtensions_); + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1666,8 +1649,9 @@ public Builder addAllAllowedResponseExtensions(java.lang.Iterable * Selects the methods to which this rule applies. + * * Refer to [selector][google.api.DocumentationRule.selector] for syntax * details. *
@@ -42,6 +43,7 @@ public interface ContextRuleOrBuilder * *
    * Selects the methods to which this rule applies.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Control.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Control.java index 2a4452abc3..f5df4104e1 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Control.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Control.java @@ -23,7 +23,9 @@ * *
  * Selects and configures the service controller used by the service.
+ *
  * Example:
+ *
  *     control:
  *       environment: servicecontrol.googleapis.com
  * 
@@ -50,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Control(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.ControlProto.internal_static_google_api_Control_descriptor; } @@ -284,7 +281,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Selects and configures the service controller used by the service.
+   *
    * Example:
+   *
    *     control:
    *       environment: servicecontrol.googleapis.com
    * 
@@ -358,39 +357,6 @@ private void buildPartial0(com.google.api.Control result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.Control) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettings.java index 9559091e0e..3c42bd0e64 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettings.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettings.java @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CppSettings(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.ClientProto.internal_static_google_api_CppSettings_descriptor; } @@ -350,39 +345,6 @@ private void buildPartial0(com.google.api.CppSettings result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.CppSettings) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPattern.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPattern.java index 9d1518d10d..8e0a2d471a 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPattern.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPattern.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CustomHttpPattern(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.HttpProto.internal_static_google_api_CustomHttpPattern_descriptor; } @@ -415,39 +410,6 @@ private void buildPartial0(com.google.api.CustomHttpPattern result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.CustomHttpPattern) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Distribution.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Distribution.java index 14f77f78a9..7dc4ce7a0a 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Distribution.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Distribution.java @@ -25,12 +25,14 @@ * `Distribution` contains summary statistics for a population of values. It * optionally contains a histogram representing the distribution of those values * across a set of buckets. + * * The summary statistics are the count, mean, sum of the squared deviation from * the mean, the minimum, and the maximum of the set of population of values. * The histogram is based on a sequence of buckets and gives a count of values * that fall into each bucket. The boundaries of the buckets are given either * explicitly or by formulas for buckets of fixed or exponentially increasing * widths. + * * Although it is not forbidden, it is generally a bad idea to include * non-finite values (infinities or NaNs) in the population of values, as this * will render the `mean` and `sum_of_squared_deviation` fields meaningless. @@ -59,11 +61,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Distribution(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.DistributionProto.internal_static_google_api_Distribution_descriptor; } @@ -135,11 +132,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Range(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.DistributionProto .internal_static_google_api_Distribution_Range_descriptor; @@ -449,41 +441,6 @@ private void buildPartial0(com.google.api.Distribution.Range result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.Distribution.Range) { @@ -839,7 +796,7 @@ public interface BucketOptionsOrBuilder */ com.google.api.Distribution.BucketOptions.ExplicitOrBuilder getExplicitBucketsOrBuilder(); - public com.google.api.Distribution.BucketOptions.OptionsCase getOptionsCase(); + com.google.api.Distribution.BucketOptions.OptionsCase getOptionsCase(); } /** * @@ -849,6 +806,7 @@ public interface BucketOptionsOrBuilder * for the distribution. The buckets can be in a linear sequence, an * exponential sequence, or each bucket can be specified explicitly. * `BucketOptions` does not include the number of values in each bucket. + * * A bucket has an inclusive lower bound and exclusive upper bound for the * values that are counted for that bucket. The upper bound of a bucket must * be strictly greater than the lower bound. The sequence of N buckets for a @@ -881,11 +839,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BucketOptions(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.DistributionProto .internal_static_google_api_Distribution_BucketOptions_descriptor; @@ -952,9 +905,12 @@ public interface LinearOrBuilder * Specifies a linear sequence of buckets that all have the same width * (except overflow and underflow). Each bucket represents a constant * absolute uncertainty on the specific value in the bucket. + * * There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the * following boundaries: + * * Upper bound (0 <= i < N-1): offset + (width * i). + * * Lower bound (1 <= i < N): offset + (width * (i - 1)). *
* @@ -978,11 +934,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Linear(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.DistributionProto .internal_static_google_api_Distribution_BucketOptions_Linear_descriptor; @@ -1245,9 +1196,12 @@ protected Builder newBuilderForType( * Specifies a linear sequence of buckets that all have the same width * (except overflow and underflow). Each bucket represents a constant * absolute uncertainty on the specific value in the bucket. + * * There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the * following boundaries: + * * Upper bound (0 <= i < N-1): offset + (width * i). + * * Lower bound (1 <= i < N): offset + (width * (i - 1)). *
* @@ -1334,41 +1288,6 @@ private void buildPartial0(com.google.api.Distribution.BucketOptions.Linear resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.Distribution.BucketOptions.Linear) { @@ -1728,9 +1647,12 @@ public interface ExponentialOrBuilder * Specifies an exponential sequence of buckets that have a width that is * proportional to the value of the lower bound. Each bucket represents a * constant relative uncertainty on a specific value in the bucket. + * * There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the * following boundaries: + * * Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). + * * Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)). *
* @@ -1754,11 +1676,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Exponential(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.DistributionProto .internal_static_google_api_Distribution_BucketOptions_Exponential_descriptor; @@ -2022,9 +1939,12 @@ protected Builder newBuilderForType( * Specifies an exponential sequence of buckets that have a width that is * proportional to the value of the lower bound. Each bucket represents a * constant relative uncertainty on a specific value in the bucket. + * * There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the * following boundaries: + * * Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). + * * Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)). *
* @@ -2111,41 +2031,6 @@ private void buildPartial0(com.google.api.Distribution.BucketOptions.Exponential } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.Distribution.BucketOptions.Exponential) { @@ -2502,10 +2387,13 @@ public interface ExplicitOrBuilder * *
      * Specifies a set of buckets with arbitrary widths.
+     *
      * There are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following
      * boundaries:
+     *
      *    Upper bound (0 <= i < N-1):     bounds[i]
      *    Lower bound (1 <= i < N);       bounds[i - 1]
+     *
      * The `bounds` field must contain at least one element. If `bounds` has
      * only one element, then there are no finite buckets, and that single
      * element is the common boundary of the overflow and underflow buckets.
@@ -2533,11 +2421,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new Explicit();
       }
 
-      @java.lang.Override
-      public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-        return this.unknownFields;
-      }
-
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.api.DistributionProto
             .internal_static_google_api_Distribution_BucketOptions_Explicit_descriptor;
@@ -2784,10 +2667,13 @@ protected Builder newBuilderForType(
        *
        * 
        * Specifies a set of buckets with arbitrary widths.
+       *
        * There are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following
        * boundaries:
+       *
        *    Upper bound (0 <= i < N-1):     bounds[i]
        *    Lower bound (1 <= i < N);       bounds[i - 1]
+       *
        * The `bounds` field must contain at least one element. If `bounds` has
        * only one element, then there are no finite buckets, and that single
        * element is the common boundary of the overflow and underflow buckets.
@@ -2875,41 +2761,6 @@ private void buildPartial0(com.google.api.Distribution.BucketOptions.Explicit re
           int from_bitField0_ = bitField0_;
         }
 
-        @java.lang.Override
-        public Builder clone() {
-          return super.clone();
-        }
-
-        @java.lang.Override
-        public Builder setField(
-            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-          return super.setField(field, value);
-        }
-
-        @java.lang.Override
-        public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-          return super.clearField(field);
-        }
-
-        @java.lang.Override
-        public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-          return super.clearOneof(oneof);
-        }
-
-        @java.lang.Override
-        public Builder setRepeatedField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            int index,
-            java.lang.Object value) {
-          return super.setRepeatedField(field, index, value);
-        }
-
-        @java.lang.Override
-        public Builder addRepeatedField(
-            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-          return super.addRepeatedField(field, value);
-        }
-
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
           if (other instanceof com.google.api.Distribution.BucketOptions.Explicit) {
@@ -3189,6 +3040,8 @@ public com.google.api.Distribution.BucketOptions.Explicit getDefaultInstanceForT
     }
 
     private int optionsCase_ = 0;
+
+    @SuppressWarnings("serial")
     private java.lang.Object options_;
 
     public enum OptionsCase
@@ -3606,6 +3459,7 @@ protected Builder newBuilderForType(
      * for the distribution. The buckets can be in a linear sequence, an
      * exponential sequence, or each bucket can be specified explicitly.
      * `BucketOptions` does not include the number of values in each bucket.
+     *
      * A bucket has an inclusive lower bound and exclusive upper bound for the
      * values that are counted for that bucket. The upper bound of a bucket must
      * be strictly greater than the lower bound. The sequence of N buckets for a
@@ -3715,41 +3569,6 @@ private void buildPartialOneofs(com.google.api.Distribution.BucketOptions result
         }
       }
 
-      @java.lang.Override
-      public Builder clone() {
-        return super.clone();
-      }
-
-      @java.lang.Override
-      public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-        return super.setField(field, value);
-      }
-
-      @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-        return super.clearField(field);
-      }
-
-      @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-        return super.clearOneof(oneof);
-      }
-
-      @java.lang.Override
-      public Builder setRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
-        return super.setRepeatedField(field, index, value);
-      }
-
-      @java.lang.Override
-      public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-        return super.addRepeatedField(field, value);
-      }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.api.Distribution.BucketOptions) {
@@ -4622,10 +4441,14 @@ public interface ExemplarOrBuilder
      *
      * 
      * Contextual information about the example value. Examples are:
+     *
      *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+     *
      *   Literal string: type.googleapis.com/google.protobuf.StringValue
+     *
      *   Labels dropped during aggregation:
      *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+     *
      * There may be only a single attachment of any given message type in a
      * single exemplar, and this is enforced by the system.
      * 
@@ -4638,10 +4461,14 @@ public interface ExemplarOrBuilder * *
      * Contextual information about the example value. Examples are:
+     *
      *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+     *
      *   Literal string: type.googleapis.com/google.protobuf.StringValue
+     *
      *   Labels dropped during aggregation:
      *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+     *
      * There may be only a single attachment of any given message type in a
      * single exemplar, and this is enforced by the system.
      * 
@@ -4654,10 +4481,14 @@ public interface ExemplarOrBuilder * *
      * Contextual information about the example value. Examples are:
+     *
      *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+     *
      *   Literal string: type.googleapis.com/google.protobuf.StringValue
+     *
      *   Labels dropped during aggregation:
      *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+     *
      * There may be only a single attachment of any given message type in a
      * single exemplar, and this is enforced by the system.
      * 
@@ -4670,10 +4501,14 @@ public interface ExemplarOrBuilder * *
      * Contextual information about the example value. Examples are:
+     *
      *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+     *
      *   Literal string: type.googleapis.com/google.protobuf.StringValue
+     *
      *   Labels dropped during aggregation:
      *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+     *
      * There may be only a single attachment of any given message type in a
      * single exemplar, and this is enforced by the system.
      * 
@@ -4686,10 +4521,14 @@ public interface ExemplarOrBuilder * *
      * Contextual information about the example value. Examples are:
+     *
      *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+     *
      *   Literal string: type.googleapis.com/google.protobuf.StringValue
+     *
      *   Labels dropped during aggregation:
      *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+     *
      * There may be only a single attachment of any given message type in a
      * single exemplar, and this is enforced by the system.
      * 
@@ -4731,11 +4570,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Exemplar(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.DistributionProto .internal_static_google_api_Distribution_Exemplar_descriptor; @@ -4825,10 +4659,14 @@ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { * *
      * Contextual information about the example value. Examples are:
+     *
      *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+     *
      *   Literal string: type.googleapis.com/google.protobuf.StringValue
+     *
      *   Labels dropped during aggregation:
      *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+     *
      * There may be only a single attachment of any given message type in a
      * single exemplar, and this is enforced by the system.
      * 
@@ -4844,10 +4682,14 @@ public java.util.List getAttachmentsList() { * *
      * Contextual information about the example value. Examples are:
+     *
      *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+     *
      *   Literal string: type.googleapis.com/google.protobuf.StringValue
+     *
      *   Labels dropped during aggregation:
      *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+     *
      * There may be only a single attachment of any given message type in a
      * single exemplar, and this is enforced by the system.
      * 
@@ -4864,10 +4706,14 @@ public java.util.List getAttachmentsList() { * *
      * Contextual information about the example value. Examples are:
+     *
      *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+     *
      *   Literal string: type.googleapis.com/google.protobuf.StringValue
+     *
      *   Labels dropped during aggregation:
      *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+     *
      * There may be only a single attachment of any given message type in a
      * single exemplar, and this is enforced by the system.
      * 
@@ -4883,10 +4729,14 @@ public int getAttachmentsCount() { * *
      * Contextual information about the example value. Examples are:
+     *
      *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+     *
      *   Literal string: type.googleapis.com/google.protobuf.StringValue
+     *
      *   Labels dropped during aggregation:
      *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+     *
      * There may be only a single attachment of any given message type in a
      * single exemplar, and this is enforced by the system.
      * 
@@ -4902,10 +4752,14 @@ public com.google.protobuf.Any getAttachments(int index) { * *
      * Contextual information about the example value. Examples are:
+     *
      *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+     *
      *   Literal string: type.googleapis.com/google.protobuf.StringValue
+     *
      *   Labels dropped during aggregation:
      *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+     *
      * There may be only a single attachment of any given message type in a
      * single exemplar, and this is enforced by the system.
      * 
@@ -5219,41 +5073,6 @@ private void buildPartial0(com.google.api.Distribution.Exemplar result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.Distribution.Exemplar) { @@ -5628,10 +5447,14 @@ private void ensureAttachmentsIsMutable() { * *
        * Contextual information about the example value. Examples are:
+       *
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+       *
        *   Literal string: type.googleapis.com/google.protobuf.StringValue
+       *
        *   Labels dropped during aggregation:
        *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+       *
        * There may be only a single attachment of any given message type in a
        * single exemplar, and this is enforced by the system.
        * 
@@ -5650,10 +5473,14 @@ public java.util.List getAttachmentsList() { * *
        * Contextual information about the example value. Examples are:
+       *
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+       *
        *   Literal string: type.googleapis.com/google.protobuf.StringValue
+       *
        *   Labels dropped during aggregation:
        *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+       *
        * There may be only a single attachment of any given message type in a
        * single exemplar, and this is enforced by the system.
        * 
@@ -5672,10 +5499,14 @@ public int getAttachmentsCount() { * *
        * Contextual information about the example value. Examples are:
+       *
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+       *
        *   Literal string: type.googleapis.com/google.protobuf.StringValue
+       *
        *   Labels dropped during aggregation:
        *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+       *
        * There may be only a single attachment of any given message type in a
        * single exemplar, and this is enforced by the system.
        * 
@@ -5694,10 +5525,14 @@ public com.google.protobuf.Any getAttachments(int index) { * *
        * Contextual information about the example value. Examples are:
+       *
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+       *
        *   Literal string: type.googleapis.com/google.protobuf.StringValue
+       *
        *   Labels dropped during aggregation:
        *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+       *
        * There may be only a single attachment of any given message type in a
        * single exemplar, and this is enforced by the system.
        * 
@@ -5722,10 +5557,14 @@ public Builder setAttachments(int index, com.google.protobuf.Any value) { * *
        * Contextual information about the example value. Examples are:
+       *
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+       *
        *   Literal string: type.googleapis.com/google.protobuf.StringValue
+       *
        *   Labels dropped during aggregation:
        *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+       *
        * There may be only a single attachment of any given message type in a
        * single exemplar, and this is enforced by the system.
        * 
@@ -5747,10 +5586,14 @@ public Builder setAttachments(int index, com.google.protobuf.Any.Builder builder * *
        * Contextual information about the example value. Examples are:
+       *
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+       *
        *   Literal string: type.googleapis.com/google.protobuf.StringValue
+       *
        *   Labels dropped during aggregation:
        *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+       *
        * There may be only a single attachment of any given message type in a
        * single exemplar, and this is enforced by the system.
        * 
@@ -5775,10 +5618,14 @@ public Builder addAttachments(com.google.protobuf.Any value) { * *
        * Contextual information about the example value. Examples are:
+       *
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+       *
        *   Literal string: type.googleapis.com/google.protobuf.StringValue
+       *
        *   Labels dropped during aggregation:
        *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+       *
        * There may be only a single attachment of any given message type in a
        * single exemplar, and this is enforced by the system.
        * 
@@ -5803,10 +5650,14 @@ public Builder addAttachments(int index, com.google.protobuf.Any value) { * *
        * Contextual information about the example value. Examples are:
+       *
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+       *
        *   Literal string: type.googleapis.com/google.protobuf.StringValue
+       *
        *   Labels dropped during aggregation:
        *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+       *
        * There may be only a single attachment of any given message type in a
        * single exemplar, and this is enforced by the system.
        * 
@@ -5828,10 +5679,14 @@ public Builder addAttachments(com.google.protobuf.Any.Builder builderForValue) { * *
        * Contextual information about the example value. Examples are:
+       *
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+       *
        *   Literal string: type.googleapis.com/google.protobuf.StringValue
+       *
        *   Labels dropped during aggregation:
        *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+       *
        * There may be only a single attachment of any given message type in a
        * single exemplar, and this is enforced by the system.
        * 
@@ -5853,10 +5708,14 @@ public Builder addAttachments(int index, com.google.protobuf.Any.Builder builder * *
        * Contextual information about the example value. Examples are:
+       *
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+       *
        *   Literal string: type.googleapis.com/google.protobuf.StringValue
+       *
        *   Labels dropped during aggregation:
        *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+       *
        * There may be only a single attachment of any given message type in a
        * single exemplar, and this is enforced by the system.
        * 
@@ -5879,10 +5738,14 @@ public Builder addAllAttachments( * *
        * Contextual information about the example value. Examples are:
+       *
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+       *
        *   Literal string: type.googleapis.com/google.protobuf.StringValue
+       *
        *   Labels dropped during aggregation:
        *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+       *
        * There may be only a single attachment of any given message type in a
        * single exemplar, and this is enforced by the system.
        * 
@@ -5904,10 +5767,14 @@ public Builder clearAttachments() { * *
        * Contextual information about the example value. Examples are:
+       *
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+       *
        *   Literal string: type.googleapis.com/google.protobuf.StringValue
+       *
        *   Labels dropped during aggregation:
        *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+       *
        * There may be only a single attachment of any given message type in a
        * single exemplar, and this is enforced by the system.
        * 
@@ -5929,10 +5796,14 @@ public Builder removeAttachments(int index) { * *
        * Contextual information about the example value. Examples are:
+       *
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+       *
        *   Literal string: type.googleapis.com/google.protobuf.StringValue
+       *
        *   Labels dropped during aggregation:
        *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+       *
        * There may be only a single attachment of any given message type in a
        * single exemplar, and this is enforced by the system.
        * 
@@ -5947,10 +5818,14 @@ public com.google.protobuf.Any.Builder getAttachmentsBuilder(int index) { * *
        * Contextual information about the example value. Examples are:
+       *
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+       *
        *   Literal string: type.googleapis.com/google.protobuf.StringValue
+       *
        *   Labels dropped during aggregation:
        *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+       *
        * There may be only a single attachment of any given message type in a
        * single exemplar, and this is enforced by the system.
        * 
@@ -5969,10 +5844,14 @@ public com.google.protobuf.AnyOrBuilder getAttachmentsOrBuilder(int index) { * *
        * Contextual information about the example value. Examples are:
+       *
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+       *
        *   Literal string: type.googleapis.com/google.protobuf.StringValue
+       *
        *   Labels dropped during aggregation:
        *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+       *
        * There may be only a single attachment of any given message type in a
        * single exemplar, and this is enforced by the system.
        * 
@@ -5992,10 +5871,14 @@ public com.google.protobuf.AnyOrBuilder getAttachmentsOrBuilder(int index) { * *
        * Contextual information about the example value. Examples are:
+       *
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+       *
        *   Literal string: type.googleapis.com/google.protobuf.StringValue
+       *
        *   Labels dropped during aggregation:
        *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+       *
        * There may be only a single attachment of any given message type in a
        * single exemplar, and this is enforced by the system.
        * 
@@ -6011,10 +5894,14 @@ public com.google.protobuf.Any.Builder addAttachmentsBuilder() { * *
        * Contextual information about the example value. Examples are:
+       *
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+       *
        *   Literal string: type.googleapis.com/google.protobuf.StringValue
+       *
        *   Labels dropped during aggregation:
        *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+       *
        * There may be only a single attachment of any given message type in a
        * single exemplar, and this is enforced by the system.
        * 
@@ -6030,10 +5917,14 @@ public com.google.protobuf.Any.Builder addAttachmentsBuilder(int index) { * *
        * Contextual information about the example value. Examples are:
+       *
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+       *
        *   Literal string: type.googleapis.com/google.protobuf.StringValue
+       *
        *   Labels dropped during aggregation:
        *     type.googleapis.com/google.monitoring.v3.DroppedLabels
+       *
        * There may be only a single attachment of any given message type in a
        * single exemplar, and this is enforced by the system.
        * 
@@ -6175,9 +6066,12 @@ public double getMean() { *
    * The sum of squared deviations from the mean of the values in the
    * population. For values x_i this is:
+   *
    *     Sum[i=1..n]((x_i - mean)^2)
+   *
    * Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
    * describes Welford's method for accumulating this sum in one pass.
+   *
    * If `count` is zero then this field must be zero.
    * 
* @@ -6305,9 +6199,11 @@ public com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuil * this field. If there is a histogram, then the sum of the values in * `bucket_counts` must equal the value in the `count` field of the * distribution. + * * If present, `bucket_counts` should contain N values, where N is the number * of buckets specified in `bucket_options`. If you supply fewer than N * values, the remaining values are assumed to be 0. + * * The order of the values in `bucket_counts` follows the bucket numbering * schemes described for the three bucket types. The first value must be the * count for the underflow bucket (number 0). The next N-2 values are the @@ -6332,9 +6228,11 @@ public java.util.List getBucketCountsList() { * this field. If there is a histogram, then the sum of the values in * `bucket_counts` must equal the value in the `count` field of the * distribution. + * * If present, `bucket_counts` should contain N values, where N is the number * of buckets specified in `bucket_options`. If you supply fewer than N * values, the remaining values are assumed to be 0. + * * The order of the values in `bucket_counts` follows the bucket numbering * schemes described for the three bucket types. The first value must be the * count for the underflow bucket (number 0). The next N-2 values are the @@ -6358,9 +6256,11 @@ public int getBucketCountsCount() { * this field. If there is a histogram, then the sum of the values in * `bucket_counts` must equal the value in the `count` field of the * distribution. + * * If present, `bucket_counts` should contain N values, where N is the number * of buckets specified in `bucket_options`. If you supply fewer than N * values, the remaining values are assumed to be 0. + * * The order of the values in `bucket_counts` follows the bucket numbering * schemes described for the three bucket types. The first value must be the * count for the underflow bucket (number 0). The next N-2 values are the @@ -6704,12 +6604,14 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * `Distribution` contains summary statistics for a population of values. It * optionally contains a histogram representing the distribution of those values * across a set of buckets. + * * The summary statistics are the count, mean, sum of the squared deviation from * the mean, the minimum, and the maximum of the set of population of values. * The histogram is based on a sequence of buckets and gives a count of values * that fall into each bucket. The boundaries of the buckets are given either * explicitly or by formulas for buckets of fixed or exponentially increasing * widths. + * * Although it is not forbidden, it is generally a bad idea to include * non-finite values (infinities or NaNs) in the population of values, as this * will render the `mean` and `sum_of_squared_deviation` fields meaningless. @@ -6836,39 +6738,6 @@ private void buildPartial0(com.google.api.Distribution result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.Distribution) { @@ -7161,9 +7030,12 @@ public Builder clearMean() { *
      * The sum of squared deviations from the mean of the values in the
      * population. For values x_i this is:
+     *
      *     Sum[i=1..n]((x_i - mean)^2)
+     *
      * Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
      * describes Welford's method for accumulating this sum in one pass.
+     *
      * If `count` is zero then this field must be zero.
      * 
* @@ -7181,9 +7053,12 @@ public double getSumOfSquaredDeviation() { *
      * The sum of squared deviations from the mean of the values in the
      * population. For values x_i this is:
+     *
      *     Sum[i=1..n]((x_i - mean)^2)
+     *
      * Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
      * describes Welford's method for accumulating this sum in one pass.
+     *
      * If `count` is zero then this field must be zero.
      * 
* @@ -7205,9 +7080,12 @@ public Builder setSumOfSquaredDeviation(double value) { *
      * The sum of squared deviations from the mean of the values in the
      * population. For values x_i this is:
+     *
      *     Sum[i=1..n]((x_i - mean)^2)
+     *
      * Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
      * describes Welford's method for accumulating this sum in one pass.
+     *
      * If `count` is zero then this field must be zero.
      * 
* @@ -7620,9 +7498,11 @@ private void ensureBucketCountsIsMutable() { * this field. If there is a histogram, then the sum of the values in * `bucket_counts` must equal the value in the `count` field of the * distribution. + * * If present, `bucket_counts` should contain N values, where N is the number * of buckets specified in `bucket_options`. If you supply fewer than N * values, the remaining values are assumed to be 0. + * * The order of the values in `bucket_counts` follows the bucket numbering * schemes described for the three bucket types. The first value must be the * count for the underflow bucket (number 0). The next N-2 values are the @@ -7648,9 +7528,11 @@ public java.util.List getBucketCountsList() { * this field. If there is a histogram, then the sum of the values in * `bucket_counts` must equal the value in the `count` field of the * distribution. + * * If present, `bucket_counts` should contain N values, where N is the number * of buckets specified in `bucket_options`. If you supply fewer than N * values, the remaining values are assumed to be 0. + * * The order of the values in `bucket_counts` follows the bucket numbering * schemes described for the three bucket types. The first value must be the * count for the underflow bucket (number 0). The next N-2 values are the @@ -7674,9 +7556,11 @@ public int getBucketCountsCount() { * this field. If there is a histogram, then the sum of the values in * `bucket_counts` must equal the value in the `count` field of the * distribution. + * * If present, `bucket_counts` should contain N values, where N is the number * of buckets specified in `bucket_options`. If you supply fewer than N * values, the remaining values are assumed to be 0. + * * The order of the values in `bucket_counts` follows the bucket numbering * schemes described for the three bucket types. The first value must be the * count for the underflow bucket (number 0). The next N-2 values are the @@ -7701,9 +7585,11 @@ public long getBucketCounts(int index) { * this field. If there is a histogram, then the sum of the values in * `bucket_counts` must equal the value in the `count` field of the * distribution. + * * If present, `bucket_counts` should contain N values, where N is the number * of buckets specified in `bucket_options`. If you supply fewer than N * values, the remaining values are assumed to be 0. + * * The order of the values in `bucket_counts` follows the bucket numbering * schemes described for the three bucket types. The first value must be the * count for the underflow bucket (number 0). The next N-2 values are the @@ -7733,9 +7619,11 @@ public Builder setBucketCounts(int index, long value) { * this field. If there is a histogram, then the sum of the values in * `bucket_counts` must equal the value in the `count` field of the * distribution. + * * If present, `bucket_counts` should contain N values, where N is the number * of buckets specified in `bucket_options`. If you supply fewer than N * values, the remaining values are assumed to be 0. + * * The order of the values in `bucket_counts` follows the bucket numbering * schemes described for the three bucket types. The first value must be the * count for the underflow bucket (number 0). The next N-2 values are the @@ -7764,9 +7652,11 @@ public Builder addBucketCounts(long value) { * this field. If there is a histogram, then the sum of the values in * `bucket_counts` must equal the value in the `count` field of the * distribution. + * * If present, `bucket_counts` should contain N values, where N is the number * of buckets specified in `bucket_options`. If you supply fewer than N * values, the remaining values are assumed to be 0. + * * The order of the values in `bucket_counts` follows the bucket numbering * schemes described for the three bucket types. The first value must be the * count for the underflow bucket (number 0). The next N-2 values are the @@ -7794,9 +7684,11 @@ public Builder addAllBucketCounts(java.lang.Iterable v * this field. If there is a histogram, then the sum of the values in * `bucket_counts` must equal the value in the `count` field of the * distribution. + * * If present, `bucket_counts` should contain N values, where N is the number * of buckets specified in `bucket_options`. If you supply fewer than N * values, the remaining values are assumed to be 0. + * * The order of the values in `bucket_counts` follows the bucket numbering * schemes described for the three bucket types. The first value must be the * count for the underflow bucket (number 0). The next N-2 values are the diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionOrBuilder.java index 27f3411ae3..1b6d60c622 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionOrBuilder.java @@ -58,9 +58,12 @@ public interface DistributionOrBuilder *
    * The sum of squared deviations from the mean of the values in the
    * population. For values x_i this is:
+   *
    *     Sum[i=1..n]((x_i - mean)^2)
+   *
    * Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
    * describes Welford's method for accumulating this sum in one pass.
+   *
    * If `count` is zero then this field must be zero.
    * 
* @@ -155,9 +158,11 @@ public interface DistributionOrBuilder * this field. If there is a histogram, then the sum of the values in * `bucket_counts` must equal the value in the `count` field of the * distribution. + * * If present, `bucket_counts` should contain N values, where N is the number * of buckets specified in `bucket_options`. If you supply fewer than N * values, the remaining values are assumed to be 0. + * * The order of the values in `bucket_counts` follows the bucket numbering * schemes described for the three bucket types. The first value must be the * count for the underflow bucket (number 0). The next N-2 values are the @@ -179,9 +184,11 @@ public interface DistributionOrBuilder * this field. If there is a histogram, then the sum of the values in * `bucket_counts` must equal the value in the `count` field of the * distribution. + * * If present, `bucket_counts` should contain N values, where N is the number * of buckets specified in `bucket_options`. If you supply fewer than N * values, the remaining values are assumed to be 0. + * * The order of the values in `bucket_counts` follows the bucket numbering * schemes described for the three bucket types. The first value must be the * count for the underflow bucket (number 0). The next N-2 values are the @@ -203,9 +210,11 @@ public interface DistributionOrBuilder * this field. If there is a histogram, then the sum of the values in * `bucket_counts` must equal the value in the `count` field of the * distribution. + * * If present, `bucket_counts` should contain N values, where N is the number * of buckets specified in `bucket_options`. If you supply fewer than N * values, the remaining values are assumed to be 0. + * * The order of the values in `bucket_counts` follows the bucket numbering * schemes described for the three bucket types. The first value must be the * count for the underflow bucket (number 0). The next N-2 values are the diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Documentation.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Documentation.java index bb34d32e9e..67836bc269 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Documentation.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Documentation.java @@ -23,6 +23,7 @@ * *
  * `Documentation` provides the information for describing a service.
+ *
  * Example:
  * <pre><code>documentation:
  *   summary: >
@@ -49,11 +50,14 @@
  * code blocks are supported. Section headers can be provided and are
  * interpreted relative to the section nesting of the context where
  * a documentation fragment is embedded.
+ *
  * Documentation from the IDL is merged with documentation defined
  * via the config at normalization time, where documentation provided
  * by config rules overrides IDL provided.
+ *
  * A number of constructs specific to the API platform are supported
  * in documentation text.
+ *
  * In order to reference a proto element, the following
  * notation can be used:
  * <pre><code>&#91;fully.qualified.proto.name]&#91;]</code></pre>
@@ -61,6 +65,7 @@
  * <pre><code>&#91;display text]&#91;fully.qualified.proto.name]</code></pre>
  * Text can be excluded from doc using the following notation:
  * <pre><code>&#40;-- internal comment --&#41;</code></pre>
+ *
  * A few directives are available in documentation. Note that
  * directives must appear on a single line to be properly
  * identified. The `include` directive includes a markdown file from
@@ -101,11 +106,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Documentation();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.DocumentationProto.internal_static_google_api_Documentation_descriptor;
   }
@@ -255,6 +255,7 @@ public com.google.api.PageOrBuilder getPagesOrBuilder(int index) {
    *
    * 
    * A list of documentation rules that apply to individual API elements.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -269,6 +270,7 @@ public java.util.List getRulesList() { * *
    * A list of documentation rules that apply to individual API elements.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -284,6 +286,7 @@ public java.util.List getRulesList() { * *
    * A list of documentation rules that apply to individual API elements.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -298,6 +301,7 @@ public int getRulesCount() { * *
    * A list of documentation rules that apply to individual API elements.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -312,6 +316,7 @@ public com.google.api.DocumentationRule getRules(int index) { * *
    * A list of documentation rules that apply to individual API elements.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -716,6 +721,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * `Documentation` provides the information for describing a service.
+   *
    * Example:
    * <pre><code>documentation:
    *   summary: >
@@ -742,11 +748,14 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * code blocks are supported. Section headers can be provided and are
    * interpreted relative to the section nesting of the context where
    * a documentation fragment is embedded.
+   *
    * Documentation from the IDL is merged with documentation defined
    * via the config at normalization time, where documentation provided
    * by config rules overrides IDL provided.
+   *
    * A number of constructs specific to the API platform are supported
    * in documentation text.
+   *
    * In order to reference a proto element, the following
    * notation can be used:
    * <pre><code>&#91;fully.qualified.proto.name]&#91;]</code></pre>
@@ -754,6 +763,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * <pre><code>&#91;display text]&#91;fully.qualified.proto.name]</code></pre>
    * Text can be excluded from doc using the following notation:
    * <pre><code>&#40;-- internal comment --&#41;</code></pre>
+   *
    * A few directives are available in documentation. Note that
    * directives must appear on a single line to be properly
    * identified. The `include` directive includes a markdown file from
@@ -885,39 +895,6 @@ private void buildPartial0(com.google.api.Documentation result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.Documentation) {
@@ -1574,6 +1551,7 @@ private void ensureRulesIsMutable() {
      *
      * 
      * A list of documentation rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1591,6 +1569,7 @@ public java.util.List getRulesList() { * *
      * A list of documentation rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1608,6 +1587,7 @@ public int getRulesCount() { * *
      * A list of documentation rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1625,6 +1605,7 @@ public com.google.api.DocumentationRule getRules(int index) { * *
      * A list of documentation rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1648,6 +1629,7 @@ public Builder setRules(int index, com.google.api.DocumentationRule value) { * *
      * A list of documentation rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1668,6 +1650,7 @@ public Builder setRules(int index, com.google.api.DocumentationRule.Builder buil * *
      * A list of documentation rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1691,6 +1674,7 @@ public Builder addRules(com.google.api.DocumentationRule value) { * *
      * A list of documentation rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1714,6 +1698,7 @@ public Builder addRules(int index, com.google.api.DocumentationRule value) { * *
      * A list of documentation rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1734,6 +1719,7 @@ public Builder addRules(com.google.api.DocumentationRule.Builder builderForValue * *
      * A list of documentation rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1754,6 +1740,7 @@ public Builder addRules(int index, com.google.api.DocumentationRule.Builder buil * *
      * A list of documentation rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1775,6 +1762,7 @@ public Builder addAllRules( * *
      * A list of documentation rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1795,6 +1783,7 @@ public Builder clearRules() { * *
      * A list of documentation rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1815,6 +1804,7 @@ public Builder removeRules(int index) { * *
      * A list of documentation rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1828,6 +1818,7 @@ public com.google.api.DocumentationRule.Builder getRulesBuilder(int index) { * *
      * A list of documentation rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1845,6 +1836,7 @@ public com.google.api.DocumentationRuleOrBuilder getRulesOrBuilder(int index) { * *
      * A list of documentation rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1863,6 +1855,7 @@ public com.google.api.DocumentationRuleOrBuilder getRulesOrBuilder(int index) { * *
      * A list of documentation rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1877,6 +1870,7 @@ public com.google.api.DocumentationRule.Builder addRulesBuilder() { * *
      * A list of documentation rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1891,6 +1885,7 @@ public com.google.api.DocumentationRule.Builder addRulesBuilder(int index) { * *
      * A list of documentation rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationOrBuilder.java index 11af64871f..b8dbbb9cb6 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationOrBuilder.java @@ -110,6 +110,7 @@ public interface DocumentationOrBuilder * *
    * A list of documentation rules that apply to individual API elements.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -121,6 +122,7 @@ public interface DocumentationOrBuilder * *
    * A list of documentation rules that apply to individual API elements.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -132,6 +134,7 @@ public interface DocumentationOrBuilder * *
    * A list of documentation rules that apply to individual API elements.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -143,6 +146,7 @@ public interface DocumentationOrBuilder * *
    * A list of documentation rules that apply to individual API elements.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -154,6 +158,7 @@ public interface DocumentationOrBuilder * *
    * A list of documentation rules that apply to individual API elements.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRule.java index 68b53d491a..809dccbc87 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRule.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRule.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentationRule(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.DocumentationProto .internal_static_google_api_DocumentationRule_descriptor; @@ -502,39 +497,6 @@ private void buildPartial0(com.google.api.DocumentationRule result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.DocumentationRule) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettings.java index 5ef78bea9c..d1fb6bb6a3 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettings.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettings.java @@ -38,9 +38,9 @@ private DotnetSettings(com.google.protobuf.GeneratedMessageV3.Builder builder } private DotnetSettings() { - ignoredResources_ = com.google.protobuf.LazyStringArrayList.EMPTY; - forcedNamespaceAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; - handwrittenSignatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; + ignoredResources_ = com.google.protobuf.LazyStringArrayList.emptyList(); + forcedNamespaceAliases_ = com.google.protobuf.LazyStringArrayList.emptyList(); + handwrittenSignatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DotnetSettings(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.ClientProto.internal_static_google_api_DotnetSettings_descriptor; } @@ -368,7 +363,8 @@ public java.lang.String getRenamedResourcesOrThrow(java.lang.String key) { public static final int IGNORED_RESOURCES_FIELD_NUMBER = 4; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList ignoredResources_; + private com.google.protobuf.LazyStringArrayList ignoredResources_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -447,7 +443,8 @@ public com.google.protobuf.ByteString getIgnoredResourcesBytes(int index) { public static final int FORCED_NAMESPACE_ALIASES_FIELD_NUMBER = 5; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList forcedNamespaceAliases_; + private com.google.protobuf.LazyStringArrayList forcedNamespaceAliases_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -514,7 +511,8 @@ public com.google.protobuf.ByteString getForcedNamespaceAliasesBytes(int index) public static final int HANDWRITTEN_SIGNATURES_FIELD_NUMBER = 6; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList handwrittenSignatures_; + private com.google.protobuf.LazyStringArrayList handwrittenSignatures_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -896,12 +894,9 @@ public Builder clear() { } internalGetMutableRenamedServices().clear(); internalGetMutableRenamedResources().clear(); - ignoredResources_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - forcedNamespaceAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - handwrittenSignatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); + ignoredResources_ = com.google.protobuf.LazyStringArrayList.emptyList(); + forcedNamespaceAliases_ = com.google.protobuf.LazyStringArrayList.emptyList(); + handwrittenSignatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -927,7 +922,6 @@ public com.google.api.DotnetSettings build() { @java.lang.Override public com.google.api.DotnetSettings buildPartial() { com.google.api.DotnetSettings result = new com.google.api.DotnetSettings(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -935,24 +929,6 @@ public com.google.api.DotnetSettings buildPartial() { return result; } - private void buildPartialRepeatedFields(com.google.api.DotnetSettings result) { - if (((bitField0_ & 0x00000008) != 0)) { - ignoredResources_ = ignoredResources_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.ignoredResources_ = ignoredResources_; - if (((bitField0_ & 0x00000010) != 0)) { - forcedNamespaceAliases_ = forcedNamespaceAliases_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.forcedNamespaceAliases_ = forcedNamespaceAliases_; - if (((bitField0_ & 0x00000020) != 0)) { - handwrittenSignatures_ = handwrittenSignatures_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.handwrittenSignatures_ = handwrittenSignatures_; - } - private void buildPartial0(com.google.api.DotnetSettings result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -966,39 +942,18 @@ private void buildPartial0(com.google.api.DotnetSettings result) { result.renamedResources_ = internalGetRenamedResources(); result.renamedResources_.makeImmutable(); } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + if (((from_bitField0_ & 0x00000008) != 0)) { + ignoredResources_.makeImmutable(); + result.ignoredResources_ = ignoredResources_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + forcedNamespaceAliases_.makeImmutable(); + result.forcedNamespaceAliases_ = forcedNamespaceAliases_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + handwrittenSignatures_.makeImmutable(); + result.handwrittenSignatures_ = handwrittenSignatures_; + } } @java.lang.Override @@ -1023,7 +978,7 @@ public Builder mergeFrom(com.google.api.DotnetSettings other) { if (!other.ignoredResources_.isEmpty()) { if (ignoredResources_.isEmpty()) { ignoredResources_ = other.ignoredResources_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ |= 0x00000008; } else { ensureIgnoredResourcesIsMutable(); ignoredResources_.addAll(other.ignoredResources_); @@ -1033,7 +988,7 @@ public Builder mergeFrom(com.google.api.DotnetSettings other) { if (!other.forcedNamespaceAliases_.isEmpty()) { if (forcedNamespaceAliases_.isEmpty()) { forcedNamespaceAliases_ = other.forcedNamespaceAliases_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ |= 0x00000010; } else { ensureForcedNamespaceAliasesIsMutable(); forcedNamespaceAliases_.addAll(other.forcedNamespaceAliases_); @@ -1043,7 +998,7 @@ public Builder mergeFrom(com.google.api.DotnetSettings other) { if (!other.handwrittenSignatures_.isEmpty()) { if (handwrittenSignatures_.isEmpty()) { handwrittenSignatures_ = other.handwrittenSignatures_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ |= 0x00000020; } else { ensureHandwrittenSignaturesIsMutable(); handwrittenSignatures_.addAll(other.handwrittenSignatures_); @@ -1723,14 +1678,14 @@ public Builder putAllRenamedResources( return this; } - private com.google.protobuf.LazyStringList ignoredResources_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList ignoredResources_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureIgnoredResourcesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!ignoredResources_.isModifiable()) { ignoredResources_ = new com.google.protobuf.LazyStringArrayList(ignoredResources_); - bitField0_ |= 0x00000008; } + bitField0_ |= 0x00000008; } /** * @@ -1748,7 +1703,8 @@ private void ensureIgnoredResourcesIsMutable() { * @return A list containing the ignoredResources. */ public com.google.protobuf.ProtocolStringList getIgnoredResourcesList() { - return ignoredResources_.getUnmodifiableView(); + ignoredResources_.makeImmutable(); + return ignoredResources_; } /** * @@ -1829,6 +1785,7 @@ public Builder setIgnoredResources(int index, java.lang.String value) { } ensureIgnoredResourcesIsMutable(); ignoredResources_.set(index, value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1854,6 +1811,7 @@ public Builder addIgnoredResources(java.lang.String value) { } ensureIgnoredResourcesIsMutable(); ignoredResources_.add(value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1876,6 +1834,7 @@ public Builder addIgnoredResources(java.lang.String value) { public Builder addAllIgnoredResources(java.lang.Iterable values) { ensureIgnoredResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ignoredResources_); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1895,8 +1854,9 @@ public Builder addAllIgnoredResources(java.lang.Iterable value * @return This builder for chaining. */ public Builder clearIgnoredResources() { - ignoredResources_ = com.google.protobuf.LazyStringArrayList.EMPTY; + ignoredResources_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); + ; onChanged(); return this; } @@ -1923,19 +1883,20 @@ public Builder addIgnoredResourcesBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureIgnoredResourcesIsMutable(); ignoredResources_.add(value); + bitField0_ |= 0x00000008; onChanged(); return this; } - private com.google.protobuf.LazyStringList forcedNamespaceAliases_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList forcedNamespaceAliases_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureForcedNamespaceAliasesIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!forcedNamespaceAliases_.isModifiable()) { forcedNamespaceAliases_ = new com.google.protobuf.LazyStringArrayList(forcedNamespaceAliases_); - bitField0_ |= 0x00000010; } + bitField0_ |= 0x00000010; } /** * @@ -1950,7 +1911,8 @@ private void ensureForcedNamespaceAliasesIsMutable() { * @return A list containing the forcedNamespaceAliases. */ public com.google.protobuf.ProtocolStringList getForcedNamespaceAliasesList() { - return forcedNamespaceAliases_.getUnmodifiableView(); + forcedNamespaceAliases_.makeImmutable(); + return forcedNamespaceAliases_; } /** * @@ -2019,6 +1981,7 @@ public Builder setForcedNamespaceAliases(int index, java.lang.String value) { } ensureForcedNamespaceAliasesIsMutable(); forcedNamespaceAliases_.set(index, value); + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2041,6 +2004,7 @@ public Builder addForcedNamespaceAliases(java.lang.String value) { } ensureForcedNamespaceAliasesIsMutable(); forcedNamespaceAliases_.add(value); + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2060,6 +2024,7 @@ public Builder addForcedNamespaceAliases(java.lang.String value) { public Builder addAllForcedNamespaceAliases(java.lang.Iterable values) { ensureForcedNamespaceAliasesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, forcedNamespaceAliases_); + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2076,8 +2041,9 @@ public Builder addAllForcedNamespaceAliases(java.lang.Iterable * @return This builder for chaining. */ public Builder clearForcedNamespaceAliases() { - forcedNamespaceAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; + forcedNamespaceAliases_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); + ; onChanged(); return this; } @@ -2101,19 +2067,20 @@ public Builder addForcedNamespaceAliasesBytes(com.google.protobuf.ByteString val checkByteStringIsUtf8(value); ensureForcedNamespaceAliasesIsMutable(); forcedNamespaceAliases_.add(value); + bitField0_ |= 0x00000010; onChanged(); return this; } - private com.google.protobuf.LazyStringList handwrittenSignatures_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList handwrittenSignatures_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureHandwrittenSignaturesIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { + if (!handwrittenSignatures_.isModifiable()) { handwrittenSignatures_ = new com.google.protobuf.LazyStringArrayList(handwrittenSignatures_); - bitField0_ |= 0x00000020; } + bitField0_ |= 0x00000020; } /** * @@ -2129,7 +2096,8 @@ private void ensureHandwrittenSignaturesIsMutable() { * @return A list containing the handwrittenSignatures. */ public com.google.protobuf.ProtocolStringList getHandwrittenSignaturesList() { - return handwrittenSignatures_.getUnmodifiableView(); + handwrittenSignatures_.makeImmutable(); + return handwrittenSignatures_; } /** * @@ -2202,6 +2170,7 @@ public Builder setHandwrittenSignatures(int index, java.lang.String value) { } ensureHandwrittenSignaturesIsMutable(); handwrittenSignatures_.set(index, value); + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2225,6 +2194,7 @@ public Builder addHandwrittenSignatures(java.lang.String value) { } ensureHandwrittenSignaturesIsMutable(); handwrittenSignatures_.add(value); + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2245,6 +2215,7 @@ public Builder addHandwrittenSignatures(java.lang.String value) { public Builder addAllHandwrittenSignatures(java.lang.Iterable values) { ensureHandwrittenSignaturesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, handwrittenSignatures_); + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2262,8 +2233,9 @@ public Builder addAllHandwrittenSignatures(java.lang.Iterable * @return This builder for chaining. */ public Builder clearHandwrittenSignatures() { - handwrittenSignatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; + handwrittenSignatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); + ; onChanged(); return this; } @@ -2288,6 +2260,7 @@ public Builder addHandwrittenSignaturesBytes(com.google.protobuf.ByteString valu checkByteStringIsUtf8(value); ensureHandwrittenSignaturesIsMutable(); handwrittenSignatures_.add(value); + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Endpoint.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Endpoint.java index 0601b05d8d..feea7e6337 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Endpoint.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Endpoint.java @@ -26,7 +26,9 @@ * APIs. It is commonly known as a service endpoint. A service may expose * any number of service endpoints, and all service endpoints share the same * service definition, such as quota limits and monitoring metrics. + * * Example: + * * type: google.api.Service * name: library-example.googleapis.com * endpoints: @@ -57,7 +59,7 @@ private Endpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Endpoint() { name_ = ""; - aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; + aliases_ = com.google.protobuf.LazyStringArrayList.emptyList(); target_ = ""; } @@ -67,11 +69,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Endpoint(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.EndpointProto.internal_static_google_api_Endpoint_descriptor; } @@ -138,15 +135,18 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ALIASES_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList aliases_; + private com.google.protobuf.LazyStringArrayList aliases_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
    * Unimplemented. Dot not use.
+   *
    * DEPRECATED: This field is no longer supported. Instead of using aliases,
    * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
    * of the intended aliases.
+   *
    * Additional names that this endpoint will be hosted on.
    * 
* @@ -164,9 +164,11 @@ public com.google.protobuf.ProtocolStringList getAliasesList() { * *
    * Unimplemented. Dot not use.
+   *
    * DEPRECATED: This field is no longer supported. Instead of using aliases,
    * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
    * of the intended aliases.
+   *
    * Additional names that this endpoint will be hosted on.
    * 
* @@ -184,9 +186,11 @@ public int getAliasesCount() { * *
    * Unimplemented. Dot not use.
+   *
    * DEPRECATED: This field is no longer supported. Instead of using aliases,
    * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
    * of the intended aliases.
+   *
    * Additional names that this endpoint will be hosted on.
    * 
* @@ -205,9 +209,11 @@ public java.lang.String getAliases(int index) { * *
    * Unimplemented. Dot not use.
+   *
    * DEPRECATED: This field is no longer supported. Instead of using aliases,
    * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
    * of the intended aliases.
+   *
    * Additional names that this endpoint will be hosted on.
    * 
* @@ -503,7 +509,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * APIs. It is commonly known as a service endpoint. A service may expose * any number of service endpoints, and all service endpoints share the same * service definition, such as quota limits and monitoring metrics. + * * Example: + * * type: google.api.Service * name: library-example.googleapis.com * endpoints: @@ -550,8 +558,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; - aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + aliases_ = com.google.protobuf.LazyStringArrayList.emptyList(); target_ = ""; allowCors_ = false; return this; @@ -579,7 +586,6 @@ public com.google.api.Endpoint build() { @java.lang.Override public com.google.api.Endpoint buildPartial() { com.google.api.Endpoint result = new com.google.api.Endpoint(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -587,19 +593,15 @@ public com.google.api.Endpoint buildPartial() { return result; } - private void buildPartialRepeatedFields(com.google.api.Endpoint result) { - if (((bitField0_ & 0x00000002) != 0)) { - aliases_ = aliases_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.aliases_ = aliases_; - } - private void buildPartial0(com.google.api.Endpoint result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + aliases_.makeImmutable(); + result.aliases_ = aliases_; + } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; } @@ -608,39 +610,6 @@ private void buildPartial0(com.google.api.Endpoint result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.Endpoint) { @@ -661,7 +630,7 @@ public Builder mergeFrom(com.google.api.Endpoint other) { if (!other.aliases_.isEmpty()) { if (aliases_.isEmpty()) { aliases_ = other.aliases_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ |= 0x00000002; } else { ensureAliasesIsMutable(); aliases_.addAll(other.aliases_); @@ -852,23 +821,25 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList aliases_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList aliases_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureAliasesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!aliases_.isModifiable()) { aliases_ = new com.google.protobuf.LazyStringArrayList(aliases_); - bitField0_ |= 0x00000002; } + bitField0_ |= 0x00000002; } /** * * *
      * Unimplemented. Dot not use.
+     *
      * DEPRECATED: This field is no longer supported. Instead of using aliases,
      * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
      * of the intended aliases.
+     *
      * Additional names that this endpoint will be hosted on.
      * 
* @@ -879,16 +850,19 @@ private void ensureAliasesIsMutable() { */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList getAliasesList() { - return aliases_.getUnmodifiableView(); + aliases_.makeImmutable(); + return aliases_; } /** * * *
      * Unimplemented. Dot not use.
+     *
      * DEPRECATED: This field is no longer supported. Instead of using aliases,
      * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
      * of the intended aliases.
+     *
      * Additional names that this endpoint will be hosted on.
      * 
* @@ -906,9 +880,11 @@ public int getAliasesCount() { * *
      * Unimplemented. Dot not use.
+     *
      * DEPRECATED: This field is no longer supported. Instead of using aliases,
      * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
      * of the intended aliases.
+     *
      * Additional names that this endpoint will be hosted on.
      * 
* @@ -927,9 +903,11 @@ public java.lang.String getAliases(int index) { * *
      * Unimplemented. Dot not use.
+     *
      * DEPRECATED: This field is no longer supported. Instead of using aliases,
      * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
      * of the intended aliases.
+     *
      * Additional names that this endpoint will be hosted on.
      * 
* @@ -948,9 +926,11 @@ public com.google.protobuf.ByteString getAliasesBytes(int index) { * *
      * Unimplemented. Dot not use.
+     *
      * DEPRECATED: This field is no longer supported. Instead of using aliases,
      * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
      * of the intended aliases.
+     *
      * Additional names that this endpoint will be hosted on.
      * 
* @@ -968,6 +948,7 @@ public Builder setAliases(int index, java.lang.String value) { } ensureAliasesIsMutable(); aliases_.set(index, value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -976,9 +957,11 @@ public Builder setAliases(int index, java.lang.String value) { * *
      * Unimplemented. Dot not use.
+     *
      * DEPRECATED: This field is no longer supported. Instead of using aliases,
      * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
      * of the intended aliases.
+     *
      * Additional names that this endpoint will be hosted on.
      * 
* @@ -995,6 +978,7 @@ public Builder addAliases(java.lang.String value) { } ensureAliasesIsMutable(); aliases_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1003,9 +987,11 @@ public Builder addAliases(java.lang.String value) { * *
      * Unimplemented. Dot not use.
+     *
      * DEPRECATED: This field is no longer supported. Instead of using aliases,
      * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
      * of the intended aliases.
+     *
      * Additional names that this endpoint will be hosted on.
      * 
* @@ -1019,6 +1005,7 @@ public Builder addAliases(java.lang.String value) { public Builder addAllAliases(java.lang.Iterable values) { ensureAliasesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aliases_); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1027,9 +1014,11 @@ public Builder addAllAliases(java.lang.Iterable values) { * *
      * Unimplemented. Dot not use.
+     *
      * DEPRECATED: This field is no longer supported. Instead of using aliases,
      * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
      * of the intended aliases.
+     *
      * Additional names that this endpoint will be hosted on.
      * 
* @@ -1040,8 +1029,9 @@ public Builder addAllAliases(java.lang.Iterable values) { */ @java.lang.Deprecated public Builder clearAliases() { - aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; + aliases_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } @@ -1050,9 +1040,11 @@ public Builder clearAliases() { * *
      * Unimplemented. Dot not use.
+     *
      * DEPRECATED: This field is no longer supported. Instead of using aliases,
      * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
      * of the intended aliases.
+     *
      * Additional names that this endpoint will be hosted on.
      * 
* @@ -1070,6 +1062,7 @@ public Builder addAliasesBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureAliasesIsMutable(); aliases_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointOrBuilder.java index fae540697b..0eb9aa6dc4 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointOrBuilder.java @@ -53,9 +53,11 @@ public interface EndpointOrBuilder * *
    * Unimplemented. Dot not use.
+   *
    * DEPRECATED: This field is no longer supported. Instead of using aliases,
    * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
    * of the intended aliases.
+   *
    * Additional names that this endpoint will be hosted on.
    * 
* @@ -71,9 +73,11 @@ public interface EndpointOrBuilder * *
    * Unimplemented. Dot not use.
+   *
    * DEPRECATED: This field is no longer supported. Instead of using aliases,
    * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
    * of the intended aliases.
+   *
    * Additional names that this endpoint will be hosted on.
    * 
* @@ -89,9 +93,11 @@ public interface EndpointOrBuilder * *
    * Unimplemented. Dot not use.
+   *
    * DEPRECATED: This field is no longer supported. Instead of using aliases,
    * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
    * of the intended aliases.
+   *
    * Additional names that this endpoint will be hosted on.
    * 
* @@ -108,9 +114,11 @@ public interface EndpointOrBuilder * *
    * Unimplemented. Dot not use.
+   *
    * DEPRECATED: This field is no longer supported. Instead of using aliases,
    * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
    * of the intended aliases.
+   *
    * Additional names that this endpoint will be hosted on.
    * 
* diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReason.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReason.java index 68f6de9284..a848229cfb 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReason.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReason.java @@ -52,8 +52,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum { * *
    * The request is calling a disabled service for a consumer.
+   *
    * Example of an ErrorInfo when the consumer "projects/123" contacting
    * "pubsub.googleapis.com" service which is disabled:
+   *
    *     { "reason": "SERVICE_DISABLED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -61,6 +63,7 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    *         "service": "pubsub.googleapis.com"
    *       }
    *     }
+   *
    * This response indicates the "pubsub.googleapis.com" has been disabled in
    * "projects/123".
    * 
@@ -73,9 +76,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum { * *
    * The request whose associated billing account is disabled.
+   *
    * Example of an ErrorInfo when the consumer "projects/123" fails to contact
    * "pubsub.googleapis.com" service because the associated billing account is
    * disabled:
+   *
    *     { "reason": "BILLING_DISABLED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -83,6 +88,7 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    *         "service": "pubsub.googleapis.com"
    *       }
    *     }
+   *
    * This response indicates the billing account associated has been disabled.
    * 
* @@ -96,8 +102,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum { * The request is denied because the provided [API * key](https://cloud.google.com/docs/authentication/api-keys) is invalid. It * may be in a bad format, cannot be found, or has been expired). + * * Example of an ErrorInfo when the request is contacting * "storage.googleapis.com" service with an invalid API key: + * * { "reason": "API_KEY_INVALID", * "domain": "googleapis.com", * "metadata": { @@ -115,9 +123,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum { *
    * The request is denied because it violates [API key API
    * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_api_restrictions).
+   *
    * Example of an ErrorInfo when the consumer "projects/123" fails to call the
    * "storage.googleapis.com" service because this service is restricted in the
    * API key:
+   *
    *     { "reason": "API_KEY_SERVICE_BLOCKED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -136,9 +146,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * 
    * The request is denied because it violates [API key HTTP
    * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_http_restrictions).
+   *
    * Example of an ErrorInfo when the consumer "projects/123" fails to call
    * "storage.googleapis.com" service because the http referrer of the request
    * violates API key HTTP restrictions:
+   *
    *     { "reason": "API_KEY_HTTP_REFERRER_BLOCKED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -157,9 +169,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * 
    * The request is denied because it violates [API key IP address
    * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
+   *
    * Example of an ErrorInfo when the consumer "projects/123" fails to call
    * "storage.googleapis.com" service because the caller IP of the request
    * violates API key IP address restrictions:
+   *
    *     { "reason": "API_KEY_IP_ADDRESS_BLOCKED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -178,9 +192,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * 
    * The request is denied because it violates [API key Android application
    * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
+   *
    * Example of an ErrorInfo when the consumer "projects/123" fails to call
    * "storage.googleapis.com" service because the request from the Android apps
    * violates the API key Android application restrictions:
+   *
    *     { "reason": "API_KEY_ANDROID_APP_BLOCKED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -199,9 +215,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * 
    * The request is denied because it violates [API key iOS application
    * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
+   *
    * Example of an ErrorInfo when the consumer "projects/123" fails to call
    * "storage.googleapis.com" service because the request from the iOS apps
    * violates the API key iOS application restrictions:
+   *
    *     { "reason": "API_KEY_IOS_APP_BLOCKED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -220,11 +238,13 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * 
    * The request is denied because there is not enough rate quota for the
    * consumer.
+   *
    * Example of an ErrorInfo when the consumer "projects/123" fails to contact
    * "pubsub.googleapis.com" service because consumer's rate quota usage has
    * reached the maximum value set for the quota limit
    * "ReadsPerMinutePerProject" on the quota metric
    * "pubsub.googleapis.com/read_requests":
+   *
    *     { "reason": "RATE_LIMIT_EXCEEDED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -234,10 +254,12 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    *         "quota_limit": "ReadsPerMinutePerProject"
    *       }
    *     }
+   *
    * Example of an ErrorInfo when the consumer "projects/123" checks quota on
    * the service "dataflow.googleapis.com" and hits the organization quota
    * limit "DefaultRequestsPerMinutePerOrganization" on the metric
    * "dataflow.googleapis.com/default_requests".
+   *
    *     { "reason": "RATE_LIMIT_EXCEEDED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -258,10 +280,12 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * 
    * The request is denied because there is not enough resource quota for the
    * consumer.
+   *
    * Example of an ErrorInfo when the consumer "projects/123" fails to contact
    * "compute.googleapis.com" service because consumer's resource quota usage
    * has reached the maximum value set for the quota limit "VMsPerProject"
    * on the quota metric "compute.googleapis.com/vms":
+   *
    *     { "reason": "RESOURCE_QUOTA_EXCEEDED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -271,10 +295,12 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    *         "quota_limit": "VMsPerProject"
    *       }
    *     }
+   *
    * Example of an ErrorInfo when the consumer "projects/123" checks resource
    * quota on the service "dataflow.googleapis.com" and hits the organization
    * quota limit "jobs-per-organization" on the metric
    * "dataflow.googleapis.com/job_count".
+   *
    *     { "reason": "RESOURCE_QUOTA_EXCEEDED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -296,9 +322,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * The request whose associated billing account address is in a tax restricted
    * location, violates the local tax restrictions when creating resources in
    * the restricted region.
+   *
    * Example of an ErrorInfo when creating the Cloud Storage Bucket in the
    * container "projects/123" under a tax restricted region
    * "locations/asia-northeast3":
+   *
    *     { "reason": "LOCATION_TAX_POLICY_VIOLATED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -307,6 +335,7 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    *         "location": "locations/asia-northeast3"
    *       }
    *     }
+   *
    * This response indicates creating the Cloud Storage Bucket in
    * "locations/asia-northeast3" violates the location tax restriction.
    * 
@@ -322,8 +351,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum { * on the user project "projects/123" or the user project is invalid. For more * information, check the [userProject System * Parameters](https://cloud.google.com/apis/docs/system-parameters). + * * Example of an ErrorInfo when the caller is calling Cloud Storage service * with insufficient permissions on the user project: + * * { "reason": "USER_PROJECT_DENIED", * "domain": "googleapis.com", * "metadata": { @@ -344,8 +375,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum { * to Terms of Service(Tos) violations. Check [Project suspension * guidelines](https://cloud.google.com/resource-manager/docs/project-suspension-guidelines) * for more information. + * * Example of an ErrorInfo when calling Cloud Storage service with the * suspended consumer "projects/123": + * * { "reason": "CONSUMER_SUSPENDED", * "domain": "googleapis.com", * "metadata": { @@ -364,8 +397,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum { *
    * The request is denied because the associated consumer is invalid. It may be
    * in a bad format, cannot be found, or have been deleted.
+   *
    * Example of an ErrorInfo when calling Cloud Storage service with the
    * invalid consumer "projects/123":
+   *
    *     { "reason": "CONSUMER_INVALID",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -388,9 +423,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * to search the audit log for a request rejected by VPC Service Controls. For
    * more information, please refer [VPC Service Controls
    * Troubleshooting](https://cloud.google.com/vpc-service-controls/docs/troubleshooting#unique-id)
+   *
    * Example of an ErrorInfo when the consumer "projects/123" fails to call
    * Cloud Storage service because the request is prohibited by the VPC Service
    * Controls.
+   *
    *     { "reason": "SECURITY_POLICY_VIOLATED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -409,8 +446,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    *
    * 
    * The request is denied because the provided access token has expired.
+   *
    * Example of an ErrorInfo when the request is calling Cloud Storage service
    * with an expired access token:
+   *
    *     { "reason": "ACCESS_TOKEN_EXPIRED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -433,8 +472,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * APIs](https://developers.google.com/identity/protocols/oauth2/scopes) for
    * the list of the OAuth 2.0 scopes that you might need to request to access
    * the API.
+   *
    * Example of an ErrorInfo when the request is calling Cloud Storage service
    * with an access token that is missing required scopes:
+   *
    *     { "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -454,12 +495,15 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * The request is denied because the account associated with the provided
    * access token is in an invalid state, such as disabled or deleted.
    * For more information, see https://cloud.google.com/docs/authentication.
+   *
    * Warning: For privacy reasons, the server may not be able to disclose the
    * email address for some accounts. The client MUST NOT depend on the
    * availability of the `email` attribute.
+   *
    * Example of an ErrorInfo when the request is to the Cloud Storage API with
    * an access token that is associated with a disabled or deleted [service
    * account](http://cloud/iam/docs/service-accounts):
+   *
    *     { "reason": "ACCOUNT_STATE_INVALID",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -479,8 +523,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * 
    * The request is denied because the type of the provided access token is not
    * supported by the API being called.
+   *
    * Example of an ErrorInfo when the request is to the Cloud Storage API with
    * an unsupported token type.
+   *
    *     { "reason": "ACCESS_TOKEN_TYPE_UNSUPPORTED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -501,8 +547,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * credentials. For more information regarding the supported authentication
    * strategies for Google Cloud APIs, see
    * https://cloud.google.com/docs/authentication.
+   *
    * Example of an ErrorInfo when the request is to the Cloud Storage API
    * without any authentication credentials.
+   *
    *     { "reason": "CREDENTIALS_MISSING",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -523,9 +571,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * which acts as the [API
    * consumer](https://cloud.google.com/apis/design/glossary#api_consumer) is
    * invalid. It may be in a bad format or empty.
+   *
    * Example of an ErrorInfo when the request is to the Cloud Functions API,
    * but the offered resource project in the request in a bad format which can't
    * perform the ListFunctions method.
+   *
    *     { "reason": "RESOURCE_PROJECT_INVALID",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -545,8 +595,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * 
    * The request is denied because the provided session cookie is missing,
    * invalid or failed to decode.
+   *
    * Example of an ErrorInfo when the request is calling Cloud Storage service
    * with a SID cookie which can't be decoded.
+   *
    *     { "reason": "SESSION_COOKIE_INVALID",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -566,9 +618,12 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * 
    * The request is denied because the user is from a Google Workspace customer
    * that blocks their users from accessing a particular service.
+   *
    * Example scenario: https://support.google.com/a/answer/9197205?hl=en
+   *
    * Example of an ErrorInfo when access to Google Cloud Storage service is
    * blocked by the Google Workspace administrator:
+   *
    *     { "reason": "USER_BLOCKED_BY_ADMIN",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -589,8 +644,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * by administrators according to the organization policy constraint.
    * For more information see
    * https://cloud.google.com/resource-manager/docs/organization-policy/restricting-services.
+   *
    * Example of an ErrorInfo when access to Google Cloud Storage service is
    * restricted by Resource Usage Restriction policy:
+   *
    *     { "reason": "RESOURCE_USAGE_RESTRICTION_VIOLATED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -608,11 +665,14 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    *
    * 
    * Unimplemented. Do not use.
+   *
    * The request is denied because it contains unsupported system parameters in
    * URL query parameters or HTTP headers. For more information,
    * see https://cloud.google.com/apis/docs/system-parameters
+   *
    * Example of an ErrorInfo when access "pubsub.googleapis.com" service with
    * a request header of "x-goog-user-ip":
+   *
    *     { "reason": "SYSTEM_PARAMETER_UNSUPPORTED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -632,8 +692,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * The request is denied because it violates Org Restriction: the requested
    * resource does not belong to allowed organizations specified in
    * "X-Goog-Allowed-Resources" header.
+   *
    * Example of an ErrorInfo when accessing a GCP resource that is restricted by
    * Org Restriction for "pubsub.googleapis.com" service.
+   *
    * {
    *   reason: "ORG_RESTRICTION_VIOLATION"
    *   domain: "googleapis.com"
@@ -653,9 +715,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * 
    * The request is denied because "X-Goog-Allowed-Resources" header is in a bad
    * format.
+   *
    * Example of an ErrorInfo when
    * accessing "pubsub.googleapis.com" service with an invalid
    * "X-Goog-Allowed-Resources" request header.
+   *
    * {
    *   reason: "ORG_RESTRICTION_HEADER_INVALID"
    *   domain: "googleapis.com"
@@ -674,9 +738,12 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    *
    * 
    * Unimplemented. Do not use.
+   *
    * The request is calling a service that is not visible to the consumer.
+   *
    * Example of an ErrorInfo when the consumer "projects/123" contacting
    *  "pubsub.googleapis.com" service which is not visible to the consumer.
+   *
    *     { "reason": "SERVICE_NOT_VISIBLE",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -684,6 +751,7 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    *         "service": "pubsub.googleapis.com"
    *       }
    *     }
+   *
    * This response indicates the "pubsub.googleapis.com" is not visible to
    * "projects/123" (or it may not exist).
    * 
@@ -696,8 +764,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum { * *
    * The request is related to a project for which GCP access is suspended.
+   *
    * Example of an ErrorInfo when the consumer "projects/123" fails to contact
    * "pubsub.googleapis.com" service because GCP access is suspended:
+   *
    *     { "reason": "GCP_SUSPENDED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -705,6 +775,7 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    *         "service": "pubsub.googleapis.com"
    *       }
    *     }
+   *
    * This response indicates the associated GCP account has been suspended.
    * 
* @@ -729,8 +800,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum { * *
    * The request is calling a disabled service for a consumer.
+   *
    * Example of an ErrorInfo when the consumer "projects/123" contacting
    * "pubsub.googleapis.com" service which is disabled:
+   *
    *     { "reason": "SERVICE_DISABLED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -738,6 +811,7 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    *         "service": "pubsub.googleapis.com"
    *       }
    *     }
+   *
    * This response indicates the "pubsub.googleapis.com" has been disabled in
    * "projects/123".
    * 
@@ -750,9 +824,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum { * *
    * The request whose associated billing account is disabled.
+   *
    * Example of an ErrorInfo when the consumer "projects/123" fails to contact
    * "pubsub.googleapis.com" service because the associated billing account is
    * disabled:
+   *
    *     { "reason": "BILLING_DISABLED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -760,6 +836,7 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    *         "service": "pubsub.googleapis.com"
    *       }
    *     }
+   *
    * This response indicates the billing account associated has been disabled.
    * 
* @@ -773,8 +850,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum { * The request is denied because the provided [API * key](https://cloud.google.com/docs/authentication/api-keys) is invalid. It * may be in a bad format, cannot be found, or has been expired). + * * Example of an ErrorInfo when the request is contacting * "storage.googleapis.com" service with an invalid API key: + * * { "reason": "API_KEY_INVALID", * "domain": "googleapis.com", * "metadata": { @@ -792,9 +871,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum { *
    * The request is denied because it violates [API key API
    * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_api_restrictions).
+   *
    * Example of an ErrorInfo when the consumer "projects/123" fails to call the
    * "storage.googleapis.com" service because this service is restricted in the
    * API key:
+   *
    *     { "reason": "API_KEY_SERVICE_BLOCKED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -813,9 +894,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * 
    * The request is denied because it violates [API key HTTP
    * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_http_restrictions).
+   *
    * Example of an ErrorInfo when the consumer "projects/123" fails to call
    * "storage.googleapis.com" service because the http referrer of the request
    * violates API key HTTP restrictions:
+   *
    *     { "reason": "API_KEY_HTTP_REFERRER_BLOCKED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -834,9 +917,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * 
    * The request is denied because it violates [API key IP address
    * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
+   *
    * Example of an ErrorInfo when the consumer "projects/123" fails to call
    * "storage.googleapis.com" service because the caller IP of the request
    * violates API key IP address restrictions:
+   *
    *     { "reason": "API_KEY_IP_ADDRESS_BLOCKED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -855,9 +940,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * 
    * The request is denied because it violates [API key Android application
    * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
+   *
    * Example of an ErrorInfo when the consumer "projects/123" fails to call
    * "storage.googleapis.com" service because the request from the Android apps
    * violates the API key Android application restrictions:
+   *
    *     { "reason": "API_KEY_ANDROID_APP_BLOCKED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -876,9 +963,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * 
    * The request is denied because it violates [API key iOS application
    * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
+   *
    * Example of an ErrorInfo when the consumer "projects/123" fails to call
    * "storage.googleapis.com" service because the request from the iOS apps
    * violates the API key iOS application restrictions:
+   *
    *     { "reason": "API_KEY_IOS_APP_BLOCKED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -897,11 +986,13 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * 
    * The request is denied because there is not enough rate quota for the
    * consumer.
+   *
    * Example of an ErrorInfo when the consumer "projects/123" fails to contact
    * "pubsub.googleapis.com" service because consumer's rate quota usage has
    * reached the maximum value set for the quota limit
    * "ReadsPerMinutePerProject" on the quota metric
    * "pubsub.googleapis.com/read_requests":
+   *
    *     { "reason": "RATE_LIMIT_EXCEEDED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -911,10 +1002,12 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    *         "quota_limit": "ReadsPerMinutePerProject"
    *       }
    *     }
+   *
    * Example of an ErrorInfo when the consumer "projects/123" checks quota on
    * the service "dataflow.googleapis.com" and hits the organization quota
    * limit "DefaultRequestsPerMinutePerOrganization" on the metric
    * "dataflow.googleapis.com/default_requests".
+   *
    *     { "reason": "RATE_LIMIT_EXCEEDED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -935,10 +1028,12 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * 
    * The request is denied because there is not enough resource quota for the
    * consumer.
+   *
    * Example of an ErrorInfo when the consumer "projects/123" fails to contact
    * "compute.googleapis.com" service because consumer's resource quota usage
    * has reached the maximum value set for the quota limit "VMsPerProject"
    * on the quota metric "compute.googleapis.com/vms":
+   *
    *     { "reason": "RESOURCE_QUOTA_EXCEEDED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -948,10 +1043,12 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    *         "quota_limit": "VMsPerProject"
    *       }
    *     }
+   *
    * Example of an ErrorInfo when the consumer "projects/123" checks resource
    * quota on the service "dataflow.googleapis.com" and hits the organization
    * quota limit "jobs-per-organization" on the metric
    * "dataflow.googleapis.com/job_count".
+   *
    *     { "reason": "RESOURCE_QUOTA_EXCEEDED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -973,9 +1070,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * The request whose associated billing account address is in a tax restricted
    * location, violates the local tax restrictions when creating resources in
    * the restricted region.
+   *
    * Example of an ErrorInfo when creating the Cloud Storage Bucket in the
    * container "projects/123" under a tax restricted region
    * "locations/asia-northeast3":
+   *
    *     { "reason": "LOCATION_TAX_POLICY_VIOLATED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -984,6 +1083,7 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    *         "location": "locations/asia-northeast3"
    *       }
    *     }
+   *
    * This response indicates creating the Cloud Storage Bucket in
    * "locations/asia-northeast3" violates the location tax restriction.
    * 
@@ -999,8 +1099,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum { * on the user project "projects/123" or the user project is invalid. For more * information, check the [userProject System * Parameters](https://cloud.google.com/apis/docs/system-parameters). + * * Example of an ErrorInfo when the caller is calling Cloud Storage service * with insufficient permissions on the user project: + * * { "reason": "USER_PROJECT_DENIED", * "domain": "googleapis.com", * "metadata": { @@ -1021,8 +1123,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum { * to Terms of Service(Tos) violations. Check [Project suspension * guidelines](https://cloud.google.com/resource-manager/docs/project-suspension-guidelines) * for more information. + * * Example of an ErrorInfo when calling Cloud Storage service with the * suspended consumer "projects/123": + * * { "reason": "CONSUMER_SUSPENDED", * "domain": "googleapis.com", * "metadata": { @@ -1041,8 +1145,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum { *
    * The request is denied because the associated consumer is invalid. It may be
    * in a bad format, cannot be found, or have been deleted.
+   *
    * Example of an ErrorInfo when calling Cloud Storage service with the
    * invalid consumer "projects/123":
+   *
    *     { "reason": "CONSUMER_INVALID",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -1065,9 +1171,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * to search the audit log for a request rejected by VPC Service Controls. For
    * more information, please refer [VPC Service Controls
    * Troubleshooting](https://cloud.google.com/vpc-service-controls/docs/troubleshooting#unique-id)
+   *
    * Example of an ErrorInfo when the consumer "projects/123" fails to call
    * Cloud Storage service because the request is prohibited by the VPC Service
    * Controls.
+   *
    *     { "reason": "SECURITY_POLICY_VIOLATED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -1086,8 +1194,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    *
    * 
    * The request is denied because the provided access token has expired.
+   *
    * Example of an ErrorInfo when the request is calling Cloud Storage service
    * with an expired access token:
+   *
    *     { "reason": "ACCESS_TOKEN_EXPIRED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -1110,8 +1220,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * APIs](https://developers.google.com/identity/protocols/oauth2/scopes) for
    * the list of the OAuth 2.0 scopes that you might need to request to access
    * the API.
+   *
    * Example of an ErrorInfo when the request is calling Cloud Storage service
    * with an access token that is missing required scopes:
+   *
    *     { "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -1131,12 +1243,15 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * The request is denied because the account associated with the provided
    * access token is in an invalid state, such as disabled or deleted.
    * For more information, see https://cloud.google.com/docs/authentication.
+   *
    * Warning: For privacy reasons, the server may not be able to disclose the
    * email address for some accounts. The client MUST NOT depend on the
    * availability of the `email` attribute.
+   *
    * Example of an ErrorInfo when the request is to the Cloud Storage API with
    * an access token that is associated with a disabled or deleted [service
    * account](http://cloud/iam/docs/service-accounts):
+   *
    *     { "reason": "ACCOUNT_STATE_INVALID",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -1156,8 +1271,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * 
    * The request is denied because the type of the provided access token is not
    * supported by the API being called.
+   *
    * Example of an ErrorInfo when the request is to the Cloud Storage API with
    * an unsupported token type.
+   *
    *     { "reason": "ACCESS_TOKEN_TYPE_UNSUPPORTED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -1178,8 +1295,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * credentials. For more information regarding the supported authentication
    * strategies for Google Cloud APIs, see
    * https://cloud.google.com/docs/authentication.
+   *
    * Example of an ErrorInfo when the request is to the Cloud Storage API
    * without any authentication credentials.
+   *
    *     { "reason": "CREDENTIALS_MISSING",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -1200,9 +1319,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * which acts as the [API
    * consumer](https://cloud.google.com/apis/design/glossary#api_consumer) is
    * invalid. It may be in a bad format or empty.
+   *
    * Example of an ErrorInfo when the request is to the Cloud Functions API,
    * but the offered resource project in the request in a bad format which can't
    * perform the ListFunctions method.
+   *
    *     { "reason": "RESOURCE_PROJECT_INVALID",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -1222,8 +1343,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * 
    * The request is denied because the provided session cookie is missing,
    * invalid or failed to decode.
+   *
    * Example of an ErrorInfo when the request is calling Cloud Storage service
    * with a SID cookie which can't be decoded.
+   *
    *     { "reason": "SESSION_COOKIE_INVALID",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -1243,9 +1366,12 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * 
    * The request is denied because the user is from a Google Workspace customer
    * that blocks their users from accessing a particular service.
+   *
    * Example scenario: https://support.google.com/a/answer/9197205?hl=en
+   *
    * Example of an ErrorInfo when access to Google Cloud Storage service is
    * blocked by the Google Workspace administrator:
+   *
    *     { "reason": "USER_BLOCKED_BY_ADMIN",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -1266,8 +1392,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * by administrators according to the organization policy constraint.
    * For more information see
    * https://cloud.google.com/resource-manager/docs/organization-policy/restricting-services.
+   *
    * Example of an ErrorInfo when access to Google Cloud Storage service is
    * restricted by Resource Usage Restriction policy:
+   *
    *     { "reason": "RESOURCE_USAGE_RESTRICTION_VIOLATED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -1285,11 +1413,14 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    *
    * 
    * Unimplemented. Do not use.
+   *
    * The request is denied because it contains unsupported system parameters in
    * URL query parameters or HTTP headers. For more information,
    * see https://cloud.google.com/apis/docs/system-parameters
+   *
    * Example of an ErrorInfo when access "pubsub.googleapis.com" service with
    * a request header of "x-goog-user-ip":
+   *
    *     { "reason": "SYSTEM_PARAMETER_UNSUPPORTED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -1309,8 +1440,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * The request is denied because it violates Org Restriction: the requested
    * resource does not belong to allowed organizations specified in
    * "X-Goog-Allowed-Resources" header.
+   *
    * Example of an ErrorInfo when accessing a GCP resource that is restricted by
    * Org Restriction for "pubsub.googleapis.com" service.
+   *
    * {
    *   reason: "ORG_RESTRICTION_VIOLATION"
    *   domain: "googleapis.com"
@@ -1330,9 +1463,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * 
    * The request is denied because "X-Goog-Allowed-Resources" header is in a bad
    * format.
+   *
    * Example of an ErrorInfo when
    * accessing "pubsub.googleapis.com" service with an invalid
    * "X-Goog-Allowed-Resources" request header.
+   *
    * {
    *   reason: "ORG_RESTRICTION_HEADER_INVALID"
    *   domain: "googleapis.com"
@@ -1351,9 +1486,12 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    *
    * 
    * Unimplemented. Do not use.
+   *
    * The request is calling a service that is not visible to the consumer.
+   *
    * Example of an ErrorInfo when the consumer "projects/123" contacting
    *  "pubsub.googleapis.com" service which is not visible to the consumer.
+   *
    *     { "reason": "SERVICE_NOT_VISIBLE",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -1361,6 +1499,7 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    *         "service": "pubsub.googleapis.com"
    *       }
    *     }
+   *
    * This response indicates the "pubsub.googleapis.com" is not visible to
    * "projects/123" (or it may not exist).
    * 
@@ -1373,8 +1512,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum { * *
    * The request is related to a project for which GCP access is suspended.
+   *
    * Example of an ErrorInfo when the consumer "projects/123" fails to contact
    * "pubsub.googleapis.com" service because GCP access is suspended:
+   *
    *     { "reason": "GCP_SUSPENDED",
    *       "domain": "googleapis.com",
    *       "metadata": {
@@ -1382,6 +1523,7 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    *         "service": "pubsub.googleapis.com"
    *       }
    *     }
+   *
    * This response indicates the associated GCP account has been suspended.
    * 
* diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java index 9b2fd46279..a0c5464986 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java @@ -26,6 +26,7 @@ * is required in requests, or given as output but ignored as input). * This **does not** change the behavior in protocol buffers itself; it only * denotes the behavior and may affect how API tooling handles the field. + * * Note: This enum **may** receive new values in the future. *
* diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java index 07ab7e51a0..191d7a1ac2 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java @@ -36,7 +36,9 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r *
    * A designation of a specific field behavior (required, output only, etc.)
    * in protobuf messages.
+   *
    * Examples:
+   *
    *   string name = 1 [(google.api.field_behavior) = REQUIRED];
    *   State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
    *   google.protobuf.Duration ttl = 1
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettings.java
index bb22becb93..1658b588a5 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettings.java
@@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GoSettings();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.ClientProto.internal_static_google_api_GoSettings_descriptor;
   }
@@ -350,39 +345,6 @@ private void buildPartial0(com.google.api.GoSettings result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.GoSettings) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Http.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Http.java
index da9fd8337d..5f603701ed 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Http.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Http.java
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Http();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.HttpProto.internal_static_google_api_Http_descriptor;
   }
@@ -75,6 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * 
    * A list of HTTP configuration rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -89,6 +85,7 @@ public java.util.List getRulesList() { * *
    * A list of HTTP configuration rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -103,6 +100,7 @@ public java.util.List getRulesOrBuil * *
    * A list of HTTP configuration rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -117,6 +115,7 @@ public int getRulesCount() { * *
    * A list of HTTP configuration rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -131,6 +130,7 @@ public com.google.api.HttpRule getRules(int index) { * *
    * A list of HTTP configuration rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -150,6 +150,7 @@ public com.google.api.HttpRuleOrBuilder getRulesOrBuilder(int index) { * When set to true, URL path parameters will be fully URI-decoded except in * cases of single segment matches in reserved expansion, where "%2F" will be * left encoded. + * * The default behavior is to not decode RFC 6570 reserved characters in multi * segment matches. *
@@ -431,39 +432,6 @@ private void buildPartial0(com.google.api.Http result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.Http) { @@ -589,6 +557,7 @@ private void ensureRulesIsMutable() { * *
      * A list of HTTP configuration rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -606,6 +575,7 @@ public java.util.List getRulesList() { * *
      * A list of HTTP configuration rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -623,6 +593,7 @@ public int getRulesCount() { * *
      * A list of HTTP configuration rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -640,6 +611,7 @@ public com.google.api.HttpRule getRules(int index) { * *
      * A list of HTTP configuration rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -663,6 +635,7 @@ public Builder setRules(int index, com.google.api.HttpRule value) { * *
      * A list of HTTP configuration rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -683,6 +656,7 @@ public Builder setRules(int index, com.google.api.HttpRule.Builder builderForVal * *
      * A list of HTTP configuration rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -706,6 +680,7 @@ public Builder addRules(com.google.api.HttpRule value) { * *
      * A list of HTTP configuration rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -729,6 +704,7 @@ public Builder addRules(int index, com.google.api.HttpRule value) { * *
      * A list of HTTP configuration rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -749,6 +725,7 @@ public Builder addRules(com.google.api.HttpRule.Builder builderForValue) { * *
      * A list of HTTP configuration rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -769,6 +746,7 @@ public Builder addRules(int index, com.google.api.HttpRule.Builder builderForVal * *
      * A list of HTTP configuration rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -789,6 +767,7 @@ public Builder addAllRules(java.lang.Iterable * *
      * A list of HTTP configuration rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -809,6 +788,7 @@ public Builder clearRules() { * *
      * A list of HTTP configuration rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -829,6 +809,7 @@ public Builder removeRules(int index) { * *
      * A list of HTTP configuration rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -842,6 +823,7 @@ public com.google.api.HttpRule.Builder getRulesBuilder(int index) { * *
      * A list of HTTP configuration rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -859,6 +841,7 @@ public com.google.api.HttpRuleOrBuilder getRulesOrBuilder(int index) { * *
      * A list of HTTP configuration rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -876,6 +859,7 @@ public java.util.List getRulesOrBuil * *
      * A list of HTTP configuration rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -889,6 +873,7 @@ public com.google.api.HttpRule.Builder addRulesBuilder() { * *
      * A list of HTTP configuration rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -902,6 +887,7 @@ public com.google.api.HttpRule.Builder addRulesBuilder(int index) { * *
      * A list of HTTP configuration rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -936,6 +922,7 @@ public java.util.List getRulesBuilderList() { * When set to true, URL path parameters will be fully URI-decoded except in * cases of single segment matches in reserved expansion, where "%2F" will be * left encoded. + * * The default behavior is to not decode RFC 6570 reserved characters in multi * segment matches. *
@@ -955,6 +942,7 @@ public boolean getFullyDecodeReservedExpansion() { * When set to true, URL path parameters will be fully URI-decoded except in * cases of single segment matches in reserved expansion, where "%2F" will be * left encoded. + * * The default behavior is to not decode RFC 6570 reserved characters in multi * segment matches. *
@@ -978,6 +966,7 @@ public Builder setFullyDecodeReservedExpansion(boolean value) { * When set to true, URL path parameters will be fully URI-decoded except in * cases of single segment matches in reserved expansion, where "%2F" will be * left encoded. + * * The default behavior is to not decode RFC 6570 reserved characters in multi * segment matches. *
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBody.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBody.java index 141f53de8a..a102cee5e7 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBody.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBody.java @@ -25,31 +25,44 @@ * Message that represents an arbitrary HTTP body. It should only be used for * payload formats that can't be represented as JSON, such as raw binary or * an HTML page. + * + * * This message can be used both in streaming and non-streaming API methods in * the request as well as the response. + * * It can be used as a top-level request field, which is convenient if one * wants to extract parameters from either the URL or HTTP template into the * request fields and also want access to the raw HTTP body. + * * Example: + * * message GetResourceRequest { * // A unique request id. * string request_id = 1; + * * // The raw HTTP body is bound to this field. * google.api.HttpBody http_body = 2; + * * } + * * service ResourceService { * rpc GetResource(GetResourceRequest) * returns (google.api.HttpBody); * rpc UpdateResource(google.api.HttpBody) * returns (google.protobuf.Empty); + * * } + * * Example with streaming methods: + * * service CaldavService { * rpc GetCalendar(stream google.api.HttpBody) * returns (stream google.api.HttpBody); * rpc UpdateCalendar(stream google.api.HttpBody) * returns (stream google.api.HttpBody); + * * } + * * Use of this type only changes how the request and response bodies are * handled, all other features will continue to work unchanged. *
@@ -78,11 +91,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HttpBody(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.HttpBodyProto.internal_static_google_api_HttpBody_descriptor; } @@ -423,31 +431,44 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * Message that represents an arbitrary HTTP body. It should only be used for * payload formats that can't be represented as JSON, such as raw binary or * an HTML page. + * + * * This message can be used both in streaming and non-streaming API methods in * the request as well as the response. + * * It can be used as a top-level request field, which is convenient if one * wants to extract parameters from either the URL or HTTP template into the * request fields and also want access to the raw HTTP body. + * * Example: + * * message GetResourceRequest { * // A unique request id. * string request_id = 1; + * * // The raw HTTP body is bound to this field. * google.api.HttpBody http_body = 2; + * * } + * * service ResourceService { * rpc GetResource(GetResourceRequest) * returns (google.api.HttpBody); * rpc UpdateResource(google.api.HttpBody) * returns (google.protobuf.Empty); + * * } + * * Example with streaming methods: + * * service CaldavService { * rpc GetCalendar(stream google.api.HttpBody) * returns (stream google.api.HttpBody); * rpc UpdateCalendar(stream google.api.HttpBody) * returns (stream google.api.HttpBody); + * * } + * * Use of this type only changes how the request and response bodies are * handled, all other features will continue to work unchanged. *
@@ -545,39 +566,6 @@ private void buildPartial0(com.google.api.HttpBody result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.HttpBody) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpOrBuilder.java index 17900f27ac..2ddb68e8e0 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpOrBuilder.java @@ -28,6 +28,7 @@ public interface HttpOrBuilder * *
    * A list of HTTP configuration rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -39,6 +40,7 @@ public interface HttpOrBuilder * *
    * A list of HTTP configuration rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -50,6 +52,7 @@ public interface HttpOrBuilder * *
    * A list of HTTP configuration rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -61,6 +64,7 @@ public interface HttpOrBuilder * *
    * A list of HTTP configuration rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -72,6 +76,7 @@ public interface HttpOrBuilder * *
    * A list of HTTP configuration rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -86,6 +91,7 @@ public interface HttpOrBuilder * When set to true, URL path parameters will be fully URI-decoded except in * cases of single segment matches in reserved expansion, where "%2F" will be * left encoded. + * * The default behavior is to not decode RFC 6570 reserved characters in multi * segment matches. *
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRule.java index 03212bbdab..1a30d9d387 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRule.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRule.java @@ -23,6 +23,7 @@ * *
  * # gRPC Transcoding
+ *
  * gRPC Transcoding is a feature for mapping between a gRPC method and one or
  * more HTTP REST endpoints. It allows developers to build a single API service
  * that supports both gRPC APIs and REST APIs. Many systems, including [Google
@@ -31,17 +32,21 @@
  * Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
  * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
  * and use it for large scale production services.
+ *
  * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
  * how different portions of the gRPC request message are mapped to the URL
  * path, URL query parameters, and HTTP request body. It also controls how the
  * gRPC response message is mapped to the HTTP response body. `HttpRule` is
  * typically specified as an `google.api.http` annotation on the gRPC method.
+ *
  * Each mapping specifies a URL path template and an HTTP method. The path
  * template may refer to one or more fields in the gRPC request message, as long
  * as each field is a non-repeated field with a primitive (non-message) type.
  * The path template controls how fields of the request message are mapped to
  * the URL path.
+ *
  * Example:
+ *
  *     service Messaging {
  *       rpc GetMessage(GetMessageRequest) returns (Message) {
  *         option (google.api.http) = {
@@ -55,13 +60,17 @@
  *     message Message {
  *       string text = 1; // The resource content.
  *     }
+ *
  * This enables an HTTP REST to gRPC mapping as below:
+ *
  * HTTP | gRPC
  * -----|-----
  * `GET /v1/messages/123456`  | `GetMessage(name: "messages/123456")`
+ *
  * Any fields in the request message which are not bound by the path template
  * automatically become HTTP query parameters if there is no HTTP request body.
  * For example:
+ *
  *     service Messaging {
  *       rpc GetMessage(GetMessageRequest) returns (Message) {
  *         option (google.api.http) = {
@@ -77,21 +86,26 @@
  *       int64 revision = 2;    // Mapped to URL query parameter `revision`.
  *       SubMessage sub = 3;    // Mapped to URL query parameter `sub.subfield`.
  *     }
+ *
  * This enables a HTTP JSON to RPC mapping as below:
+ *
  * HTTP | gRPC
  * -----|-----
  * `GET /v1/messages/123456?revision=2&sub.subfield=foo` |
  * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield:
  * "foo"))`
+ *
  * Note that fields which are mapped to URL query parameters must have a
  * primitive type or a repeated primitive type or a non-repeated message type.
  * In the case of a repeated type, the parameter can be repeated in the URL
  * as `...?param=A&param=B`. In the case of a message type, each field of the
  * message is mapped to a separate parameter, such as
  * `...?foo.a=A&foo.b=B&foo.c=C`.
+ *
  * For HTTP methods that allow a request body, the `body` field
  * specifies the mapping. Consider a REST update method on the
  * message resource collection:
+ *
  *     service Messaging {
  *       rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
  *         option (google.api.http) = {
@@ -104,17 +118,21 @@
  *       string message_id = 1; // mapped to the URL
  *       Message message = 2;   // mapped to the body
  *     }
+ *
  * The following HTTP JSON to RPC mapping is enabled, where the
  * representation of the JSON in the request body is determined by
  * protos JSON encoding:
+ *
  * HTTP | gRPC
  * -----|-----
  * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
  * "123456" message { text: "Hi!" })`
+ *
  * The special name `*` can be used in the body mapping to define that
  * every field not bound by the path template should be mapped to the
  * request body.  This enables the following alternative definition of
  * the update method:
+ *
  *     service Messaging {
  *       rpc UpdateMessage(Message) returns (Message) {
  *         option (google.api.http) = {
@@ -127,18 +145,24 @@
  *       string message_id = 1;
  *       string text = 2;
  *     }
+ *
+ *
  * The following HTTP JSON to RPC mapping is enabled:
+ *
  * HTTP | gRPC
  * -----|-----
  * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
  * "123456" text: "Hi!")`
+ *
  * Note that when using `*` in the body mapping, it is not possible to
  * have HTTP parameters, as all fields not bound by the path end in
  * the body. This makes this option more rarely used in practice when
  * defining REST APIs. The common usage of `*` is in custom methods
  * which don't use the URL at all for transferring data.
+ *
  * It is possible to define multiple HTTP methods for one RPC by using
  * the `additional_bindings` option. Example:
+ *
  *     service Messaging {
  *       rpc GetMessage(GetMessageRequest) returns (Message) {
  *         option (google.api.http) = {
@@ -153,13 +177,17 @@
  *       string message_id = 1;
  *       string user_id = 2;
  *     }
+ *
  * This enables the following two alternative HTTP JSON to RPC mappings:
+ *
  * HTTP | gRPC
  * -----|-----
  * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
  * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id:
  * "123456")`
+ *
  * ## Rules for HTTP mapping
+ *
  * 1. Leaf request fields (recursive expansion nested messages in the request
  *    message) are classified into three categories:
  *    - Fields referred by the path template. They are passed via the URL path.
@@ -176,23 +204,29 @@
  *  3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP
  *  request body, all
  *     fields are passed via URL path and URL query parameters.
+ *
  * ### Path template syntax
+ *
  *     Template = "/" Segments [ Verb ] ;
  *     Segments = Segment { "/" Segment } ;
  *     Segment  = "*" | "**" | LITERAL | Variable ;
  *     Variable = "{" FieldPath [ "=" Segments ] "}" ;
  *     FieldPath = IDENT { "." IDENT } ;
  *     Verb     = ":" LITERAL ;
+ *
  * The syntax `*` matches a single URL path segment. The syntax `**` matches
  * zero or more URL path segments, which must be the last part of the URL path
  * except the `Verb`.
+ *
  * The syntax `Variable` matches part of the URL path as specified by its
  * template. A variable template must not contain other variables. If a variable
  * matches a single path segment, its template may be omitted, e.g. `{var}`
  * is equivalent to `{var=*}`.
+ *
  * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
  * contains any reserved character, such characters should be percent-encoded
  * before the matching.
+ *
  * If a variable contains exactly one path segment, such as `"{var}"` or
  * `"{var=*}"`, when such a variable is expanded into a URL path on the client
  * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
@@ -200,6 +234,7 @@
  * [Discovery
  * Document](https://developers.google.com/discovery/v1/reference/apis) as
  * `{var}`.
+ *
  * If a variable contains multiple path segments, such as `"{var=foo/*}"`
  * or `"{var=**}"`, when such a variable is expanded into a URL path on the
  * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
@@ -208,11 +243,14 @@
  * [Discovery
  * Document](https://developers.google.com/discovery/v1/reference/apis) as
  * `{+var}`.
+ *
  * ## Using gRPC API Service Configuration
+ *
  * gRPC API Service Configuration (service config) is a configuration language
  * for configuring a gRPC service to become a user-facing product. The
  * service config is simply the YAML representation of the `google.api.Service`
  * proto message.
+ *
  * As an alternative to annotating your proto file, you can configure gRPC
  * transcoding in your service config YAML files. You do this by specifying a
  * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
@@ -220,16 +258,21 @@
  * have a proto that is reused in multiple services. Note that any transcoding
  * specified in the service config will override any matching transcoding
  * configuration in the proto.
+ *
  * Example:
+ *
  *     http:
  *       rules:
  *         # Selects a gRPC method and applies HttpRule to it.
  *         - selector: example.v1.Messaging.GetMessage
  *           get: /v1/messages/{message_id}/{sub.subfield}
+ *
  * ## Special notes
+ *
  * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
  * proto to JSON conversion must follow the [proto3
  * specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
+ *
  * While the single segment variable follows the semantics of
  * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
  * Expansion, the multi segment variable **does not** follow RFC 6570 Section
@@ -237,13 +280,17 @@
  * does not expand special characters like `?` and `#`, which would lead
  * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
  * for multi segment variables.
+ *
  * The path variables **must not** refer to any repeated or mapped field,
  * because client libraries are not capable of handling such variable expansion.
+ *
  * The path variables **must not** capture the leading "/" character. The reason
  * is that the most common use case "{var}" does not capture the leading "/"
  * character. For consistency, all path variables must share the same behavior.
+ *
  * Repeated message fields must not be mapped to URL query parameters, because
  * no client library can support such complicated mapping.
+ *
  * If an API needs to use a JSON array for request or response body, it can map
  * the request or response body to a repeated field. However, some gRPC
  * Transcoding implementations may not support this feature.
@@ -274,11 +321,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new HttpRule();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.HttpProto.internal_static_google_api_HttpRule_descriptor;
   }
@@ -292,6 +334,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
   }
 
   private int patternCase_ = 0;
+
+  @SuppressWarnings("serial")
   private java.lang.Object pattern_;
 
   public enum PatternCase
@@ -359,6 +403,7 @@ public PatternCase getPatternCase() {
    *
    * 
    * Selects a method to which this rule applies.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -384,6 +429,7 @@ public java.lang.String getSelector() { * *
    * Selects a method to which this rule applies.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -829,6 +875,7 @@ public com.google.api.CustomHttpPatternOrBuilder getCustomOrBuilder() { * The name of the request field whose value is mapped to the HTTP request * body, or `*` for mapping all request fields not captured by the path * pattern to the HTTP body, or omitted for not having any HTTP request body. + * * NOTE: the referred field must be present at the top-level of the request * message type. *
@@ -856,6 +903,7 @@ public java.lang.String getBody() { * The name of the request field whose value is mapped to the HTTP request * body, or `*` for mapping all request fields not captured by the path * pattern to the HTTP body, or omitted for not having any HTTP request body. + * * NOTE: the referred field must be present at the top-level of the request * message type. *
@@ -888,6 +936,7 @@ public com.google.protobuf.ByteString getBodyBytes() { * Optional. The name of the response field whose value is mapped to the HTTP * response body. When omitted, the entire response message will be used * as the HTTP response body. + * * NOTE: The referred field must be present at the top-level of the response * message type. *
@@ -915,6 +964,7 @@ public java.lang.String getResponseBody() { * Optional. The name of the response field whose value is mapped to the HTTP * response body. When omitted, the entire response message will be used * as the HTTP response body. + * * NOTE: The referred field must be present at the top-level of the response * message type. *
@@ -1298,6 +1348,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * # gRPC Transcoding
+   *
    * gRPC Transcoding is a feature for mapping between a gRPC method and one or
    * more HTTP REST endpoints. It allows developers to build a single API service
    * that supports both gRPC APIs and REST APIs. Many systems, including [Google
@@ -1306,17 +1357,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
    * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
    * and use it for large scale production services.
+   *
    * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
    * how different portions of the gRPC request message are mapped to the URL
    * path, URL query parameters, and HTTP request body. It also controls how the
    * gRPC response message is mapped to the HTTP response body. `HttpRule` is
    * typically specified as an `google.api.http` annotation on the gRPC method.
+   *
    * Each mapping specifies a URL path template and an HTTP method. The path
    * template may refer to one or more fields in the gRPC request message, as long
    * as each field is a non-repeated field with a primitive (non-message) type.
    * The path template controls how fields of the request message are mapped to
    * the URL path.
+   *
    * Example:
+   *
    *     service Messaging {
    *       rpc GetMessage(GetMessageRequest) returns (Message) {
    *         option (google.api.http) = {
@@ -1330,13 +1385,17 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *     message Message {
    *       string text = 1; // The resource content.
    *     }
+   *
    * This enables an HTTP REST to gRPC mapping as below:
+   *
    * HTTP | gRPC
    * -----|-----
    * `GET /v1/messages/123456`  | `GetMessage(name: "messages/123456")`
+   *
    * Any fields in the request message which are not bound by the path template
    * automatically become HTTP query parameters if there is no HTTP request body.
    * For example:
+   *
    *     service Messaging {
    *       rpc GetMessage(GetMessageRequest) returns (Message) {
    *         option (google.api.http) = {
@@ -1352,21 +1411,26 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *       int64 revision = 2;    // Mapped to URL query parameter `revision`.
    *       SubMessage sub = 3;    // Mapped to URL query parameter `sub.subfield`.
    *     }
+   *
    * This enables a HTTP JSON to RPC mapping as below:
+   *
    * HTTP | gRPC
    * -----|-----
    * `GET /v1/messages/123456?revision=2&sub.subfield=foo` |
    * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield:
    * "foo"))`
+   *
    * Note that fields which are mapped to URL query parameters must have a
    * primitive type or a repeated primitive type or a non-repeated message type.
    * In the case of a repeated type, the parameter can be repeated in the URL
    * as `...?param=A&param=B`. In the case of a message type, each field of the
    * message is mapped to a separate parameter, such as
    * `...?foo.a=A&foo.b=B&foo.c=C`.
+   *
    * For HTTP methods that allow a request body, the `body` field
    * specifies the mapping. Consider a REST update method on the
    * message resource collection:
+   *
    *     service Messaging {
    *       rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
    *         option (google.api.http) = {
@@ -1379,17 +1443,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *       string message_id = 1; // mapped to the URL
    *       Message message = 2;   // mapped to the body
    *     }
+   *
    * The following HTTP JSON to RPC mapping is enabled, where the
    * representation of the JSON in the request body is determined by
    * protos JSON encoding:
+   *
    * HTTP | gRPC
    * -----|-----
    * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
    * "123456" message { text: "Hi!" })`
+   *
    * The special name `*` can be used in the body mapping to define that
    * every field not bound by the path template should be mapped to the
    * request body.  This enables the following alternative definition of
    * the update method:
+   *
    *     service Messaging {
    *       rpc UpdateMessage(Message) returns (Message) {
    *         option (google.api.http) = {
@@ -1402,18 +1470,24 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *       string message_id = 1;
    *       string text = 2;
    *     }
+   *
+   *
    * The following HTTP JSON to RPC mapping is enabled:
+   *
    * HTTP | gRPC
    * -----|-----
    * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
    * "123456" text: "Hi!")`
+   *
    * Note that when using `*` in the body mapping, it is not possible to
    * have HTTP parameters, as all fields not bound by the path end in
    * the body. This makes this option more rarely used in practice when
    * defining REST APIs. The common usage of `*` is in custom methods
    * which don't use the URL at all for transferring data.
+   *
    * It is possible to define multiple HTTP methods for one RPC by using
    * the `additional_bindings` option. Example:
+   *
    *     service Messaging {
    *       rpc GetMessage(GetMessageRequest) returns (Message) {
    *         option (google.api.http) = {
@@ -1428,13 +1502,17 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *       string message_id = 1;
    *       string user_id = 2;
    *     }
+   *
    * This enables the following two alternative HTTP JSON to RPC mappings:
+   *
    * HTTP | gRPC
    * -----|-----
    * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
    * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id:
    * "123456")`
+   *
    * ## Rules for HTTP mapping
+   *
    * 1. Leaf request fields (recursive expansion nested messages in the request
    *    message) are classified into three categories:
    *    - Fields referred by the path template. They are passed via the URL path.
@@ -1451,23 +1529,29 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *  3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP
    *  request body, all
    *     fields are passed via URL path and URL query parameters.
+   *
    * ### Path template syntax
+   *
    *     Template = "/" Segments [ Verb ] ;
    *     Segments = Segment { "/" Segment } ;
    *     Segment  = "*" | "**" | LITERAL | Variable ;
    *     Variable = "{" FieldPath [ "=" Segments ] "}" ;
    *     FieldPath = IDENT { "." IDENT } ;
    *     Verb     = ":" LITERAL ;
+   *
    * The syntax `*` matches a single URL path segment. The syntax `**` matches
    * zero or more URL path segments, which must be the last part of the URL path
    * except the `Verb`.
+   *
    * The syntax `Variable` matches part of the URL path as specified by its
    * template. A variable template must not contain other variables. If a variable
    * matches a single path segment, its template may be omitted, e.g. `{var}`
    * is equivalent to `{var=*}`.
+   *
    * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
    * contains any reserved character, such characters should be percent-encoded
    * before the matching.
+   *
    * If a variable contains exactly one path segment, such as `"{var}"` or
    * `"{var=*}"`, when such a variable is expanded into a URL path on the client
    * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
@@ -1475,6 +1559,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * [Discovery
    * Document](https://developers.google.com/discovery/v1/reference/apis) as
    * `{var}`.
+   *
    * If a variable contains multiple path segments, such as `"{var=foo/*}"`
    * or `"{var=**}"`, when such a variable is expanded into a URL path on the
    * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
@@ -1483,11 +1568,14 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * [Discovery
    * Document](https://developers.google.com/discovery/v1/reference/apis) as
    * `{+var}`.
+   *
    * ## Using gRPC API Service Configuration
+   *
    * gRPC API Service Configuration (service config) is a configuration language
    * for configuring a gRPC service to become a user-facing product. The
    * service config is simply the YAML representation of the `google.api.Service`
    * proto message.
+   *
    * As an alternative to annotating your proto file, you can configure gRPC
    * transcoding in your service config YAML files. You do this by specifying a
    * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
@@ -1495,16 +1583,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * have a proto that is reused in multiple services. Note that any transcoding
    * specified in the service config will override any matching transcoding
    * configuration in the proto.
+   *
    * Example:
+   *
    *     http:
    *       rules:
    *         # Selects a gRPC method and applies HttpRule to it.
    *         - selector: example.v1.Messaging.GetMessage
    *           get: /v1/messages/{message_id}/{sub.subfield}
+   *
    * ## Special notes
+   *
    * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
    * proto to JSON conversion must follow the [proto3
    * specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
+   *
    * While the single segment variable follows the semantics of
    * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
    * Expansion, the multi segment variable **does not** follow RFC 6570 Section
@@ -1512,13 +1605,17 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * does not expand special characters like `?` and `#`, which would lead
    * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
    * for multi segment variables.
+   *
    * The path variables **must not** refer to any repeated or mapped field,
    * because client libraries are not capable of handling such variable expansion.
+   *
    * The path variables **must not** capture the leading "/" character. The reason
    * is that the most common use case "{var}" does not capture the leading "/"
    * character. For consistency, all path variables must share the same behavior.
+   *
    * Repeated message fields must not be mapped to URL query parameters, because
    * no client library can support such complicated mapping.
+   *
    * If an API needs to use a JSON array for request or response body, it can map
    * the request or response body to a repeated field. However, some gRPC
    * Transcoding implementations may not support this feature.
@@ -1635,39 +1732,6 @@ private void buildPartialOneofs(com.google.api.HttpRule result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.HttpRule) {
@@ -1904,6 +1968,7 @@ public Builder clearPattern() {
      *
      * 
      * Selects a method to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -1928,6 +1993,7 @@ public java.lang.String getSelector() { * *
      * Selects a method to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -1952,6 +2018,7 @@ public com.google.protobuf.ByteString getSelectorBytes() { * *
      * Selects a method to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -1975,6 +2042,7 @@ public Builder setSelector(java.lang.String value) { * *
      * Selects a method to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -1994,6 +2062,7 @@ public Builder clearSelector() { * *
      * Selects a method to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -2931,6 +3000,7 @@ public com.google.api.CustomHttpPatternOrBuilder getCustomOrBuilder() { * The name of the request field whose value is mapped to the HTTP request * body, or `*` for mapping all request fields not captured by the path * pattern to the HTTP body, or omitted for not having any HTTP request body. + * * NOTE: the referred field must be present at the top-level of the request * message type. *
@@ -2957,6 +3027,7 @@ public java.lang.String getBody() { * The name of the request field whose value is mapped to the HTTP request * body, or `*` for mapping all request fields not captured by the path * pattern to the HTTP body, or omitted for not having any HTTP request body. + * * NOTE: the referred field must be present at the top-level of the request * message type. *
@@ -2983,6 +3054,7 @@ public com.google.protobuf.ByteString getBodyBytes() { * The name of the request field whose value is mapped to the HTTP request * body, or `*` for mapping all request fields not captured by the path * pattern to the HTTP body, or omitted for not having any HTTP request body. + * * NOTE: the referred field must be present at the top-level of the request * message type. *
@@ -3008,6 +3080,7 @@ public Builder setBody(java.lang.String value) { * The name of the request field whose value is mapped to the HTTP request * body, or `*` for mapping all request fields not captured by the path * pattern to the HTTP body, or omitted for not having any HTTP request body. + * * NOTE: the referred field must be present at the top-level of the request * message type. *
@@ -3029,6 +3102,7 @@ public Builder clearBody() { * The name of the request field whose value is mapped to the HTTP request * body, or `*` for mapping all request fields not captured by the path * pattern to the HTTP body, or omitted for not having any HTTP request body. + * * NOTE: the referred field must be present at the top-level of the request * message type. *
@@ -3057,6 +3131,7 @@ public Builder setBodyBytes(com.google.protobuf.ByteString value) { * Optional. The name of the response field whose value is mapped to the HTTP * response body. When omitted, the entire response message will be used * as the HTTP response body. + * * NOTE: The referred field must be present at the top-level of the response * message type. *
@@ -3083,6 +3158,7 @@ public java.lang.String getResponseBody() { * Optional. The name of the response field whose value is mapped to the HTTP * response body. When omitted, the entire response message will be used * as the HTTP response body. + * * NOTE: The referred field must be present at the top-level of the response * message type. *
@@ -3109,6 +3185,7 @@ public com.google.protobuf.ByteString getResponseBodyBytes() { * Optional. The name of the response field whose value is mapped to the HTTP * response body. When omitted, the entire response message will be used * as the HTTP response body. + * * NOTE: The referred field must be present at the top-level of the response * message type. *
@@ -3134,6 +3211,7 @@ public Builder setResponseBody(java.lang.String value) { * Optional. The name of the response field whose value is mapped to the HTTP * response body. When omitted, the entire response message will be used * as the HTTP response body. + * * NOTE: The referred field must be present at the top-level of the response * message type. *
@@ -3155,6 +3233,7 @@ public Builder clearResponseBody() { * Optional. The name of the response field whose value is mapped to the HTTP * response body. When omitted, the entire response message will be used * as the HTTP response body. + * * NOTE: The referred field must be present at the top-level of the response * message type. *
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java index 31d51732f2..56b7fa79c9 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java @@ -28,6 +28,7 @@ public interface HttpRuleOrBuilder * *
    * Selects a method to which this rule applies.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -42,6 +43,7 @@ public interface HttpRuleOrBuilder * *
    * Selects a method to which this rule applies.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -291,6 +293,7 @@ public interface HttpRuleOrBuilder * The name of the request field whose value is mapped to the HTTP request * body, or `*` for mapping all request fields not captured by the path * pattern to the HTTP body, or omitted for not having any HTTP request body. + * * NOTE: the referred field must be present at the top-level of the request * message type. *
@@ -307,6 +310,7 @@ public interface HttpRuleOrBuilder * The name of the request field whose value is mapped to the HTTP request * body, or `*` for mapping all request fields not captured by the path * pattern to the HTTP body, or omitted for not having any HTTP request body. + * * NOTE: the referred field must be present at the top-level of the request * message type. *
@@ -324,6 +328,7 @@ public interface HttpRuleOrBuilder * Optional. The name of the response field whose value is mapped to the HTTP * response body. When omitted, the entire response message will be used * as the HTTP response body. + * * NOTE: The referred field must be present at the top-level of the response * message type. *
@@ -340,6 +345,7 @@ public interface HttpRuleOrBuilder * Optional. The name of the response field whose value is mapped to the HTTP * response body. When omitted, the entire response message will be used * as the HTTP response body. + * * NOTE: The referred field must be present at the top-level of the response * message type. *
@@ -411,5 +417,5 @@ public interface HttpRuleOrBuilder */ com.google.api.HttpRuleOrBuilder getAdditionalBindingsOrBuilder(int index); - public com.google.api.HttpRule.PatternCase getPatternCase(); + com.google.api.HttpRule.PatternCase getPatternCase(); } diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettings.java index 4bdbc32ad2..7654daf0d9 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettings.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettings.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new JavaSettings(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.ClientProto.internal_static_google_api_JavaSettings_descriptor; } @@ -88,7 +83,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * who have already set the language_settings.java.package_name" field * in gapic.yaml. API teams should use the protobuf java_package option * where possible. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * library_package: com.google.cloud.pubsub.v1 @@ -119,7 +116,9 @@ public java.lang.String getLibraryPackage() { * who have already set the language_settings.java.package_name" field * in gapic.yaml. API teams should use the protobuf java_package option * where possible. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * library_package: com.google.cloud.pubsub.v1 @@ -180,7 +179,9 @@ public int getServiceClassNamesCount() { * the language_settings.java.interface_names" field in gapic.yaml. API * teams should otherwise use the service name as it appears in the * protobuf. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * service_class_names: @@ -213,7 +214,9 @@ public java.util.Map getServiceClassNames() * the language_settings.java.interface_names" field in gapic.yaml. API * teams should otherwise use the service name as it appears in the * protobuf. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * service_class_names: @@ -237,7 +240,9 @@ public java.util.Map getServiceClassNamesMap * the language_settings.java.interface_names" field in gapic.yaml. API * teams should otherwise use the service name as it appears in the * protobuf. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * service_class_names: @@ -268,7 +273,9 @@ public java.util.Map getServiceClassNamesMap * the language_settings.java.interface_names" field in gapic.yaml. API * teams should otherwise use the service name as it appears in the * protobuf. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * service_class_names: @@ -636,39 +643,6 @@ private void buildPartial0(com.google.api.JavaSettings result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.JavaSettings) { @@ -771,7 +745,9 @@ public Builder mergeFrom( * who have already set the language_settings.java.package_name" field * in gapic.yaml. API teams should use the protobuf java_package option * where possible. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * library_package: com.google.cloud.pubsub.v1 @@ -801,7 +777,9 @@ public java.lang.String getLibraryPackage() { * who have already set the language_settings.java.package_name" field * in gapic.yaml. API teams should use the protobuf java_package option * where possible. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * library_package: com.google.cloud.pubsub.v1 @@ -831,7 +809,9 @@ public com.google.protobuf.ByteString getLibraryPackageBytes() { * who have already set the language_settings.java.package_name" field * in gapic.yaml. API teams should use the protobuf java_package option * where possible. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * library_package: com.google.cloud.pubsub.v1 @@ -860,7 +840,9 @@ public Builder setLibraryPackage(java.lang.String value) { * who have already set the language_settings.java.package_name" field * in gapic.yaml. API teams should use the protobuf java_package option * where possible. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * library_package: com.google.cloud.pubsub.v1 @@ -885,7 +867,9 @@ public Builder clearLibraryPackage() { * who have already set the language_settings.java.package_name" field * in gapic.yaml. API teams should use the protobuf java_package option * where possible. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * library_package: com.google.cloud.pubsub.v1 @@ -946,7 +930,9 @@ public int getServiceClassNamesCount() { * the language_settings.java.interface_names" field in gapic.yaml. API * teams should otherwise use the service name as it appears in the * protobuf. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * service_class_names: @@ -979,7 +965,9 @@ public java.util.Map getServiceClassNames() * the language_settings.java.interface_names" field in gapic.yaml. API * teams should otherwise use the service name as it appears in the * protobuf. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * service_class_names: @@ -1003,7 +991,9 @@ public java.util.Map getServiceClassNamesMap * the language_settings.java.interface_names" field in gapic.yaml. API * teams should otherwise use the service name as it appears in the * protobuf. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * service_class_names: @@ -1035,7 +1025,9 @@ public java.util.Map getServiceClassNamesMap * the language_settings.java.interface_names" field in gapic.yaml. API * teams should otherwise use the service name as it appears in the * protobuf. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * service_class_names: @@ -1073,7 +1065,9 @@ public Builder clearServiceClassNames() { * the language_settings.java.interface_names" field in gapic.yaml. API * teams should otherwise use the service name as it appears in the * protobuf. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * service_class_names: @@ -1106,7 +1100,9 @@ public java.util.Map getMutableServiceClassN * the language_settings.java.interface_names" field in gapic.yaml. API * teams should otherwise use the service name as it appears in the * protobuf. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * service_class_names: @@ -1137,7 +1133,9 @@ public Builder putServiceClassNames(java.lang.String key, java.lang.String value * the language_settings.java.interface_names" field in gapic.yaml. API * teams should otherwise use the service name as it appears in the * protobuf. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * service_class_names: diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettingsOrBuilder.java index c6d326f4a3..72a860c07e 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettingsOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettingsOrBuilder.java @@ -32,7 +32,9 @@ public interface JavaSettingsOrBuilder * who have already set the language_settings.java.package_name" field * in gapic.yaml. API teams should use the protobuf java_package option * where possible. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * library_package: com.google.cloud.pubsub.v1 @@ -52,7 +54,9 @@ public interface JavaSettingsOrBuilder * who have already set the language_settings.java.package_name" field * in gapic.yaml. API teams should use the protobuf java_package option * where possible. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * library_package: com.google.cloud.pubsub.v1 @@ -74,7 +78,9 @@ public interface JavaSettingsOrBuilder * the language_settings.java.interface_names" field in gapic.yaml. API * teams should otherwise use the service name as it appears in the * protobuf. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * service_class_names: @@ -95,7 +101,9 @@ public interface JavaSettingsOrBuilder * the language_settings.java.interface_names" field in gapic.yaml. API * teams should otherwise use the service name as it appears in the * protobuf. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * service_class_names: @@ -119,7 +127,9 @@ public interface JavaSettingsOrBuilder * the language_settings.java.interface_names" field in gapic.yaml. API * teams should otherwise use the service name as it appears in the * protobuf. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * service_class_names: @@ -140,7 +150,9 @@ public interface JavaSettingsOrBuilder * the language_settings.java.interface_names" field in gapic.yaml. API * teams should otherwise use the service name as it appears in the * protobuf. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * service_class_names: @@ -165,7 +177,9 @@ java.lang.String getServiceClassNamesOrDefault( * the language_settings.java.interface_names" field in gapic.yaml. API * teams should otherwise use the service name as it appears in the * protobuf. + * * Example of a YAML configuration:: + * * publishing: * java_settings: * service_class_names: diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java index 9e7968ed34..d81e325fed 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new JwtLocation(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.AuthProto.internal_static_google_api_JwtLocation_descriptor; } @@ -65,6 +60,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int inCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object in_; public enum InCase @@ -337,6 +334,7 @@ public com.google.protobuf.ByteString getCookieBytes() { * If not empty, the header value has to match (case sensitive) this prefix. * If not matched, JWT will not be extracted. If matched, JWT will be * extracted after the prefix is removed. + * * For example, for "Authorization: Bearer {JWT}", * value_prefix="Bearer " with a space at the end. *
@@ -366,6 +364,7 @@ public java.lang.String getValuePrefix() { * If not empty, the header value has to match (case sensitive) this prefix. * If not matched, JWT will not be extracted. If matched, JWT will be * extracted after the prefix is removed. + * * For example, for "Authorization: Bearer {JWT}", * value_prefix="Bearer " with a space at the end. *
@@ -676,39 +675,6 @@ private void buildPartialOneofs(com.google.api.JwtLocation result) { result.in_ = this.in_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.JwtLocation) { @@ -1251,6 +1217,7 @@ public Builder setCookieBytes(com.google.protobuf.ByteString value) { * If not empty, the header value has to match (case sensitive) this prefix. * If not matched, JWT will not be extracted. If matched, JWT will be * extracted after the prefix is removed. + * * For example, for "Authorization: Bearer {JWT}", * value_prefix="Bearer " with a space at the end. *
@@ -1279,6 +1246,7 @@ public java.lang.String getValuePrefix() { * If not empty, the header value has to match (case sensitive) this prefix. * If not matched, JWT will not be extracted. If matched, JWT will be * extracted after the prefix is removed. + * * For example, for "Authorization: Bearer {JWT}", * value_prefix="Bearer " with a space at the end. *
@@ -1307,6 +1275,7 @@ public com.google.protobuf.ByteString getValuePrefixBytes() { * If not empty, the header value has to match (case sensitive) this prefix. * If not matched, JWT will not be extracted. If matched, JWT will be * extracted after the prefix is removed. + * * For example, for "Authorization: Bearer {JWT}", * value_prefix="Bearer " with a space at the end. *
@@ -1334,6 +1303,7 @@ public Builder setValuePrefix(java.lang.String value) { * If not empty, the header value has to match (case sensitive) this prefix. * If not matched, JWT will not be extracted. If matched, JWT will be * extracted after the prefix is removed. + * * For example, for "Authorization: Bearer {JWT}", * value_prefix="Bearer " with a space at the end. *
@@ -1357,6 +1327,7 @@ public Builder clearValuePrefix() { * If not empty, the header value has to match (case sensitive) this prefix. * If not matched, JWT will not be extracted. If matched, JWT will be * extracted after the prefix is removed. + * * For example, for "Authorization: Bearer {JWT}", * value_prefix="Bearer " with a space at the end. *
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java index 167a5c86e6..cd6fff9f5b 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java @@ -143,6 +143,7 @@ public interface JwtLocationOrBuilder * If not empty, the header value has to match (case sensitive) this prefix. * If not matched, JWT will not be extracted. If matched, JWT will be * extracted after the prefix is removed. + * * For example, for "Authorization: Bearer {JWT}", * value_prefix="Bearer " with a space at the end. *
@@ -161,6 +162,7 @@ public interface JwtLocationOrBuilder * If not empty, the header value has to match (case sensitive) this prefix. * If not matched, JWT will not be extracted. If matched, JWT will be * extracted after the prefix is removed. + * * For example, for "Authorization: Bearer {JWT}", * value_prefix="Bearer " with a space at the end. *
@@ -171,5 +173,5 @@ public interface JwtLocationOrBuilder */ com.google.protobuf.ByteString getValuePrefixBytes(); - public com.google.api.JwtLocation.InCase getInCase(); + com.google.api.JwtLocation.InCase getInCase(); } diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptor.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptor.java index 503d6fc0d8..071ca4609a 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptor.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptor.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LabelDescriptor(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.LabelProto.internal_static_google_api_LabelDescriptor_descriptor; } @@ -619,39 +614,6 @@ private void buildPartial0(com.google.api.LabelDescriptor result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.LabelDescriptor) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptor.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptor.java index b6b3318518..ae0f97dfa3 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptor.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptor.java @@ -23,6 +23,7 @@ * *
  * A description of a log type. Example in YAML format:
+ *
  *     - name: library.googleapis.com/activity_history
  *       description: The history of borrowing and returning library items.
  *       display_name: Activity
@@ -56,11 +57,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LogDescriptor();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.LogProto.internal_static_google_api_LogDescriptor_descriptor;
   }
@@ -508,6 +504,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 
    * A description of a log type. Example in YAML format:
+   *
    *     - name: library.googleapis.com/activity_history
    *       description: The history of borrowing and returning library items.
    *       display_name: Activity
@@ -613,39 +610,6 @@ private void buildPartial0(com.google.api.LogDescriptor result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.LogDescriptor) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Logging.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Logging.java
index 26cf4b48d7..3d0268a67d 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Logging.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Logging.java
@@ -23,10 +23,12 @@
  *
  * 
  * Logging configuration of the service.
+ *
  * The following example shows how to configure logs to be sent to the
  * producer and consumer projects. In the example, the `activity_history`
  * log is sent to both the producer and consumer projects, whereas the
  * `purchase_history` log is only sent to the producer project.
+ *
  *     monitored_resources:
  *     - type: library.googleapis.com/branch
  *       labels:
@@ -74,11 +76,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Logging();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.LoggingProto.internal_static_google_api_Logging_descriptor;
   }
@@ -210,7 +207,7 @@ private LoggingDestination(com.google.protobuf.GeneratedMessageV3.Builder bui
 
     private LoggingDestination() {
       monitoredResource_ = "";
-      logs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      logs_ = com.google.protobuf.LazyStringArrayList.emptyList();
     }
 
     @java.lang.Override
@@ -219,11 +216,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new LoggingDestination();
     }
 
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-      return this.unknownFields;
-    }
-
     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.api.LoggingProto
           .internal_static_google_api_Logging_LoggingDestination_descriptor;
@@ -297,7 +289,8 @@ public com.google.protobuf.ByteString getMonitoredResourceBytes() {
     public static final int LOGS_FIELD_NUMBER = 1;
 
     @SuppressWarnings("serial")
-    private com.google.protobuf.LazyStringList logs_;
+    private com.google.protobuf.LazyStringArrayList logs_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
     /**
      *
      *
@@ -587,8 +580,7 @@ public Builder clear() {
         super.clear();
         bitField0_ = 0;
         monitoredResource_ = "";
-        logs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-        bitField0_ = (bitField0_ & ~0x00000002);
+        logs_ = com.google.protobuf.LazyStringArrayList.emptyList();
         return this;
       }
 
@@ -616,7 +608,6 @@ public com.google.api.Logging.LoggingDestination build() {
       public com.google.api.Logging.LoggingDestination buildPartial() {
         com.google.api.Logging.LoggingDestination result =
             new com.google.api.Logging.LoggingDestination(this);
-        buildPartialRepeatedFields(result);
         if (bitField0_ != 0) {
           buildPartial0(result);
         }
@@ -624,54 +615,15 @@ public com.google.api.Logging.LoggingDestination buildPartial() {
         return result;
       }
 
-      private void buildPartialRepeatedFields(com.google.api.Logging.LoggingDestination result) {
-        if (((bitField0_ & 0x00000002) != 0)) {
-          logs_ = logs_.getUnmodifiableView();
-          bitField0_ = (bitField0_ & ~0x00000002);
-        }
-        result.logs_ = logs_;
-      }
-
       private void buildPartial0(com.google.api.Logging.LoggingDestination result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.monitoredResource_ = monitoredResource_;
         }
-      }
-
-      @java.lang.Override
-      public Builder clone() {
-        return super.clone();
-      }
-
-      @java.lang.Override
-      public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-        return super.setField(field, value);
-      }
-
-      @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-        return super.clearField(field);
-      }
-
-      @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-        return super.clearOneof(oneof);
-      }
-
-      @java.lang.Override
-      public Builder setRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
-        return super.setRepeatedField(field, index, value);
-      }
-
-      @java.lang.Override
-      public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-        return super.addRepeatedField(field, value);
+        if (((from_bitField0_ & 0x00000002) != 0)) {
+          logs_.makeImmutable();
+          result.logs_ = logs_;
+        }
       }
 
       @java.lang.Override
@@ -694,7 +646,7 @@ public Builder mergeFrom(com.google.api.Logging.LoggingDestination other) {
         if (!other.logs_.isEmpty()) {
           if (logs_.isEmpty()) {
             logs_ = other.logs_;
-            bitField0_ = (bitField0_ & ~0x00000002);
+            bitField0_ |= 0x00000002;
           } else {
             ensureLogsIsMutable();
             logs_.addAll(other.logs_);
@@ -875,14 +827,14 @@ public Builder setMonitoredResourceBytes(com.google.protobuf.ByteString value) {
         return this;
       }
 
-      private com.google.protobuf.LazyStringList logs_ =
-          com.google.protobuf.LazyStringArrayList.EMPTY;
+      private com.google.protobuf.LazyStringArrayList logs_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
 
       private void ensureLogsIsMutable() {
-        if (!((bitField0_ & 0x00000002) != 0)) {
+        if (!logs_.isModifiable()) {
           logs_ = new com.google.protobuf.LazyStringArrayList(logs_);
-          bitField0_ |= 0x00000002;
         }
+        bitField0_ |= 0x00000002;
       }
       /**
        *
@@ -899,7 +851,8 @@ private void ensureLogsIsMutable() {
        * @return A list containing the logs.
        */
       public com.google.protobuf.ProtocolStringList getLogsList() {
-        return logs_.getUnmodifiableView();
+        logs_.makeImmutable();
+        return logs_;
       }
       /**
        *
@@ -976,6 +929,7 @@ public Builder setLogs(int index, java.lang.String value) {
         }
         ensureLogsIsMutable();
         logs_.set(index, value);
+        bitField0_ |= 0x00000002;
         onChanged();
         return this;
       }
@@ -1000,6 +954,7 @@ public Builder addLogs(java.lang.String value) {
         }
         ensureLogsIsMutable();
         logs_.add(value);
+        bitField0_ |= 0x00000002;
         onChanged();
         return this;
       }
@@ -1021,6 +976,7 @@ public Builder addLogs(java.lang.String value) {
       public Builder addAllLogs(java.lang.Iterable values) {
         ensureLogsIsMutable();
         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logs_);
+        bitField0_ |= 0x00000002;
         onChanged();
         return this;
       }
@@ -1039,8 +995,9 @@ public Builder addAllLogs(java.lang.Iterable values) {
        * @return This builder for chaining.
        */
       public Builder clearLogs() {
-        logs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+        logs_ = com.google.protobuf.LazyStringArrayList.emptyList();
         bitField0_ = (bitField0_ & ~0x00000002);
+        ;
         onChanged();
         return this;
       }
@@ -1066,6 +1023,7 @@ public Builder addLogsBytes(com.google.protobuf.ByteString value) {
         checkByteStringIsUtf8(value);
         ensureLogsIsMutable();
         logs_.add(value);
+        bitField0_ |= 0x00000002;
         onChanged();
         return this;
       }
@@ -1485,10 +1443,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 
    * Logging configuration of the service.
+   *
    * The following example shows how to configure logs to be sent to the
    * producer and consumer projects. In the example, the `activity_history`
    * log is sent to both the producer and consumer projects, whereas the
    * `purchase_history` log is only sent to the producer project.
+   *
    *     monitored_resources:
    *     - type: library.googleapis.com/branch
    *       labels:
@@ -1614,39 +1574,6 @@ private void buildPartial0(com.google.api.Logging result) {
       int from_bitField0_ = bitField0_;
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.Logging) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java
index bbfec42322..97e394223e 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MethodSettings();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.ClientProto.internal_static_google_api_MethodSettings_descriptor;
   }
@@ -206,7 +201,7 @@ public interface LongRunningOrBuilder
    * long-running operation pattern.
    * All default values below are from those used in the client library
    * generators (e.g.
-   * [Java](https://github.com/googleapis/sdk-platform-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)).
+   * [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)).
    * 
* * Protobuf type {@code google.api.MethodSettings.LongRunning} @@ -229,11 +224,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LongRunning(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.ClientProto .internal_static_google_api_MethodSettings_LongRunning_descriptor; @@ -639,7 +629,7 @@ protected Builder newBuilderForType( * long-running operation pattern. * All default values below are from those used in the client library * generators (e.g. - * [Java](https://github.com/googleapis/sdk-platform-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). + * [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). *
* * Protobuf type {@code google.api.MethodSettings.LongRunning} @@ -748,41 +738,6 @@ private void buildPartial0(com.google.api.MethodSettings.LongRunning result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.MethodSettings.LongRunning) { @@ -1639,7 +1594,9 @@ public com.google.protobuf.ByteString getSelectorBytes() { * Describes settings to use for long-running operations when generating * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. + * * Example of a YAML configuration:: + * * publishing: * method_settings: * - selector: google.cloud.speech.v2.Speech.BatchRecognize @@ -1668,7 +1625,9 @@ public boolean hasLongRunning() { * Describes settings to use for long-running operations when generating * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. + * * Example of a YAML configuration:: + * * publishing: * method_settings: * - selector: google.cloud.speech.v2.Speech.BatchRecognize @@ -1699,7 +1658,9 @@ public com.google.api.MethodSettings.LongRunning getLongRunning() { * Describes settings to use for long-running operations when generating * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. + * * Example of a YAML configuration:: + * * publishing: * method_settings: * - selector: google.cloud.speech.v2.Speech.BatchRecognize @@ -1978,39 +1939,6 @@ private void buildPartial0(com.google.api.MethodSettings result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.MethodSettings) { @@ -2212,7 +2140,9 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) { * Describes settings to use for long-running operations when generating * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. + * * Example of a YAML configuration:: + * * publishing: * method_settings: * - selector: google.cloud.speech.v2.Speech.BatchRecognize @@ -2240,7 +2170,9 @@ public boolean hasLongRunning() { * Describes settings to use for long-running operations when generating * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. + * * Example of a YAML configuration:: + * * publishing: * method_settings: * - selector: google.cloud.speech.v2.Speech.BatchRecognize @@ -2274,7 +2206,9 @@ public com.google.api.MethodSettings.LongRunning getLongRunning() { * Describes settings to use for long-running operations when generating * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. + * * Example of a YAML configuration:: + * * publishing: * method_settings: * - selector: google.cloud.speech.v2.Speech.BatchRecognize @@ -2310,7 +2244,9 @@ public Builder setLongRunning(com.google.api.MethodSettings.LongRunning value) { * Describes settings to use for long-running operations when generating * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. + * * Example of a YAML configuration:: + * * publishing: * method_settings: * - selector: google.cloud.speech.v2.Speech.BatchRecognize @@ -2344,7 +2280,9 @@ public Builder setLongRunning( * Describes settings to use for long-running operations when generating * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. + * * Example of a YAML configuration:: + * * publishing: * method_settings: * - selector: google.cloud.speech.v2.Speech.BatchRecognize @@ -2383,7 +2321,9 @@ public Builder mergeLongRunning(com.google.api.MethodSettings.LongRunning value) * Describes settings to use for long-running operations when generating * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. + * * Example of a YAML configuration:: + * * publishing: * method_settings: * - selector: google.cloud.speech.v2.Speech.BatchRecognize @@ -2416,7 +2356,9 @@ public Builder clearLongRunning() { * Describes settings to use for long-running operations when generating * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. + * * Example of a YAML configuration:: + * * publishing: * method_settings: * - selector: google.cloud.speech.v2.Speech.BatchRecognize @@ -2444,7 +2386,9 @@ public com.google.api.MethodSettings.LongRunning.Builder getLongRunningBuilder() * Describes settings to use for long-running operations when generating * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. + * * Example of a YAML configuration:: + * * publishing: * method_settings: * - selector: google.cloud.speech.v2.Speech.BatchRecognize @@ -2476,7 +2420,9 @@ public com.google.api.MethodSettings.LongRunningOrBuilder getLongRunningOrBuilde * Describes settings to use for long-running operations when generating * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. + * * Example of a YAML configuration:: + * * publishing: * method_settings: * - selector: google.cloud.speech.v2.Speech.BatchRecognize diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettingsOrBuilder.java index 9bc4f14caa..bd505c8f47 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettingsOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettingsOrBuilder.java @@ -57,7 +57,9 @@ public interface MethodSettingsOrBuilder * Describes settings to use for long-running operations when generating * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. + * * Example of a YAML configuration:: + * * publishing: * method_settings: * - selector: google.cloud.speech.v2.Speech.BatchRecognize @@ -83,7 +85,9 @@ public interface MethodSettingsOrBuilder * Describes settings to use for long-running operations when generating * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. + * * Example of a YAML configuration:: + * * publishing: * method_settings: * - selector: google.cloud.speech.v2.Speech.BatchRecognize @@ -109,7 +113,9 @@ public interface MethodSettingsOrBuilder * Describes settings to use for long-running operations when generating * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. + * * Example of a YAML configuration:: + * * publishing: * method_settings: * - selector: google.cloud.speech.v2.Speech.BatchRecognize diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Metric.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Metric.java index 95d806a9e9..2215b4907f 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Metric.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Metric.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Metric(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.MetricProto.internal_static_google_api_Metric_descriptor; } @@ -512,39 +507,6 @@ private void buildPartial0(com.google.api.Metric result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.Metric) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptor.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptor.java index f39ceed755..62054e4be8 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptor.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptor.java @@ -49,7 +49,7 @@ private MetricDescriptor() { description_ = ""; displayName_ = ""; launchStage_ = 0; - monitoredResourceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + monitoredResourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -58,11 +58,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MetricDescriptor(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.MetricProto.internal_static_google_api_MetricDescriptor_descriptor; } @@ -667,11 +662,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MetricDescriptorMetadata(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.MetricProto .internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_descriptor; @@ -1135,41 +1125,6 @@ private void buildPartial0(com.google.api.MetricDescriptor.MetricDescriptorMetad } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.MetricDescriptor.MetricDescriptorMetadata) { @@ -1907,6 +1862,7 @@ public com.google.protobuf.ByteString getNameBytes() { * URL-encoded. All user-defined metric types have the DNS name * `custom.googleapis.com` or `external.googleapis.com`. Metric types should * use a natural hierarchical grouping. For example: + * * "custom.googleapis.com/invoice/paid/amount" * "external.googleapis.com/prometheus/up" * "appengine.googleapis.com/http/server/response_latencies" @@ -1936,6 +1892,7 @@ public java.lang.String getType() { * URL-encoded. All user-defined metric types have the DNS name * `custom.googleapis.com` or `external.googleapis.com`. Metric types should * use a natural hierarchical grouping. For example: + * * "custom.googleapis.com/invoice/paid/amount" * "external.googleapis.com/prometheus/up" * "appengine.googleapis.com/http/server/response_latencies" @@ -2139,22 +2096,28 @@ public com.google.api.MetricDescriptor.ValueType getValueType() { * The units in which the metric value is reported. It is only applicable * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` * defines the representation of the stored metric values. + * * Different systems might scale the values to be more easily displayed (so a * value of `0.02kBy` _might_ be displayed as `20By`, and a value of * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is * `kBy`, then the value of the metric is always in thousands of bytes, no * matter how it might be displayed. + * * If you want a custom metric to record the exact number of CPU-seconds used * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 * CPU-seconds, then the value is written as `12005`. + * * Alternatively, if you want a custom metric to record data in a more * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). + * * The supported units are a subset of [The Unified Code for Units of * Measure](https://unitsofmeasure.org/ucum.html) standard: + * * **Basic units (UNIT)** + * * * `bit` bit * * `By` byte * * `s` second @@ -2162,7 +2125,9 @@ public com.google.api.MetricDescriptor.ValueType getValueType() { * * `h` hour * * `d` day * * `1` dimensionless + * * **Prefixes (PREFIX)** + * * * `k` kilo (10^3) * * `M` mega (10^6) * * `G` giga (10^9) @@ -2171,6 +2136,7 @@ public com.google.api.MetricDescriptor.ValueType getValueType() { * * `E` exa (10^18) * * `Z` zetta (10^21) * * `Y` yotta (10^24) + * * * `m` milli (10^-3) * * `u` micro (10^-6) * * `n` nano (10^-9) @@ -2179,27 +2145,37 @@ public com.google.api.MetricDescriptor.ValueType getValueType() { * * `a` atto (10^-18) * * `z` zepto (10^-21) * * `y` yocto (10^-24) + * * * `Ki` kibi (2^10) * * `Mi` mebi (2^20) * * `Gi` gibi (2^30) * * `Ti` tebi (2^40) * * `Pi` pebi (2^50) + * * **Grammar** + * * The grammar also includes these connectors: + * * * `/` division or ratio (as an infix operator). For examples, * `kBy/{email}` or `MiBy/10ms` (although you should almost never * have `/s` in a metric `unit`; rates should always be computed at * query time from the underlying cumulative or delta value). * * `.` multiplication or composition (as an infix operator). For * examples, `GBy.d` or `k{watt}.h`. + * * The grammar for a unit is as follows: + * * Expression = Component { "." Component } { "/" Component } ; + * * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] * | Annotation * | "1" * ; + * * Annotation = "{" NAME "}" ; + * * Notes: + * * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation * is used alone, then the unit is equivalent to `1`. For examples, * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. @@ -2244,22 +2220,28 @@ public java.lang.String getUnit() { * The units in which the metric value is reported. It is only applicable * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` * defines the representation of the stored metric values. + * * Different systems might scale the values to be more easily displayed (so a * value of `0.02kBy` _might_ be displayed as `20By`, and a value of * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is * `kBy`, then the value of the metric is always in thousands of bytes, no * matter how it might be displayed. + * * If you want a custom metric to record the exact number of CPU-seconds used * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 * CPU-seconds, then the value is written as `12005`. + * * Alternatively, if you want a custom metric to record data in a more * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). + * * The supported units are a subset of [The Unified Code for Units of * Measure](https://unitsofmeasure.org/ucum.html) standard: + * * **Basic units (UNIT)** + * * * `bit` bit * * `By` byte * * `s` second @@ -2267,7 +2249,9 @@ public java.lang.String getUnit() { * * `h` hour * * `d` day * * `1` dimensionless + * * **Prefixes (PREFIX)** + * * * `k` kilo (10^3) * * `M` mega (10^6) * * `G` giga (10^9) @@ -2276,6 +2260,7 @@ public java.lang.String getUnit() { * * `E` exa (10^18) * * `Z` zetta (10^21) * * `Y` yotta (10^24) + * * * `m` milli (10^-3) * * `u` micro (10^-6) * * `n` nano (10^-9) @@ -2284,27 +2269,37 @@ public java.lang.String getUnit() { * * `a` atto (10^-18) * * `z` zepto (10^-21) * * `y` yocto (10^-24) + * * * `Ki` kibi (2^10) * * `Mi` mebi (2^20) * * `Gi` gibi (2^30) * * `Ti` tebi (2^40) * * `Pi` pebi (2^50) + * * **Grammar** + * * The grammar also includes these connectors: + * * * `/` division or ratio (as an infix operator). For examples, * `kBy/{email}` or `MiBy/10ms` (although you should almost never * have `/s` in a metric `unit`; rates should always be computed at * query time from the underlying cumulative or delta value). * * `.` multiplication or composition (as an infix operator). For * examples, `GBy.d` or `k{watt}.h`. + * * The grammar for a unit is as follows: + * * Expression = Component { "." Component } { "/" Component } ; + * * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] * | Annotation * | "1" * ; + * * Annotation = "{" NAME "}" ; + * * Notes: + * * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation * is used alone, then the unit is equivalent to `1`. For examples, * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. @@ -2538,7 +2533,8 @@ public com.google.api.LaunchStage getLaunchStage() { public static final int MONITORED_RESOURCE_TYPES_FIELD_NUMBER = 13; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList monitoredResourceTypes_; + private com.google.protobuf.LazyStringArrayList monitoredResourceTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -2944,8 +2940,7 @@ public Builder clear() { metadataBuilder_ = null; } launchStage_ = 0; - monitoredResourceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000400); + monitoredResourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -2989,11 +2984,6 @@ private void buildPartialRepeatedFields(com.google.api.MetricDescriptor result) } else { result.labels_ = labelsBuilder_.build(); } - if (((bitField0_ & 0x00000400) != 0)) { - monitoredResourceTypes_ = monitoredResourceTypes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000400); - } - result.monitoredResourceTypes_ = monitoredResourceTypes_; } private void buildPartial0(com.google.api.MetricDescriptor result) { @@ -3025,39 +3015,10 @@ private void buildPartial0(com.google.api.MetricDescriptor result) { if (((from_bitField0_ & 0x00000200) != 0)) { result.launchStage_ = launchStage_; } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + if (((from_bitField0_ & 0x00000400) != 0)) { + monitoredResourceTypes_.makeImmutable(); + result.monitoredResourceTypes_ = monitoredResourceTypes_; + } } @java.lang.Override @@ -3139,7 +3100,7 @@ public Builder mergeFrom(com.google.api.MetricDescriptor other) { if (!other.monitoredResourceTypes_.isEmpty()) { if (monitoredResourceTypes_.isEmpty()) { monitoredResourceTypes_ = other.monitoredResourceTypes_; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ |= 0x00000400; } else { ensureMonitoredResourceTypesIsMutable(); monitoredResourceTypes_.addAll(other.monitoredResourceTypes_); @@ -3379,6 +3340,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * URL-encoded. All user-defined metric types have the DNS name * `custom.googleapis.com` or `external.googleapis.com`. Metric types should * use a natural hierarchical grouping. For example: + * * "custom.googleapis.com/invoice/paid/amount" * "external.googleapis.com/prometheus/up" * "appengine.googleapis.com/http/server/response_latencies" @@ -3407,6 +3369,7 @@ public java.lang.String getType() { * URL-encoded. All user-defined metric types have the DNS name * `custom.googleapis.com` or `external.googleapis.com`. Metric types should * use a natural hierarchical grouping. For example: + * * "custom.googleapis.com/invoice/paid/amount" * "external.googleapis.com/prometheus/up" * "appengine.googleapis.com/http/server/response_latencies" @@ -3435,6 +3398,7 @@ public com.google.protobuf.ByteString getTypeBytes() { * URL-encoded. All user-defined metric types have the DNS name * `custom.googleapis.com` or `external.googleapis.com`. Metric types should * use a natural hierarchical grouping. For example: + * * "custom.googleapis.com/invoice/paid/amount" * "external.googleapis.com/prometheus/up" * "appengine.googleapis.com/http/server/response_latencies" @@ -3462,6 +3426,7 @@ public Builder setType(java.lang.String value) { * URL-encoded. All user-defined metric types have the DNS name * `custom.googleapis.com` or `external.googleapis.com`. Metric types should * use a natural hierarchical grouping. For example: + * * "custom.googleapis.com/invoice/paid/amount" * "external.googleapis.com/prometheus/up" * "appengine.googleapis.com/http/server/response_latencies" @@ -3485,6 +3450,7 @@ public Builder clearType() { * URL-encoded. All user-defined metric types have the DNS name * `custom.googleapis.com` or `external.googleapis.com`. Metric types should * use a natural hierarchical grouping. For example: + * * "custom.googleapis.com/invoice/paid/amount" * "external.googleapis.com/prometheus/up" * "appengine.googleapis.com/http/server/response_latencies" @@ -4140,22 +4106,28 @@ public Builder clearValueType() { * The units in which the metric value is reported. It is only applicable * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` * defines the representation of the stored metric values. + * * Different systems might scale the values to be more easily displayed (so a * value of `0.02kBy` _might_ be displayed as `20By`, and a value of * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is * `kBy`, then the value of the metric is always in thousands of bytes, no * matter how it might be displayed. + * * If you want a custom metric to record the exact number of CPU-seconds used * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 * CPU-seconds, then the value is written as `12005`. + * * Alternatively, if you want a custom metric to record data in a more * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). + * * The supported units are a subset of [The Unified Code for Units of * Measure](https://unitsofmeasure.org/ucum.html) standard: + * * **Basic units (UNIT)** + * * * `bit` bit * * `By` byte * * `s` second @@ -4163,7 +4135,9 @@ public Builder clearValueType() { * * `h` hour * * `d` day * * `1` dimensionless + * * **Prefixes (PREFIX)** + * * * `k` kilo (10^3) * * `M` mega (10^6) * * `G` giga (10^9) @@ -4172,6 +4146,7 @@ public Builder clearValueType() { * * `E` exa (10^18) * * `Z` zetta (10^21) * * `Y` yotta (10^24) + * * * `m` milli (10^-3) * * `u` micro (10^-6) * * `n` nano (10^-9) @@ -4180,27 +4155,37 @@ public Builder clearValueType() { * * `a` atto (10^-18) * * `z` zepto (10^-21) * * `y` yocto (10^-24) + * * * `Ki` kibi (2^10) * * `Mi` mebi (2^20) * * `Gi` gibi (2^30) * * `Ti` tebi (2^40) * * `Pi` pebi (2^50) + * * **Grammar** + * * The grammar also includes these connectors: + * * * `/` division or ratio (as an infix operator). For examples, * `kBy/{email}` or `MiBy/10ms` (although you should almost never * have `/s` in a metric `unit`; rates should always be computed at * query time from the underlying cumulative or delta value). * * `.` multiplication or composition (as an infix operator). For * examples, `GBy.d` or `k{watt}.h`. + * * The grammar for a unit is as follows: + * * Expression = Component { "." Component } { "/" Component } ; + * * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] * | Annotation * | "1" * ; + * * Annotation = "{" NAME "}" ; + * * Notes: + * * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation * is used alone, then the unit is equivalent to `1`. For examples, * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. @@ -4244,22 +4229,28 @@ public java.lang.String getUnit() { * The units in which the metric value is reported. It is only applicable * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` * defines the representation of the stored metric values. + * * Different systems might scale the values to be more easily displayed (so a * value of `0.02kBy` _might_ be displayed as `20By`, and a value of * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is * `kBy`, then the value of the metric is always in thousands of bytes, no * matter how it might be displayed. + * * If you want a custom metric to record the exact number of CPU-seconds used * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 * CPU-seconds, then the value is written as `12005`. + * * Alternatively, if you want a custom metric to record data in a more * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). + * * The supported units are a subset of [The Unified Code for Units of * Measure](https://unitsofmeasure.org/ucum.html) standard: + * * **Basic units (UNIT)** + * * * `bit` bit * * `By` byte * * `s` second @@ -4267,7 +4258,9 @@ public java.lang.String getUnit() { * * `h` hour * * `d` day * * `1` dimensionless + * * **Prefixes (PREFIX)** + * * * `k` kilo (10^3) * * `M` mega (10^6) * * `G` giga (10^9) @@ -4276,6 +4269,7 @@ public java.lang.String getUnit() { * * `E` exa (10^18) * * `Z` zetta (10^21) * * `Y` yotta (10^24) + * * * `m` milli (10^-3) * * `u` micro (10^-6) * * `n` nano (10^-9) @@ -4284,27 +4278,37 @@ public java.lang.String getUnit() { * * `a` atto (10^-18) * * `z` zepto (10^-21) * * `y` yocto (10^-24) + * * * `Ki` kibi (2^10) * * `Mi` mebi (2^20) * * `Gi` gibi (2^30) * * `Ti` tebi (2^40) * * `Pi` pebi (2^50) + * * **Grammar** + * * The grammar also includes these connectors: + * * * `/` division or ratio (as an infix operator). For examples, * `kBy/{email}` or `MiBy/10ms` (although you should almost never * have `/s` in a metric `unit`; rates should always be computed at * query time from the underlying cumulative or delta value). * * `.` multiplication or composition (as an infix operator). For * examples, `GBy.d` or `k{watt}.h`. + * * The grammar for a unit is as follows: + * * Expression = Component { "." Component } { "/" Component } ; + * * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] * | Annotation * | "1" * ; + * * Annotation = "{" NAME "}" ; + * * Notes: + * * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation * is used alone, then the unit is equivalent to `1`. For examples, * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. @@ -4348,22 +4352,28 @@ public com.google.protobuf.ByteString getUnitBytes() { * The units in which the metric value is reported. It is only applicable * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` * defines the representation of the stored metric values. + * * Different systems might scale the values to be more easily displayed (so a * value of `0.02kBy` _might_ be displayed as `20By`, and a value of * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is * `kBy`, then the value of the metric is always in thousands of bytes, no * matter how it might be displayed. + * * If you want a custom metric to record the exact number of CPU-seconds used * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 * CPU-seconds, then the value is written as `12005`. + * * Alternatively, if you want a custom metric to record data in a more * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). + * * The supported units are a subset of [The Unified Code for Units of * Measure](https://unitsofmeasure.org/ucum.html) standard: + * * **Basic units (UNIT)** + * * * `bit` bit * * `By` byte * * `s` second @@ -4371,7 +4381,9 @@ public com.google.protobuf.ByteString getUnitBytes() { * * `h` hour * * `d` day * * `1` dimensionless + * * **Prefixes (PREFIX)** + * * * `k` kilo (10^3) * * `M` mega (10^6) * * `G` giga (10^9) @@ -4380,6 +4392,7 @@ public com.google.protobuf.ByteString getUnitBytes() { * * `E` exa (10^18) * * `Z` zetta (10^21) * * `Y` yotta (10^24) + * * * `m` milli (10^-3) * * `u` micro (10^-6) * * `n` nano (10^-9) @@ -4388,27 +4401,37 @@ public com.google.protobuf.ByteString getUnitBytes() { * * `a` atto (10^-18) * * `z` zepto (10^-21) * * `y` yocto (10^-24) + * * * `Ki` kibi (2^10) * * `Mi` mebi (2^20) * * `Gi` gibi (2^30) * * `Ti` tebi (2^40) * * `Pi` pebi (2^50) + * * **Grammar** + * * The grammar also includes these connectors: + * * * `/` division or ratio (as an infix operator). For examples, * `kBy/{email}` or `MiBy/10ms` (although you should almost never * have `/s` in a metric `unit`; rates should always be computed at * query time from the underlying cumulative or delta value). * * `.` multiplication or composition (as an infix operator). For * examples, `GBy.d` or `k{watt}.h`. + * * The grammar for a unit is as follows: + * * Expression = Component { "." Component } { "/" Component } ; + * * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] * | Annotation * | "1" * ; + * * Annotation = "{" NAME "}" ; + * * Notes: + * * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation * is used alone, then the unit is equivalent to `1`. For examples, * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. @@ -4451,22 +4474,28 @@ public Builder setUnit(java.lang.String value) { * The units in which the metric value is reported. It is only applicable * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` * defines the representation of the stored metric values. + * * Different systems might scale the values to be more easily displayed (so a * value of `0.02kBy` _might_ be displayed as `20By`, and a value of * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is * `kBy`, then the value of the metric is always in thousands of bytes, no * matter how it might be displayed. + * * If you want a custom metric to record the exact number of CPU-seconds used * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 * CPU-seconds, then the value is written as `12005`. + * * Alternatively, if you want a custom metric to record data in a more * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). + * * The supported units are a subset of [The Unified Code for Units of * Measure](https://unitsofmeasure.org/ucum.html) standard: + * * **Basic units (UNIT)** + * * * `bit` bit * * `By` byte * * `s` second @@ -4474,7 +4503,9 @@ public Builder setUnit(java.lang.String value) { * * `h` hour * * `d` day * * `1` dimensionless + * * **Prefixes (PREFIX)** + * * * `k` kilo (10^3) * * `M` mega (10^6) * * `G` giga (10^9) @@ -4483,6 +4514,7 @@ public Builder setUnit(java.lang.String value) { * * `E` exa (10^18) * * `Z` zetta (10^21) * * `Y` yotta (10^24) + * * * `m` milli (10^-3) * * `u` micro (10^-6) * * `n` nano (10^-9) @@ -4491,27 +4523,37 @@ public Builder setUnit(java.lang.String value) { * * `a` atto (10^-18) * * `z` zepto (10^-21) * * `y` yocto (10^-24) + * * * `Ki` kibi (2^10) * * `Mi` mebi (2^20) * * `Gi` gibi (2^30) * * `Ti` tebi (2^40) * * `Pi` pebi (2^50) + * * **Grammar** + * * The grammar also includes these connectors: + * * * `/` division or ratio (as an infix operator). For examples, * `kBy/{email}` or `MiBy/10ms` (although you should almost never * have `/s` in a metric `unit`; rates should always be computed at * query time from the underlying cumulative or delta value). * * `.` multiplication or composition (as an infix operator). For * examples, `GBy.d` or `k{watt}.h`. + * * The grammar for a unit is as follows: + * * Expression = Component { "." Component } { "/" Component } ; + * * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] * | Annotation * | "1" * ; + * * Annotation = "{" NAME "}" ; + * * Notes: + * * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation * is used alone, then the unit is equivalent to `1`. For examples, * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. @@ -4550,22 +4592,28 @@ public Builder clearUnit() { * The units in which the metric value is reported. It is only applicable * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` * defines the representation of the stored metric values. + * * Different systems might scale the values to be more easily displayed (so a * value of `0.02kBy` _might_ be displayed as `20By`, and a value of * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is * `kBy`, then the value of the metric is always in thousands of bytes, no * matter how it might be displayed. + * * If you want a custom metric to record the exact number of CPU-seconds used * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 * CPU-seconds, then the value is written as `12005`. + * * Alternatively, if you want a custom metric to record data in a more * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). + * * The supported units are a subset of [The Unified Code for Units of * Measure](https://unitsofmeasure.org/ucum.html) standard: + * * **Basic units (UNIT)** + * * * `bit` bit * * `By` byte * * `s` second @@ -4573,7 +4621,9 @@ public Builder clearUnit() { * * `h` hour * * `d` day * * `1` dimensionless + * * **Prefixes (PREFIX)** + * * * `k` kilo (10^3) * * `M` mega (10^6) * * `G` giga (10^9) @@ -4582,6 +4632,7 @@ public Builder clearUnit() { * * `E` exa (10^18) * * `Z` zetta (10^21) * * `Y` yotta (10^24) + * * * `m` milli (10^-3) * * `u` micro (10^-6) * * `n` nano (10^-9) @@ -4590,27 +4641,37 @@ public Builder clearUnit() { * * `a` atto (10^-18) * * `z` zepto (10^-21) * * `y` yocto (10^-24) + * * * `Ki` kibi (2^10) * * `Mi` mebi (2^20) * * `Gi` gibi (2^30) * * `Ti` tebi (2^40) * * `Pi` pebi (2^50) + * * **Grammar** + * * The grammar also includes these connectors: + * * * `/` division or ratio (as an infix operator). For examples, * `kBy/{email}` or `MiBy/10ms` (although you should almost never * have `/s` in a metric `unit`; rates should always be computed at * query time from the underlying cumulative or delta value). * * `.` multiplication or composition (as an infix operator). For * examples, `GBy.d` or `k{watt}.h`. + * * The grammar for a unit is as follows: + * * Expression = Component { "." Component } { "/" Component } ; + * * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] * | Annotation * | "1" * ; + * * Annotation = "{" NAME "}" ; + * * Notes: + * * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation * is used alone, then the unit is equivalent to `1`. For examples, * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. @@ -5150,15 +5211,15 @@ public Builder clearLaunchStage() { return this; } - private com.google.protobuf.LazyStringList monitoredResourceTypes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList monitoredResourceTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureMonitoredResourceTypesIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { + if (!monitoredResourceTypes_.isModifiable()) { monitoredResourceTypes_ = new com.google.protobuf.LazyStringArrayList(monitoredResourceTypes_); - bitField0_ |= 0x00000400; } + bitField0_ |= 0x00000400; } /** * @@ -5177,7 +5238,8 @@ private void ensureMonitoredResourceTypesIsMutable() { * @return A list containing the monitoredResourceTypes. */ public com.google.protobuf.ProtocolStringList getMonitoredResourceTypesList() { - return monitoredResourceTypes_.getUnmodifiableView(); + monitoredResourceTypes_.makeImmutable(); + return monitoredResourceTypes_; } /** * @@ -5262,6 +5324,7 @@ public Builder setMonitoredResourceTypes(int index, java.lang.String value) { } ensureMonitoredResourceTypesIsMutable(); monitoredResourceTypes_.set(index, value); + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -5288,6 +5351,7 @@ public Builder addMonitoredResourceTypes(java.lang.String value) { } ensureMonitoredResourceTypesIsMutable(); monitoredResourceTypes_.add(value); + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -5311,6 +5375,7 @@ public Builder addMonitoredResourceTypes(java.lang.String value) { public Builder addAllMonitoredResourceTypes(java.lang.Iterable values) { ensureMonitoredResourceTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, monitoredResourceTypes_); + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -5331,8 +5396,9 @@ public Builder addAllMonitoredResourceTypes(java.lang.Iterable * @return This builder for chaining. */ public Builder clearMonitoredResourceTypes() { - monitoredResourceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + monitoredResourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); + ; onChanged(); return this; } @@ -5360,6 +5426,7 @@ public Builder addMonitoredResourceTypesBytes(com.google.protobuf.ByteString val checkByteStringIsUtf8(value); ensureMonitoredResourceTypesIsMutable(); monitoredResourceTypes_.add(value); + bitField0_ |= 0x00000400; onChanged(); return this; } diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptorOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptorOrBuilder.java index e50bfaa62d..0f949c13b0 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptorOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptorOrBuilder.java @@ -56,6 +56,7 @@ public interface MetricDescriptorOrBuilder * URL-encoded. All user-defined metric types have the DNS name * `custom.googleapis.com` or `external.googleapis.com`. Metric types should * use a natural hierarchical grouping. For example: + * * "custom.googleapis.com/invoice/paid/amount" * "external.googleapis.com/prometheus/up" * "appengine.googleapis.com/http/server/response_latencies" @@ -74,6 +75,7 @@ public interface MetricDescriptorOrBuilder * URL-encoded. All user-defined metric types have the DNS name * `custom.googleapis.com` or `external.googleapis.com`. Metric types should * use a natural hierarchical grouping. For example: + * * "custom.googleapis.com/invoice/paid/amount" * "external.googleapis.com/prometheus/up" * "appengine.googleapis.com/http/server/response_latencies" @@ -222,22 +224,28 @@ public interface MetricDescriptorOrBuilder * The units in which the metric value is reported. It is only applicable * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` * defines the representation of the stored metric values. + * * Different systems might scale the values to be more easily displayed (so a * value of `0.02kBy` _might_ be displayed as `20By`, and a value of * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is * `kBy`, then the value of the metric is always in thousands of bytes, no * matter how it might be displayed. + * * If you want a custom metric to record the exact number of CPU-seconds used * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 * CPU-seconds, then the value is written as `12005`. + * * Alternatively, if you want a custom metric to record data in a more * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). + * * The supported units are a subset of [The Unified Code for Units of * Measure](https://unitsofmeasure.org/ucum.html) standard: + * * **Basic units (UNIT)** + * * * `bit` bit * * `By` byte * * `s` second @@ -245,7 +253,9 @@ public interface MetricDescriptorOrBuilder * * `h` hour * * `d` day * * `1` dimensionless + * * **Prefixes (PREFIX)** + * * * `k` kilo (10^3) * * `M` mega (10^6) * * `G` giga (10^9) @@ -254,6 +264,7 @@ public interface MetricDescriptorOrBuilder * * `E` exa (10^18) * * `Z` zetta (10^21) * * `Y` yotta (10^24) + * * * `m` milli (10^-3) * * `u` micro (10^-6) * * `n` nano (10^-9) @@ -262,27 +273,37 @@ public interface MetricDescriptorOrBuilder * * `a` atto (10^-18) * * `z` zepto (10^-21) * * `y` yocto (10^-24) + * * * `Ki` kibi (2^10) * * `Mi` mebi (2^20) * * `Gi` gibi (2^30) * * `Ti` tebi (2^40) * * `Pi` pebi (2^50) + * * **Grammar** + * * The grammar also includes these connectors: + * * * `/` division or ratio (as an infix operator). For examples, * `kBy/{email}` or `MiBy/10ms` (although you should almost never * have `/s` in a metric `unit`; rates should always be computed at * query time from the underlying cumulative or delta value). * * `.` multiplication or composition (as an infix operator). For * examples, `GBy.d` or `k{watt}.h`. + * * The grammar for a unit is as follows: + * * Expression = Component { "." Component } { "/" Component } ; + * * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] * | Annotation * | "1" * ; + * * Annotation = "{" NAME "}" ; + * * Notes: + * * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation * is used alone, then the unit is equivalent to `1`. For examples, * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. @@ -316,22 +337,28 @@ public interface MetricDescriptorOrBuilder * The units in which the metric value is reported. It is only applicable * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` * defines the representation of the stored metric values. + * * Different systems might scale the values to be more easily displayed (so a * value of `0.02kBy` _might_ be displayed as `20By`, and a value of * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is * `kBy`, then the value of the metric is always in thousands of bytes, no * matter how it might be displayed. + * * If you want a custom metric to record the exact number of CPU-seconds used * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 * CPU-seconds, then the value is written as `12005`. + * * Alternatively, if you want a custom metric to record data in a more * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). + * * The supported units are a subset of [The Unified Code for Units of * Measure](https://unitsofmeasure.org/ucum.html) standard: + * * **Basic units (UNIT)** + * * * `bit` bit * * `By` byte * * `s` second @@ -339,7 +366,9 @@ public interface MetricDescriptorOrBuilder * * `h` hour * * `d` day * * `1` dimensionless + * * **Prefixes (PREFIX)** + * * * `k` kilo (10^3) * * `M` mega (10^6) * * `G` giga (10^9) @@ -348,6 +377,7 @@ public interface MetricDescriptorOrBuilder * * `E` exa (10^18) * * `Z` zetta (10^21) * * `Y` yotta (10^24) + * * * `m` milli (10^-3) * * `u` micro (10^-6) * * `n` nano (10^-9) @@ -356,27 +386,37 @@ public interface MetricDescriptorOrBuilder * * `a` atto (10^-18) * * `z` zepto (10^-21) * * `y` yocto (10^-24) + * * * `Ki` kibi (2^10) * * `Mi` mebi (2^20) * * `Gi` gibi (2^30) * * `Ti` tebi (2^40) * * `Pi` pebi (2^50) + * * **Grammar** + * * The grammar also includes these connectors: + * * * `/` division or ratio (as an infix operator). For examples, * `kBy/{email}` or `MiBy/10ms` (although you should almost never * have `/s` in a metric `unit`; rates should always be computed at * query time from the underlying cumulative or delta value). * * `.` multiplication or composition (as an infix operator). For * examples, `GBy.d` or `k{watt}.h`. + * * The grammar for a unit is as follows: + * * Expression = Component { "." Component } { "/" Component } ; + * * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] * | Annotation * | "1" * ; + * * Annotation = "{" NAME "}" ; + * * Notes: + * * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation * is used alone, then the unit is equivalent to `1`. For examples, * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRule.java index 1d858e3f3c..81b1ffcaf1 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRule.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRule.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MetricRule(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.QuotaProto.internal_static_google_api_MetricRule_descriptor; } @@ -85,6 +80,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * *
    * Selects the methods to which this rule applies.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -110,6 +106,7 @@ public java.lang.String getSelector() { * *
    * Selects the methods to which this rule applies.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -163,6 +160,7 @@ public int getMetricCostsCount() { *
    * Metrics to update when the selected methods are called, and the associated
    * cost applied to each metric.
+   *
    * The key of the map is the metric name, and the values are the amount
    * increased for the metric against which the quota limits are defined.
    * The value must not be negative.
@@ -189,6 +187,7 @@ public java.util.Map getMetricCosts() {
    * 
    * Metrics to update when the selected methods are called, and the associated
    * cost applied to each metric.
+   *
    * The key of the map is the metric name, and the values are the amount
    * increased for the metric against which the quota limits are defined.
    * The value must not be negative.
@@ -206,6 +205,7 @@ public java.util.Map getMetricCostsMap() {
    * 
    * Metrics to update when the selected methods are called, and the associated
    * cost applied to each metric.
+   *
    * The key of the map is the metric name, and the values are the amount
    * increased for the metric against which the quota limits are defined.
    * The value must not be negative.
@@ -227,6 +227,7 @@ public long getMetricCostsOrDefault(java.lang.String key, long defaultValue) {
    * 
    * Metrics to update when the selected methods are called, and the associated
    * cost applied to each metric.
+   *
    * The key of the map is the metric name, and the values are the amount
    * increased for the metric against which the quota limits are defined.
    * The value must not be negative.
@@ -522,39 +523,6 @@ private void buildPartial0(com.google.api.MetricRule result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.MetricRule) {
@@ -643,6 +611,7 @@ public Builder mergeFrom(
      *
      * 
      * Selects the methods to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -667,6 +636,7 @@ public java.lang.String getSelector() { * *
      * Selects the methods to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -691,6 +661,7 @@ public com.google.protobuf.ByteString getSelectorBytes() { * *
      * Selects the methods to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -714,6 +685,7 @@ public Builder setSelector(java.lang.String value) { * *
      * Selects the methods to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -733,6 +705,7 @@ public Builder clearSelector() { * *
      * Selects the methods to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -787,6 +760,7 @@ public int getMetricCostsCount() { *
      * Metrics to update when the selected methods are called, and the associated
      * cost applied to each metric.
+     *
      * The key of the map is the metric name, and the values are the amount
      * increased for the metric against which the quota limits are defined.
      * The value must not be negative.
@@ -813,6 +787,7 @@ public java.util.Map getMetricCosts() {
      * 
      * Metrics to update when the selected methods are called, and the associated
      * cost applied to each metric.
+     *
      * The key of the map is the metric name, and the values are the amount
      * increased for the metric against which the quota limits are defined.
      * The value must not be negative.
@@ -830,6 +805,7 @@ public java.util.Map getMetricCostsMap() {
      * 
      * Metrics to update when the selected methods are called, and the associated
      * cost applied to each metric.
+     *
      * The key of the map is the metric name, and the values are the amount
      * increased for the metric against which the quota limits are defined.
      * The value must not be negative.
@@ -851,6 +827,7 @@ public long getMetricCostsOrDefault(java.lang.String key, long defaultValue) {
      * 
      * Metrics to update when the selected methods are called, and the associated
      * cost applied to each metric.
+     *
      * The key of the map is the metric name, and the values are the amount
      * increased for the metric against which the quota limits are defined.
      * The value must not be negative.
@@ -881,6 +858,7 @@ public Builder clearMetricCosts() {
      * 
      * Metrics to update when the selected methods are called, and the associated
      * cost applied to each metric.
+     *
      * The key of the map is the metric name, and the values are the amount
      * increased for the metric against which the quota limits are defined.
      * The value must not be negative.
@@ -907,6 +885,7 @@ public java.util.Map getMutableMetricCosts() {
      * 
      * Metrics to update when the selected methods are called, and the associated
      * cost applied to each metric.
+     *
      * The key of the map is the metric name, and the values are the amount
      * increased for the metric against which the quota limits are defined.
      * The value must not be negative.
@@ -929,6 +908,7 @@ public Builder putMetricCosts(java.lang.String key, long value) {
      * 
      * Metrics to update when the selected methods are called, and the associated
      * cost applied to each metric.
+     *
      * The key of the map is the metric name, and the values are the amount
      * increased for the metric against which the quota limits are defined.
      * The value must not be negative.
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRuleOrBuilder.java
index 4827435062..5aaac1d9eb 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRuleOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRuleOrBuilder.java
@@ -28,6 +28,7 @@ public interface MetricRuleOrBuilder
    *
    * 
    * Selects the methods to which this rule applies.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -42,6 +43,7 @@ public interface MetricRuleOrBuilder * *
    * Selects the methods to which this rule applies.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -58,6 +60,7 @@ public interface MetricRuleOrBuilder *
    * Metrics to update when the selected methods are called, and the associated
    * cost applied to each metric.
+   *
    * The key of the map is the metric name, and the values are the amount
    * increased for the metric against which the quota limits are defined.
    * The value must not be negative.
@@ -72,6 +75,7 @@ public interface MetricRuleOrBuilder
    * 
    * Metrics to update when the selected methods are called, and the associated
    * cost applied to each metric.
+   *
    * The key of the map is the metric name, and the values are the amount
    * increased for the metric against which the quota limits are defined.
    * The value must not be negative.
@@ -89,6 +93,7 @@ public interface MetricRuleOrBuilder
    * 
    * Metrics to update when the selected methods are called, and the associated
    * cost applied to each metric.
+   *
    * The key of the map is the metric name, and the values are the amount
    * increased for the metric against which the quota limits are defined.
    * The value must not be negative.
@@ -103,6 +108,7 @@ public interface MetricRuleOrBuilder
    * 
    * Metrics to update when the selected methods are called, and the associated
    * cost applied to each metric.
+   *
    * The key of the map is the metric name, and the values are the amount
    * increased for the metric against which the quota limits are defined.
    * The value must not be negative.
@@ -117,6 +123,7 @@ public interface MetricRuleOrBuilder
    * 
    * Metrics to update when the selected methods are called, and the associated
    * cost applied to each metric.
+   *
    * The key of the map is the metric name, and the values are the amount
    * increased for the metric against which the quota limits are defined.
    * The value must not be negative.
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResource.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResource.java
index 7798d6f43b..64cc3497ab 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResource.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResource.java
@@ -33,6 +33,7 @@
  * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] for
  * `"gce_instance"` has labels
  * `"project_id"`, `"instance_id"` and `"zone"`:
+ *
  *     { "type": "gce_instance",
  *       "labels": { "project_id": "my-project",
  *                   "instance_id": "12345678901234",
@@ -61,11 +62,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MonitoredResource();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.MonitoredResourceProto
         .internal_static_google_api_MonitoredResource_descriptor;
@@ -453,6 +449,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] for
    * `"gce_instance"` has labels
    * `"project_id"`, `"instance_id"` and `"zone"`:
+   *
    *     { "type": "gce_instance",
    *       "labels": { "project_id": "my-project",
    *                   "instance_id": "12345678901234",
@@ -557,39 +554,6 @@ private void buildPartial0(com.google.api.MonitoredResource result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.MonitoredResource) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptor.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptor.java
index 3bb01b3c41..abe264e18a 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptor.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptor.java
@@ -28,6 +28,7 @@
  * Google Compute Engine VM instances has a type of
  * `"gce_instance"` and specifies the use of the labels `"instance_id"` and
  * `"zone"` to identify particular VM instances.
+ *
  * Different APIs can support different monitored resource types. APIs generally
  * provide a `list` method that returns the monitored resource descriptors used
  * by the API.
@@ -60,11 +61,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MonitoredResourceDescriptor();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.MonitoredResourceProto
         .internal_static_google_api_MonitoredResourceDescriptor_descriptor;
@@ -643,6 +639,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * Google Compute Engine VM instances has a type of
    * `"gce_instance"` and specifies the use of the labels `"instance_id"` and
    * `"zone"` to identify particular VM instances.
+   *
    * Different APIs can support different monitored resource types. APIs generally
    * provide a `list` method that returns the monitored resource descriptors used
    * by the API.
@@ -758,39 +755,6 @@ private void buildPartial0(com.google.api.MonitoredResourceDescriptor result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.MonitoredResourceDescriptor) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadata.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadata.java
index a32f62611c..b9277ee84b 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadata.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadata.java
@@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MonitoredResourceMetadata();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.MonitoredResourceProto
         .internal_static_google_api_MonitoredResourceMetadata_descriptor;
@@ -93,6 +88,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * "security_group", "name", etc.
    * System label values can be only strings, Boolean values, or a list of
    * strings. For example:
+   *
    *     { "name": "my-test-instance",
    *       "security_group": ["a", "b", "c"],
    *       "spot_instance": false }
@@ -116,6 +112,7 @@ public boolean hasSystemLabels() {
    * "security_group", "name", etc.
    * System label values can be only strings, Boolean values, or a list of
    * strings. For example:
+   *
    *     { "name": "my-test-instance",
    *       "security_group": ["a", "b", "c"],
    *       "spot_instance": false }
@@ -139,6 +136,7 @@ public com.google.protobuf.Struct getSystemLabels() {
    * "security_group", "name", etc.
    * System label values can be only strings, Boolean values, or a list of
    * strings. For example:
+   *
    *     { "name": "my-test-instance",
    *       "security_group": ["a", "b", "c"],
    *       "spot_instance": false }
@@ -549,39 +547,6 @@ private void buildPartial0(com.google.api.MonitoredResourceMetadata result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.MonitoredResourceMetadata) {
@@ -678,6 +643,7 @@ public Builder mergeFrom(
      * "security_group", "name", etc.
      * System label values can be only strings, Boolean values, or a list of
      * strings. For example:
+     *
      *     { "name": "my-test-instance",
      *       "security_group": ["a", "b", "c"],
      *       "spot_instance": false }
@@ -700,6 +666,7 @@ public boolean hasSystemLabels() {
      * "security_group", "name", etc.
      * System label values can be only strings, Boolean values, or a list of
      * strings. For example:
+     *
      *     { "name": "my-test-instance",
      *       "security_group": ["a", "b", "c"],
      *       "spot_instance": false }
@@ -728,6 +695,7 @@ public com.google.protobuf.Struct getSystemLabels() {
      * "security_group", "name", etc.
      * System label values can be only strings, Boolean values, or a list of
      * strings. For example:
+     *
      *     { "name": "my-test-instance",
      *       "security_group": ["a", "b", "c"],
      *       "spot_instance": false }
@@ -758,6 +726,7 @@ public Builder setSystemLabels(com.google.protobuf.Struct value) {
      * "security_group", "name", etc.
      * System label values can be only strings, Boolean values, or a list of
      * strings. For example:
+     *
      *     { "name": "my-test-instance",
      *       "security_group": ["a", "b", "c"],
      *       "spot_instance": false }
@@ -785,6 +754,7 @@ public Builder setSystemLabels(com.google.protobuf.Struct.Builder builderForValu
      * "security_group", "name", etc.
      * System label values can be only strings, Boolean values, or a list of
      * strings. For example:
+     *
      *     { "name": "my-test-instance",
      *       "security_group": ["a", "b", "c"],
      *       "spot_instance": false }
@@ -818,6 +788,7 @@ public Builder mergeSystemLabels(com.google.protobuf.Struct value) {
      * "security_group", "name", etc.
      * System label values can be only strings, Boolean values, or a list of
      * strings. For example:
+     *
      *     { "name": "my-test-instance",
      *       "security_group": ["a", "b", "c"],
      *       "spot_instance": false }
@@ -845,6 +816,7 @@ public Builder clearSystemLabels() {
      * "security_group", "name", etc.
      * System label values can be only strings, Boolean values, or a list of
      * strings. For example:
+     *
      *     { "name": "my-test-instance",
      *       "security_group": ["a", "b", "c"],
      *       "spot_instance": false }
@@ -867,6 +839,7 @@ public com.google.protobuf.Struct.Builder getSystemLabelsBuilder() {
      * "security_group", "name", etc.
      * System label values can be only strings, Boolean values, or a list of
      * strings. For example:
+     *
      *     { "name": "my-test-instance",
      *       "security_group": ["a", "b", "c"],
      *       "spot_instance": false }
@@ -893,6 +866,7 @@ public com.google.protobuf.StructOrBuilder getSystemLabelsOrBuilder() {
      * "security_group", "name", etc.
      * System label values can be only strings, Boolean values, or a list of
      * strings. For example:
+     *
      *     { "name": "my-test-instance",
      *       "security_group": ["a", "b", "c"],
      *       "spot_instance": false }
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadataOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadataOrBuilder.java
index 452635ab52..8ad34a06bf 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadataOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadataOrBuilder.java
@@ -33,6 +33,7 @@ public interface MonitoredResourceMetadataOrBuilder
    * "security_group", "name", etc.
    * System label values can be only strings, Boolean values, or a list of
    * strings. For example:
+   *
    *     { "name": "my-test-instance",
    *       "security_group": ["a", "b", "c"],
    *       "spot_instance": false }
@@ -53,6 +54,7 @@ public interface MonitoredResourceMetadataOrBuilder
    * "security_group", "name", etc.
    * System label values can be only strings, Boolean values, or a list of
    * strings. For example:
+   *
    *     { "name": "my-test-instance",
    *       "security_group": ["a", "b", "c"],
    *       "spot_instance": false }
@@ -73,6 +75,7 @@ public interface MonitoredResourceMetadataOrBuilder
    * "security_group", "name", etc.
    * System label values can be only strings, Boolean values, or a list of
    * strings. For example:
+   *
    *     { "name": "my-test-instance",
    *       "security_group": ["a", "b", "c"],
    *       "spot_instance": false }
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Monitoring.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Monitoring.java
index 6f7d6a58ae..ce7f1db810 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Monitoring.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Monitoring.java
@@ -23,12 +23,14 @@
  *
  * 
  * Monitoring configuration of the service.
+ *
  * The example below shows how to configure monitored resources and metrics
  * for monitoring. In the example, a monitored resource and two metrics are
  * defined. The `library.googleapis.com/book/returned_count` metric is sent
  * to both producer and consumer projects, whereas the
  * `library.googleapis.com/book/num_overdue` metric is only sent to the
  * consumer project.
+ *
  *     monitored_resources:
  *     - type: library.googleapis.com/Branch
  *       display_name: "Library Branch"
@@ -97,11 +99,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Monitoring();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.MonitoringProto.internal_static_google_api_Monitoring_descriptor;
   }
@@ -229,7 +226,7 @@ private MonitoringDestination(com.google.protobuf.GeneratedMessageV3.Builder
 
     private MonitoringDestination() {
       monitoredResource_ = "";
-      metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      metrics_ = com.google.protobuf.LazyStringArrayList.emptyList();
     }
 
     @java.lang.Override
@@ -238,11 +235,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new MonitoringDestination();
     }
 
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-      return this.unknownFields;
-    }
-
     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.api.MonitoringProto
           .internal_static_google_api_Monitoring_MonitoringDestination_descriptor;
@@ -316,7 +308,8 @@ public com.google.protobuf.ByteString getMonitoredResourceBytes() {
     public static final int METRICS_FIELD_NUMBER = 2;
 
     @SuppressWarnings("serial")
-    private com.google.protobuf.LazyStringList metrics_;
+    private com.google.protobuf.LazyStringArrayList metrics_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
     /**
      *
      *
@@ -602,8 +595,7 @@ public Builder clear() {
         super.clear();
         bitField0_ = 0;
         monitoredResource_ = "";
-        metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-        bitField0_ = (bitField0_ & ~0x00000002);
+        metrics_ = com.google.protobuf.LazyStringArrayList.emptyList();
         return this;
       }
 
@@ -631,7 +623,6 @@ public com.google.api.Monitoring.MonitoringDestination build() {
       public com.google.api.Monitoring.MonitoringDestination buildPartial() {
         com.google.api.Monitoring.MonitoringDestination result =
             new com.google.api.Monitoring.MonitoringDestination(this);
-        buildPartialRepeatedFields(result);
         if (bitField0_ != 0) {
           buildPartial0(result);
         }
@@ -639,55 +630,15 @@ public com.google.api.Monitoring.MonitoringDestination buildPartial() {
         return result;
       }
 
-      private void buildPartialRepeatedFields(
-          com.google.api.Monitoring.MonitoringDestination result) {
-        if (((bitField0_ & 0x00000002) != 0)) {
-          metrics_ = metrics_.getUnmodifiableView();
-          bitField0_ = (bitField0_ & ~0x00000002);
-        }
-        result.metrics_ = metrics_;
-      }
-
       private void buildPartial0(com.google.api.Monitoring.MonitoringDestination result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.monitoredResource_ = monitoredResource_;
         }
-      }
-
-      @java.lang.Override
-      public Builder clone() {
-        return super.clone();
-      }
-
-      @java.lang.Override
-      public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-        return super.setField(field, value);
-      }
-
-      @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-        return super.clearField(field);
-      }
-
-      @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-        return super.clearOneof(oneof);
-      }
-
-      @java.lang.Override
-      public Builder setRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
-        return super.setRepeatedField(field, index, value);
-      }
-
-      @java.lang.Override
-      public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-        return super.addRepeatedField(field, value);
+        if (((from_bitField0_ & 0x00000002) != 0)) {
+          metrics_.makeImmutable();
+          result.metrics_ = metrics_;
+        }
       }
 
       @java.lang.Override
@@ -711,7 +662,7 @@ public Builder mergeFrom(com.google.api.Monitoring.MonitoringDestination other)
         if (!other.metrics_.isEmpty()) {
           if (metrics_.isEmpty()) {
             metrics_ = other.metrics_;
-            bitField0_ = (bitField0_ & ~0x00000002);
+            bitField0_ |= 0x00000002;
           } else {
             ensureMetricsIsMutable();
             metrics_.addAll(other.metrics_);
@@ -892,14 +843,14 @@ public Builder setMonitoredResourceBytes(com.google.protobuf.ByteString value) {
         return this;
       }
 
-      private com.google.protobuf.LazyStringList metrics_ =
-          com.google.protobuf.LazyStringArrayList.EMPTY;
+      private com.google.protobuf.LazyStringArrayList metrics_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
 
       private void ensureMetricsIsMutable() {
-        if (!((bitField0_ & 0x00000002) != 0)) {
+        if (!metrics_.isModifiable()) {
           metrics_ = new com.google.protobuf.LazyStringArrayList(metrics_);
-          bitField0_ |= 0x00000002;
         }
+        bitField0_ |= 0x00000002;
       }
       /**
        *
@@ -915,7 +866,8 @@ private void ensureMetricsIsMutable() {
        * @return A list containing the metrics.
        */
       public com.google.protobuf.ProtocolStringList getMetricsList() {
-        return metrics_.getUnmodifiableView();
+        metrics_.makeImmutable();
+        return metrics_;
       }
       /**
        *
@@ -988,6 +940,7 @@ public Builder setMetrics(int index, java.lang.String value) {
         }
         ensureMetricsIsMutable();
         metrics_.set(index, value);
+        bitField0_ |= 0x00000002;
         onChanged();
         return this;
       }
@@ -1011,6 +964,7 @@ public Builder addMetrics(java.lang.String value) {
         }
         ensureMetricsIsMutable();
         metrics_.add(value);
+        bitField0_ |= 0x00000002;
         onChanged();
         return this;
       }
@@ -1031,6 +985,7 @@ public Builder addMetrics(java.lang.String value) {
       public Builder addAllMetrics(java.lang.Iterable values) {
         ensureMetricsIsMutable();
         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_);
+        bitField0_ |= 0x00000002;
         onChanged();
         return this;
       }
@@ -1048,8 +1003,9 @@ public Builder addAllMetrics(java.lang.Iterable values) {
        * @return This builder for chaining.
        */
       public Builder clearMetrics() {
-        metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+        metrics_ = com.google.protobuf.LazyStringArrayList.emptyList();
         bitField0_ = (bitField0_ & ~0x00000002);
+        ;
         onChanged();
         return this;
       }
@@ -1074,6 +1030,7 @@ public Builder addMetricsBytes(com.google.protobuf.ByteString value) {
         checkByteStringIsUtf8(value);
         ensureMetricsIsMutable();
         metrics_.add(value);
+        bitField0_ |= 0x00000002;
         onChanged();
         return this;
       }
@@ -1515,12 +1472,14 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 
    * Monitoring configuration of the service.
+   *
    * The example below shows how to configure monitored resources and metrics
    * for monitoring. In the example, a monitored resource and two metrics are
    * defined. The `library.googleapis.com/book/returned_count` metric is sent
    * to both producer and consumer projects, whereas the
    * `library.googleapis.com/book/num_overdue` metric is only sent to the
    * consumer project.
+   *
    *     monitored_resources:
    *     - type: library.googleapis.com/Branch
    *       display_name: "Library Branch"
@@ -1667,39 +1626,6 @@ private void buildPartial0(com.google.api.Monitoring result) {
       int from_bitField0_ = bitField0_;
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.Monitoring) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettings.java
index 2bef3c0bf9..770d7847b8 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettings.java
@@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new NodeSettings();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.ClientProto.internal_static_google_api_NodeSettings_descriptor;
   }
@@ -350,39 +345,6 @@ private void buildPartial0(com.google.api.NodeSettings result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.NodeSettings) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirements.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirements.java
index be32817aa1..7f28f86b13 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirements.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirements.java
@@ -26,13 +26,17 @@
  * there are scopes defined for "Read-only access to Google Calendar" and
  * "Access to Cloud Platform". Users can consent to a scope for an application,
  * giving it permission to access that data on their behalf.
+ *
  * OAuth scope specifications should be fairly coarse grained; a user will need
  * to see and understand the text description of what your scope means.
+ *
  * In most cases: use one or at most two OAuth scopes for an entire family of
  * products. If your product has multiple APIs, you should probably be sharing
  * the OAuth scope across all of those APIs.
+ *
  * When you need finer grained OAuth consent screens: talk with your product
  * management about how developers will use them in practice.
+ *
  * Please note that even though each of the canonical scopes is enough for a
  * request to be accepted and passed to the backend, a request can still fail
  * due to the backend requiring additional scopes or permissions.
@@ -60,11 +64,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new OAuthRequirements();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.AuthProto.internal_static_google_api_OAuthRequirements_descriptor;
   }
@@ -87,7 +86,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
    * The list of publicly documented OAuth scopes that are allowed access. An
    * OAuth token containing any of these scopes will be accepted.
+   *
    * Example:
+   *
    *      canonical_scopes: https://www.googleapis.com/auth/calendar,
    *                        https://www.googleapis.com/auth/calendar.read
    * 
@@ -114,7 +115,9 @@ public java.lang.String getCanonicalScopes() { *
    * The list of publicly documented OAuth scopes that are allowed access. An
    * OAuth token containing any of these scopes will be accepted.
+   *
    * Example:
+   *
    *      canonical_scopes: https://www.googleapis.com/auth/calendar,
    *                        https://www.googleapis.com/auth/calendar.read
    * 
@@ -301,13 +304,17 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * there are scopes defined for "Read-only access to Google Calendar" and * "Access to Cloud Platform". Users can consent to a scope for an application, * giving it permission to access that data on their behalf. + * * OAuth scope specifications should be fairly coarse grained; a user will need * to see and understand the text description of what your scope means. + * * In most cases: use one or at most two OAuth scopes for an entire family of * products. If your product has multiple APIs, you should probably be sharing * the OAuth scope across all of those APIs. + * * When you need finer grained OAuth consent screens: talk with your product * management about how developers will use them in practice. + * * Please note that even though each of the canonical scopes is enough for a * request to be accepted and passed to the backend, a request can still fail * due to the backend requiring additional scopes or permissions. @@ -384,39 +391,6 @@ private void buildPartial0(com.google.api.OAuthRequirements result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.OAuthRequirements) { @@ -492,7 +466,9 @@ public Builder mergeFrom( *
      * The list of publicly documented OAuth scopes that are allowed access. An
      * OAuth token containing any of these scopes will be accepted.
+     *
      * Example:
+     *
      *      canonical_scopes: https://www.googleapis.com/auth/calendar,
      *                        https://www.googleapis.com/auth/calendar.read
      * 
@@ -518,7 +494,9 @@ public java.lang.String getCanonicalScopes() { *
      * The list of publicly documented OAuth scopes that are allowed access. An
      * OAuth token containing any of these scopes will be accepted.
+     *
      * Example:
+     *
      *      canonical_scopes: https://www.googleapis.com/auth/calendar,
      *                        https://www.googleapis.com/auth/calendar.read
      * 
@@ -544,7 +522,9 @@ public com.google.protobuf.ByteString getCanonicalScopesBytes() { *
      * The list of publicly documented OAuth scopes that are allowed access. An
      * OAuth token containing any of these scopes will be accepted.
+     *
      * Example:
+     *
      *      canonical_scopes: https://www.googleapis.com/auth/calendar,
      *                        https://www.googleapis.com/auth/calendar.read
      * 
@@ -569,7 +549,9 @@ public Builder setCanonicalScopes(java.lang.String value) { *
      * The list of publicly documented OAuth scopes that are allowed access. An
      * OAuth token containing any of these scopes will be accepted.
+     *
      * Example:
+     *
      *      canonical_scopes: https://www.googleapis.com/auth/calendar,
      *                        https://www.googleapis.com/auth/calendar.read
      * 
@@ -590,7 +572,9 @@ public Builder clearCanonicalScopes() { *
      * The list of publicly documented OAuth scopes that are allowed access. An
      * OAuth token containing any of these scopes will be accepted.
+     *
      * Example:
+     *
      *      canonical_scopes: https://www.googleapis.com/auth/calendar,
      *                        https://www.googleapis.com/auth/calendar.read
      * 
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirementsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirementsOrBuilder.java index 27a92e367e..7415ca3162 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirementsOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirementsOrBuilder.java @@ -29,7 +29,9 @@ public interface OAuthRequirementsOrBuilder *
    * The list of publicly documented OAuth scopes that are allowed access. An
    * OAuth token containing any of these scopes will be accepted.
+   *
    * Example:
+   *
    *      canonical_scopes: https://www.googleapis.com/auth/calendar,
    *                        https://www.googleapis.com/auth/calendar.read
    * 
@@ -45,7 +47,9 @@ public interface OAuthRequirementsOrBuilder *
    * The list of publicly documented OAuth scopes that are allowed access. An
    * OAuth token containing any of these scopes will be accepted.
+   *
    * Example:
+   *
    *      canonical_scopes: https://www.googleapis.com/auth/calendar,
    *                        https://www.googleapis.com/auth/calendar.read
    * 
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Page.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Page.java index 4b65ff2c48..7d6d287a0c 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Page.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Page.java @@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Page(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.DocumentationProto.internal_static_google_api_Page_descriptor; } @@ -552,39 +547,6 @@ private void buildPartial0(com.google.api.Page result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.Page) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettings.java index 1dea477ba1..db2200da6e 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettings.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettings.java @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PhpSettings(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.ClientProto.internal_static_google_api_PhpSettings_descriptor; } @@ -350,39 +345,6 @@ private void buildPartial0(com.google.api.PhpSettings result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.PhpSettings) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectProperties.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectProperties.java index 977f71fc47..00445968be 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectProperties.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectProperties.java @@ -28,7 +28,9 @@ * associated with a school, or a business, or a government agency, a business * type property on the project may affect how a service responds to the client. * This descriptor defines which properties are allowed to be set on a project. + * * Example: + * * project_properties: * properties: * - name: NO_WATERMARK @@ -60,11 +62,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProjectProperties(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.ConsumerProto.internal_static_google_api_ProjectProperties_descriptor; } @@ -317,7 +314,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * associated with a school, or a business, or a government agency, a business * type property on the project may affect how a service responds to the client. * This descriptor defines which properties are allowed to be set on a project. + * * Example: + * * project_properties: * properties: * - name: NO_WATERMARK @@ -414,39 +413,6 @@ private void buildPartial0(com.google.api.ProjectProperties result) { int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.ProjectProperties) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Property.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Property.java index 9a84766c27..e383889920 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Property.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Property.java @@ -23,11 +23,13 @@ * *
  * Defines project properties.
+ *
  * API services can define properties that can be assigned to consumer projects
  * so that backends can perform response customization without having to make
  * additional calls or maintain additional storage. For example, Maps API
  * defines properties that controls map tile cache period, or whether to embed a
  * watermark in a result.
+ *
  * These values can be set via API producer console. Only API providers can
  * define and set these properties.
  * 
@@ -56,11 +58,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Property(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.ConsumerProto.internal_static_google_api_Property_descriptor; } @@ -591,11 +588,13 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Defines project properties.
+   *
    * API services can define properties that can be assigned to consumer projects
    * so that backends can perform response customization without having to make
    * additional calls or maintain additional storage. For example, Maps API
    * defines properties that controls map tile cache period, or whether to embed a
    * watermark in a result.
+   *
    * These values can be set via API producer console. Only API providers can
    * define and set these properties.
    * 
@@ -677,39 +676,6 @@ private void buildPartial0(com.google.api.Property result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.Property) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Publishing.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Publishing.java index 93bc20d91e..31233038c3 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Publishing.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Publishing.java @@ -45,7 +45,7 @@ private Publishing() { documentationUri_ = ""; apiShortName_ = ""; githubLabel_ = ""; - codeownerGithubTeams_ = com.google.protobuf.LazyStringArrayList.EMPTY; + codeownerGithubTeams_ = com.google.protobuf.LazyStringArrayList.emptyList(); docTagPrefix_ = ""; organization_ = 0; librarySettings_ = java.util.Collections.emptyList(); @@ -58,11 +58,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Publishing(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.ClientProto.internal_static_google_api_Publishing_descriptor; } @@ -366,7 +361,8 @@ public com.google.protobuf.ByteString getGithubLabelBytes() { public static final int CODEOWNER_GITHUB_TEAMS_FIELD_NUMBER = 105; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList codeownerGithubTeams_; + private com.google.protobuf.LazyStringArrayList codeownerGithubTeams_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -960,8 +956,7 @@ public Builder clear() { documentationUri_ = ""; apiShortName_ = ""; githubLabel_ = ""; - codeownerGithubTeams_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); + codeownerGithubTeams_ = com.google.protobuf.LazyStringArrayList.emptyList(); docTagPrefix_ = ""; organization_ = 0; if (librarySettingsBuilder_ == null) { @@ -1015,11 +1010,6 @@ private void buildPartialRepeatedFields(com.google.api.Publishing result) { } else { result.methodSettings_ = methodSettingsBuilder_.build(); } - if (((bitField0_ & 0x00000020) != 0)) { - codeownerGithubTeams_ = codeownerGithubTeams_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.codeownerGithubTeams_ = codeownerGithubTeams_; if (librarySettingsBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0)) { librarySettings_ = java.util.Collections.unmodifiableList(librarySettings_); @@ -1045,6 +1035,10 @@ private void buildPartial0(com.google.api.Publishing result) { if (((from_bitField0_ & 0x00000010) != 0)) { result.githubLabel_ = githubLabel_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + codeownerGithubTeams_.makeImmutable(); + result.codeownerGithubTeams_ = codeownerGithubTeams_; + } if (((from_bitField0_ & 0x00000040) != 0)) { result.docTagPrefix_ = docTagPrefix_; } @@ -1056,39 +1050,6 @@ private void buildPartial0(com.google.api.Publishing result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.Publishing) { @@ -1151,7 +1112,7 @@ public Builder mergeFrom(com.google.api.Publishing other) { if (!other.codeownerGithubTeams_.isEmpty()) { if (codeownerGithubTeams_.isEmpty()) { codeownerGithubTeams_ = other.codeownerGithubTeams_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ |= 0x00000020; } else { ensureCodeownerGithubTeamsIsMutable(); codeownerGithubTeams_.addAll(other.codeownerGithubTeams_); @@ -2130,14 +2091,14 @@ public Builder setGithubLabelBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList codeownerGithubTeams_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList codeownerGithubTeams_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureCodeownerGithubTeamsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { + if (!codeownerGithubTeams_.isModifiable()) { codeownerGithubTeams_ = new com.google.protobuf.LazyStringArrayList(codeownerGithubTeams_); - bitField0_ |= 0x00000020; } + bitField0_ |= 0x00000020; } /** * @@ -2152,7 +2113,8 @@ private void ensureCodeownerGithubTeamsIsMutable() { * @return A list containing the codeownerGithubTeams. */ public com.google.protobuf.ProtocolStringList getCodeownerGithubTeamsList() { - return codeownerGithubTeams_.getUnmodifiableView(); + codeownerGithubTeams_.makeImmutable(); + return codeownerGithubTeams_; } /** * @@ -2221,6 +2183,7 @@ public Builder setCodeownerGithubTeams(int index, java.lang.String value) { } ensureCodeownerGithubTeamsIsMutable(); codeownerGithubTeams_.set(index, value); + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2243,6 +2206,7 @@ public Builder addCodeownerGithubTeams(java.lang.String value) { } ensureCodeownerGithubTeamsIsMutable(); codeownerGithubTeams_.add(value); + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2262,6 +2226,7 @@ public Builder addCodeownerGithubTeams(java.lang.String value) { public Builder addAllCodeownerGithubTeams(java.lang.Iterable values) { ensureCodeownerGithubTeamsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, codeownerGithubTeams_); + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2278,8 +2243,9 @@ public Builder addAllCodeownerGithubTeams(java.lang.Iterable v * @return This builder for chaining. */ public Builder clearCodeownerGithubTeams() { - codeownerGithubTeams_ = com.google.protobuf.LazyStringArrayList.EMPTY; + codeownerGithubTeams_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); + ; onChanged(); return this; } @@ -2303,6 +2269,7 @@ public Builder addCodeownerGithubTeamsBytes(com.google.protobuf.ByteString value checkByteStringIsUtf8(value); ensureCodeownerGithubTeamsIsMutable(); codeownerGithubTeams_.add(value); + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettings.java index fc9d3c3bda..ca31ed3cbe 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettings.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettings.java @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PythonSettings(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.ClientProto.internal_static_google_api_PythonSettings_descriptor; } @@ -350,39 +345,6 @@ private void buildPartial0(com.google.api.PythonSettings result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.PythonSettings) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Quota.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Quota.java index 7371ab54f7..e49a0ea1e0 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Quota.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Quota.java @@ -24,20 +24,26 @@ *
  * Quota configuration helps to achieve fairness and budgeting in service
  * usage.
+ *
  * The metric based quota configuration works this way:
  * - The service configuration defines a set of metrics.
  * - For API calls, the quota.metric_rules maps methods to metrics with
  *   corresponding costs.
  * - The quota.limits defines limits on the metrics, which will be used for
  *   quota checks at runtime.
+ *
  * An example quota configuration in yaml format:
+ *
  *    quota:
  *      limits:
+ *
  *      - name: apiWriteQpsPerProject
  *        metric: library.googleapis.com/write_calls
  *        unit: "1/min/{project}"  # rate limit for consumer projects
  *        values:
  *          STANDARD: 10000
+ *
+ *
  *      (The metric rules bind all methods to the read_calls metric,
  *       except for the UpdateBook and DeleteBook methods. These two methods
  *       are mapped to the write_calls metric, with the UpdateBook method
@@ -52,12 +58,15 @@
  *      - selector: google.example.library.v1.LibraryService.DeleteBook
  *        metric_costs:
  *          library.googleapis.com/write_calls: 1
+ *
  *  Corresponding Metric definition:
+ *
  *      metrics:
  *      - name: library.googleapis.com/read_calls
  *        display_name: Read requests
  *        metric_kind: DELTA
  *        value_type: INT64
+ *
  *      - name: library.googleapis.com/write_calls
  *        display_name: Write requests
  *        metric_kind: DELTA
@@ -87,11 +96,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Quota();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.QuotaProto.internal_static_google_api_Quota_descriptor;
   }
@@ -426,20 +430,26 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * 
    * Quota configuration helps to achieve fairness and budgeting in service
    * usage.
+   *
    * The metric based quota configuration works this way:
    * - The service configuration defines a set of metrics.
    * - For API calls, the quota.metric_rules maps methods to metrics with
    *   corresponding costs.
    * - The quota.limits defines limits on the metrics, which will be used for
    *   quota checks at runtime.
+   *
    * An example quota configuration in yaml format:
+   *
    *    quota:
    *      limits:
+   *
    *      - name: apiWriteQpsPerProject
    *        metric: library.googleapis.com/write_calls
    *        unit: "1/min/{project}"  # rate limit for consumer projects
    *        values:
    *          STANDARD: 10000
+   *
+   *
    *      (The metric rules bind all methods to the read_calls metric,
    *       except for the UpdateBook and DeleteBook methods. These two methods
    *       are mapped to the write_calls metric, with the UpdateBook method
@@ -454,12 +464,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *      - selector: google.example.library.v1.LibraryService.DeleteBook
    *        metric_costs:
    *          library.googleapis.com/write_calls: 1
+   *
    *  Corresponding Metric definition:
+   *
    *      metrics:
    *      - name: library.googleapis.com/read_calls
    *        display_name: Read requests
    *        metric_kind: DELTA
    *        value_type: INT64
+   *
    *      - name: library.googleapis.com/write_calls
    *        display_name: Write requests
    *        metric_kind: DELTA
@@ -567,39 +580,6 @@ private void buildPartial0(com.google.api.Quota result) {
       int from_bitField0_ = bitField0_;
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.Quota) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimit.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimit.java
index add2026b1f..9c19169c63 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimit.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimit.java
@@ -54,11 +54,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new QuotaLimit();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.QuotaProto.internal_static_google_api_QuotaLimit_descriptor;
   }
@@ -91,8 +86,10 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    *
    * 
    * Name of the quota limit.
+   *
    * The name must be provided, and it must be unique within the service. The
    * name can only include alphanumeric characters as well as '-'.
+   *
    * The maximum length of the limit name is 64 characters.
    * 
* @@ -117,8 +114,10 @@ public java.lang.String getName() { * *
    * Name of the quota limit.
+   *
    * The name must be provided, and it must be unique within the service. The
    * name can only include alphanumeric characters as well as '-'.
+   *
    * The maximum length of the limit name is 64 characters.
    * 
* @@ -203,10 +202,12 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * Default number of tokens that can be consumed during the specified * duration. This is the number of tokens assigned when a client * application developer activates the service for his/her project. + * * Specifying a value of 0 will block all requests. This can be used if you * are provisioning quota to selected consumers and blocking others. * Similarly, a value of -1 will indicate an unlimited quota. No other * negative values are allowed. + * * Used by group-based quotas only. *
* @@ -229,8 +230,10 @@ public long getDefaultLimit() { * duration. Client application developers can override the default limit up * to this maximum. If specified, this value cannot be set to a value less * than the default limit. If not specified, it is set to the default limit. + * * To allow clients to apply overrides with no upper bound, set this to -1, * indicating unlimited maximum quota. + * * Used by group-based quotas only. *
* @@ -255,6 +258,7 @@ public long getMaxLimit() { * This field can only be set on a limit with duration "1d", in a billable * group; it is invalid on any other limit. If this field is not set, it * defaults to 0, indicating that there is no free tier for this service. + * * Used by group-based quotas only. *
* @@ -276,6 +280,7 @@ public long getFreeTier() { * *
    * Duration of this limit in textual notation. Must be "100s" or "1d".
+   *
    * Used by group-based quotas only.
    * 
* @@ -300,6 +305,7 @@ public java.lang.String getDuration() { * *
    * Duration of this limit in textual notation. Must be "100s" or "1d".
+   *
    * Used by group-based quotas only.
    * 
* @@ -386,8 +392,10 @@ public com.google.protobuf.ByteString getMetricBytes() { * Specify the unit of the quota limit. It uses the same syntax as * [Metric.unit][]. The supported unit kinds are determined by the quota * backend system. + * * Here are some examples: * * "1/min/{project}" for quota per minute per project. + * * Note: the order of unit components is insignificant. * The "1" at the beginning is required to follow the metric unit syntax. *
@@ -415,8 +423,10 @@ public java.lang.String getUnit() { * Specify the unit of the quota limit. It uses the same syntax as * [Metric.unit][]. The supported unit kinds are determined by the quota * backend system. + * * Here are some examples: * * "1/min/{project}" for quota per minute per project. + * * Note: the order of unit components is insignificant. * The "1" at the beginning is required to follow the metric unit syntax. *
@@ -982,39 +992,6 @@ private void buildPartial0(com.google.api.QuotaLimit result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.QuotaLimit) { @@ -1185,8 +1162,10 @@ public Builder mergeFrom( * *
      * Name of the quota limit.
+     *
      * The name must be provided, and it must be unique within the service. The
      * name can only include alphanumeric characters as well as '-'.
+     *
      * The maximum length of the limit name is 64 characters.
      * 
* @@ -1210,8 +1189,10 @@ public java.lang.String getName() { * *
      * Name of the quota limit.
+     *
      * The name must be provided, and it must be unique within the service. The
      * name can only include alphanumeric characters as well as '-'.
+     *
      * The maximum length of the limit name is 64 characters.
      * 
* @@ -1235,8 +1216,10 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Name of the quota limit.
+     *
      * The name must be provided, and it must be unique within the service. The
      * name can only include alphanumeric characters as well as '-'.
+     *
      * The maximum length of the limit name is 64 characters.
      * 
* @@ -1259,8 +1242,10 @@ public Builder setName(java.lang.String value) { * *
      * Name of the quota limit.
+     *
      * The name must be provided, and it must be unique within the service. The
      * name can only include alphanumeric characters as well as '-'.
+     *
      * The maximum length of the limit name is 64 characters.
      * 
* @@ -1279,8 +1264,10 @@ public Builder clearName() { * *
      * Name of the quota limit.
+     *
      * The name must be provided, and it must be unique within the service. The
      * name can only include alphanumeric characters as well as '-'.
+     *
      * The maximum length of the limit name is 64 characters.
      * 
* @@ -1424,10 +1411,12 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * Default number of tokens that can be consumed during the specified * duration. This is the number of tokens assigned when a client * application developer activates the service for his/her project. + * * Specifying a value of 0 will block all requests. This can be used if you * are provisioning quota to selected consumers and blocking others. * Similarly, a value of -1 will indicate an unlimited quota. No other * negative values are allowed. + * * Used by group-based quotas only. *
* @@ -1446,10 +1435,12 @@ public long getDefaultLimit() { * Default number of tokens that can be consumed during the specified * duration. This is the number of tokens assigned when a client * application developer activates the service for his/her project. + * * Specifying a value of 0 will block all requests. This can be used if you * are provisioning quota to selected consumers and blocking others. * Similarly, a value of -1 will indicate an unlimited quota. No other * negative values are allowed. + * * Used by group-based quotas only. *
* @@ -1472,10 +1463,12 @@ public Builder setDefaultLimit(long value) { * Default number of tokens that can be consumed during the specified * duration. This is the number of tokens assigned when a client * application developer activates the service for his/her project. + * * Specifying a value of 0 will block all requests. This can be used if you * are provisioning quota to selected consumers and blocking others. * Similarly, a value of -1 will indicate an unlimited quota. No other * negative values are allowed. + * * Used by group-based quotas only. *
* @@ -1499,8 +1492,10 @@ public Builder clearDefaultLimit() { * duration. Client application developers can override the default limit up * to this maximum. If specified, this value cannot be set to a value less * than the default limit. If not specified, it is set to the default limit. + * * To allow clients to apply overrides with no upper bound, set this to -1, * indicating unlimited maximum quota. + * * Used by group-based quotas only. *
* @@ -1520,8 +1515,10 @@ public long getMaxLimit() { * duration. Client application developers can override the default limit up * to this maximum. If specified, this value cannot be set to a value less * than the default limit. If not specified, it is set to the default limit. + * * To allow clients to apply overrides with no upper bound, set this to -1, * indicating unlimited maximum quota. + * * Used by group-based quotas only. *
* @@ -1545,8 +1542,10 @@ public Builder setMaxLimit(long value) { * duration. Client application developers can override the default limit up * to this maximum. If specified, this value cannot be set to a value less * than the default limit. If not specified, it is set to the default limit. + * * To allow clients to apply overrides with no upper bound, set this to -1, * indicating unlimited maximum quota. + * * Used by group-based quotas only. *
* @@ -1572,6 +1571,7 @@ public Builder clearMaxLimit() { * This field can only be set on a limit with duration "1d", in a billable * group; it is invalid on any other limit. If this field is not set, it * defaults to 0, indicating that there is no free tier for this service. + * * Used by group-based quotas only. *
* @@ -1593,6 +1593,7 @@ public long getFreeTier() { * This field can only be set on a limit with duration "1d", in a billable * group; it is invalid on any other limit. If this field is not set, it * defaults to 0, indicating that there is no free tier for this service. + * * Used by group-based quotas only. *
* @@ -1618,6 +1619,7 @@ public Builder setFreeTier(long value) { * This field can only be set on a limit with duration "1d", in a billable * group; it is invalid on any other limit. If this field is not set, it * defaults to 0, indicating that there is no free tier for this service. + * * Used by group-based quotas only. *
* @@ -1638,6 +1640,7 @@ public Builder clearFreeTier() { * *
      * Duration of this limit in textual notation. Must be "100s" or "1d".
+     *
      * Used by group-based quotas only.
      * 
* @@ -1661,6 +1664,7 @@ public java.lang.String getDuration() { * *
      * Duration of this limit in textual notation. Must be "100s" or "1d".
+     *
      * Used by group-based quotas only.
      * 
* @@ -1684,6 +1688,7 @@ public com.google.protobuf.ByteString getDurationBytes() { * *
      * Duration of this limit in textual notation. Must be "100s" or "1d".
+     *
      * Used by group-based quotas only.
      * 
* @@ -1706,6 +1711,7 @@ public Builder setDuration(java.lang.String value) { * *
      * Duration of this limit in textual notation. Must be "100s" or "1d".
+     *
      * Used by group-based quotas only.
      * 
* @@ -1724,6 +1730,7 @@ public Builder clearDuration() { * *
      * Duration of this limit in textual notation. Must be "100s" or "1d".
+     *
      * Used by group-based quotas only.
      * 
* @@ -1867,8 +1874,10 @@ public Builder setMetricBytes(com.google.protobuf.ByteString value) { * Specify the unit of the quota limit. It uses the same syntax as * [Metric.unit][]. The supported unit kinds are determined by the quota * backend system. + * * Here are some examples: * * "1/min/{project}" for quota per minute per project. + * * Note: the order of unit components is insignificant. * The "1" at the beginning is required to follow the metric unit syntax. *
@@ -1895,8 +1904,10 @@ public java.lang.String getUnit() { * Specify the unit of the quota limit. It uses the same syntax as * [Metric.unit][]. The supported unit kinds are determined by the quota * backend system. + * * Here are some examples: * * "1/min/{project}" for quota per minute per project. + * * Note: the order of unit components is insignificant. * The "1" at the beginning is required to follow the metric unit syntax. *
@@ -1923,8 +1934,10 @@ public com.google.protobuf.ByteString getUnitBytes() { * Specify the unit of the quota limit. It uses the same syntax as * [Metric.unit][]. The supported unit kinds are determined by the quota * backend system. + * * Here are some examples: * * "1/min/{project}" for quota per minute per project. + * * Note: the order of unit components is insignificant. * The "1" at the beginning is required to follow the metric unit syntax. *
@@ -1950,8 +1963,10 @@ public Builder setUnit(java.lang.String value) { * Specify the unit of the quota limit. It uses the same syntax as * [Metric.unit][]. The supported unit kinds are determined by the quota * backend system. + * * Here are some examples: * * "1/min/{project}" for quota per minute per project. + * * Note: the order of unit components is insignificant. * The "1" at the beginning is required to follow the metric unit syntax. *
@@ -1973,8 +1988,10 @@ public Builder clearUnit() { * Specify the unit of the quota limit. It uses the same syntax as * [Metric.unit][]. The supported unit kinds are determined by the quota * backend system. + * * Here are some examples: * * "1/min/{project}" for quota per minute per project. + * * Note: the order of unit components is insignificant. * The "1" at the beginning is required to follow the metric unit syntax. *
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimitOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimitOrBuilder.java index 5f0a4d43db..5a11650910 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimitOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimitOrBuilder.java @@ -28,8 +28,10 @@ public interface QuotaLimitOrBuilder * *
    * Name of the quota limit.
+   *
    * The name must be provided, and it must be unique within the service. The
    * name can only include alphanumeric characters as well as '-'.
+   *
    * The maximum length of the limit name is 64 characters.
    * 
* @@ -43,8 +45,10 @@ public interface QuotaLimitOrBuilder * *
    * Name of the quota limit.
+   *
    * The name must be provided, and it must be unique within the service. The
    * name can only include alphanumeric characters as well as '-'.
+   *
    * The maximum length of the limit name is 64 characters.
    * 
* @@ -90,10 +94,12 @@ public interface QuotaLimitOrBuilder * Default number of tokens that can be consumed during the specified * duration. This is the number of tokens assigned when a client * application developer activates the service for his/her project. + * * Specifying a value of 0 will block all requests. This can be used if you * are provisioning quota to selected consumers and blocking others. * Similarly, a value of -1 will indicate an unlimited quota. No other * negative values are allowed. + * * Used by group-based quotas only. *
* @@ -111,8 +117,10 @@ public interface QuotaLimitOrBuilder * duration. Client application developers can override the default limit up * to this maximum. If specified, this value cannot be set to a value less * than the default limit. If not specified, it is set to the default limit. + * * To allow clients to apply overrides with no upper bound, set this to -1, * indicating unlimited maximum quota. + * * Used by group-based quotas only. *
* @@ -132,6 +140,7 @@ public interface QuotaLimitOrBuilder * This field can only be set on a limit with duration "1d", in a billable * group; it is invalid on any other limit. If this field is not set, it * defaults to 0, indicating that there is no free tier for this service. + * * Used by group-based quotas only. *
* @@ -146,6 +155,7 @@ public interface QuotaLimitOrBuilder * *
    * Duration of this limit in textual notation. Must be "100s" or "1d".
+   *
    * Used by group-based quotas only.
    * 
* @@ -159,6 +169,7 @@ public interface QuotaLimitOrBuilder * *
    * Duration of this limit in textual notation. Must be "100s" or "1d".
+   *
    * Used by group-based quotas only.
    * 
* @@ -204,8 +215,10 @@ public interface QuotaLimitOrBuilder * Specify the unit of the quota limit. It uses the same syntax as * [Metric.unit][]. The supported unit kinds are determined by the quota * backend system. + * * Here are some examples: * * "1/min/{project}" for quota per minute per project. + * * Note: the order of unit components is insignificant. * The "1" at the beginning is required to follow the metric unit syntax. *
@@ -222,8 +235,10 @@ public interface QuotaLimitOrBuilder * Specify the unit of the quota limit. It uses the same syntax as * [Metric.unit][]. The supported unit kinds are determined by the quota * backend system. + * * Here are some examples: * * "1/min/{project}" for quota per minute per project. + * * Note: the order of unit components is insignificant. * The "1" at the beginning is required to follow the metric unit syntax. *
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptor.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptor.java index 253ab1fda8..db10b7765e 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptor.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptor.java @@ -23,10 +23,13 @@ * *
  * A simple descriptor of a resource type.
+ *
  * ResourceDescriptor annotates a resource message (either by means of a
  * protobuf annotation or use in the service config), and associates the
  * resource's schema, the resource type, and the pattern of the resource name.
+ *
  * Example:
+ *
  *     message Topic {
  *       // Indicates this message defines a resource schema.
  *       // Declares the resource type in the format of {service}/{kind}.
@@ -36,13 +39,18 @@
  *         pattern: "projects/{project}/topics/{topic}"
  *       };
  *     }
+ *
  * The ResourceDescriptor Yaml config will look like:
+ *
  *     resources:
  *     - type: "pubsub.googleapis.com/Topic"
  *       pattern: "projects/{project}/topics/{topic}"
+ *
  * Sometimes, resources have multiple patterns, typically because they can
  * live under multiple parents.
+ *
  * Example:
+ *
  *     message LogEntry {
  *       option (google.api.resource) = {
  *         type: "logging.googleapis.com/LogEntry"
@@ -52,7 +60,9 @@
  *         pattern: "billingAccounts/{billing_account}/logs/{log}"
  *       };
  *     }
+ *
  * The ResourceDescriptor Yaml config will look like:
+ *
  *     resources:
  *     - type: 'logging.googleapis.com/LogEntry'
  *       pattern: "projects/{project}/logs/{log}"
@@ -75,7 +85,7 @@ private ResourceDescriptor(com.google.protobuf.GeneratedMessageV3.Builder bui
 
   private ResourceDescriptor() {
     type_ = "";
-    pattern_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    pattern_ = com.google.protobuf.LazyStringArrayList.emptyList();
     nameField_ = "";
     history_ = 0;
     plural_ = "";
@@ -89,11 +99,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ResourceDescriptor();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.ResourceProto.internal_static_google_api_ResourceDescriptor_descriptor;
   }
@@ -297,9 +302,11 @@ public enum Style implements com.google.protobuf.ProtocolMessageEnum {
      *
      * 
      * This resource is intended to be "declarative-friendly".
+     *
      * Declarative-friendly resources must be more strictly consistent, and
      * setting this to true communicates to tools that this resource should
      * adhere to declarative-friendly expectations.
+     *
      * Note: This is used by the API linter (linter.aip.dev) to enable
      * additional checks.
      * 
@@ -325,9 +332,11 @@ public enum Style implements com.google.protobuf.ProtocolMessageEnum { * *
      * This resource is intended to be "declarative-friendly".
+     *
      * Declarative-friendly resources must be more strictly consistent, and
      * setting this to true communicates to tools that this resource should
      * adhere to declarative-friendly expectations.
+     *
      * Note: This is used by the API linter (linter.aip.dev) to enable
      * additional checks.
      * 
@@ -428,7 +437,9 @@ private Style(int value) { * The resource type. It must be in the format of * {service_name}/{resource_type_kind}. The `resource_type_kind` must be * singular and must not include version numbers. + * * Example: `storage.googleapis.com/Bucket` + * * The value of the resource_type_kind must follow the regular expression * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and * should use PascalCase (UpperCamelCase). The maximum number of @@ -458,7 +469,9 @@ public java.lang.String getType() { * The resource type. It must be in the format of * {service_name}/{resource_type_kind}. The `resource_type_kind` must be * singular and must not include version numbers. + * * Example: `storage.googleapis.com/Bucket` + * * The value of the resource_type_kind must follow the regular expression * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and * should use PascalCase (UpperCamelCase). The maximum number of @@ -485,21 +498,27 @@ public com.google.protobuf.ByteString getTypeBytes() { public static final int PATTERN_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList pattern_; + private com.google.protobuf.LazyStringArrayList pattern_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
    * Optional. The relative resource name pattern associated with this resource
    * type. The DNS prefix of the full resource name shouldn't be specified here.
+   *
    * The path pattern must follow the syntax, which aligns with HTTP binding
    * syntax:
+   *
    *     Template = Segment { "/" Segment } ;
    *     Segment = LITERAL | Variable ;
    *     Variable = "{" LITERAL "}" ;
+   *
    * Examples:
+   *
    *     - "projects/{project}/topics/{topic}"
    *     - "projects/{project}/knowledgeBases/{knowledge_base}"
+   *
    * The components in braces correspond to the IDs for each resource in the
    * hierarchy. It is expected that, if multiple patterns are provided,
    * the same component name (e.g. "project") refers to IDs of the same
@@ -519,14 +538,19 @@ public com.google.protobuf.ProtocolStringList getPatternList() {
    * 
    * Optional. The relative resource name pattern associated with this resource
    * type. The DNS prefix of the full resource name shouldn't be specified here.
+   *
    * The path pattern must follow the syntax, which aligns with HTTP binding
    * syntax:
+   *
    *     Template = Segment { "/" Segment } ;
    *     Segment = LITERAL | Variable ;
    *     Variable = "{" LITERAL "}" ;
+   *
    * Examples:
+   *
    *     - "projects/{project}/topics/{topic}"
    *     - "projects/{project}/knowledgeBases/{knowledge_base}"
+   *
    * The components in braces correspond to the IDs for each resource in the
    * hierarchy. It is expected that, if multiple patterns are provided,
    * the same component name (e.g. "project") refers to IDs of the same
@@ -546,14 +570,19 @@ public int getPatternCount() {
    * 
    * Optional. The relative resource name pattern associated with this resource
    * type. The DNS prefix of the full resource name shouldn't be specified here.
+   *
    * The path pattern must follow the syntax, which aligns with HTTP binding
    * syntax:
+   *
    *     Template = Segment { "/" Segment } ;
    *     Segment = LITERAL | Variable ;
    *     Variable = "{" LITERAL "}" ;
+   *
    * Examples:
+   *
    *     - "projects/{project}/topics/{topic}"
    *     - "projects/{project}/knowledgeBases/{knowledge_base}"
+   *
    * The components in braces correspond to the IDs for each resource in the
    * hierarchy. It is expected that, if multiple patterns are provided,
    * the same component name (e.g. "project") refers to IDs of the same
@@ -574,14 +603,19 @@ public java.lang.String getPattern(int index) {
    * 
    * Optional. The relative resource name pattern associated with this resource
    * type. The DNS prefix of the full resource name shouldn't be specified here.
+   *
    * The path pattern must follow the syntax, which aligns with HTTP binding
    * syntax:
+   *
    *     Template = Segment { "/" Segment } ;
    *     Segment = LITERAL | Variable ;
    *     Variable = "{" LITERAL "}" ;
+   *
    * Examples:
+   *
    *     - "projects/{project}/topics/{topic}"
    *     - "projects/{project}/knowledgeBases/{knowledge_base}"
+   *
    * The components in braces correspond to the IDs for each resource in the
    * hierarchy. It is expected that, if multiple patterns are provided,
    * the same component name (e.g. "project") refers to IDs of the same
@@ -657,7 +691,9 @@ public com.google.protobuf.ByteString getNameFieldBytes() {
    *
    * 
    * Optional. The historical or future-looking state of the resource pattern.
+   *
    * Example:
+   *
    *     // The InspectTemplate message originally only supported resource
    *     // names with organization, and project was added later.
    *     message InspectTemplate {
@@ -684,7 +720,9 @@ public int getHistoryValue() {
    *
    * 
    * Optional. The historical or future-looking state of the resource pattern.
+   *
    * Example:
+   *
    *     // The InspectTemplate message originally only supported resource
    *     // names with organization, and project was added later.
    *     message InspectTemplate {
@@ -722,6 +760,7 @@ public com.google.api.ResourceDescriptor.History getHistory() {
    * name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
    * concept of the `plural` field in k8s CRD spec
    * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
+   *
    * Note: The plural form is required even for singleton resources. See
    * https://aip.dev/156
    * 
@@ -751,6 +790,7 @@ public java.lang.String getPlural() { * name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same * concept of the `plural` field in k8s CRD spec * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + * * Note: The plural form is required even for singleton resources. See * https://aip.dev/156 *
@@ -1173,10 +1213,13 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * A simple descriptor of a resource type.
+   *
    * ResourceDescriptor annotates a resource message (either by means of a
    * protobuf annotation or use in the service config), and associates the
    * resource's schema, the resource type, and the pattern of the resource name.
+   *
    * Example:
+   *
    *     message Topic {
    *       // Indicates this message defines a resource schema.
    *       // Declares the resource type in the format of {service}/{kind}.
@@ -1186,13 +1229,18 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *         pattern: "projects/{project}/topics/{topic}"
    *       };
    *     }
+   *
    * The ResourceDescriptor Yaml config will look like:
+   *
    *     resources:
    *     - type: "pubsub.googleapis.com/Topic"
    *       pattern: "projects/{project}/topics/{topic}"
+   *
    * Sometimes, resources have multiple patterns, typically because they can
    * live under multiple parents.
+   *
    * Example:
+   *
    *     message LogEntry {
    *       option (google.api.resource) = {
    *         type: "logging.googleapis.com/LogEntry"
@@ -1202,7 +1250,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *         pattern: "billingAccounts/{billing_account}/logs/{log}"
    *       };
    *     }
+   *
    * The ResourceDescriptor Yaml config will look like:
+   *
    *     resources:
    *     - type: 'logging.googleapis.com/LogEntry'
    *       pattern: "projects/{project}/logs/{log}"
@@ -1243,8 +1293,7 @@ public Builder clear() {
       super.clear();
       bitField0_ = 0;
       type_ = "";
-      pattern_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-      bitField0_ = (bitField0_ & ~0x00000002);
+      pattern_ = com.google.protobuf.LazyStringArrayList.emptyList();
       nameField_ = "";
       history_ = 0;
       plural_ = "";
@@ -1285,11 +1334,6 @@ public com.google.api.ResourceDescriptor buildPartial() {
     }
 
     private void buildPartialRepeatedFields(com.google.api.ResourceDescriptor result) {
-      if (((bitField0_ & 0x00000002) != 0)) {
-        pattern_ = pattern_.getUnmodifiableView();
-        bitField0_ = (bitField0_ & ~0x00000002);
-      }
-      result.pattern_ = pattern_;
       if (((bitField0_ & 0x00000040) != 0)) {
         style_ = java.util.Collections.unmodifiableList(style_);
         bitField0_ = (bitField0_ & ~0x00000040);
@@ -1302,6 +1346,10 @@ private void buildPartial0(com.google.api.ResourceDescriptor result) {
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.type_ = type_;
       }
+      if (((from_bitField0_ & 0x00000002) != 0)) {
+        pattern_.makeImmutable();
+        result.pattern_ = pattern_;
+      }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.nameField_ = nameField_;
       }
@@ -1316,39 +1364,6 @@ private void buildPartial0(com.google.api.ResourceDescriptor result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.ResourceDescriptor) {
@@ -1369,7 +1384,7 @@ public Builder mergeFrom(com.google.api.ResourceDescriptor other) {
       if (!other.pattern_.isEmpty()) {
         if (pattern_.isEmpty()) {
           pattern_ = other.pattern_;
-          bitField0_ = (bitField0_ & ~0x00000002);
+          bitField0_ |= 0x00000002;
         } else {
           ensurePatternIsMutable();
           pattern_.addAll(other.pattern_);
@@ -1513,7 +1528,9 @@ public Builder mergeFrom(
      * The resource type. It must be in the format of
      * {service_name}/{resource_type_kind}. The `resource_type_kind` must be
      * singular and must not include version numbers.
+     *
      * Example: `storage.googleapis.com/Bucket`
+     *
      * The value of the resource_type_kind must follow the regular expression
      * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
      * should use PascalCase (UpperCamelCase). The maximum number of
@@ -1542,7 +1559,9 @@ public java.lang.String getType() {
      * The resource type. It must be in the format of
      * {service_name}/{resource_type_kind}. The `resource_type_kind` must be
      * singular and must not include version numbers.
+     *
      * Example: `storage.googleapis.com/Bucket`
+     *
      * The value of the resource_type_kind must follow the regular expression
      * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
      * should use PascalCase (UpperCamelCase). The maximum number of
@@ -1571,7 +1590,9 @@ public com.google.protobuf.ByteString getTypeBytes() {
      * The resource type. It must be in the format of
      * {service_name}/{resource_type_kind}. The `resource_type_kind` must be
      * singular and must not include version numbers.
+     *
      * Example: `storage.googleapis.com/Bucket`
+     *
      * The value of the resource_type_kind must follow the regular expression
      * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
      * should use PascalCase (UpperCamelCase). The maximum number of
@@ -1599,7 +1620,9 @@ public Builder setType(java.lang.String value) {
      * The resource type. It must be in the format of
      * {service_name}/{resource_type_kind}. The `resource_type_kind` must be
      * singular and must not include version numbers.
+     *
      * Example: `storage.googleapis.com/Bucket`
+     *
      * The value of the resource_type_kind must follow the regular expression
      * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
      * should use PascalCase (UpperCamelCase). The maximum number of
@@ -1623,7 +1646,9 @@ public Builder clearType() {
      * The resource type. It must be in the format of
      * {service_name}/{resource_type_kind}. The `resource_type_kind` must be
      * singular and must not include version numbers.
+     *
      * Example: `storage.googleapis.com/Bucket`
+     *
      * The value of the resource_type_kind must follow the regular expression
      * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
      * should use PascalCase (UpperCamelCase). The maximum number of
@@ -1646,14 +1671,14 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) {
       return this;
     }
 
-    private com.google.protobuf.LazyStringList pattern_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringArrayList pattern_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
 
     private void ensurePatternIsMutable() {
-      if (!((bitField0_ & 0x00000002) != 0)) {
+      if (!pattern_.isModifiable()) {
         pattern_ = new com.google.protobuf.LazyStringArrayList(pattern_);
-        bitField0_ |= 0x00000002;
       }
+      bitField0_ |= 0x00000002;
     }
     /**
      *
@@ -1661,14 +1686,19 @@ private void ensurePatternIsMutable() {
      * 
      * Optional. The relative resource name pattern associated with this resource
      * type. The DNS prefix of the full resource name shouldn't be specified here.
+     *
      * The path pattern must follow the syntax, which aligns with HTTP binding
      * syntax:
+     *
      *     Template = Segment { "/" Segment } ;
      *     Segment = LITERAL | Variable ;
      *     Variable = "{" LITERAL "}" ;
+     *
      * Examples:
+     *
      *     - "projects/{project}/topics/{topic}"
      *     - "projects/{project}/knowledgeBases/{knowledge_base}"
+     *
      * The components in braces correspond to the IDs for each resource in the
      * hierarchy. It is expected that, if multiple patterns are provided,
      * the same component name (e.g. "project") refers to IDs of the same
@@ -1680,7 +1710,8 @@ private void ensurePatternIsMutable() {
      * @return A list containing the pattern.
      */
     public com.google.protobuf.ProtocolStringList getPatternList() {
-      return pattern_.getUnmodifiableView();
+      pattern_.makeImmutable();
+      return pattern_;
     }
     /**
      *
@@ -1688,14 +1719,19 @@ public com.google.protobuf.ProtocolStringList getPatternList() {
      * 
      * Optional. The relative resource name pattern associated with this resource
      * type. The DNS prefix of the full resource name shouldn't be specified here.
+     *
      * The path pattern must follow the syntax, which aligns with HTTP binding
      * syntax:
+     *
      *     Template = Segment { "/" Segment } ;
      *     Segment = LITERAL | Variable ;
      *     Variable = "{" LITERAL "}" ;
+     *
      * Examples:
+     *
      *     - "projects/{project}/topics/{topic}"
      *     - "projects/{project}/knowledgeBases/{knowledge_base}"
+     *
      * The components in braces correspond to the IDs for each resource in the
      * hierarchy. It is expected that, if multiple patterns are provided,
      * the same component name (e.g. "project") refers to IDs of the same
@@ -1715,14 +1751,19 @@ public int getPatternCount() {
      * 
      * Optional. The relative resource name pattern associated with this resource
      * type. The DNS prefix of the full resource name shouldn't be specified here.
+     *
      * The path pattern must follow the syntax, which aligns with HTTP binding
      * syntax:
+     *
      *     Template = Segment { "/" Segment } ;
      *     Segment = LITERAL | Variable ;
      *     Variable = "{" LITERAL "}" ;
+     *
      * Examples:
+     *
      *     - "projects/{project}/topics/{topic}"
      *     - "projects/{project}/knowledgeBases/{knowledge_base}"
+     *
      * The components in braces correspond to the IDs for each resource in the
      * hierarchy. It is expected that, if multiple patterns are provided,
      * the same component name (e.g. "project") refers to IDs of the same
@@ -1743,14 +1784,19 @@ public java.lang.String getPattern(int index) {
      * 
      * Optional. The relative resource name pattern associated with this resource
      * type. The DNS prefix of the full resource name shouldn't be specified here.
+     *
      * The path pattern must follow the syntax, which aligns with HTTP binding
      * syntax:
+     *
      *     Template = Segment { "/" Segment } ;
      *     Segment = LITERAL | Variable ;
      *     Variable = "{" LITERAL "}" ;
+     *
      * Examples:
+     *
      *     - "projects/{project}/topics/{topic}"
      *     - "projects/{project}/knowledgeBases/{knowledge_base}"
+     *
      * The components in braces correspond to the IDs for each resource in the
      * hierarchy. It is expected that, if multiple patterns are provided,
      * the same component name (e.g. "project") refers to IDs of the same
@@ -1771,14 +1817,19 @@ public com.google.protobuf.ByteString getPatternBytes(int index) {
      * 
      * Optional. The relative resource name pattern associated with this resource
      * type. The DNS prefix of the full resource name shouldn't be specified here.
+     *
      * The path pattern must follow the syntax, which aligns with HTTP binding
      * syntax:
+     *
      *     Template = Segment { "/" Segment } ;
      *     Segment = LITERAL | Variable ;
      *     Variable = "{" LITERAL "}" ;
+     *
      * Examples:
+     *
      *     - "projects/{project}/topics/{topic}"
      *     - "projects/{project}/knowledgeBases/{knowledge_base}"
+     *
      * The components in braces correspond to the IDs for each resource in the
      * hierarchy. It is expected that, if multiple patterns are provided,
      * the same component name (e.g. "project") refers to IDs of the same
@@ -1797,6 +1848,7 @@ public Builder setPattern(int index, java.lang.String value) {
       }
       ensurePatternIsMutable();
       pattern_.set(index, value);
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -1806,14 +1858,19 @@ public Builder setPattern(int index, java.lang.String value) {
      * 
      * Optional. The relative resource name pattern associated with this resource
      * type. The DNS prefix of the full resource name shouldn't be specified here.
+     *
      * The path pattern must follow the syntax, which aligns with HTTP binding
      * syntax:
+     *
      *     Template = Segment { "/" Segment } ;
      *     Segment = LITERAL | Variable ;
      *     Variable = "{" LITERAL "}" ;
+     *
      * Examples:
+     *
      *     - "projects/{project}/topics/{topic}"
      *     - "projects/{project}/knowledgeBases/{knowledge_base}"
+     *
      * The components in braces correspond to the IDs for each resource in the
      * hierarchy. It is expected that, if multiple patterns are provided,
      * the same component name (e.g. "project") refers to IDs of the same
@@ -1831,6 +1888,7 @@ public Builder addPattern(java.lang.String value) {
       }
       ensurePatternIsMutable();
       pattern_.add(value);
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -1840,14 +1898,19 @@ public Builder addPattern(java.lang.String value) {
      * 
      * Optional. The relative resource name pattern associated with this resource
      * type. The DNS prefix of the full resource name shouldn't be specified here.
+     *
      * The path pattern must follow the syntax, which aligns with HTTP binding
      * syntax:
+     *
      *     Template = Segment { "/" Segment } ;
      *     Segment = LITERAL | Variable ;
      *     Variable = "{" LITERAL "}" ;
+     *
      * Examples:
+     *
      *     - "projects/{project}/topics/{topic}"
      *     - "projects/{project}/knowledgeBases/{knowledge_base}"
+     *
      * The components in braces correspond to the IDs for each resource in the
      * hierarchy. It is expected that, if multiple patterns are provided,
      * the same component name (e.g. "project") refers to IDs of the same
@@ -1862,6 +1925,7 @@ public Builder addPattern(java.lang.String value) {
     public Builder addAllPattern(java.lang.Iterable values) {
       ensurePatternIsMutable();
       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pattern_);
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -1871,14 +1935,19 @@ public Builder addAllPattern(java.lang.Iterable values) {
      * 
      * Optional. The relative resource name pattern associated with this resource
      * type. The DNS prefix of the full resource name shouldn't be specified here.
+     *
      * The path pattern must follow the syntax, which aligns with HTTP binding
      * syntax:
+     *
      *     Template = Segment { "/" Segment } ;
      *     Segment = LITERAL | Variable ;
      *     Variable = "{" LITERAL "}" ;
+     *
      * Examples:
+     *
      *     - "projects/{project}/topics/{topic}"
      *     - "projects/{project}/knowledgeBases/{knowledge_base}"
+     *
      * The components in braces correspond to the IDs for each resource in the
      * hierarchy. It is expected that, if multiple patterns are provided,
      * the same component name (e.g. "project") refers to IDs of the same
@@ -1890,8 +1959,9 @@ public Builder addAllPattern(java.lang.Iterable values) {
      * @return This builder for chaining.
      */
     public Builder clearPattern() {
-      pattern_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      pattern_ = com.google.protobuf.LazyStringArrayList.emptyList();
       bitField0_ = (bitField0_ & ~0x00000002);
+      ;
       onChanged();
       return this;
     }
@@ -1901,14 +1971,19 @@ public Builder clearPattern() {
      * 
      * Optional. The relative resource name pattern associated with this resource
      * type. The DNS prefix of the full resource name shouldn't be specified here.
+     *
      * The path pattern must follow the syntax, which aligns with HTTP binding
      * syntax:
+     *
      *     Template = Segment { "/" Segment } ;
      *     Segment = LITERAL | Variable ;
      *     Variable = "{" LITERAL "}" ;
+     *
      * Examples:
+     *
      *     - "projects/{project}/topics/{topic}"
      *     - "projects/{project}/knowledgeBases/{knowledge_base}"
+     *
      * The components in braces correspond to the IDs for each resource in the
      * hierarchy. It is expected that, if multiple patterns are provided,
      * the same component name (e.g. "project") refers to IDs of the same
@@ -1927,6 +2002,7 @@ public Builder addPatternBytes(com.google.protobuf.ByteString value) {
       checkByteStringIsUtf8(value);
       ensurePatternIsMutable();
       pattern_.add(value);
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -2048,7 +2124,9 @@ public Builder setNameFieldBytes(com.google.protobuf.ByteString value) {
      *
      * 
      * Optional. The historical or future-looking state of the resource pattern.
+     *
      * Example:
+     *
      *     // The InspectTemplate message originally only supported resource
      *     // names with organization, and project was added later.
      *     message InspectTemplate {
@@ -2075,7 +2153,9 @@ public int getHistoryValue() {
      *
      * 
      * Optional. The historical or future-looking state of the resource pattern.
+     *
      * Example:
+     *
      *     // The InspectTemplate message originally only supported resource
      *     // names with organization, and project was added later.
      *     message InspectTemplate {
@@ -2105,7 +2185,9 @@ public Builder setHistoryValue(int value) {
      *
      * 
      * Optional. The historical or future-looking state of the resource pattern.
+     *
      * Example:
+     *
      *     // The InspectTemplate message originally only supported resource
      *     // names with organization, and project was added later.
      *     message InspectTemplate {
@@ -2134,7 +2216,9 @@ public com.google.api.ResourceDescriptor.History getHistory() {
      *
      * 
      * Optional. The historical or future-looking state of the resource pattern.
+     *
      * Example:
+     *
      *     // The InspectTemplate message originally only supported resource
      *     // names with organization, and project was added later.
      *     message InspectTemplate {
@@ -2167,7 +2251,9 @@ public Builder setHistory(com.google.api.ResourceDescriptor.History value) {
      *
      * 
      * Optional. The historical or future-looking state of the resource pattern.
+     *
      * Example:
+     *
      *     // The InspectTemplate message originally only supported resource
      *     // names with organization, and project was added later.
      *     message InspectTemplate {
@@ -2202,6 +2288,7 @@ public Builder clearHistory() {
      * name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
      * concept of the `plural` field in k8s CRD spec
      * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
+     *
      * Note: The plural form is required even for singleton resources. See
      * https://aip.dev/156
      * 
@@ -2230,6 +2317,7 @@ public java.lang.String getPlural() { * name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same * concept of the `plural` field in k8s CRD spec * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + * * Note: The plural form is required even for singleton resources. See * https://aip.dev/156 *
@@ -2258,6 +2346,7 @@ public com.google.protobuf.ByteString getPluralBytes() { * name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same * concept of the `plural` field in k8s CRD spec * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + * * Note: The plural form is required even for singleton resources. See * https://aip.dev/156 *
@@ -2285,6 +2374,7 @@ public Builder setPlural(java.lang.String value) { * name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same * concept of the `plural` field in k8s CRD spec * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + * * Note: The plural form is required even for singleton resources. See * https://aip.dev/156 *
@@ -2308,6 +2398,7 @@ public Builder clearPlural() { * name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same * concept of the `plural` field in k8s CRD spec * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + * * Note: The plural form is required even for singleton resources. See * https://aip.dev/156 *
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptorOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptorOrBuilder.java index 3e9739257d..2c0099fcda 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptorOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptorOrBuilder.java @@ -30,7 +30,9 @@ public interface ResourceDescriptorOrBuilder * The resource type. It must be in the format of * {service_name}/{resource_type_kind}. The `resource_type_kind` must be * singular and must not include version numbers. + * * Example: `storage.googleapis.com/Bucket` + * * The value of the resource_type_kind must follow the regular expression * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and * should use PascalCase (UpperCamelCase). The maximum number of @@ -49,7 +51,9 @@ public interface ResourceDescriptorOrBuilder * The resource type. It must be in the format of * {service_name}/{resource_type_kind}. The `resource_type_kind` must be * singular and must not include version numbers. + * * Example: `storage.googleapis.com/Bucket` + * * The value of the resource_type_kind must follow the regular expression * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and * should use PascalCase (UpperCamelCase). The maximum number of @@ -68,14 +72,19 @@ public interface ResourceDescriptorOrBuilder *
    * Optional. The relative resource name pattern associated with this resource
    * type. The DNS prefix of the full resource name shouldn't be specified here.
+   *
    * The path pattern must follow the syntax, which aligns with HTTP binding
    * syntax:
+   *
    *     Template = Segment { "/" Segment } ;
    *     Segment = LITERAL | Variable ;
    *     Variable = "{" LITERAL "}" ;
+   *
    * Examples:
+   *
    *     - "projects/{project}/topics/{topic}"
    *     - "projects/{project}/knowledgeBases/{knowledge_base}"
+   *
    * The components in braces correspond to the IDs for each resource in the
    * hierarchy. It is expected that, if multiple patterns are provided,
    * the same component name (e.g. "project") refers to IDs of the same
@@ -93,14 +102,19 @@ public interface ResourceDescriptorOrBuilder
    * 
    * Optional. The relative resource name pattern associated with this resource
    * type. The DNS prefix of the full resource name shouldn't be specified here.
+   *
    * The path pattern must follow the syntax, which aligns with HTTP binding
    * syntax:
+   *
    *     Template = Segment { "/" Segment } ;
    *     Segment = LITERAL | Variable ;
    *     Variable = "{" LITERAL "}" ;
+   *
    * Examples:
+   *
    *     - "projects/{project}/topics/{topic}"
    *     - "projects/{project}/knowledgeBases/{knowledge_base}"
+   *
    * The components in braces correspond to the IDs for each resource in the
    * hierarchy. It is expected that, if multiple patterns are provided,
    * the same component name (e.g. "project") refers to IDs of the same
@@ -118,14 +132,19 @@ public interface ResourceDescriptorOrBuilder
    * 
    * Optional. The relative resource name pattern associated with this resource
    * type. The DNS prefix of the full resource name shouldn't be specified here.
+   *
    * The path pattern must follow the syntax, which aligns with HTTP binding
    * syntax:
+   *
    *     Template = Segment { "/" Segment } ;
    *     Segment = LITERAL | Variable ;
    *     Variable = "{" LITERAL "}" ;
+   *
    * Examples:
+   *
    *     - "projects/{project}/topics/{topic}"
    *     - "projects/{project}/knowledgeBases/{knowledge_base}"
+   *
    * The components in braces correspond to the IDs for each resource in the
    * hierarchy. It is expected that, if multiple patterns are provided,
    * the same component name (e.g. "project") refers to IDs of the same
@@ -144,14 +163,19 @@ public interface ResourceDescriptorOrBuilder
    * 
    * Optional. The relative resource name pattern associated with this resource
    * type. The DNS prefix of the full resource name shouldn't be specified here.
+   *
    * The path pattern must follow the syntax, which aligns with HTTP binding
    * syntax:
+   *
    *     Template = Segment { "/" Segment } ;
    *     Segment = LITERAL | Variable ;
    *     Variable = "{" LITERAL "}" ;
+   *
    * Examples:
+   *
    *     - "projects/{project}/topics/{topic}"
    *     - "projects/{project}/knowledgeBases/{knowledge_base}"
+   *
    * The components in braces correspond to the IDs for each resource in the
    * hierarchy. It is expected that, if multiple patterns are provided,
    * the same component name (e.g. "project") refers to IDs of the same
@@ -197,7 +221,9 @@ public interface ResourceDescriptorOrBuilder
    *
    * 
    * Optional. The historical or future-looking state of the resource pattern.
+   *
    * Example:
+   *
    *     // The InspectTemplate message originally only supported resource
    *     // names with organization, and project was added later.
    *     message InspectTemplate {
@@ -221,7 +247,9 @@ public interface ResourceDescriptorOrBuilder
    *
    * 
    * Optional. The historical or future-looking state of the resource pattern.
+   *
    * Example:
+   *
    *     // The InspectTemplate message originally only supported resource
    *     // names with organization, and project was added later.
    *     message InspectTemplate {
@@ -250,6 +278,7 @@ public interface ResourceDescriptorOrBuilder
    * name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
    * concept of the `plural` field in k8s CRD spec
    * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
+   *
    * Note: The plural form is required even for singleton resources. See
    * https://aip.dev/156
    * 
@@ -268,6 +297,7 @@ public interface ResourceDescriptorOrBuilder * name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same * concept of the `plural` field in k8s CRD spec * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + * * Note: The plural form is required even for singleton resources. See * https://aip.dev/156 *
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReference.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReference.java index fbf2c0127d..d72f23cbd7 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReference.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReference.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResourceReference(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.ResourceProto.internal_static_google_api_ResourceReference_descriptor; } @@ -76,15 +71,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * The resource type that the annotated field references.
+   *
    * Example:
+   *
    *     message Subscription {
    *       string topic = 2 [(google.api.resource_reference) = {
    *         type: "pubsub.googleapis.com/Topic"
    *       }];
    *     }
+   *
    * Occasionally, a field may reference an arbitrary resource. In this case,
    * APIs use the special value * in their resource reference.
+   *
    * Example:
+   *
    *     message GetIamPolicyRequest {
    *       string resource = 2 [(google.api.resource_reference) = {
    *         type: "*"
@@ -113,15 +113,20 @@ public java.lang.String getType() {
    *
    * 
    * The resource type that the annotated field references.
+   *
    * Example:
+   *
    *     message Subscription {
    *       string topic = 2 [(google.api.resource_reference) = {
    *         type: "pubsub.googleapis.com/Topic"
    *       }];
    *     }
+   *
    * Occasionally, a field may reference an arbitrary resource. In this case,
    * APIs use the special value * in their resource reference.
+   *
    * Example:
+   *
    *     message GetIamPolicyRequest {
    *       string resource = 2 [(google.api.resource_reference) = {
    *         type: "*"
@@ -157,7 +162,9 @@ public com.google.protobuf.ByteString getTypeBytes() {
    * The resource type of a child collection that the annotated field
    * references. This is useful for annotating the `parent` field that
    * doesn't have a fixed resource type.
+   *
    * Example:
+   *
    *     message ListLogEntriesRequest {
    *       string parent = 1 [(google.api.resource_reference) = {
    *         child_type: "logging.googleapis.com/LogEntry"
@@ -188,7 +195,9 @@ public java.lang.String getChildType() {
    * The resource type of a child collection that the annotated field
    * references. This is useful for annotating the `parent` field that
    * doesn't have a fixed resource type.
+   *
    * Example:
+   *
    *     message ListLogEntriesRequest {
    *       string parent = 1 [(google.api.resource_reference) = {
    *         child_type: "logging.googleapis.com/LogEntry"
@@ -462,39 +471,6 @@ private void buildPartial0(com.google.api.ResourceReference result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.ResourceReference) {
@@ -580,15 +556,20 @@ public Builder mergeFrom(
      *
      * 
      * The resource type that the annotated field references.
+     *
      * Example:
+     *
      *     message Subscription {
      *       string topic = 2 [(google.api.resource_reference) = {
      *         type: "pubsub.googleapis.com/Topic"
      *       }];
      *     }
+     *
      * Occasionally, a field may reference an arbitrary resource. In this case,
      * APIs use the special value * in their resource reference.
+     *
      * Example:
+     *
      *     message GetIamPolicyRequest {
      *       string resource = 2 [(google.api.resource_reference) = {
      *         type: "*"
@@ -616,15 +597,20 @@ public java.lang.String getType() {
      *
      * 
      * The resource type that the annotated field references.
+     *
      * Example:
+     *
      *     message Subscription {
      *       string topic = 2 [(google.api.resource_reference) = {
      *         type: "pubsub.googleapis.com/Topic"
      *       }];
      *     }
+     *
      * Occasionally, a field may reference an arbitrary resource. In this case,
      * APIs use the special value * in their resource reference.
+     *
      * Example:
+     *
      *     message GetIamPolicyRequest {
      *       string resource = 2 [(google.api.resource_reference) = {
      *         type: "*"
@@ -652,15 +638,20 @@ public com.google.protobuf.ByteString getTypeBytes() {
      *
      * 
      * The resource type that the annotated field references.
+     *
      * Example:
+     *
      *     message Subscription {
      *       string topic = 2 [(google.api.resource_reference) = {
      *         type: "pubsub.googleapis.com/Topic"
      *       }];
      *     }
+     *
      * Occasionally, a field may reference an arbitrary resource. In this case,
      * APIs use the special value * in their resource reference.
+     *
      * Example:
+     *
      *     message GetIamPolicyRequest {
      *       string resource = 2 [(google.api.resource_reference) = {
      *         type: "*"
@@ -687,15 +678,20 @@ public Builder setType(java.lang.String value) {
      *
      * 
      * The resource type that the annotated field references.
+     *
      * Example:
+     *
      *     message Subscription {
      *       string topic = 2 [(google.api.resource_reference) = {
      *         type: "pubsub.googleapis.com/Topic"
      *       }];
      *     }
+     *
      * Occasionally, a field may reference an arbitrary resource. In this case,
      * APIs use the special value * in their resource reference.
+     *
      * Example:
+     *
      *     message GetIamPolicyRequest {
      *       string resource = 2 [(google.api.resource_reference) = {
      *         type: "*"
@@ -718,15 +714,20 @@ public Builder clearType() {
      *
      * 
      * The resource type that the annotated field references.
+     *
      * Example:
+     *
      *     message Subscription {
      *       string topic = 2 [(google.api.resource_reference) = {
      *         type: "pubsub.googleapis.com/Topic"
      *       }];
      *     }
+     *
      * Occasionally, a field may reference an arbitrary resource. In this case,
      * APIs use the special value * in their resource reference.
+     *
      * Example:
+     *
      *     message GetIamPolicyRequest {
      *       string resource = 2 [(google.api.resource_reference) = {
      *         type: "*"
@@ -758,7 +759,9 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) {
      * The resource type of a child collection that the annotated field
      * references. This is useful for annotating the `parent` field that
      * doesn't have a fixed resource type.
+     *
      * Example:
+     *
      *     message ListLogEntriesRequest {
      *       string parent = 1 [(google.api.resource_reference) = {
      *         child_type: "logging.googleapis.com/LogEntry"
@@ -788,7 +791,9 @@ public java.lang.String getChildType() {
      * The resource type of a child collection that the annotated field
      * references. This is useful for annotating the `parent` field that
      * doesn't have a fixed resource type.
+     *
      * Example:
+     *
      *     message ListLogEntriesRequest {
      *       string parent = 1 [(google.api.resource_reference) = {
      *         child_type: "logging.googleapis.com/LogEntry"
@@ -818,7 +823,9 @@ public com.google.protobuf.ByteString getChildTypeBytes() {
      * The resource type of a child collection that the annotated field
      * references. This is useful for annotating the `parent` field that
      * doesn't have a fixed resource type.
+     *
      * Example:
+     *
      *     message ListLogEntriesRequest {
      *       string parent = 1 [(google.api.resource_reference) = {
      *         child_type: "logging.googleapis.com/LogEntry"
@@ -847,7 +854,9 @@ public Builder setChildType(java.lang.String value) {
      * The resource type of a child collection that the annotated field
      * references. This is useful for annotating the `parent` field that
      * doesn't have a fixed resource type.
+     *
      * Example:
+     *
      *     message ListLogEntriesRequest {
      *       string parent = 1 [(google.api.resource_reference) = {
      *         child_type: "logging.googleapis.com/LogEntry"
@@ -872,7 +881,9 @@ public Builder clearChildType() {
      * The resource type of a child collection that the annotated field
      * references. This is useful for annotating the `parent` field that
      * doesn't have a fixed resource type.
+     *
      * Example:
+     *
      *     message ListLogEntriesRequest {
      *       string parent = 1 [(google.api.resource_reference) = {
      *         child_type: "logging.googleapis.com/LogEntry"
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReferenceOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReferenceOrBuilder.java
index d7ad517359..b056273f7c 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReferenceOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReferenceOrBuilder.java
@@ -28,15 +28,20 @@ public interface ResourceReferenceOrBuilder
    *
    * 
    * The resource type that the annotated field references.
+   *
    * Example:
+   *
    *     message Subscription {
    *       string topic = 2 [(google.api.resource_reference) = {
    *         type: "pubsub.googleapis.com/Topic"
    *       }];
    *     }
+   *
    * Occasionally, a field may reference an arbitrary resource. In this case,
    * APIs use the special value * in their resource reference.
+   *
    * Example:
+   *
    *     message GetIamPolicyRequest {
    *       string resource = 2 [(google.api.resource_reference) = {
    *         type: "*"
@@ -54,15 +59,20 @@ public interface ResourceReferenceOrBuilder
    *
    * 
    * The resource type that the annotated field references.
+   *
    * Example:
+   *
    *     message Subscription {
    *       string topic = 2 [(google.api.resource_reference) = {
    *         type: "pubsub.googleapis.com/Topic"
    *       }];
    *     }
+   *
    * Occasionally, a field may reference an arbitrary resource. In this case,
    * APIs use the special value * in their resource reference.
+   *
    * Example:
+   *
    *     message GetIamPolicyRequest {
    *       string resource = 2 [(google.api.resource_reference) = {
    *         type: "*"
@@ -83,7 +93,9 @@ public interface ResourceReferenceOrBuilder
    * The resource type of a child collection that the annotated field
    * references. This is useful for annotating the `parent` field that
    * doesn't have a fixed resource type.
+   *
    * Example:
+   *
    *     message ListLogEntriesRequest {
    *       string parent = 1 [(google.api.resource_reference) = {
    *         child_type: "logging.googleapis.com/LogEntry"
@@ -103,7 +115,9 @@ public interface ResourceReferenceOrBuilder
    * The resource type of a child collection that the annotated field
    * references. This is useful for annotating the `parent` field that
    * doesn't have a fixed resource type.
+   *
    * Example:
+   *
    *     message ListLogEntriesRequest {
    *       string parent = 1 [(google.api.resource_reference) = {
    *         child_type: "logging.googleapis.com/LogEntry"
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameter.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameter.java
index d5d05e0ab3..0c508233cd 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameter.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameter.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RoutingParameter();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.RoutingProto.internal_static_google_api_RoutingParameter_descriptor;
   }
@@ -134,7 +129,9 @@ public com.google.protobuf.ByteString getFieldBytes() {
    * - the name of the single named segment will be used as a header name,
    * - the match value of the segment will be used as a header value;
    * if the match is NOT successful, nothing will be sent.
+   *
    * Example:
+   *
    *               -- This is a field in the request message
    *              |   that the header value will be extracted from.
    *              |
@@ -151,6 +148,7 @@ public com.google.protobuf.ByteString getFieldBytes() {
    *                                                             |
    *      The string in the field must match the whole pattern --
    *      before brackets, inside brackets, after brackets.
+   *
    * When looking at this specific example, we can see that:
    * - A key-value pair with the key `table_location`
    *   and the value matching `instances/*` should be added
@@ -158,18 +156,23 @@ public com.google.protobuf.ByteString getFieldBytes() {
    * - The value is extracted from the request message's `table_name` field
    *   if it matches the full pattern specified:
    *   `projects/*/instances/*/tables/*`.
+   *
    * **NB:** If the `path_template` field is not provided, the key name is
    * equal to the field name, and the whole field should be sent as a value.
    * This makes the pattern for the field and the value functionally equivalent
    * to `**`, and the configuration
+   *
    *     {
    *       field: "table_name"
    *     }
+   *
    * is a functionally equivalent shorthand to:
+   *
    *     {
    *       field: "table_name"
    *       path_template: "{table_name=**}"
    *     }
+   *
    * See Example 1 for more details.
    * 
* @@ -202,7 +205,9 @@ public java.lang.String getPathTemplate() { * - the name of the single named segment will be used as a header name, * - the match value of the segment will be used as a header value; * if the match is NOT successful, nothing will be sent. + * * Example: + * * -- This is a field in the request message * | that the header value will be extracted from. * | @@ -219,6 +224,7 @@ public java.lang.String getPathTemplate() { * | * The string in the field must match the whole pattern -- * before brackets, inside brackets, after brackets. + * * When looking at this specific example, we can see that: * - A key-value pair with the key `table_location` * and the value matching `instances/*` should be added @@ -226,18 +232,23 @@ public java.lang.String getPathTemplate() { * - The value is extracted from the request message's `table_name` field * if it matches the full pattern specified: * `projects/*/instances/*/tables/*`. + * * **NB:** If the `path_template` field is not provided, the key name is * equal to the field name, and the whole field should be sent as a value. * This makes the pattern for the field and the value functionally equivalent * to `**`, and the configuration + * * { * field: "table_name" * } + * * is a functionally equivalent shorthand to: + * * { * field: "table_name" * path_template: "{table_name=**}" * } + * * See Example 1 for more details. *
* @@ -505,39 +516,6 @@ private void buildPartial0(com.google.api.RoutingParameter result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.RoutingParameter) { @@ -737,7 +715,9 @@ public Builder setFieldBytes(com.google.protobuf.ByteString value) { * - the name of the single named segment will be used as a header name, * - the match value of the segment will be used as a header value; * if the match is NOT successful, nothing will be sent. + * * Example: + * * -- This is a field in the request message * | that the header value will be extracted from. * | @@ -754,6 +734,7 @@ public Builder setFieldBytes(com.google.protobuf.ByteString value) { * | * The string in the field must match the whole pattern -- * before brackets, inside brackets, after brackets. + * * When looking at this specific example, we can see that: * - A key-value pair with the key `table_location` * and the value matching `instances/*` should be added @@ -761,18 +742,23 @@ public Builder setFieldBytes(com.google.protobuf.ByteString value) { * - The value is extracted from the request message's `table_name` field * if it matches the full pattern specified: * `projects/*/instances/*/tables/*`. + * * **NB:** If the `path_template` field is not provided, the key name is * equal to the field name, and the whole field should be sent as a value. * This makes the pattern for the field and the value functionally equivalent * to `**`, and the configuration + * * { * field: "table_name" * } + * * is a functionally equivalent shorthand to: + * * { * field: "table_name" * path_template: "{table_name=**}" * } + * * See Example 1 for more details. *
* @@ -804,7 +790,9 @@ public java.lang.String getPathTemplate() { * - the name of the single named segment will be used as a header name, * - the match value of the segment will be used as a header value; * if the match is NOT successful, nothing will be sent. + * * Example: + * * -- This is a field in the request message * | that the header value will be extracted from. * | @@ -821,6 +809,7 @@ public java.lang.String getPathTemplate() { * | * The string in the field must match the whole pattern -- * before brackets, inside brackets, after brackets. + * * When looking at this specific example, we can see that: * - A key-value pair with the key `table_location` * and the value matching `instances/*` should be added @@ -828,18 +817,23 @@ public java.lang.String getPathTemplate() { * - The value is extracted from the request message's `table_name` field * if it matches the full pattern specified: * `projects/*/instances/*/tables/*`. + * * **NB:** If the `path_template` field is not provided, the key name is * equal to the field name, and the whole field should be sent as a value. * This makes the pattern for the field and the value functionally equivalent * to `**`, and the configuration + * * { * field: "table_name" * } + * * is a functionally equivalent shorthand to: + * * { * field: "table_name" * path_template: "{table_name=**}" * } + * * See Example 1 for more details. *
* @@ -871,7 +865,9 @@ public com.google.protobuf.ByteString getPathTemplateBytes() { * - the name of the single named segment will be used as a header name, * - the match value of the segment will be used as a header value; * if the match is NOT successful, nothing will be sent. + * * Example: + * * -- This is a field in the request message * | that the header value will be extracted from. * | @@ -888,6 +884,7 @@ public com.google.protobuf.ByteString getPathTemplateBytes() { * | * The string in the field must match the whole pattern -- * before brackets, inside brackets, after brackets. + * * When looking at this specific example, we can see that: * - A key-value pair with the key `table_location` * and the value matching `instances/*` should be added @@ -895,18 +892,23 @@ public com.google.protobuf.ByteString getPathTemplateBytes() { * - The value is extracted from the request message's `table_name` field * if it matches the full pattern specified: * `projects/*/instances/*/tables/*`. + * * **NB:** If the `path_template` field is not provided, the key name is * equal to the field name, and the whole field should be sent as a value. * This makes the pattern for the field and the value functionally equivalent * to `**`, and the configuration + * * { * field: "table_name" * } + * * is a functionally equivalent shorthand to: + * * { * field: "table_name" * path_template: "{table_name=**}" * } + * * See Example 1 for more details. *
* @@ -937,7 +939,9 @@ public Builder setPathTemplate(java.lang.String value) { * - the name of the single named segment will be used as a header name, * - the match value of the segment will be used as a header value; * if the match is NOT successful, nothing will be sent. + * * Example: + * * -- This is a field in the request message * | that the header value will be extracted from. * | @@ -954,6 +958,7 @@ public Builder setPathTemplate(java.lang.String value) { * | * The string in the field must match the whole pattern -- * before brackets, inside brackets, after brackets. + * * When looking at this specific example, we can see that: * - A key-value pair with the key `table_location` * and the value matching `instances/*` should be added @@ -961,18 +966,23 @@ public Builder setPathTemplate(java.lang.String value) { * - The value is extracted from the request message's `table_name` field * if it matches the full pattern specified: * `projects/*/instances/*/tables/*`. + * * **NB:** If the `path_template` field is not provided, the key name is * equal to the field name, and the whole field should be sent as a value. * This makes the pattern for the field and the value functionally equivalent * to `**`, and the configuration + * * { * field: "table_name" * } + * * is a functionally equivalent shorthand to: + * * { * field: "table_name" * path_template: "{table_name=**}" * } + * * See Example 1 for more details. *
* @@ -999,7 +1009,9 @@ public Builder clearPathTemplate() { * - the name of the single named segment will be used as a header name, * - the match value of the segment will be used as a header value; * if the match is NOT successful, nothing will be sent. + * * Example: + * * -- This is a field in the request message * | that the header value will be extracted from. * | @@ -1016,6 +1028,7 @@ public Builder clearPathTemplate() { * | * The string in the field must match the whole pattern -- * before brackets, inside brackets, after brackets. + * * When looking at this specific example, we can see that: * - A key-value pair with the key `table_location` * and the value matching `instances/*` should be added @@ -1023,18 +1036,23 @@ public Builder clearPathTemplate() { * - The value is extracted from the request message's `table_name` field * if it matches the full pattern specified: * `projects/*/instances/*/tables/*`. + * * **NB:** If the `path_template` field is not provided, the key name is * equal to the field name, and the whole field should be sent as a value. * This makes the pattern for the field and the value functionally equivalent * to `**`, and the configuration + * * { * field: "table_name" * } + * * is a functionally equivalent shorthand to: + * * { * field: "table_name" * path_template: "{table_name=**}" * } + * * See Example 1 for more details. *
* diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameterOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameterOrBuilder.java index cb948dbd18..1d441400e9 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameterOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameterOrBuilder.java @@ -61,7 +61,9 @@ public interface RoutingParameterOrBuilder * - the name of the single named segment will be used as a header name, * - the match value of the segment will be used as a header value; * if the match is NOT successful, nothing will be sent. + * * Example: + * * -- This is a field in the request message * | that the header value will be extracted from. * | @@ -78,6 +80,7 @@ public interface RoutingParameterOrBuilder * | * The string in the field must match the whole pattern -- * before brackets, inside brackets, after brackets. + * * When looking at this specific example, we can see that: * - A key-value pair with the key `table_location` * and the value matching `instances/*` should be added @@ -85,18 +88,23 @@ public interface RoutingParameterOrBuilder * - The value is extracted from the request message's `table_name` field * if it matches the full pattern specified: * `projects/*/instances/*/tables/*`. + * * **NB:** If the `path_template` field is not provided, the key name is * equal to the field name, and the whole field should be sent as a value. * This makes the pattern for the field and the value functionally equivalent * to `**`, and the configuration + * * { * field: "table_name" * } + * * is a functionally equivalent shorthand to: + * * { * field: "table_name" * path_template: "{table_name=**}" * } + * * See Example 1 for more details. *
* @@ -118,7 +126,9 @@ public interface RoutingParameterOrBuilder * - the name of the single named segment will be used as a header name, * - the match value of the segment will be used as a header value; * if the match is NOT successful, nothing will be sent. + * * Example: + * * -- This is a field in the request message * | that the header value will be extracted from. * | @@ -135,6 +145,7 @@ public interface RoutingParameterOrBuilder * | * The string in the field must match the whole pattern -- * before brackets, inside brackets, after brackets. + * * When looking at this specific example, we can see that: * - A key-value pair with the key `table_location` * and the value matching `instances/*` should be added @@ -142,18 +153,23 @@ public interface RoutingParameterOrBuilder * - The value is extracted from the request message's `table_name` field * if it matches the full pattern specified: * `projects/*/instances/*/tables/*`. + * * **NB:** If the `path_template` field is not provided, the key name is * equal to the field name, and the whole field should be sent as a value. * This makes the pattern for the field and the value functionally equivalent * to `**`, and the configuration + * * { * field: "table_name" * } + * * is a functionally equivalent shorthand to: + * * { * field: "table_name" * path_template: "{table_name=**}" * } + * * See Example 1 for more details. *
* diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingRule.java index 4b2708dd3a..2228983941 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingRule.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingRule.java @@ -25,8 +25,11 @@ * Specifies the routing information that should be sent along with the request * in the form of routing header. * **NOTE:** All service configuration rules follow the "last one wins" order. + * * The examples below will apply to an RPC which has the following request type: + * * Message Definition: + * * message Request { * // The name of the Table * // Values can be of the following formats: @@ -34,37 +37,51 @@ * // - `projects/<project>/instances/<instance>/tables/<table>` * // - `region/<region>/zones/<zone>/tables/<table>` * string table_name = 1; + * * // This value specifies routing for replication. * // It can be in the following formats: * // - `profiles/<profile_id>` * // - a legacy `profile_id` that can be any string * string app_profile_id = 2; * } + * * Example message: + * * { * table_name: projects/proj_foo/instances/instance_bar/table/table_baz, * app_profile_id: profiles/prof_qux * } + * * The routing header consists of one or multiple key-value pairs. Every key * and value must be percent-encoded, and joined together in the format of * `key1=value1&key2=value2`. * In the examples below I am skipping the percent-encoding for readablity. + * * Example 1 + * * Extracting a field from the request to put into the routing header * unchanged, with the key equal to the field name. + * * annotation: + * * option (google.api.routing) = { * // Take the `app_profile_id`. * routing_parameters { * field: "app_profile_id" * } * }; + * * result: + * * x-goog-request-params: app_profile_id=profiles/prof_qux + * * Example 2 + * * Extracting a field from the request to put into the routing header * unchanged, with the key different from the field name. + * * annotation: + * * option (google.api.routing) = { * // Take the `app_profile_id`, but name it `routing_id` in the header. * routing_parameters { @@ -72,16 +89,25 @@ * path_template: "{routing_id=**}" * } * }; + * * result: + * * x-goog-request-params: routing_id=profiles/prof_qux + * * Example 3 + * * Extracting a field from the request to put into the routing * header, while matching a path template syntax on the field's value. + * * NB: it is more useful to send nothing than to send garbage for the purpose * of dynamic routing, since garbage pollutes cache. Thus the matching. + * * Sub-example 3a + * * The field matches the template. + * * annotation: + * * option (google.api.routing) = { * // Take the `table_name`, if it's well-formed (with project-based * // syntax). @@ -90,12 +116,18 @@ * path_template: "{table_name=projects/*/instances/*/**}" * } * }; + * * result: + * * x-goog-request-params: * table_name=projects/proj_foo/instances/instance_bar/table/table_baz + * * Sub-example 3b + * * The field does not match the template. + * * annotation: + * * option (google.api.routing) = { * // Take the `table_name`, if it's well-formed (with region-based * // syntax). @@ -104,15 +136,22 @@ * path_template: "{table_name=regions/*/zones/*/**}" * } * }; + * * result: + * * <no routing header will be sent> + * * Sub-example 3c + * * Multiple alternative conflictingly named path templates are * specified. The one that matches is used to construct the header. + * * annotation: + * * option (google.api.routing) = { * // Take the `table_name`, if it's well-formed, whether * // using the region- or projects-based syntax. + * * routing_parameters { * field: "table_name" * path_template: "{table_name=regions/*/zones/*/**}" @@ -122,13 +161,19 @@ * path_template: "{table_name=projects/*/instances/*/**}" * } * }; + * * result: + * * x-goog-request-params: * table_name=projects/proj_foo/instances/instance_bar/table/table_baz + * * Example 4 + * * Extracting a single routing header key-value pair by matching a * template syntax on (a part of) a single request field. + * * annotation: + * * option (google.api.routing) = { * // Take just the project id from the `table_name` field. * routing_parameters { @@ -136,17 +181,24 @@ * path_template: "{routing_id=projects/*}/**" * } * }; + * * result: + * * x-goog-request-params: routing_id=projects/proj_foo + * * Example 5 + * * Extracting a single routing header key-value pair by matching * several conflictingly named path templates on (parts of) a single request * field. The last template to match "wins" the conflict. + * * annotation: + * * option (google.api.routing) = { * // If the `table_name` does not have instances information, * // take just the project id for routing. * // Otherwise take project + instance. + * * routing_parameters { * field: "table_name" * path_template: "{routing_id=projects/*}/**" @@ -156,20 +208,29 @@ * path_template: "{routing_id=projects/*/instances/*}/**" * } * }; + * * result: + * * x-goog-request-params: * routing_id=projects/proj_foo/instances/instance_bar + * * Example 6 + * * Extracting multiple routing header key-value pairs by matching * several non-conflicting path templates on (parts of) a single request field. + * * Sub-example 6a + * * Make the templates strict, so that if the `table_name` does not * have an instance information, nothing is sent. + * * annotation: + * * option (google.api.routing) = { * // The routing code needs two keys instead of one composite * // but works only for the tables with the "project-instance" name * // syntax. + * * routing_parameters { * field: "table_name" * path_template: "{project_id=projects/*}/instances/*/**" @@ -179,17 +240,24 @@ * path_template: "projects/*/{instance_id=instances/*}/**" * } * }; + * * result: + * * x-goog-request-params: * project_id=projects/proj_foo&instance_id=instances/instance_bar + * * Sub-example 6b + * * Make the templates loose, so that if the `table_name` does not * have an instance information, just the project id part is sent. + * * annotation: + * * option (google.api.routing) = { * // The routing code wants two keys instead of one composite * // but will work with just the `project_id` for tables without * // an instance in the `table_name`. + * * routing_parameters { * field: "table_name" * path_template: "{project_id=projects/*}/**" @@ -199,22 +267,30 @@ * path_template: "projects/*/{instance_id=instances/*}/**" * } * }; + * * result (is the same as 6a for our example message because it has the instance * information): + * * x-goog-request-params: * project_id=projects/proj_foo&instance_id=instances/instance_bar + * * Example 7 + * * Extracting multiple routing header key-value pairs by matching * several path templates on multiple request fields. + * * NB: note that here there is no way to specify sending nothing if one of the * fields does not match its template. E.g. if the `table_name` is in the wrong * format, the `project_id` will not be sent, but the `routing_id` will be. * The backend routing code has to be aware of that and be prepared to not * receive a full complement of keys if it expects multiple. + * * annotation: + * * option (google.api.routing) = { * // The routing needs both `project_id` and `routing_id` * // (from the `app_profile_id` field) for routing. + * * routing_parameters { * field: "table_name" * path_template: "{project_id=projects/*}/**" @@ -224,18 +300,25 @@ * path_template: "{routing_id=**}" * } * }; + * * result: + * * x-goog-request-params: * project_id=projects/proj_foo&routing_id=profiles/prof_qux + * * Example 8 + * * Extracting a single routing header key-value pair by matching * several conflictingly named path templates on several request fields. The * last template to match "wins" the conflict. + * * annotation: + * * option (google.api.routing) = { * // The `routing_id` can be a project id or a region id depending on * // the table name format, but only if the `app_profile_id` is not set. * // If `app_profile_id` is set it should be used instead. + * * routing_parameters { * field: "table_name" * path_template: "{routing_id=projects/*}/**" @@ -249,11 +332,17 @@ * path_template: "{routing_id=**}" * } * }; + * * result: + * * x-goog-request-params: routing_id=profiles/prof_qux + * * Example 9 + * * Bringing it all together. + * * annotation: + * * option (google.api.routing) = { * // For routing both `table_location` and a `routing_id` are needed. * // @@ -265,6 +354,7 @@ * // - If it's any other literal, send it as is. * // If the `app_profile_id` is empty, and the `table_name` starts with * // the project_id, send that instead. + * * routing_parameters { * field: "table_name" * path_template: "projects/*/{table_location=instances/*}/tables/*" @@ -286,7 +376,9 @@ * path_template: "profiles/{routing_id=*}" * } * }; + * * result: + * * x-goog-request-params: * table_location=instances/instance_bar&routing_id=prof_qux *
@@ -313,11 +405,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RoutingRule(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.RoutingProto.internal_static_google_api_RoutingRule_descriptor; } @@ -593,8 +680,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * Specifies the routing information that should be sent along with the request * in the form of routing header. * **NOTE:** All service configuration rules follow the "last one wins" order. + * * The examples below will apply to an RPC which has the following request type: + * * Message Definition: + * * message Request { * // The name of the Table * // Values can be of the following formats: @@ -602,37 +692,51 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * // - `projects/<project>/instances/<instance>/tables/<table>` * // - `region/<region>/zones/<zone>/tables/<table>` * string table_name = 1; + * * // This value specifies routing for replication. * // It can be in the following formats: * // - `profiles/<profile_id>` * // - a legacy `profile_id` that can be any string * string app_profile_id = 2; * } + * * Example message: + * * { * table_name: projects/proj_foo/instances/instance_bar/table/table_baz, * app_profile_id: profiles/prof_qux * } + * * The routing header consists of one or multiple key-value pairs. Every key * and value must be percent-encoded, and joined together in the format of * `key1=value1&key2=value2`. * In the examples below I am skipping the percent-encoding for readablity. + * * Example 1 + * * Extracting a field from the request to put into the routing header * unchanged, with the key equal to the field name. + * * annotation: + * * option (google.api.routing) = { * // Take the `app_profile_id`. * routing_parameters { * field: "app_profile_id" * } * }; + * * result: + * * x-goog-request-params: app_profile_id=profiles/prof_qux + * * Example 2 + * * Extracting a field from the request to put into the routing header * unchanged, with the key different from the field name. + * * annotation: + * * option (google.api.routing) = { * // Take the `app_profile_id`, but name it `routing_id` in the header. * routing_parameters { @@ -640,16 +744,25 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * path_template: "{routing_id=**}" * } * }; + * * result: + * * x-goog-request-params: routing_id=profiles/prof_qux + * * Example 3 + * * Extracting a field from the request to put into the routing * header, while matching a path template syntax on the field's value. + * * NB: it is more useful to send nothing than to send garbage for the purpose * of dynamic routing, since garbage pollutes cache. Thus the matching. + * * Sub-example 3a + * * The field matches the template. + * * annotation: + * * option (google.api.routing) = { * // Take the `table_name`, if it's well-formed (with project-based * // syntax). @@ -658,12 +771,18 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * path_template: "{table_name=projects/*/instances/*/**}" * } * }; + * * result: + * * x-goog-request-params: * table_name=projects/proj_foo/instances/instance_bar/table/table_baz + * * Sub-example 3b + * * The field does not match the template. + * * annotation: + * * option (google.api.routing) = { * // Take the `table_name`, if it's well-formed (with region-based * // syntax). @@ -672,15 +791,22 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * path_template: "{table_name=regions/*/zones/*/**}" * } * }; + * * result: + * * <no routing header will be sent> + * * Sub-example 3c + * * Multiple alternative conflictingly named path templates are * specified. The one that matches is used to construct the header. + * * annotation: + * * option (google.api.routing) = { * // Take the `table_name`, if it's well-formed, whether * // using the region- or projects-based syntax. + * * routing_parameters { * field: "table_name" * path_template: "{table_name=regions/*/zones/*/**}" @@ -690,13 +816,19 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * path_template: "{table_name=projects/*/instances/*/**}" * } * }; + * * result: + * * x-goog-request-params: * table_name=projects/proj_foo/instances/instance_bar/table/table_baz + * * Example 4 + * * Extracting a single routing header key-value pair by matching a * template syntax on (a part of) a single request field. + * * annotation: + * * option (google.api.routing) = { * // Take just the project id from the `table_name` field. * routing_parameters { @@ -704,17 +836,24 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * path_template: "{routing_id=projects/*}/**" * } * }; + * * result: + * * x-goog-request-params: routing_id=projects/proj_foo + * * Example 5 + * * Extracting a single routing header key-value pair by matching * several conflictingly named path templates on (parts of) a single request * field. The last template to match "wins" the conflict. + * * annotation: + * * option (google.api.routing) = { * // If the `table_name` does not have instances information, * // take just the project id for routing. * // Otherwise take project + instance. + * * routing_parameters { * field: "table_name" * path_template: "{routing_id=projects/*}/**" @@ -724,20 +863,29 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * path_template: "{routing_id=projects/*/instances/*}/**" * } * }; + * * result: + * * x-goog-request-params: * routing_id=projects/proj_foo/instances/instance_bar + * * Example 6 + * * Extracting multiple routing header key-value pairs by matching * several non-conflicting path templates on (parts of) a single request field. + * * Sub-example 6a + * * Make the templates strict, so that if the `table_name` does not * have an instance information, nothing is sent. + * * annotation: + * * option (google.api.routing) = { * // The routing code needs two keys instead of one composite * // but works only for the tables with the "project-instance" name * // syntax. + * * routing_parameters { * field: "table_name" * path_template: "{project_id=projects/*}/instances/*/**" @@ -747,17 +895,24 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * path_template: "projects/*/{instance_id=instances/*}/**" * } * }; + * * result: + * * x-goog-request-params: * project_id=projects/proj_foo&instance_id=instances/instance_bar + * * Sub-example 6b + * * Make the templates loose, so that if the `table_name` does not * have an instance information, just the project id part is sent. + * * annotation: + * * option (google.api.routing) = { * // The routing code wants two keys instead of one composite * // but will work with just the `project_id` for tables without * // an instance in the `table_name`. + * * routing_parameters { * field: "table_name" * path_template: "{project_id=projects/*}/**" @@ -767,22 +922,30 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * path_template: "projects/*/{instance_id=instances/*}/**" * } * }; + * * result (is the same as 6a for our example message because it has the instance * information): + * * x-goog-request-params: * project_id=projects/proj_foo&instance_id=instances/instance_bar + * * Example 7 + * * Extracting multiple routing header key-value pairs by matching * several path templates on multiple request fields. + * * NB: note that here there is no way to specify sending nothing if one of the * fields does not match its template. E.g. if the `table_name` is in the wrong * format, the `project_id` will not be sent, but the `routing_id` will be. * The backend routing code has to be aware of that and be prepared to not * receive a full complement of keys if it expects multiple. + * * annotation: + * * option (google.api.routing) = { * // The routing needs both `project_id` and `routing_id` * // (from the `app_profile_id` field) for routing. + * * routing_parameters { * field: "table_name" * path_template: "{project_id=projects/*}/**" @@ -792,18 +955,25 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * path_template: "{routing_id=**}" * } * }; + * * result: + * * x-goog-request-params: * project_id=projects/proj_foo&routing_id=profiles/prof_qux + * * Example 8 + * * Extracting a single routing header key-value pair by matching * several conflictingly named path templates on several request fields. The * last template to match "wins" the conflict. + * * annotation: + * * option (google.api.routing) = { * // The `routing_id` can be a project id or a region id depending on * // the table name format, but only if the `app_profile_id` is not set. * // If `app_profile_id` is set it should be used instead. + * * routing_parameters { * field: "table_name" * path_template: "{routing_id=projects/*}/**" @@ -817,11 +987,17 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * path_template: "{routing_id=**}" * } * }; + * * result: + * * x-goog-request-params: routing_id=profiles/prof_qux + * * Example 9 + * * Bringing it all together. + * * annotation: + * * option (google.api.routing) = { * // For routing both `table_location` and a `routing_id` are needed. * // @@ -833,6 +1009,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * // - If it's any other literal, send it as is. * // If the `app_profile_id` is empty, and the `table_name` starts with * // the project_id, send that instead. + * * routing_parameters { * field: "table_name" * path_template: "projects/*/{table_location=instances/*}/tables/*" @@ -854,7 +1031,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * path_template: "profiles/{routing_id=*}" * } * }; + * * result: + * * x-goog-request-params: * table_location=instances/instance_bar&routing_id=prof_qux *
@@ -944,39 +1123,6 @@ private void buildPartial0(com.google.api.RoutingRule result) { int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.RoutingRule) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RubySettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RubySettings.java index 68d515b3b6..1ae4a6e461 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RubySettings.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RubySettings.java @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RubySettings(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.ClientProto.internal_static_google_api_RubySettings_descriptor; } @@ -350,39 +345,6 @@ private void buildPartial0(com.google.api.RubySettings result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.RubySettings) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Service.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Service.java index fac54578d0..ccf1f83883 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Service.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Service.java @@ -28,12 +28,15 @@ * aspects to sub-sections. Each sub-section is either a proto message or a * repeated proto message that configures a specific aspect, such as auth. * For more information, see each proto message definition. + * * Example: + * * type: google.api.Service * name: calendar.googleapis.com * title: Google Calendar API * apis: * - name: google.calendar.v3.Calendar + * * visibility: * rules: * - selector: "google.calendar.v3.*" @@ -42,6 +45,7 @@ * rules: * - selector: "google.calendar.v3.*" * address: calendar.example.com + * * authentication: * providers: * - id: google_calendar_auth @@ -85,11 +89,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Service(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.ServiceProto.internal_static_google_api_Service_descriptor; } @@ -423,6 +422,7 @@ public com.google.protobuf.ApiOrBuilder getApisOrBuilder(int index) { * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 *
@@ -442,6 +442,7 @@ public java.util.List getTypesList() { * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 *
@@ -461,6 +462,7 @@ public java.util.List getTypesOrBui * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 *
@@ -480,6 +482,7 @@ public int getTypesCount() { * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 *
@@ -499,6 +502,7 @@ public com.google.protobuf.Type getTypes(int index) { * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 *
@@ -522,6 +526,7 @@ public com.google.protobuf.TypeOrBuilder getTypesOrBuilder(int index) { * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum *
@@ -540,6 +545,7 @@ public java.util.List getEnumsList() { * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum *
@@ -558,6 +564,7 @@ public java.util.List getEnumsOrBui * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum *
@@ -576,6 +583,7 @@ public int getEnumsCount() { * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum *
@@ -594,6 +602,7 @@ public com.google.protobuf.Enum getEnums(int index) { * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum *
@@ -1577,6 +1586,7 @@ public com.google.api.PublishingOrBuilder getPublishingOrBuilder() { * *
    * Obsolete. Do not use.
+   *
    * This field has no semantic meaning. The service config compiler always
    * sets this field to `3`.
    * 
@@ -1594,6 +1604,7 @@ public boolean hasConfigVersion() { * *
    * Obsolete. Do not use.
+   *
    * This field has no semantic meaning. The service config compiler always
    * sets this field to `3`.
    * 
@@ -1613,6 +1624,7 @@ public com.google.protobuf.UInt32Value getConfigVersion() { * *
    * Obsolete. Do not use.
+   *
    * This field has no semantic meaning. The service config compiler always
    * sets this field to `3`.
    * 
@@ -2108,12 +2120,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * aspects to sub-sections. Each sub-section is either a proto message or a * repeated proto message that configures a specific aspect, such as auth. * For more information, see each proto message definition. + * * Example: + * * type: google.api.Service * name: calendar.googleapis.com * title: Google Calendar API * apis: * - name: google.calendar.v3.Calendar + * * visibility: * rules: * - selector: "google.calendar.v3.*" @@ -2122,6 +2137,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * rules: * - selector: "google.calendar.v3.*" * address: calendar.example.com + * * authentication: * providers: * - id: google_calendar_auth @@ -2454,39 +2470,6 @@ private void buildPartial0(com.google.api.Service result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.Service) { @@ -3894,6 +3877,7 @@ private void ensureTypesIsMutable() { * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 *
@@ -3916,6 +3900,7 @@ public java.util.List getTypesList() { * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 *
@@ -3938,6 +3923,7 @@ public int getTypesCount() { * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 *
@@ -3960,6 +3946,7 @@ public com.google.protobuf.Type getTypes(int index) { * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 *
@@ -3988,6 +3975,7 @@ public Builder setTypes(int index, com.google.protobuf.Type value) { * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 *
@@ -4013,6 +4001,7 @@ public Builder setTypes(int index, com.google.protobuf.Type.Builder builderForVa * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 *
@@ -4041,6 +4030,7 @@ public Builder addTypes(com.google.protobuf.Type value) { * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 *
@@ -4069,6 +4059,7 @@ public Builder addTypes(int index, com.google.protobuf.Type value) { * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 *
@@ -4094,6 +4085,7 @@ public Builder addTypes(com.google.protobuf.Type.Builder builderForValue) { * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 *
@@ -4119,6 +4111,7 @@ public Builder addTypes(int index, com.google.protobuf.Type.Builder builderForVa * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 *
@@ -4144,6 +4137,7 @@ public Builder addAllTypes(java.lang.Iterable @@ -4169,6 +4163,7 @@ public Builder clearTypes() { * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 *
@@ -4194,6 +4189,7 @@ public Builder removeTypes(int index) { * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 *
@@ -4212,6 +4208,7 @@ public com.google.protobuf.Type.Builder getTypesBuilder(int index) { * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 *
@@ -4234,6 +4231,7 @@ public com.google.protobuf.TypeOrBuilder getTypesOrBuilder(int index) { * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 *
@@ -4256,6 +4254,7 @@ public java.util.List getTypesOrBui * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 *
@@ -4274,6 +4273,7 @@ public com.google.protobuf.Type.Builder addTypesBuilder() { * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 *
@@ -4293,6 +4293,7 @@ public com.google.protobuf.Type.Builder addTypesBuilder(int index) { * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 * @@ -4343,6 +4344,7 @@ private void ensureEnumsIsMutable() { * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum * @@ -4364,6 +4366,7 @@ public java.util.List getEnumsList() { * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum * @@ -4385,6 +4388,7 @@ public int getEnumsCount() { * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum * @@ -4406,6 +4410,7 @@ public com.google.protobuf.Enum getEnums(int index) { * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum * @@ -4433,6 +4438,7 @@ public Builder setEnums(int index, com.google.protobuf.Enum value) { * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum * @@ -4457,6 +4463,7 @@ public Builder setEnums(int index, com.google.protobuf.Enum.Builder builderForVa * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum * @@ -4484,6 +4491,7 @@ public Builder addEnums(com.google.protobuf.Enum value) { * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum * @@ -4511,6 +4519,7 @@ public Builder addEnums(int index, com.google.protobuf.Enum value) { * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum * @@ -4535,6 +4544,7 @@ public Builder addEnums(com.google.protobuf.Enum.Builder builderForValue) { * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum * @@ -4559,6 +4569,7 @@ public Builder addEnums(int index, com.google.protobuf.Enum.Builder builderForVa * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum * @@ -4583,6 +4594,7 @@ public Builder addAllEnums(java.lang.Iterable @@ -4607,6 +4619,7 @@ public Builder clearEnums() { * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum * @@ -4631,6 +4644,7 @@ public Builder removeEnums(int index) { * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum * @@ -4648,6 +4662,7 @@ public com.google.protobuf.Enum.Builder getEnumsBuilder(int index) { * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum * @@ -4669,6 +4684,7 @@ public com.google.protobuf.EnumOrBuilder getEnumsOrBuilder(int index) { * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum * @@ -4690,6 +4706,7 @@ public java.util.List getEnumsOrBui * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum * @@ -4707,6 +4724,7 @@ public com.google.protobuf.Enum.Builder addEnumsBuilder() { * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum * @@ -4725,6 +4743,7 @@ public com.google.protobuf.Enum.Builder addEnumsBuilder(int index) { * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum * @@ -8718,6 +8737,7 @@ public com.google.api.PublishingOrBuilder getPublishingOrBuilder() { * *
      * Obsolete. Do not use.
+     *
      * This field has no semantic meaning. The service config compiler always
      * sets this field to `3`.
      * 
@@ -8734,6 +8754,7 @@ public boolean hasConfigVersion() { * *
      * Obsolete. Do not use.
+     *
      * This field has no semantic meaning. The service config compiler always
      * sets this field to `3`.
      * 
@@ -8756,6 +8777,7 @@ public com.google.protobuf.UInt32Value getConfigVersion() { * *
      * Obsolete. Do not use.
+     *
      * This field has no semantic meaning. The service config compiler always
      * sets this field to `3`.
      * 
@@ -8780,6 +8802,7 @@ public Builder setConfigVersion(com.google.protobuf.UInt32Value value) { * *
      * Obsolete. Do not use.
+     *
      * This field has no semantic meaning. The service config compiler always
      * sets this field to `3`.
      * 
@@ -8801,6 +8824,7 @@ public Builder setConfigVersion(com.google.protobuf.UInt32Value.Builder builderF * *
      * Obsolete. Do not use.
+     *
      * This field has no semantic meaning. The service config compiler always
      * sets this field to `3`.
      * 
@@ -8828,6 +8852,7 @@ public Builder mergeConfigVersion(com.google.protobuf.UInt32Value value) { * *
      * Obsolete. Do not use.
+     *
      * This field has no semantic meaning. The service config compiler always
      * sets this field to `3`.
      * 
@@ -8849,6 +8874,7 @@ public Builder clearConfigVersion() { * *
      * Obsolete. Do not use.
+     *
      * This field has no semantic meaning. The service config compiler always
      * sets this field to `3`.
      * 
@@ -8865,6 +8891,7 @@ public com.google.protobuf.UInt32Value.Builder getConfigVersionBuilder() { * *
      * Obsolete. Do not use.
+     *
      * This field has no semantic meaning. The service config compiler always
      * sets this field to `3`.
      * 
@@ -8885,6 +8912,7 @@ public com.google.protobuf.UInt32ValueOrBuilder getConfigVersionOrBuilder() { * *
      * Obsolete. Do not use.
+     *
      * This field has no semantic meaning. The service config compiler always
      * sets this field to `3`.
      * 
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java index 4bf479bf81..e390948dea 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java @@ -217,6 +217,7 @@ public interface ServiceOrBuilder * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 * @@ -233,6 +234,7 @@ public interface ServiceOrBuilder * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 * @@ -249,6 +251,7 @@ public interface ServiceOrBuilder * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 * @@ -265,6 +268,7 @@ public interface ServiceOrBuilder * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 * @@ -281,6 +285,7 @@ public interface ServiceOrBuilder * included. Messages which are not referenced but shall be included, such as * types used by the `google.protobuf.Any` type, should be listed here by * name by the configuration author. Example: + * * types: * - name: google.protobuf.Int32 * @@ -297,6 +302,7 @@ public interface ServiceOrBuilder * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum * @@ -312,6 +318,7 @@ public interface ServiceOrBuilder * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum * @@ -327,6 +334,7 @@ public interface ServiceOrBuilder * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum * @@ -342,6 +350,7 @@ public interface ServiceOrBuilder * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum * @@ -357,6 +366,7 @@ public interface ServiceOrBuilder * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name by the configuration author. Example: + * * enums: * - name: google.someapi.v1.SomeEnum * @@ -1091,6 +1101,7 @@ public interface ServiceOrBuilder * *
    * Obsolete. Do not use.
+   *
    * This field has no semantic meaning. The service config compiler always
    * sets this field to `3`.
    * 
@@ -1105,6 +1116,7 @@ public interface ServiceOrBuilder * *
    * Obsolete. Do not use.
+   *
    * This field has no semantic meaning. The service config compiler always
    * sets this field to `3`.
    * 
@@ -1119,6 +1131,7 @@ public interface ServiceOrBuilder * *
    * Obsolete. Do not use.
+   *
    * This field has no semantic meaning. The service config compiler always
    * sets this field to `3`.
    * 
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SourceInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SourceInfo.java index eb2384b6e5..e918cfa384 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SourceInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SourceInfo.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SourceInfo(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.SourceInfoProto.internal_static_google_api_SourceInfo_descriptor; } @@ -385,39 +380,6 @@ private void buildPartial0(com.google.api.SourceInfo result) { int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.SourceInfo) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameter.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameter.java index 10cd4584bb..96701a9372 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameter.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameter.java @@ -51,11 +51,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SystemParameter(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.SystemParameterProto .internal_static_google_api_SystemParameter_descriptor; @@ -491,39 +486,6 @@ private void buildPartial0(com.google.api.SystemParameter result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.SystemParameter) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRule.java index ffdca924be..03efa923cb 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRule.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRule.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SystemParameterRule(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.SystemParameterProto .internal_static_google_api_SystemParameterRule_descriptor; @@ -79,6 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Selects the methods to which this rule applies. Use '*' to indicate all
    * methods in all APIs.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -105,6 +101,7 @@ public java.lang.String getSelector() { *
    * Selects the methods to which this rule applies. Use '*' to indicate all
    * methods in all APIs.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -486,39 +483,6 @@ private void buildPartial0(com.google.api.SystemParameterRule result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.SystemParameterRule) { @@ -633,6 +597,7 @@ public Builder mergeFrom( *
      * Selects the methods to which this rule applies. Use '*' to indicate all
      * methods in all APIs.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -658,6 +623,7 @@ public java.lang.String getSelector() { *
      * Selects the methods to which this rule applies. Use '*' to indicate all
      * methods in all APIs.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -683,6 +649,7 @@ public com.google.protobuf.ByteString getSelectorBytes() { *
      * Selects the methods to which this rule applies. Use '*' to indicate all
      * methods in all APIs.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -707,6 +674,7 @@ public Builder setSelector(java.lang.String value) { *
      * Selects the methods to which this rule applies. Use '*' to indicate all
      * methods in all APIs.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -727,6 +695,7 @@ public Builder clearSelector() { *
      * Selects the methods to which this rule applies. Use '*' to indicate all
      * methods in all APIs.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRuleOrBuilder.java index da5cd58b1e..c3145cdd04 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRuleOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRuleOrBuilder.java @@ -29,6 +29,7 @@ public interface SystemParameterRuleOrBuilder *
    * Selects the methods to which this rule applies. Use '*' to indicate all
    * methods in all APIs.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -44,6 +45,7 @@ public interface SystemParameterRuleOrBuilder *
    * Selects the methods to which this rule applies. Use '*' to indicate all
    * methods in all APIs.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameters.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameters.java index 9d6e6d830b..1a9d626e17 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameters.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameters.java @@ -23,6 +23,7 @@ * *
  * ### System parameter configuration
+ *
  * A system parameter is a special kind of parameter defined by the API
  * system, not by an individual API. It is typically mapped to an HTTP header
  * and/or a URL query parameter. This configuration specifies which methods
@@ -51,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SystemParameters();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.SystemParameterProto
         .internal_static_google_api_SystemParameters_descriptor;
@@ -79,18 +75,24 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * 
    * Define system parameters.
+   *
    * The parameters defined here will override the default parameters
    * implemented by the system. If this field is missing from the service
    * config, default system parameters will be used. Default system parameters
    * and names is implementation-dependent.
+   *
    * Example: define api key for all methods
+   *
    *     system_parameters
    *       rules:
    *         - selector: "*"
    *           parameters:
    *             - name: api_key
    *               url_query_parameter: api_key
+   *
+   *
    * Example: define 2 api key names for a specific method.
+   *
    *     system_parameters
    *       rules:
    *         - selector: "/ListShelves"
@@ -99,6 +101,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *               http_header: Api-Key1
    *             - name: api_key
    *               http_header: Api-Key2
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -113,18 +116,24 @@ public java.util.List getRulesList() { * *
    * Define system parameters.
+   *
    * The parameters defined here will override the default parameters
    * implemented by the system. If this field is missing from the service
    * config, default system parameters will be used. Default system parameters
    * and names is implementation-dependent.
+   *
    * Example: define api key for all methods
+   *
    *     system_parameters
    *       rules:
    *         - selector: "*"
    *           parameters:
    *             - name: api_key
    *               url_query_parameter: api_key
+   *
+   *
    * Example: define 2 api key names for a specific method.
+   *
    *     system_parameters
    *       rules:
    *         - selector: "/ListShelves"
@@ -133,6 +142,7 @@ public java.util.List getRulesList() {
    *               http_header: Api-Key1
    *             - name: api_key
    *               http_header: Api-Key2
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -148,18 +158,24 @@ public java.util.List getRulesList() { * *
    * Define system parameters.
+   *
    * The parameters defined here will override the default parameters
    * implemented by the system. If this field is missing from the service
    * config, default system parameters will be used. Default system parameters
    * and names is implementation-dependent.
+   *
    * Example: define api key for all methods
+   *
    *     system_parameters
    *       rules:
    *         - selector: "*"
    *           parameters:
    *             - name: api_key
    *               url_query_parameter: api_key
+   *
+   *
    * Example: define 2 api key names for a specific method.
+   *
    *     system_parameters
    *       rules:
    *         - selector: "/ListShelves"
@@ -168,6 +184,7 @@ public java.util.List getRulesList() {
    *               http_header: Api-Key1
    *             - name: api_key
    *               http_header: Api-Key2
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -182,18 +199,24 @@ public int getRulesCount() { * *
    * Define system parameters.
+   *
    * The parameters defined here will override the default parameters
    * implemented by the system. If this field is missing from the service
    * config, default system parameters will be used. Default system parameters
    * and names is implementation-dependent.
+   *
    * Example: define api key for all methods
+   *
    *     system_parameters
    *       rules:
    *         - selector: "*"
    *           parameters:
    *             - name: api_key
    *               url_query_parameter: api_key
+   *
+   *
    * Example: define 2 api key names for a specific method.
+   *
    *     system_parameters
    *       rules:
    *         - selector: "/ListShelves"
@@ -202,6 +225,7 @@ public int getRulesCount() {
    *               http_header: Api-Key1
    *             - name: api_key
    *               http_header: Api-Key2
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -216,18 +240,24 @@ public com.google.api.SystemParameterRule getRules(int index) { * *
    * Define system parameters.
+   *
    * The parameters defined here will override the default parameters
    * implemented by the system. If this field is missing from the service
    * config, default system parameters will be used. Default system parameters
    * and names is implementation-dependent.
+   *
    * Example: define api key for all methods
+   *
    *     system_parameters
    *       rules:
    *         - selector: "*"
    *           parameters:
    *             - name: api_key
    *               url_query_parameter: api_key
+   *
+   *
    * Example: define 2 api key names for a specific method.
+   *
    *     system_parameters
    *       rules:
    *         - selector: "/ListShelves"
@@ -236,6 +266,7 @@ public com.google.api.SystemParameterRule getRules(int index) {
    *               http_header: Api-Key1
    *             - name: api_key
    *               http_header: Api-Key2
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -410,6 +441,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * ### System parameter configuration
+   *
    * A system parameter is a special kind of parameter defined by the API
    * system, not by an individual API. It is typically mapped to an HTTP header
    * and/or a URL query parameter. This configuration specifies which methods
@@ -504,39 +536,6 @@ private void buildPartial0(com.google.api.SystemParameters result) {
       int from_bitField0_ = bitField0_;
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.SystemParameters) {
@@ -655,18 +654,24 @@ private void ensureRulesIsMutable() {
      *
      * 
      * Define system parameters.
+     *
      * The parameters defined here will override the default parameters
      * implemented by the system. If this field is missing from the service
      * config, default system parameters will be used. Default system parameters
      * and names is implementation-dependent.
+     *
      * Example: define api key for all methods
+     *
      *     system_parameters
      *       rules:
      *         - selector: "*"
      *           parameters:
      *             - name: api_key
      *               url_query_parameter: api_key
+     *
+     *
      * Example: define 2 api key names for a specific method.
+     *
      *     system_parameters
      *       rules:
      *         - selector: "/ListShelves"
@@ -675,6 +680,7 @@ private void ensureRulesIsMutable() {
      *               http_header: Api-Key1
      *             - name: api_key
      *               http_header: Api-Key2
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -692,18 +698,24 @@ public java.util.List getRulesList() { * *
      * Define system parameters.
+     *
      * The parameters defined here will override the default parameters
      * implemented by the system. If this field is missing from the service
      * config, default system parameters will be used. Default system parameters
      * and names is implementation-dependent.
+     *
      * Example: define api key for all methods
+     *
      *     system_parameters
      *       rules:
      *         - selector: "*"
      *           parameters:
      *             - name: api_key
      *               url_query_parameter: api_key
+     *
+     *
      * Example: define 2 api key names for a specific method.
+     *
      *     system_parameters
      *       rules:
      *         - selector: "/ListShelves"
@@ -712,6 +724,7 @@ public java.util.List getRulesList() {
      *               http_header: Api-Key1
      *             - name: api_key
      *               http_header: Api-Key2
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -729,18 +742,24 @@ public int getRulesCount() { * *
      * Define system parameters.
+     *
      * The parameters defined here will override the default parameters
      * implemented by the system. If this field is missing from the service
      * config, default system parameters will be used. Default system parameters
      * and names is implementation-dependent.
+     *
      * Example: define api key for all methods
+     *
      *     system_parameters
      *       rules:
      *         - selector: "*"
      *           parameters:
      *             - name: api_key
      *               url_query_parameter: api_key
+     *
+     *
      * Example: define 2 api key names for a specific method.
+     *
      *     system_parameters
      *       rules:
      *         - selector: "/ListShelves"
@@ -749,6 +768,7 @@ public int getRulesCount() {
      *               http_header: Api-Key1
      *             - name: api_key
      *               http_header: Api-Key2
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -766,18 +786,24 @@ public com.google.api.SystemParameterRule getRules(int index) { * *
      * Define system parameters.
+     *
      * The parameters defined here will override the default parameters
      * implemented by the system. If this field is missing from the service
      * config, default system parameters will be used. Default system parameters
      * and names is implementation-dependent.
+     *
      * Example: define api key for all methods
+     *
      *     system_parameters
      *       rules:
      *         - selector: "*"
      *           parameters:
      *             - name: api_key
      *               url_query_parameter: api_key
+     *
+     *
      * Example: define 2 api key names for a specific method.
+     *
      *     system_parameters
      *       rules:
      *         - selector: "/ListShelves"
@@ -786,6 +812,7 @@ public com.google.api.SystemParameterRule getRules(int index) {
      *               http_header: Api-Key1
      *             - name: api_key
      *               http_header: Api-Key2
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -809,18 +836,24 @@ public Builder setRules(int index, com.google.api.SystemParameterRule value) { * *
      * Define system parameters.
+     *
      * The parameters defined here will override the default parameters
      * implemented by the system. If this field is missing from the service
      * config, default system parameters will be used. Default system parameters
      * and names is implementation-dependent.
+     *
      * Example: define api key for all methods
+     *
      *     system_parameters
      *       rules:
      *         - selector: "*"
      *           parameters:
      *             - name: api_key
      *               url_query_parameter: api_key
+     *
+     *
      * Example: define 2 api key names for a specific method.
+     *
      *     system_parameters
      *       rules:
      *         - selector: "/ListShelves"
@@ -829,6 +862,7 @@ public Builder setRules(int index, com.google.api.SystemParameterRule value) {
      *               http_header: Api-Key1
      *             - name: api_key
      *               http_header: Api-Key2
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -849,18 +883,24 @@ public Builder setRules(int index, com.google.api.SystemParameterRule.Builder bu * *
      * Define system parameters.
+     *
      * The parameters defined here will override the default parameters
      * implemented by the system. If this field is missing from the service
      * config, default system parameters will be used. Default system parameters
      * and names is implementation-dependent.
+     *
      * Example: define api key for all methods
+     *
      *     system_parameters
      *       rules:
      *         - selector: "*"
      *           parameters:
      *             - name: api_key
      *               url_query_parameter: api_key
+     *
+     *
      * Example: define 2 api key names for a specific method.
+     *
      *     system_parameters
      *       rules:
      *         - selector: "/ListShelves"
@@ -869,6 +909,7 @@ public Builder setRules(int index, com.google.api.SystemParameterRule.Builder bu
      *               http_header: Api-Key1
      *             - name: api_key
      *               http_header: Api-Key2
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -892,18 +933,24 @@ public Builder addRules(com.google.api.SystemParameterRule value) { * *
      * Define system parameters.
+     *
      * The parameters defined here will override the default parameters
      * implemented by the system. If this field is missing from the service
      * config, default system parameters will be used. Default system parameters
      * and names is implementation-dependent.
+     *
      * Example: define api key for all methods
+     *
      *     system_parameters
      *       rules:
      *         - selector: "*"
      *           parameters:
      *             - name: api_key
      *               url_query_parameter: api_key
+     *
+     *
      * Example: define 2 api key names for a specific method.
+     *
      *     system_parameters
      *       rules:
      *         - selector: "/ListShelves"
@@ -912,6 +959,7 @@ public Builder addRules(com.google.api.SystemParameterRule value) {
      *               http_header: Api-Key1
      *             - name: api_key
      *               http_header: Api-Key2
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -935,18 +983,24 @@ public Builder addRules(int index, com.google.api.SystemParameterRule value) { * *
      * Define system parameters.
+     *
      * The parameters defined here will override the default parameters
      * implemented by the system. If this field is missing from the service
      * config, default system parameters will be used. Default system parameters
      * and names is implementation-dependent.
+     *
      * Example: define api key for all methods
+     *
      *     system_parameters
      *       rules:
      *         - selector: "*"
      *           parameters:
      *             - name: api_key
      *               url_query_parameter: api_key
+     *
+     *
      * Example: define 2 api key names for a specific method.
+     *
      *     system_parameters
      *       rules:
      *         - selector: "/ListShelves"
@@ -955,6 +1009,7 @@ public Builder addRules(int index, com.google.api.SystemParameterRule value) {
      *               http_header: Api-Key1
      *             - name: api_key
      *               http_header: Api-Key2
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -975,18 +1030,24 @@ public Builder addRules(com.google.api.SystemParameterRule.Builder builderForVal * *
      * Define system parameters.
+     *
      * The parameters defined here will override the default parameters
      * implemented by the system. If this field is missing from the service
      * config, default system parameters will be used. Default system parameters
      * and names is implementation-dependent.
+     *
      * Example: define api key for all methods
+     *
      *     system_parameters
      *       rules:
      *         - selector: "*"
      *           parameters:
      *             - name: api_key
      *               url_query_parameter: api_key
+     *
+     *
      * Example: define 2 api key names for a specific method.
+     *
      *     system_parameters
      *       rules:
      *         - selector: "/ListShelves"
@@ -995,6 +1056,7 @@ public Builder addRules(com.google.api.SystemParameterRule.Builder builderForVal
      *               http_header: Api-Key1
      *             - name: api_key
      *               http_header: Api-Key2
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1015,18 +1077,24 @@ public Builder addRules(int index, com.google.api.SystemParameterRule.Builder bu * *
      * Define system parameters.
+     *
      * The parameters defined here will override the default parameters
      * implemented by the system. If this field is missing from the service
      * config, default system parameters will be used. Default system parameters
      * and names is implementation-dependent.
+     *
      * Example: define api key for all methods
+     *
      *     system_parameters
      *       rules:
      *         - selector: "*"
      *           parameters:
      *             - name: api_key
      *               url_query_parameter: api_key
+     *
+     *
      * Example: define 2 api key names for a specific method.
+     *
      *     system_parameters
      *       rules:
      *         - selector: "/ListShelves"
@@ -1035,6 +1103,7 @@ public Builder addRules(int index, com.google.api.SystemParameterRule.Builder bu
      *               http_header: Api-Key1
      *             - name: api_key
      *               http_header: Api-Key2
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1056,18 +1125,24 @@ public Builder addAllRules( * *
      * Define system parameters.
+     *
      * The parameters defined here will override the default parameters
      * implemented by the system. If this field is missing from the service
      * config, default system parameters will be used. Default system parameters
      * and names is implementation-dependent.
+     *
      * Example: define api key for all methods
+     *
      *     system_parameters
      *       rules:
      *         - selector: "*"
      *           parameters:
      *             - name: api_key
      *               url_query_parameter: api_key
+     *
+     *
      * Example: define 2 api key names for a specific method.
+     *
      *     system_parameters
      *       rules:
      *         - selector: "/ListShelves"
@@ -1076,6 +1151,7 @@ public Builder addAllRules(
      *               http_header: Api-Key1
      *             - name: api_key
      *               http_header: Api-Key2
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1096,18 +1172,24 @@ public Builder clearRules() { * *
      * Define system parameters.
+     *
      * The parameters defined here will override the default parameters
      * implemented by the system. If this field is missing from the service
      * config, default system parameters will be used. Default system parameters
      * and names is implementation-dependent.
+     *
      * Example: define api key for all methods
+     *
      *     system_parameters
      *       rules:
      *         - selector: "*"
      *           parameters:
      *             - name: api_key
      *               url_query_parameter: api_key
+     *
+     *
      * Example: define 2 api key names for a specific method.
+     *
      *     system_parameters
      *       rules:
      *         - selector: "/ListShelves"
@@ -1116,6 +1198,7 @@ public Builder clearRules() {
      *               http_header: Api-Key1
      *             - name: api_key
      *               http_header: Api-Key2
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1136,18 +1219,24 @@ public Builder removeRules(int index) { * *
      * Define system parameters.
+     *
      * The parameters defined here will override the default parameters
      * implemented by the system. If this field is missing from the service
      * config, default system parameters will be used. Default system parameters
      * and names is implementation-dependent.
+     *
      * Example: define api key for all methods
+     *
      *     system_parameters
      *       rules:
      *         - selector: "*"
      *           parameters:
      *             - name: api_key
      *               url_query_parameter: api_key
+     *
+     *
      * Example: define 2 api key names for a specific method.
+     *
      *     system_parameters
      *       rules:
      *         - selector: "/ListShelves"
@@ -1156,6 +1245,7 @@ public Builder removeRules(int index) {
      *               http_header: Api-Key1
      *             - name: api_key
      *               http_header: Api-Key2
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1169,18 +1259,24 @@ public com.google.api.SystemParameterRule.Builder getRulesBuilder(int index) { * *
      * Define system parameters.
+     *
      * The parameters defined here will override the default parameters
      * implemented by the system. If this field is missing from the service
      * config, default system parameters will be used. Default system parameters
      * and names is implementation-dependent.
+     *
      * Example: define api key for all methods
+     *
      *     system_parameters
      *       rules:
      *         - selector: "*"
      *           parameters:
      *             - name: api_key
      *               url_query_parameter: api_key
+     *
+     *
      * Example: define 2 api key names for a specific method.
+     *
      *     system_parameters
      *       rules:
      *         - selector: "/ListShelves"
@@ -1189,6 +1285,7 @@ public com.google.api.SystemParameterRule.Builder getRulesBuilder(int index) {
      *               http_header: Api-Key1
      *             - name: api_key
      *               http_header: Api-Key2
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1206,18 +1303,24 @@ public com.google.api.SystemParameterRuleOrBuilder getRulesOrBuilder(int index) * *
      * Define system parameters.
+     *
      * The parameters defined here will override the default parameters
      * implemented by the system. If this field is missing from the service
      * config, default system parameters will be used. Default system parameters
      * and names is implementation-dependent.
+     *
      * Example: define api key for all methods
+     *
      *     system_parameters
      *       rules:
      *         - selector: "*"
      *           parameters:
      *             - name: api_key
      *               url_query_parameter: api_key
+     *
+     *
      * Example: define 2 api key names for a specific method.
+     *
      *     system_parameters
      *       rules:
      *         - selector: "/ListShelves"
@@ -1226,6 +1329,7 @@ public com.google.api.SystemParameterRuleOrBuilder getRulesOrBuilder(int index)
      *               http_header: Api-Key1
      *             - name: api_key
      *               http_header: Api-Key2
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1244,18 +1348,24 @@ public com.google.api.SystemParameterRuleOrBuilder getRulesOrBuilder(int index) * *
      * Define system parameters.
+     *
      * The parameters defined here will override the default parameters
      * implemented by the system. If this field is missing from the service
      * config, default system parameters will be used. Default system parameters
      * and names is implementation-dependent.
+     *
      * Example: define api key for all methods
+     *
      *     system_parameters
      *       rules:
      *         - selector: "*"
      *           parameters:
      *             - name: api_key
      *               url_query_parameter: api_key
+     *
+     *
      * Example: define 2 api key names for a specific method.
+     *
      *     system_parameters
      *       rules:
      *         - selector: "/ListShelves"
@@ -1264,6 +1374,7 @@ public com.google.api.SystemParameterRuleOrBuilder getRulesOrBuilder(int index)
      *               http_header: Api-Key1
      *             - name: api_key
      *               http_header: Api-Key2
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1278,18 +1389,24 @@ public com.google.api.SystemParameterRule.Builder addRulesBuilder() { * *
      * Define system parameters.
+     *
      * The parameters defined here will override the default parameters
      * implemented by the system. If this field is missing from the service
      * config, default system parameters will be used. Default system parameters
      * and names is implementation-dependent.
+     *
      * Example: define api key for all methods
+     *
      *     system_parameters
      *       rules:
      *         - selector: "*"
      *           parameters:
      *             - name: api_key
      *               url_query_parameter: api_key
+     *
+     *
      * Example: define 2 api key names for a specific method.
+     *
      *     system_parameters
      *       rules:
      *         - selector: "/ListShelves"
@@ -1298,6 +1415,7 @@ public com.google.api.SystemParameterRule.Builder addRulesBuilder() {
      *               http_header: Api-Key1
      *             - name: api_key
      *               http_header: Api-Key2
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1312,18 +1430,24 @@ public com.google.api.SystemParameterRule.Builder addRulesBuilder(int index) { * *
      * Define system parameters.
+     *
      * The parameters defined here will override the default parameters
      * implemented by the system. If this field is missing from the service
      * config, default system parameters will be used. Default system parameters
      * and names is implementation-dependent.
+     *
      * Example: define api key for all methods
+     *
      *     system_parameters
      *       rules:
      *         - selector: "*"
      *           parameters:
      *             - name: api_key
      *               url_query_parameter: api_key
+     *
+     *
      * Example: define 2 api key names for a specific method.
+     *
      *     system_parameters
      *       rules:
      *         - selector: "/ListShelves"
@@ -1332,6 +1456,7 @@ public com.google.api.SystemParameterRule.Builder addRulesBuilder(int index) {
      *               http_header: Api-Key1
      *             - name: api_key
      *               http_header: Api-Key2
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParametersOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParametersOrBuilder.java index a989804140..3781566f93 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParametersOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParametersOrBuilder.java @@ -28,18 +28,24 @@ public interface SystemParametersOrBuilder * *
    * Define system parameters.
+   *
    * The parameters defined here will override the default parameters
    * implemented by the system. If this field is missing from the service
    * config, default system parameters will be used. Default system parameters
    * and names is implementation-dependent.
+   *
    * Example: define api key for all methods
+   *
    *     system_parameters
    *       rules:
    *         - selector: "*"
    *           parameters:
    *             - name: api_key
    *               url_query_parameter: api_key
+   *
+   *
    * Example: define 2 api key names for a specific method.
+   *
    *     system_parameters
    *       rules:
    *         - selector: "/ListShelves"
@@ -48,6 +54,7 @@ public interface SystemParametersOrBuilder
    *               http_header: Api-Key1
    *             - name: api_key
    *               http_header: Api-Key2
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -59,18 +66,24 @@ public interface SystemParametersOrBuilder * *
    * Define system parameters.
+   *
    * The parameters defined here will override the default parameters
    * implemented by the system. If this field is missing from the service
    * config, default system parameters will be used. Default system parameters
    * and names is implementation-dependent.
+   *
    * Example: define api key for all methods
+   *
    *     system_parameters
    *       rules:
    *         - selector: "*"
    *           parameters:
    *             - name: api_key
    *               url_query_parameter: api_key
+   *
+   *
    * Example: define 2 api key names for a specific method.
+   *
    *     system_parameters
    *       rules:
    *         - selector: "/ListShelves"
@@ -79,6 +92,7 @@ public interface SystemParametersOrBuilder
    *               http_header: Api-Key1
    *             - name: api_key
    *               http_header: Api-Key2
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -90,18 +104,24 @@ public interface SystemParametersOrBuilder * *
    * Define system parameters.
+   *
    * The parameters defined here will override the default parameters
    * implemented by the system. If this field is missing from the service
    * config, default system parameters will be used. Default system parameters
    * and names is implementation-dependent.
+   *
    * Example: define api key for all methods
+   *
    *     system_parameters
    *       rules:
    *         - selector: "*"
    *           parameters:
    *             - name: api_key
    *               url_query_parameter: api_key
+   *
+   *
    * Example: define 2 api key names for a specific method.
+   *
    *     system_parameters
    *       rules:
    *         - selector: "/ListShelves"
@@ -110,6 +130,7 @@ public interface SystemParametersOrBuilder
    *               http_header: Api-Key1
    *             - name: api_key
    *               http_header: Api-Key2
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -121,18 +142,24 @@ public interface SystemParametersOrBuilder * *
    * Define system parameters.
+   *
    * The parameters defined here will override the default parameters
    * implemented by the system. If this field is missing from the service
    * config, default system parameters will be used. Default system parameters
    * and names is implementation-dependent.
+   *
    * Example: define api key for all methods
+   *
    *     system_parameters
    *       rules:
    *         - selector: "*"
    *           parameters:
    *             - name: api_key
    *               url_query_parameter: api_key
+   *
+   *
    * Example: define 2 api key names for a specific method.
+   *
    *     system_parameters
    *       rules:
    *         - selector: "/ListShelves"
@@ -141,6 +168,7 @@ public interface SystemParametersOrBuilder
    *               http_header: Api-Key1
    *             - name: api_key
    *               http_header: Api-Key2
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -152,18 +180,24 @@ public interface SystemParametersOrBuilder * *
    * Define system parameters.
+   *
    * The parameters defined here will override the default parameters
    * implemented by the system. If this field is missing from the service
    * config, default system parameters will be used. Default system parameters
    * and names is implementation-dependent.
+   *
    * Example: define api key for all methods
+   *
    *     system_parameters
    *       rules:
    *         - selector: "*"
    *           parameters:
    *             - name: api_key
    *               url_query_parameter: api_key
+   *
+   *
    * Example: define 2 api key names for a specific method.
+   *
    *     system_parameters
    *       rules:
    *         - selector: "/ListShelves"
@@ -172,6 +206,7 @@ public interface SystemParametersOrBuilder
    *               http_header: Api-Key1
    *             - name: api_key
    *               http_header: Api-Key2
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Usage.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Usage.java index 1fcbcf7751..e68991b95f 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Usage.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Usage.java @@ -38,7 +38,7 @@ private Usage(com.google.protobuf.GeneratedMessageV3.Builder builder) { } private Usage() { - requirements_ = com.google.protobuf.LazyStringArrayList.EMPTY; + requirements_ = com.google.protobuf.LazyStringArrayList.emptyList(); rules_ = java.util.Collections.emptyList(); producerNotificationChannel_ = ""; } @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Usage(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.UsageProto.internal_static_google_api_Usage_descriptor; } @@ -69,7 +64,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int REQUIREMENTS_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList requirements_; + private com.google.protobuf.LazyStringArrayList requirements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -77,6 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form <service.name>/<requirement-id>; * for example 'serviceusage.googleapis.com/billing-enabled'. + * * For Google APIs, a Terms of Service requirement must be included here. * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". * Other Google APIs should include @@ -98,6 +95,7 @@ public com.google.protobuf.ProtocolStringList getRequirementsList() { * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form <service.name>/<requirement-id>; * for example 'serviceusage.googleapis.com/billing-enabled'. + * * For Google APIs, a Terms of Service requirement must be included here. * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". * Other Google APIs should include @@ -119,6 +117,7 @@ public int getRequirementsCount() { * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form <service.name>/<requirement-id>; * for example 'serviceusage.googleapis.com/billing-enabled'. + * * For Google APIs, a Terms of Service requirement must be included here. * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". * Other Google APIs should include @@ -141,6 +140,7 @@ public java.lang.String getRequirements(int index) { * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form <service.name>/<requirement-id>; * for example 'serviceusage.googleapis.com/billing-enabled'. + * * For Google APIs, a Terms of Service requirement must be included here. * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". * Other Google APIs should include @@ -166,6 +166,7 @@ public com.google.protobuf.ByteString getRequirementsBytes(int index) { * *
    * A list of usage rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -180,6 +181,7 @@ public java.util.List getRulesList() { * *
    * A list of usage rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -194,6 +196,7 @@ public java.util.List getRulesOrBui * *
    * A list of usage rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -208,6 +211,7 @@ public int getRulesCount() { * *
    * A list of usage rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -222,6 +226,7 @@ public com.google.api.UsageRule getRules(int index) { * *
    * A list of usage rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -242,6 +247,7 @@ public com.google.api.UsageRuleOrBuilder getRulesOrBuilder(int index) { *
    * The full resource name of a channel used for sending notifications to the
    * service producer.
+   *
    * Google Service Management currently only supports
    * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
    * channel. To use Google Cloud Pub/Sub as the channel, this must be the name
@@ -271,6 +277,7 @@ public java.lang.String getProducerNotificationChannel() {
    * 
    * The full resource name of a channel used for sending notifications to the
    * service producer.
+   *
    * Google Service Management currently only supports
    * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
    * channel. To use Google Cloud Pub/Sub as the channel, this must be the name
@@ -517,8 +524,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
-      requirements_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-      bitField0_ = (bitField0_ & ~0x00000001);
+      requirements_ = com.google.protobuf.LazyStringArrayList.emptyList();
       if (rulesBuilder_ == null) {
         rules_ = java.util.Collections.emptyList();
       } else {
@@ -561,11 +567,6 @@ public com.google.api.Usage buildPartial() {
     }
 
     private void buildPartialRepeatedFields(com.google.api.Usage result) {
-      if (((bitField0_ & 0x00000001) != 0)) {
-        requirements_ = requirements_.getUnmodifiableView();
-        bitField0_ = (bitField0_ & ~0x00000001);
-      }
-      result.requirements_ = requirements_;
       if (rulesBuilder_ == null) {
         if (((bitField0_ & 0x00000002) != 0)) {
           rules_ = java.util.Collections.unmodifiableList(rules_);
@@ -579,44 +580,15 @@ private void buildPartialRepeatedFields(com.google.api.Usage result) {
 
     private void buildPartial0(com.google.api.Usage result) {
       int from_bitField0_ = bitField0_;
+      if (((from_bitField0_ & 0x00000001) != 0)) {
+        requirements_.makeImmutable();
+        result.requirements_ = requirements_;
+      }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.producerNotificationChannel_ = producerNotificationChannel_;
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.Usage) {
@@ -632,7 +604,7 @@ public Builder mergeFrom(com.google.api.Usage other) {
       if (!other.requirements_.isEmpty()) {
         if (requirements_.isEmpty()) {
           requirements_ = other.requirements_;
-          bitField0_ = (bitField0_ & ~0x00000001);
+          bitField0_ |= 0x00000001;
         } else {
           ensureRequirementsIsMutable();
           requirements_.addAll(other.requirements_);
@@ -741,14 +713,14 @@ public Builder mergeFrom(
 
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList requirements_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringArrayList requirements_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
 
     private void ensureRequirementsIsMutable() {
-      if (!((bitField0_ & 0x00000001) != 0)) {
+      if (!requirements_.isModifiable()) {
         requirements_ = new com.google.protobuf.LazyStringArrayList(requirements_);
-        bitField0_ |= 0x00000001;
       }
+      bitField0_ |= 0x00000001;
     }
     /**
      *
@@ -757,6 +729,7 @@ private void ensureRequirementsIsMutable() {
      * Requirements that must be satisfied before a consumer project can use the
      * service. Each requirement is of the form <service.name>/<requirement-id>;
      * for example 'serviceusage.googleapis.com/billing-enabled'.
+     *
      * For Google APIs, a Terms of Service requirement must be included here.
      * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
      * Other Google APIs should include
@@ -769,7 +742,8 @@ private void ensureRequirementsIsMutable() {
      * @return A list containing the requirements.
      */
     public com.google.protobuf.ProtocolStringList getRequirementsList() {
-      return requirements_.getUnmodifiableView();
+      requirements_.makeImmutable();
+      return requirements_;
     }
     /**
      *
@@ -778,6 +752,7 @@ public com.google.protobuf.ProtocolStringList getRequirementsList() {
      * Requirements that must be satisfied before a consumer project can use the
      * service. Each requirement is of the form <service.name>/<requirement-id>;
      * for example 'serviceusage.googleapis.com/billing-enabled'.
+     *
      * For Google APIs, a Terms of Service requirement must be included here.
      * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
      * Other Google APIs should include
@@ -799,6 +774,7 @@ public int getRequirementsCount() {
      * Requirements that must be satisfied before a consumer project can use the
      * service. Each requirement is of the form <service.name>/<requirement-id>;
      * for example 'serviceusage.googleapis.com/billing-enabled'.
+     *
      * For Google APIs, a Terms of Service requirement must be included here.
      * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
      * Other Google APIs should include
@@ -821,6 +797,7 @@ public java.lang.String getRequirements(int index) {
      * Requirements that must be satisfied before a consumer project can use the
      * service. Each requirement is of the form <service.name>/<requirement-id>;
      * for example 'serviceusage.googleapis.com/billing-enabled'.
+     *
      * For Google APIs, a Terms of Service requirement must be included here.
      * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
      * Other Google APIs should include
@@ -843,6 +820,7 @@ public com.google.protobuf.ByteString getRequirementsBytes(int index) {
      * Requirements that must be satisfied before a consumer project can use the
      * service. Each requirement is of the form <service.name>/<requirement-id>;
      * for example 'serviceusage.googleapis.com/billing-enabled'.
+     *
      * For Google APIs, a Terms of Service requirement must be included here.
      * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
      * Other Google APIs should include
@@ -862,6 +840,7 @@ public Builder setRequirements(int index, java.lang.String value) {
       }
       ensureRequirementsIsMutable();
       requirements_.set(index, value);
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -872,6 +851,7 @@ public Builder setRequirements(int index, java.lang.String value) {
      * Requirements that must be satisfied before a consumer project can use the
      * service. Each requirement is of the form <service.name>/<requirement-id>;
      * for example 'serviceusage.googleapis.com/billing-enabled'.
+     *
      * For Google APIs, a Terms of Service requirement must be included here.
      * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
      * Other Google APIs should include
@@ -890,6 +870,7 @@ public Builder addRequirements(java.lang.String value) {
       }
       ensureRequirementsIsMutable();
       requirements_.add(value);
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -900,6 +881,7 @@ public Builder addRequirements(java.lang.String value) {
      * Requirements that must be satisfied before a consumer project can use the
      * service. Each requirement is of the form <service.name>/<requirement-id>;
      * for example 'serviceusage.googleapis.com/billing-enabled'.
+     *
      * For Google APIs, a Terms of Service requirement must be included here.
      * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
      * Other Google APIs should include
@@ -915,6 +897,7 @@ public Builder addRequirements(java.lang.String value) {
     public Builder addAllRequirements(java.lang.Iterable values) {
       ensureRequirementsIsMutable();
       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requirements_);
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -925,6 +908,7 @@ public Builder addAllRequirements(java.lang.Iterable values) {
      * Requirements that must be satisfied before a consumer project can use the
      * service. Each requirement is of the form <service.name>/<requirement-id>;
      * for example 'serviceusage.googleapis.com/billing-enabled'.
+     *
      * For Google APIs, a Terms of Service requirement must be included here.
      * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
      * Other Google APIs should include
@@ -937,8 +921,9 @@ public Builder addAllRequirements(java.lang.Iterable values) {
      * @return This builder for chaining.
      */
     public Builder clearRequirements() {
-      requirements_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      requirements_ = com.google.protobuf.LazyStringArrayList.emptyList();
       bitField0_ = (bitField0_ & ~0x00000001);
+      ;
       onChanged();
       return this;
     }
@@ -949,6 +934,7 @@ public Builder clearRequirements() {
      * Requirements that must be satisfied before a consumer project can use the
      * service. Each requirement is of the form <service.name>/<requirement-id>;
      * for example 'serviceusage.googleapis.com/billing-enabled'.
+     *
      * For Google APIs, a Terms of Service requirement must be included here.
      * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
      * Other Google APIs should include
@@ -968,6 +954,7 @@ public Builder addRequirementsBytes(com.google.protobuf.ByteString value) {
       checkByteStringIsUtf8(value);
       ensureRequirementsIsMutable();
       requirements_.add(value);
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -992,6 +979,7 @@ private void ensureRulesIsMutable() {
      *
      * 
      * A list of usage rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1009,6 +997,7 @@ public java.util.List getRulesList() { * *
      * A list of usage rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1026,6 +1015,7 @@ public int getRulesCount() { * *
      * A list of usage rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1043,6 +1033,7 @@ public com.google.api.UsageRule getRules(int index) { * *
      * A list of usage rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1066,6 +1057,7 @@ public Builder setRules(int index, com.google.api.UsageRule value) { * *
      * A list of usage rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1086,6 +1078,7 @@ public Builder setRules(int index, com.google.api.UsageRule.Builder builderForVa * *
      * A list of usage rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1109,6 +1102,7 @@ public Builder addRules(com.google.api.UsageRule value) { * *
      * A list of usage rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1132,6 +1126,7 @@ public Builder addRules(int index, com.google.api.UsageRule value) { * *
      * A list of usage rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1152,6 +1147,7 @@ public Builder addRules(com.google.api.UsageRule.Builder builderForValue) { * *
      * A list of usage rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1172,6 +1168,7 @@ public Builder addRules(int index, com.google.api.UsageRule.Builder builderForVa * *
      * A list of usage rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1192,6 +1189,7 @@ public Builder addAllRules(java.lang.Iterable * A list of usage rules that apply to individual API methods. + * * **NOTE:** All service configuration rules follow "last one wins" order. *
* @@ -1212,6 +1210,7 @@ public Builder clearRules() { * *
      * A list of usage rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1232,6 +1231,7 @@ public Builder removeRules(int index) { * *
      * A list of usage rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1245,6 +1245,7 @@ public com.google.api.UsageRule.Builder getRulesBuilder(int index) { * *
      * A list of usage rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1262,6 +1263,7 @@ public com.google.api.UsageRuleOrBuilder getRulesOrBuilder(int index) { * *
      * A list of usage rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1279,6 +1281,7 @@ public java.util.List getRulesOrBui * *
      * A list of usage rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1292,6 +1295,7 @@ public com.google.api.UsageRule.Builder addRulesBuilder() { * *
      * A list of usage rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1306,6 +1310,7 @@ public com.google.api.UsageRule.Builder addRulesBuilder(int index) { * *
      * A list of usage rules that apply to individual API methods.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -1339,6 +1344,7 @@ public java.util.List getRulesBuilderList() { *
      * The full resource name of a channel used for sending notifications to the
      * service producer.
+     *
      * Google Service Management currently only supports
      * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
      * channel. To use Google Cloud Pub/Sub as the channel, this must be the name
@@ -1367,6 +1373,7 @@ public java.lang.String getProducerNotificationChannel() {
      * 
      * The full resource name of a channel used for sending notifications to the
      * service producer.
+     *
      * Google Service Management currently only supports
      * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
      * channel. To use Google Cloud Pub/Sub as the channel, this must be the name
@@ -1395,6 +1402,7 @@ public com.google.protobuf.ByteString getProducerNotificationChannelBytes() {
      * 
      * The full resource name of a channel used for sending notifications to the
      * service producer.
+     *
      * Google Service Management currently only supports
      * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
      * channel. To use Google Cloud Pub/Sub as the channel, this must be the name
@@ -1422,6 +1430,7 @@ public Builder setProducerNotificationChannel(java.lang.String value) {
      * 
      * The full resource name of a channel used for sending notifications to the
      * service producer.
+     *
      * Google Service Management currently only supports
      * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
      * channel. To use Google Cloud Pub/Sub as the channel, this must be the name
@@ -1445,6 +1454,7 @@ public Builder clearProducerNotificationChannel() {
      * 
      * The full resource name of a channel used for sending notifications to the
      * service producer.
+     *
      * Google Service Management currently only supports
      * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
      * channel. To use Google Cloud Pub/Sub as the channel, this must be the name
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageOrBuilder.java
index ff0c52dd41..d653c034c2 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageOrBuilder.java
@@ -30,6 +30,7 @@ public interface UsageOrBuilder
    * Requirements that must be satisfied before a consumer project can use the
    * service. Each requirement is of the form <service.name>/<requirement-id>;
    * for example 'serviceusage.googleapis.com/billing-enabled'.
+   *
    * For Google APIs, a Terms of Service requirement must be included here.
    * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
    * Other Google APIs should include
@@ -49,6 +50,7 @@ public interface UsageOrBuilder
    * Requirements that must be satisfied before a consumer project can use the
    * service. Each requirement is of the form <service.name>/<requirement-id>;
    * for example 'serviceusage.googleapis.com/billing-enabled'.
+   *
    * For Google APIs, a Terms of Service requirement must be included here.
    * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
    * Other Google APIs should include
@@ -68,6 +70,7 @@ public interface UsageOrBuilder
    * Requirements that must be satisfied before a consumer project can use the
    * service. Each requirement is of the form <service.name>/<requirement-id>;
    * for example 'serviceusage.googleapis.com/billing-enabled'.
+   *
    * For Google APIs, a Terms of Service requirement must be included here.
    * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
    * Other Google APIs should include
@@ -88,6 +91,7 @@ public interface UsageOrBuilder
    * Requirements that must be satisfied before a consumer project can use the
    * service. Each requirement is of the form <service.name>/<requirement-id>;
    * for example 'serviceusage.googleapis.com/billing-enabled'.
+   *
    * For Google APIs, a Terms of Service requirement must be included here.
    * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
    * Other Google APIs should include
@@ -107,6 +111,7 @@ public interface UsageOrBuilder
    *
    * 
    * A list of usage rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -118,6 +123,7 @@ public interface UsageOrBuilder * *
    * A list of usage rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -129,6 +135,7 @@ public interface UsageOrBuilder * *
    * A list of usage rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -140,6 +147,7 @@ public interface UsageOrBuilder * *
    * A list of usage rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -151,6 +159,7 @@ public interface UsageOrBuilder * *
    * A list of usage rules that apply to individual API methods.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -164,6 +173,7 @@ public interface UsageOrBuilder *
    * The full resource name of a channel used for sending notifications to the
    * service producer.
+   *
    * Google Service Management currently only supports
    * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
    * channel. To use Google Cloud Pub/Sub as the channel, this must be the name
@@ -182,6 +192,7 @@ public interface UsageOrBuilder
    * 
    * The full resource name of a channel used for sending notifications to the
    * service producer.
+   *
    * Google Service Management currently only supports
    * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
    * channel. To use Google Cloud Pub/Sub as the channel, this must be the name
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRule.java
index 8cd6f28d51..0b5159bde1 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRule.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRule.java
@@ -23,19 +23,26 @@
  *
  * 
  * Usage configuration rules for the service.
+ *
  * NOTE: Under development.
+ *
+ *
  * Use this rule to configure unregistered calls for the service. Unregistered
  * calls are calls that do not contain consumer project identity.
  * (Example: calls that do not contain an API key).
  * By default, API methods do not allow unregistered calls, and each method call
  * must be identified by a consumer project identity. Use this rule to
  * allow/disallow unregistered calls.
+ *
  * Example of an API that wants to allow unregistered calls for entire service.
+ *
  *     usage:
  *       rules:
  *       - selector: "*"
  *         allow_unregistered_calls: true
+ *
  * Example of a method that wants to allow unregistered calls.
+ *
  *     usage:
  *       rules:
  *       - selector: "google.example.library.v1.LibraryService.CreateBook"
@@ -64,11 +71,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UsageRule();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.UsageProto.internal_static_google_api_UsageRule_descriptor;
   }
@@ -91,6 +93,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
    * Selects the methods to which this rule applies. Use '*' to indicate all
    * methods in all APIs.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -117,6 +120,7 @@ public java.lang.String getSelector() { *
    * Selects the methods to which this rule applies. Use '*' to indicate all
    * methods in all APIs.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -358,19 +362,26 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Usage configuration rules for the service.
+   *
    * NOTE: Under development.
+   *
+   *
    * Use this rule to configure unregistered calls for the service. Unregistered
    * calls are calls that do not contain consumer project identity.
    * (Example: calls that do not contain an API key).
    * By default, API methods do not allow unregistered calls, and each method call
    * must be identified by a consumer project identity. Use this rule to
    * allow/disallow unregistered calls.
+   *
    * Example of an API that wants to allow unregistered calls for entire service.
+   *
    *     usage:
    *       rules:
    *       - selector: "*"
    *         allow_unregistered_calls: true
+   *
    * Example of a method that wants to allow unregistered calls.
+   *
    *     usage:
    *       rules:
    *       - selector: "google.example.library.v1.LibraryService.CreateBook"
@@ -454,39 +465,6 @@ private void buildPartial0(com.google.api.UsageRule result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.api.UsageRule) {
@@ -580,6 +558,7 @@ public Builder mergeFrom(
      * 
      * Selects the methods to which this rule applies. Use '*' to indicate all
      * methods in all APIs.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -605,6 +584,7 @@ public java.lang.String getSelector() { *
      * Selects the methods to which this rule applies. Use '*' to indicate all
      * methods in all APIs.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -630,6 +610,7 @@ public com.google.protobuf.ByteString getSelectorBytes() { *
      * Selects the methods to which this rule applies. Use '*' to indicate all
      * methods in all APIs.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -654,6 +635,7 @@ public Builder setSelector(java.lang.String value) { *
      * Selects the methods to which this rule applies. Use '*' to indicate all
      * methods in all APIs.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -674,6 +656,7 @@ public Builder clearSelector() { *
      * Selects the methods to which this rule applies. Use '*' to indicate all
      * methods in all APIs.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRuleOrBuilder.java index c283341880..77caf516d2 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRuleOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRuleOrBuilder.java @@ -29,6 +29,7 @@ public interface UsageRuleOrBuilder *
    * Selects the methods to which this rule applies. Use '*' to indicate all
    * methods in all APIs.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -44,6 +45,7 @@ public interface UsageRuleOrBuilder *
    * Selects the methods to which this rule applies. Use '*' to indicate all
    * methods in all APIs.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Visibility.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Visibility.java index e74061dbf2..3c7e0137f8 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Visibility.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Visibility.java @@ -26,18 +26,23 @@ * such as whether an application can call a visibility-restricted method. * The restriction is expressed by applying visibility labels on service * elements. The visibility labels are elsewhere linked to service consumers. + * * A service can define multiple visibility labels, but a service consumer * should be granted at most one visibility label. Multiple visibility * labels for a single service consumer are not supported. + * * If an element and all its parents have no visibility label, its visibility * is unconditionally granted. + * * Example: + * * visibility: * rules: * - selector: google.calendar.Calendar.EnhancedSearch * restriction: PREVIEW * - selector: google.calendar.Calendar.Delegate * restriction: INTERNAL + * * Here, all methods are publicly visible except for the restricted methods * EnhancedSearch and Delegate. *
@@ -64,11 +69,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Visibility(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.VisibilityProto.internal_static_google_api_Visibility_descriptor; } @@ -90,6 +90,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * A list of visibility rules that apply to individual API elements.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -104,6 +105,7 @@ public java.util.List getRulesList() { * *
    * A list of visibility rules that apply to individual API elements.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -118,6 +120,7 @@ public java.util.List getRules * *
    * A list of visibility rules that apply to individual API elements.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -132,6 +135,7 @@ public int getRulesCount() { * *
    * A list of visibility rules that apply to individual API elements.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -146,6 +150,7 @@ public com.google.api.VisibilityRule getRules(int index) { * *
    * A list of visibility rules that apply to individual API elements.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -323,18 +328,23 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * such as whether an application can call a visibility-restricted method. * The restriction is expressed by applying visibility labels on service * elements. The visibility labels are elsewhere linked to service consumers. + * * A service can define multiple visibility labels, but a service consumer * should be granted at most one visibility label. Multiple visibility * labels for a single service consumer are not supported. + * * If an element and all its parents have no visibility label, its visibility * is unconditionally granted. + * * Example: + * * visibility: * rules: * - selector: google.calendar.Calendar.EnhancedSearch * restriction: PREVIEW * - selector: google.calendar.Calendar.Delegate * restriction: INTERNAL + * * Here, all methods are publicly visible except for the restricted methods * EnhancedSearch and Delegate. *
@@ -424,39 +434,6 @@ private void buildPartial0(com.google.api.Visibility result) { int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.Visibility) { @@ -574,6 +551,7 @@ private void ensureRulesIsMutable() { * *
      * A list of visibility rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -591,6 +569,7 @@ public java.util.List getRulesList() { * *
      * A list of visibility rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -608,6 +587,7 @@ public int getRulesCount() { * *
      * A list of visibility rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -625,6 +605,7 @@ public com.google.api.VisibilityRule getRules(int index) { * *
      * A list of visibility rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -648,6 +629,7 @@ public Builder setRules(int index, com.google.api.VisibilityRule value) { * *
      * A list of visibility rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -668,6 +650,7 @@ public Builder setRules(int index, com.google.api.VisibilityRule.Builder builder * *
      * A list of visibility rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -691,6 +674,7 @@ public Builder addRules(com.google.api.VisibilityRule value) { * *
      * A list of visibility rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -714,6 +698,7 @@ public Builder addRules(int index, com.google.api.VisibilityRule value) { * *
      * A list of visibility rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -734,6 +719,7 @@ public Builder addRules(com.google.api.VisibilityRule.Builder builderForValue) { * *
      * A list of visibility rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -754,6 +740,7 @@ public Builder addRules(int index, com.google.api.VisibilityRule.Builder builder * *
      * A list of visibility rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -774,6 +761,7 @@ public Builder addAllRules(java.lang.Iterable * A list of visibility rules that apply to individual API elements. + * * **NOTE:** All service configuration rules follow "last one wins" order. *
* @@ -794,6 +782,7 @@ public Builder clearRules() { * *
      * A list of visibility rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -814,6 +803,7 @@ public Builder removeRules(int index) { * *
      * A list of visibility rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -827,6 +817,7 @@ public com.google.api.VisibilityRule.Builder getRulesBuilder(int index) { * *
      * A list of visibility rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -844,6 +835,7 @@ public com.google.api.VisibilityRuleOrBuilder getRulesOrBuilder(int index) { * *
      * A list of visibility rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -862,6 +854,7 @@ public com.google.api.VisibilityRuleOrBuilder getRulesOrBuilder(int index) { * *
      * A list of visibility rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -875,6 +868,7 @@ public com.google.api.VisibilityRule.Builder addRulesBuilder() { * *
      * A list of visibility rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* @@ -889,6 +883,7 @@ public com.google.api.VisibilityRule.Builder addRulesBuilder(int index) { * *
      * A list of visibility rules that apply to individual API elements.
+     *
      * **NOTE:** All service configuration rules follow "last one wins" order.
      * 
* diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityOrBuilder.java index 40544aa4bb..658f91e87d 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityOrBuilder.java @@ -28,6 +28,7 @@ public interface VisibilityOrBuilder * *
    * A list of visibility rules that apply to individual API elements.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -39,6 +40,7 @@ public interface VisibilityOrBuilder * *
    * A list of visibility rules that apply to individual API elements.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -50,6 +52,7 @@ public interface VisibilityOrBuilder * *
    * A list of visibility rules that apply to individual API elements.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -61,6 +64,7 @@ public interface VisibilityOrBuilder * *
    * A list of visibility rules that apply to individual API elements.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* @@ -72,6 +76,7 @@ public interface VisibilityOrBuilder * *
    * A list of visibility rules that apply to individual API elements.
+   *
    * **NOTE:** All service configuration rules follow "last one wins" order.
    * 
* diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRule.java index e86d808534..9b21ecb972 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRule.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRule.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VisibilityRule(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.VisibilityProto.internal_static_google_api_VisibilityRule_descriptor; } @@ -76,6 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Selects methods, messages, fields, enums, etc. to which this rule applies.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -101,6 +97,7 @@ public java.lang.String getSelector() { * *
    * Selects methods, messages, fields, enums, etc. to which this rule applies.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -132,13 +129,17 @@ public com.google.protobuf.ByteString getSelectorBytes() { *
    * A comma-separated list of visibility labels that apply to the `selector`.
    * Any of the listed labels can be used to grant the visibility.
+   *
    * If a rule has multiple labels, removing one of the labels but not all of
    * them can break clients.
+   *
    * Example:
+   *
    *     visibility:
    *       rules:
    *       - selector: google.calendar.Calendar.EnhancedSearch
    *         restriction: INTERNAL, PREVIEW
+   *
    * Removing INTERNAL from this restriction will break clients that rely on
    * this method and only had access to it through INTERNAL.
    * 
@@ -165,13 +166,17 @@ public java.lang.String getRestriction() { *
    * A comma-separated list of visibility labels that apply to the `selector`.
    * Any of the listed labels can be used to grant the visibility.
+   *
    * If a rule has multiple labels, removing one of the labels but not all of
    * them can break clients.
+   *
    * Example:
+   *
    *     visibility:
    *       rules:
    *       - selector: google.calendar.Calendar.EnhancedSearch
    *         restriction: INTERNAL, PREVIEW
+   *
    * Removing INTERNAL from this restriction will break clients that rely on
    * this method and only had access to it through INTERNAL.
    * 
@@ -441,39 +446,6 @@ private void buildPartial0(com.google.api.VisibilityRule result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.VisibilityRule) { @@ -559,6 +531,7 @@ public Builder mergeFrom( * *
      * Selects methods, messages, fields, enums, etc. to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -583,6 +556,7 @@ public java.lang.String getSelector() { * *
      * Selects methods, messages, fields, enums, etc. to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -607,6 +581,7 @@ public com.google.protobuf.ByteString getSelectorBytes() { * *
      * Selects methods, messages, fields, enums, etc. to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -630,6 +605,7 @@ public Builder setSelector(java.lang.String value) { * *
      * Selects methods, messages, fields, enums, etc. to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -649,6 +625,7 @@ public Builder clearSelector() { * *
      * Selects methods, messages, fields, enums, etc. to which this rule applies.
+     *
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax
      * details.
      * 
@@ -676,13 +653,17 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) { *
      * A comma-separated list of visibility labels that apply to the `selector`.
      * Any of the listed labels can be used to grant the visibility.
+     *
      * If a rule has multiple labels, removing one of the labels but not all of
      * them can break clients.
+     *
      * Example:
+     *
      *     visibility:
      *       rules:
      *       - selector: google.calendar.Calendar.EnhancedSearch
      *         restriction: INTERNAL, PREVIEW
+     *
      * Removing INTERNAL from this restriction will break clients that rely on
      * this method and only had access to it through INTERNAL.
      * 
@@ -708,13 +689,17 @@ public java.lang.String getRestriction() { *
      * A comma-separated list of visibility labels that apply to the `selector`.
      * Any of the listed labels can be used to grant the visibility.
+     *
      * If a rule has multiple labels, removing one of the labels but not all of
      * them can break clients.
+     *
      * Example:
+     *
      *     visibility:
      *       rules:
      *       - selector: google.calendar.Calendar.EnhancedSearch
      *         restriction: INTERNAL, PREVIEW
+     *
      * Removing INTERNAL from this restriction will break clients that rely on
      * this method and only had access to it through INTERNAL.
      * 
@@ -740,13 +725,17 @@ public com.google.protobuf.ByteString getRestrictionBytes() { *
      * A comma-separated list of visibility labels that apply to the `selector`.
      * Any of the listed labels can be used to grant the visibility.
+     *
      * If a rule has multiple labels, removing one of the labels but not all of
      * them can break clients.
+     *
      * Example:
+     *
      *     visibility:
      *       rules:
      *       - selector: google.calendar.Calendar.EnhancedSearch
      *         restriction: INTERNAL, PREVIEW
+     *
      * Removing INTERNAL from this restriction will break clients that rely on
      * this method and only had access to it through INTERNAL.
      * 
@@ -771,13 +760,17 @@ public Builder setRestriction(java.lang.String value) { *
      * A comma-separated list of visibility labels that apply to the `selector`.
      * Any of the listed labels can be used to grant the visibility.
+     *
      * If a rule has multiple labels, removing one of the labels but not all of
      * them can break clients.
+     *
      * Example:
+     *
      *     visibility:
      *       rules:
      *       - selector: google.calendar.Calendar.EnhancedSearch
      *         restriction: INTERNAL, PREVIEW
+     *
      * Removing INTERNAL from this restriction will break clients that rely on
      * this method and only had access to it through INTERNAL.
      * 
@@ -798,13 +791,17 @@ public Builder clearRestriction() { *
      * A comma-separated list of visibility labels that apply to the `selector`.
      * Any of the listed labels can be used to grant the visibility.
+     *
      * If a rule has multiple labels, removing one of the labels but not all of
      * them can break clients.
+     *
      * Example:
+     *
      *     visibility:
      *       rules:
      *       - selector: google.calendar.Calendar.EnhancedSearch
      *         restriction: INTERNAL, PREVIEW
+     *
      * Removing INTERNAL from this restriction will break clients that rely on
      * this method and only had access to it through INTERNAL.
      * 
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRuleOrBuilder.java index 8321e03e4f..575ab96a82 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRuleOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRuleOrBuilder.java @@ -28,6 +28,7 @@ public interface VisibilityRuleOrBuilder * *
    * Selects methods, messages, fields, enums, etc. to which this rule applies.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -42,6 +43,7 @@ public interface VisibilityRuleOrBuilder * *
    * Selects methods, messages, fields, enums, etc. to which this rule applies.
+   *
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax
    * details.
    * 
@@ -58,13 +60,17 @@ public interface VisibilityRuleOrBuilder *
    * A comma-separated list of visibility labels that apply to the `selector`.
    * Any of the listed labels can be used to grant the visibility.
+   *
    * If a rule has multiple labels, removing one of the labels but not all of
    * them can break clients.
+   *
    * Example:
+   *
    *     visibility:
    *       rules:
    *       - selector: google.calendar.Calendar.EnhancedSearch
    *         restriction: INTERNAL, PREVIEW
+   *
    * Removing INTERNAL from this restriction will break clients that rely on
    * this method and only had access to it through INTERNAL.
    * 
@@ -80,13 +86,17 @@ public interface VisibilityRuleOrBuilder *
    * A comma-separated list of visibility labels that apply to the `selector`.
    * Any of the listed labels can be used to grant the visibility.
+   *
    * If a rule has multiple labels, removing one of the labels but not all of
    * them can break clients.
+   *
    * Example:
+   *
    *     visibility:
    *       rules:
    *       - selector: google.calendar.Calendar.EnhancedSearch
    *         restriction: INTERNAL, PREVIEW
+   *
    * Removing INTERNAL from this restriction will break clients that rely on
    * this method and only had access to it through INTERNAL.
    * 
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLog.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLog.java index 32b9812d7b..ecdf91f612 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLog.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLog.java @@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AuditLog(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.audit.AuditLogProto .internal_static_google_cloud_audit_AuditLog_descriptor; @@ -133,6 +128,7 @@ public com.google.protobuf.ByteString getServiceNameBytes() { * The name of the service method or operation. * For API calls, this should be the name of the API method. * For example, + * * "google.cloud.bigquery.v2.TableService.InsertTable" * "google.logging.v2.ConfigServiceV2.CreateSink" *
@@ -160,6 +156,7 @@ public java.lang.String getMethodName() { * The name of the service method or operation. * For API calls, this should be the name of the API method. * For example, + * * "google.cloud.bigquery.v2.TableService.InsertTable" * "google.logging.v2.ConfigServiceV2.CreateSink" *
@@ -192,6 +189,7 @@ public com.google.protobuf.ByteString getMethodNameBytes() { * The resource or collection that is the target of the operation. * The name is a scheme-less URI, not including the API service name. * For example: + * * "projects/PROJECT_ID/zones/us-central1-a/instances" * "projects/PROJECT_ID/datasets/DATASET_ID" *
@@ -219,6 +217,7 @@ public java.lang.String getResourceName() { * The resource or collection that is the target of the operation. * The name is a scheme-less URI, not including the API service name. * For example: + * * "projects/PROJECT_ID/zones/us-central1-a/instances" * "projects/PROJECT_ID/datasets/DATASET_ID" *
@@ -1432,39 +1431,6 @@ private void buildPartial0(com.google.cloud.audit.AuditLog result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.audit.AuditLog) { @@ -1817,6 +1783,7 @@ public Builder setServiceNameBytes(com.google.protobuf.ByteString value) { * The name of the service method or operation. * For API calls, this should be the name of the API method. * For example, + * * "google.cloud.bigquery.v2.TableService.InsertTable" * "google.logging.v2.ConfigServiceV2.CreateSink" *
@@ -1843,6 +1810,7 @@ public java.lang.String getMethodName() { * The name of the service method or operation. * For API calls, this should be the name of the API method. * For example, + * * "google.cloud.bigquery.v2.TableService.InsertTable" * "google.logging.v2.ConfigServiceV2.CreateSink" *
@@ -1869,6 +1837,7 @@ public com.google.protobuf.ByteString getMethodNameBytes() { * The name of the service method or operation. * For API calls, this should be the name of the API method. * For example, + * * "google.cloud.bigquery.v2.TableService.InsertTable" * "google.logging.v2.ConfigServiceV2.CreateSink" *
@@ -1894,6 +1863,7 @@ public Builder setMethodName(java.lang.String value) { * The name of the service method or operation. * For API calls, this should be the name of the API method. * For example, + * * "google.cloud.bigquery.v2.TableService.InsertTable" * "google.logging.v2.ConfigServiceV2.CreateSink" *
@@ -1915,6 +1885,7 @@ public Builder clearMethodName() { * The name of the service method or operation. * For API calls, this should be the name of the API method. * For example, + * * "google.cloud.bigquery.v2.TableService.InsertTable" * "google.logging.v2.ConfigServiceV2.CreateSink" *
@@ -1943,6 +1914,7 @@ public Builder setMethodNameBytes(com.google.protobuf.ByteString value) { * The resource or collection that is the target of the operation. * The name is a scheme-less URI, not including the API service name. * For example: + * * "projects/PROJECT_ID/zones/us-central1-a/instances" * "projects/PROJECT_ID/datasets/DATASET_ID" * @@ -1969,6 +1941,7 @@ public java.lang.String getResourceName() { * The resource or collection that is the target of the operation. * The name is a scheme-less URI, not including the API service name. * For example: + * * "projects/PROJECT_ID/zones/us-central1-a/instances" * "projects/PROJECT_ID/datasets/DATASET_ID" * @@ -1995,6 +1968,7 @@ public com.google.protobuf.ByteString getResourceNameBytes() { * The resource or collection that is the target of the operation. * The name is a scheme-less URI, not including the API service name. * For example: + * * "projects/PROJECT_ID/zones/us-central1-a/instances" * "projects/PROJECT_ID/datasets/DATASET_ID" * @@ -2020,6 +1994,7 @@ public Builder setResourceName(java.lang.String value) { * The resource or collection that is the target of the operation. * The name is a scheme-less URI, not including the API service name. * For example: + * * "projects/PROJECT_ID/zones/us-central1-a/instances" * "projects/PROJECT_ID/datasets/DATASET_ID" * @@ -2041,6 +2016,7 @@ public Builder clearResourceName() { * The resource or collection that is the target of the operation. * The name is a scheme-less URI, not including the API service name. * For example: + * * "projects/PROJECT_ID/zones/us-central1-a/instances" * "projects/PROJECT_ID/datasets/DATASET_ID" * diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogOrBuilder.java index 6577487192..0c1f8bc18e 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogOrBuilder.java @@ -57,6 +57,7 @@ public interface AuditLogOrBuilder * The name of the service method or operation. * For API calls, this should be the name of the API method. * For example, + * * "google.cloud.bigquery.v2.TableService.InsertTable" * "google.logging.v2.ConfigServiceV2.CreateSink" * @@ -73,6 +74,7 @@ public interface AuditLogOrBuilder * The name of the service method or operation. * For API calls, this should be the name of the API method. * For example, + * * "google.cloud.bigquery.v2.TableService.InsertTable" * "google.logging.v2.ConfigServiceV2.CreateSink" * @@ -90,6 +92,7 @@ public interface AuditLogOrBuilder * The resource or collection that is the target of the operation. * The name is a scheme-less URI, not including the API service name. * For example: + * * "projects/PROJECT_ID/zones/us-central1-a/instances" * "projects/PROJECT_ID/datasets/DATASET_ID" * @@ -106,6 +109,7 @@ public interface AuditLogOrBuilder * The resource or collection that is the target of the operation. * The name is a scheme-less URI, not including the API service name. * For example: + * * "projects/PROJECT_ID/zones/us-central1-a/instances" * "projects/PROJECT_ID/datasets/DATASET_ID" * diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogProto.java index 2269b3f77e..40add613b7 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogProto.java @@ -140,24 +140,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "uf.StructB\013\n\tAuthority\"d\n\023PolicyViolatio" + "nInfo\022M\n\031org_policy_violation_info\030\001 \001(\013" + "2*.google.cloud.audit.OrgPolicyViolation" - + "Info\"\262\002\n\026OrgPolicyViolationInfo\022-\n\007paylo" - + "ad\030\001 \001(\0132\027.google.protobuf.StructB\003\340A\001\022\032" - + "\n\rresource_type\030\002 \001(\tB\003\340A\001\022X\n\rresource_t" - + "ags\030\003 \003(\0132<.google.cloud.audit.OrgPolicy" - + "ViolationInfo.ResourceTagsEntryB\003\340A\001\022>\n\016" - + "violation_info\030\004 \003(\0132!.google.cloud.audi" - + "t.ViolationInfoB\003\340A\001\0323\n\021ResourceTagsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\227\002\n\rVi" - + "olationInfo\022\027\n\nconstraint\030\001 \001(\tB\003\340A\001\022\032\n\r" - + "error_message\030\002 \001(\tB\003\340A\001\022\032\n\rchecked_valu" - + "e\030\003 \001(\tB\003\340A\001\022F\n\013policy_type\030\004 \001(\0162,.goog" - + "le.cloud.audit.ViolationInfo.PolicyTypeB" - + "\003\340A\001\"m\n\nPolicyType\022\033\n\027POLICY_TYPE_UNSPEC" - + "IFIED\020\000\022\026\n\022BOOLEAN_CONSTRAINT\020\001\022\023\n\017LIST_" - + "CONSTRAINT\020\002\022\025\n\021CUSTOM_CONSTRAINT\020\003Be\n\026c" - + "om.google.cloud.auditB\rAuditLogProtoP\001Z7" - + "google.golang.org/genproto/googleapis/cl" - + "oud/audit;audit\370\001\001b\006proto3" + + "Info\"\266\002\n\026OrgPolicyViolationInfo\022.\n\007paylo" + + "ad\030\001 \001(\0132\027.google.protobuf.StructB\004\342A\001\001\022" + + "\033\n\rresource_type\030\002 \001(\tB\004\342A\001\001\022Y\n\rresource" + + "_tags\030\003 \003(\0132<.google.cloud.audit.OrgPoli" + + "cyViolationInfo.ResourceTagsEntryB\004\342A\001\001\022" + + "?\n\016violation_info\030\004 \003(\0132!.google.cloud.a" + + "udit.ViolationInfoB\004\342A\001\001\0323\n\021ResourceTags" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\233\002" + + "\n\rViolationInfo\022\030\n\nconstraint\030\001 \001(\tB\004\342A\001" + + "\001\022\033\n\rerror_message\030\002 \001(\tB\004\342A\001\001\022\033\n\rchecke" + + "d_value\030\003 \001(\tB\004\342A\001\001\022G\n\013policy_type\030\004 \001(\016" + + "2,.google.cloud.audit.ViolationInfo.Poli" + + "cyTypeB\004\342A\001\001\"m\n\nPolicyType\022\033\n\027POLICY_TYP" + + "E_UNSPECIFIED\020\000\022\026\n\022BOOLEAN_CONSTRAINT\020\001\022" + + "\023\n\017LIST_CONSTRAINT\020\002\022\025\n\021CUSTOM_CONSTRAIN" + + "T\020\003Be\n\026com.google.cloud.auditB\rAuditLogP" + + "rotoP\001Z7google.golang.org/genproto/googl" + + "eapis/cloud/audit;audit\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfo.java index 01d8e1e744..c7d6932fbe 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfo.java @@ -51,11 +51,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AuthenticationInfo(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.audit.AuditLogProto .internal_static_google_cloud_audit_AuthenticationInfo_descriptor; @@ -255,6 +250,7 @@ public com.google.protobuf.StructOrBuilder getThirdPartyPrincipalOrBuilder() { * The name of the service account key used to create or exchange * credentials for authenticating the service account making the request. * This is a scheme-less URI full resource name. For example: + * * "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}" * * @@ -281,6 +277,7 @@ public java.lang.String getServiceAccountKeyName() { * The name of the service account key used to create or exchange * credentials for authenticating the service account making the request. * This is a scheme-less URI full resource name. For example: + * * "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}" * * @@ -798,39 +795,6 @@ private void buildPartial0(com.google.cloud.audit.AuthenticationInfo result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.audit.AuthenticationInfo) { @@ -1444,6 +1408,7 @@ public com.google.protobuf.StructOrBuilder getThirdPartyPrincipalOrBuilder() { * The name of the service account key used to create or exchange * credentials for authenticating the service account making the request. * This is a scheme-less URI full resource name. For example: + * * "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}" * * @@ -1469,6 +1434,7 @@ public java.lang.String getServiceAccountKeyName() { * The name of the service account key used to create or exchange * credentials for authenticating the service account making the request. * This is a scheme-less URI full resource name. For example: + * * "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}" * * @@ -1494,6 +1460,7 @@ public com.google.protobuf.ByteString getServiceAccountKeyNameBytes() { * The name of the service account key used to create or exchange * credentials for authenticating the service account making the request. * This is a scheme-less URI full resource name. For example: + * * "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}" * * @@ -1518,6 +1485,7 @@ public Builder setServiceAccountKeyName(java.lang.String value) { * The name of the service account key used to create or exchange * credentials for authenticating the service account making the request. * This is a scheme-less URI full resource name. For example: + * * "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}" * * @@ -1538,6 +1506,7 @@ public Builder clearServiceAccountKeyName() { * The name of the service account key used to create or exchange * credentials for authenticating the service account making the request. * This is a scheme-less URI full resource name. For example: + * * "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}" * * diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfoOrBuilder.java index 2dfe54d9ea..1ae5ab45d5 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfoOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfoOrBuilder.java @@ -136,6 +136,7 @@ public interface AuthenticationInfoOrBuilder * The name of the service account key used to create or exchange * credentials for authenticating the service account making the request. * This is a scheme-less URI full resource name. For example: + * * "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}" * * @@ -151,6 +152,7 @@ public interface AuthenticationInfoOrBuilder * The name of the service account key used to create or exchange * credentials for authenticating the service account making the request. * This is a scheme-less URI full resource name. For example: + * * "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}" * * diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfo.java index faccc6595e..50cb43b5ab 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfo.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AuthorizationInfo(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.audit.AuditLogProto .internal_static_google_cloud_audit_AuthorizationInfo_descriptor; @@ -78,6 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * The resource being accessed, as a REST-style or cloud resource string.
    * For example:
+   *
    *     bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID
    * or
    *     projects/PROJECTID/datasets/DATASETID
@@ -105,6 +101,7 @@ public java.lang.String getResource() {
    * 
    * The resource being accessed, as a REST-style or cloud resource string.
    * For example:
+   *
    *     bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID
    * or
    *     projects/PROJECTID/datasets/DATASETID
@@ -205,6 +202,7 @@ public boolean getGranted() {
    * 
    * Resource attributes used in IAM condition evaluation. This field contains
    * resource attributes like resource type and resource name.
+   *
    * To get the whole view of the attributes used in IAM
    * condition evaluation, the user must also look into
    * `AuditLog.request_metadata.request_attributes`.
@@ -224,6 +222,7 @@ public boolean hasResourceAttributes() {
    * 
    * Resource attributes used in IAM condition evaluation. This field contains
    * resource attributes like resource type and resource name.
+   *
    * To get the whole view of the attributes used in IAM
    * condition evaluation, the user must also look into
    * `AuditLog.request_metadata.request_attributes`.
@@ -245,6 +244,7 @@ public com.google.rpc.context.AttributeContext.Resource getResourceAttributes()
    * 
    * Resource attributes used in IAM condition evaluation. This field contains
    * resource attributes like resource type and resource name.
+   *
    * To get the whole view of the attributes used in IAM
    * condition evaluation, the user must also look into
    * `AuditLog.request_metadata.request_attributes`.
@@ -550,39 +550,6 @@ private void buildPartial0(com.google.cloud.audit.AuthorizationInfo result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.audit.AuthorizationInfo) {
@@ -688,6 +655,7 @@ public Builder mergeFrom(
      * 
      * The resource being accessed, as a REST-style or cloud resource string.
      * For example:
+     *
      *     bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID
      * or
      *     projects/PROJECTID/datasets/DATASETID
@@ -714,6 +682,7 @@ public java.lang.String getResource() {
      * 
      * The resource being accessed, as a REST-style or cloud resource string.
      * For example:
+     *
      *     bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID
      * or
      *     projects/PROJECTID/datasets/DATASETID
@@ -740,6 +709,7 @@ public com.google.protobuf.ByteString getResourceBytes() {
      * 
      * The resource being accessed, as a REST-style or cloud resource string.
      * For example:
+     *
      *     bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID
      * or
      *     projects/PROJECTID/datasets/DATASETID
@@ -765,6 +735,7 @@ public Builder setResource(java.lang.String value) {
      * 
      * The resource being accessed, as a REST-style or cloud resource string.
      * For example:
+     *
      *     bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID
      * or
      *     projects/PROJECTID/datasets/DATASETID
@@ -786,6 +757,7 @@ public Builder clearResource() {
      * 
      * The resource being accessed, as a REST-style or cloud resource string.
      * For example:
+     *
      *     bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID
      * or
      *     projects/PROJECTID/datasets/DATASETID
@@ -981,6 +953,7 @@ public Builder clearGranted() {
      * 
      * Resource attributes used in IAM condition evaluation. This field contains
      * resource attributes like resource type and resource name.
+     *
      * To get the whole view of the attributes used in IAM
      * condition evaluation, the user must also look into
      * `AuditLog.request_metadata.request_attributes`.
@@ -999,6 +972,7 @@ public boolean hasResourceAttributes() {
      * 
      * Resource attributes used in IAM condition evaluation. This field contains
      * resource attributes like resource type and resource name.
+     *
      * To get the whole view of the attributes used in IAM
      * condition evaluation, the user must also look into
      * `AuditLog.request_metadata.request_attributes`.
@@ -1023,6 +997,7 @@ public com.google.rpc.context.AttributeContext.Resource getResourceAttributes()
      * 
      * Resource attributes used in IAM condition evaluation. This field contains
      * resource attributes like resource type and resource name.
+     *
      * To get the whole view of the attributes used in IAM
      * condition evaluation, the user must also look into
      * `AuditLog.request_metadata.request_attributes`.
@@ -1049,6 +1024,7 @@ public Builder setResourceAttributes(com.google.rpc.context.AttributeContext.Res
      * 
      * Resource attributes used in IAM condition evaluation. This field contains
      * resource attributes like resource type and resource name.
+     *
      * To get the whole view of the attributes used in IAM
      * condition evaluation, the user must also look into
      * `AuditLog.request_metadata.request_attributes`.
@@ -1073,6 +1049,7 @@ public Builder setResourceAttributes(
      * 
      * Resource attributes used in IAM condition evaluation. This field contains
      * resource attributes like resource type and resource name.
+     *
      * To get the whole view of the attributes used in IAM
      * condition evaluation, the user must also look into
      * `AuditLog.request_metadata.request_attributes`.
@@ -1103,6 +1080,7 @@ public Builder mergeResourceAttributes(com.google.rpc.context.AttributeContext.R
      * 
      * Resource attributes used in IAM condition evaluation. This field contains
      * resource attributes like resource type and resource name.
+     *
      * To get the whole view of the attributes used in IAM
      * condition evaluation, the user must also look into
      * `AuditLog.request_metadata.request_attributes`.
@@ -1126,6 +1104,7 @@ public Builder clearResourceAttributes() {
      * 
      * Resource attributes used in IAM condition evaluation. This field contains
      * resource attributes like resource type and resource name.
+     *
      * To get the whole view of the attributes used in IAM
      * condition evaluation, the user must also look into
      * `AuditLog.request_metadata.request_attributes`.
@@ -1144,6 +1123,7 @@ public com.google.rpc.context.AttributeContext.Resource.Builder getResourceAttri
      * 
      * Resource attributes used in IAM condition evaluation. This field contains
      * resource attributes like resource type and resource name.
+     *
      * To get the whole view of the attributes used in IAM
      * condition evaluation, the user must also look into
      * `AuditLog.request_metadata.request_attributes`.
@@ -1167,6 +1147,7 @@ public com.google.rpc.context.AttributeContext.Resource.Builder getResourceAttri
      * 
      * Resource attributes used in IAM condition evaluation. This field contains
      * resource attributes like resource type and resource name.
+     *
      * To get the whole view of the attributes used in IAM
      * condition evaluation, the user must also look into
      * `AuditLog.request_metadata.request_attributes`.
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfoOrBuilder.java
index fe0764ec63..d07958d948 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfoOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfoOrBuilder.java
@@ -29,6 +29,7 @@ public interface AuthorizationInfoOrBuilder
    * 
    * The resource being accessed, as a REST-style or cloud resource string.
    * For example:
+   *
    *     bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID
    * or
    *     projects/PROJECTID/datasets/DATASETID
@@ -45,6 +46,7 @@ public interface AuthorizationInfoOrBuilder
    * 
    * The resource being accessed, as a REST-style or cloud resource string.
    * For example:
+   *
    *     bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID
    * or
    *     projects/PROJECTID/datasets/DATASETID
@@ -101,6 +103,7 @@ public interface AuthorizationInfoOrBuilder
    * 
    * Resource attributes used in IAM condition evaluation. This field contains
    * resource attributes like resource type and resource name.
+   *
    * To get the whole view of the attributes used in IAM
    * condition evaluation, the user must also look into
    * `AuditLog.request_metadata.request_attributes`.
@@ -117,6 +120,7 @@ public interface AuthorizationInfoOrBuilder
    * 
    * Resource attributes used in IAM condition evaluation. This field contains
    * resource attributes like resource type and resource name.
+   *
    * To get the whole view of the attributes used in IAM
    * condition evaluation, the user must also look into
    * `AuditLog.request_metadata.request_attributes`.
@@ -133,6 +137,7 @@ public interface AuthorizationInfoOrBuilder
    * 
    * Resource attributes used in IAM condition evaluation. This field contains
    * resource attributes like resource type and resource name.
+   *
    * To get the whole view of the attributes used in IAM
    * condition evaluation, the user must also look into
    * `AuditLog.request_metadata.request_attributes`.
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfo.java
index ca555dfe16..4f5fc51e68 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfo.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfo.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new OrgPolicyViolationInfo();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.audit.AuditLogProto
         .internal_static_google_cloud_audit_OrgPolicyViolationInfo_descriptor;
@@ -219,6 +214,7 @@ public int getResourceTagsCount() {
    * Optional. Tags referenced on the resource at the time of evaluation. These also
    * include the federated tags, if they are supplied in the CheckOrgPolicy
    * or CheckCustomConstraints Requests.
+   *
    * Optional field as of now. These tags are the Cloud tags that are
    * available on the resource during the policy evaluation and will
    * be available as part of the OrgPolicy check response for logging purposes.
@@ -247,6 +243,7 @@ public java.util.Map getResourceTags() {
    * Optional. Tags referenced on the resource at the time of evaluation. These also
    * include the federated tags, if they are supplied in the CheckOrgPolicy
    * or CheckCustomConstraints Requests.
+   *
    * Optional field as of now. These tags are the Cloud tags that are
    * available on the resource during the policy evaluation and will
    * be available as part of the OrgPolicy check response for logging purposes.
@@ -266,6 +263,7 @@ public java.util.Map getResourceTagsMap() {
    * Optional. Tags referenced on the resource at the time of evaluation. These also
    * include the federated tags, if they are supplied in the CheckOrgPolicy
    * or CheckCustomConstraints Requests.
+   *
    * Optional field as of now. These tags are the Cloud tags that are
    * available on the resource during the policy evaluation and will
    * be available as part of the OrgPolicy check response for logging purposes.
@@ -292,6 +290,7 @@ public java.util.Map getResourceTagsMap() {
    * Optional. Tags referenced on the resource at the time of evaluation. These also
    * include the federated tags, if they are supplied in the CheckOrgPolicy
    * or CheckCustomConstraints Requests.
+   *
    * Optional field as of now. These tags are the Cloud tags that are
    * available on the resource during the policy evaluation and will
    * be available as part of the OrgPolicy check response for logging purposes.
@@ -728,39 +727,6 @@ private void buildPartial0(com.google.cloud.audit.OrgPolicyViolationInfo result)
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.audit.OrgPolicyViolationInfo) {
@@ -1235,6 +1201,7 @@ public int getResourceTagsCount() {
      * Optional. Tags referenced on the resource at the time of evaluation. These also
      * include the federated tags, if they are supplied in the CheckOrgPolicy
      * or CheckCustomConstraints Requests.
+     *
      * Optional field as of now. These tags are the Cloud tags that are
      * available on the resource during the policy evaluation and will
      * be available as part of the OrgPolicy check response for logging purposes.
@@ -1263,6 +1230,7 @@ public java.util.Map getResourceTags() {
      * Optional. Tags referenced on the resource at the time of evaluation. These also
      * include the federated tags, if they are supplied in the CheckOrgPolicy
      * or CheckCustomConstraints Requests.
+     *
      * Optional field as of now. These tags are the Cloud tags that are
      * available on the resource during the policy evaluation and will
      * be available as part of the OrgPolicy check response for logging purposes.
@@ -1282,6 +1250,7 @@ public java.util.Map getResourceTagsMap() {
      * Optional. Tags referenced on the resource at the time of evaluation. These also
      * include the federated tags, if they are supplied in the CheckOrgPolicy
      * or CheckCustomConstraints Requests.
+     *
      * Optional field as of now. These tags are the Cloud tags that are
      * available on the resource during the policy evaluation and will
      * be available as part of the OrgPolicy check response for logging purposes.
@@ -1308,6 +1277,7 @@ public java.util.Map getResourceTagsMap() {
      * Optional. Tags referenced on the resource at the time of evaluation. These also
      * include the federated tags, if they are supplied in the CheckOrgPolicy
      * or CheckCustomConstraints Requests.
+     *
      * Optional field as of now. These tags are the Cloud tags that are
      * available on the resource during the policy evaluation and will
      * be available as part of the OrgPolicy check response for logging purposes.
@@ -1340,6 +1310,7 @@ public Builder clearResourceTags() {
      * Optional. Tags referenced on the resource at the time of evaluation. These also
      * include the federated tags, if they are supplied in the CheckOrgPolicy
      * or CheckCustomConstraints Requests.
+     *
      * Optional field as of now. These tags are the Cloud tags that are
      * available on the resource during the policy evaluation and will
      * be available as part of the OrgPolicy check response for logging purposes.
@@ -1368,6 +1339,7 @@ public java.util.Map getMutableResourceTags(
      * Optional. Tags referenced on the resource at the time of evaluation. These also
      * include the federated tags, if they are supplied in the CheckOrgPolicy
      * or CheckCustomConstraints Requests.
+     *
      * Optional field as of now. These tags are the Cloud tags that are
      * available on the resource during the policy evaluation and will
      * be available as part of the OrgPolicy check response for logging purposes.
@@ -1394,6 +1366,7 @@ public Builder putResourceTags(java.lang.String key, java.lang.String value) {
      * Optional. Tags referenced on the resource at the time of evaluation. These also
      * include the federated tags, if they are supplied in the CheckOrgPolicy
      * or CheckCustomConstraints Requests.
+     *
      * Optional field as of now. These tags are the Cloud tags that are
      * available on the resource during the policy evaluation and will
      * be available as part of the OrgPolicy check response for logging purposes.
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfoOrBuilder.java
index e05a56411b..0cb4a4412c 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfoOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfoOrBuilder.java
@@ -98,6 +98,7 @@ public interface OrgPolicyViolationInfoOrBuilder
    * Optional. Tags referenced on the resource at the time of evaluation. These also
    * include the federated tags, if they are supplied in the CheckOrgPolicy
    * or CheckCustomConstraints Requests.
+   *
    * Optional field as of now. These tags are the Cloud tags that are
    * available on the resource during the policy evaluation and will
    * be available as part of the OrgPolicy check response for logging purposes.
@@ -114,6 +115,7 @@ public interface OrgPolicyViolationInfoOrBuilder
    * Optional. Tags referenced on the resource at the time of evaluation. These also
    * include the federated tags, if they are supplied in the CheckOrgPolicy
    * or CheckCustomConstraints Requests.
+   *
    * Optional field as of now. These tags are the Cloud tags that are
    * available on the resource during the policy evaluation and will
    * be available as part of the OrgPolicy check response for logging purposes.
@@ -133,6 +135,7 @@ public interface OrgPolicyViolationInfoOrBuilder
    * Optional. Tags referenced on the resource at the time of evaluation. These also
    * include the federated tags, if they are supplied in the CheckOrgPolicy
    * or CheckCustomConstraints Requests.
+   *
    * Optional field as of now. These tags are the Cloud tags that are
    * available on the resource during the policy evaluation and will
    * be available as part of the OrgPolicy check response for logging purposes.
@@ -149,6 +152,7 @@ public interface OrgPolicyViolationInfoOrBuilder
    * Optional. Tags referenced on the resource at the time of evaluation. These also
    * include the federated tags, if they are supplied in the CheckOrgPolicy
    * or CheckCustomConstraints Requests.
+   *
    * Optional field as of now. These tags are the Cloud tags that are
    * available on the resource during the policy evaluation and will
    * be available as part of the OrgPolicy check response for logging purposes.
@@ -169,6 +173,7 @@ java.lang.String getResourceTagsOrDefault(
    * Optional. Tags referenced on the resource at the time of evaluation. These also
    * include the federated tags, if they are supplied in the CheckOrgPolicy
    * or CheckCustomConstraints Requests.
+   *
    * Optional field as of now. These tags are the Cloud tags that are
    * available on the resource during the policy evaluation and will
    * be available as part of the OrgPolicy check response for logging purposes.
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/PolicyViolationInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/PolicyViolationInfo.java
index d7e928e22b..adc1754af9 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/PolicyViolationInfo.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/PolicyViolationInfo.java
@@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PolicyViolationInfo();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.audit.AuditLogProto
         .internal_static_google_cloud_audit_PolicyViolationInfo_descriptor;
@@ -369,39 +364,6 @@ private void buildPartial0(com.google.cloud.audit.PolicyViolationInfo result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.audit.PolicyViolationInfo) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadata.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadata.java
index 5a977fc9f0..2e196a6339 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadata.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadata.java
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RequestMetadata();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.audit.AuditLogProto
         .internal_static_google_cloud_audit_RequestMetadata_descriptor;
@@ -151,6 +146,7 @@ public com.google.protobuf.ByteString getCallerIpBytes() {
    * The user agent of the caller.
    * This information is not authenticated and should be treated accordingly.
    * For example:
+   *
    * +   `google-api-python-client/1.4.0`:
    *     The request was made by the Google API client for Python.
    * +   `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
@@ -183,6 +179,7 @@ public java.lang.String getCallerSuppliedUserAgent() {
    * The user agent of the caller.
    * This information is not authenticated and should be treated accordingly.
    * For example:
+   *
    * +   `google-api-python-client/1.4.0`:
    *     The request was made by the Google API client for Python.
    * +   `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
@@ -222,6 +219,7 @@ public com.google.protobuf.ByteString getCallerSuppliedUserAgentBytes() {
    * (or project) as the accessed resource.
    * See https://cloud.google.com/compute/docs/vpc/ for more information.
    * This is a scheme-less URI full resource name. For example:
+   *
    *     "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID"
    * 
* @@ -250,6 +248,7 @@ public java.lang.String getCallerNetwork() { * (or project) as the accessed resource. * See https://cloud.google.com/compute/docs/vpc/ for more information. * This is a scheme-less URI full resource name. For example: + * * "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID" *
* @@ -279,6 +278,8 @@ public com.google.protobuf.ByteString getCallerNetworkBytes() { * Request attributes used in IAM condition evaluation. This field contains * request attributes like request time and access levels associated with * the request. + * + * * To get the whole view of the attributes used in IAM * condition evaluation, the user must also look into * `AuditLog.authentication_info.resource_attributes`. @@ -299,6 +300,8 @@ public boolean hasRequestAttributes() { * Request attributes used in IAM condition evaluation. This field contains * request attributes like request time and access levels associated with * the request. + * + * * To get the whole view of the attributes used in IAM * condition evaluation, the user must also look into * `AuditLog.authentication_info.resource_attributes`. @@ -321,6 +324,8 @@ public com.google.rpc.context.AttributeContext.Request getRequestAttributes() { * Request attributes used in IAM condition evaluation. This field contains * request attributes like request time and access levels associated with * the request. + * + * * To get the whole view of the attributes used in IAM * condition evaluation, the user must also look into * `AuditLog.authentication_info.resource_attributes`. @@ -713,39 +718,6 @@ private void buildPartial0(com.google.cloud.audit.RequestMetadata result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.audit.RequestMetadata) { @@ -1020,6 +992,7 @@ public Builder setCallerIpBytes(com.google.protobuf.ByteString value) { * The user agent of the caller. * This information is not authenticated and should be treated accordingly. * For example: + * * + `google-api-python-client/1.4.0`: * The request was made by the Google API client for Python. * + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: @@ -1051,6 +1024,7 @@ public java.lang.String getCallerSuppliedUserAgent() { * The user agent of the caller. * This information is not authenticated and should be treated accordingly. * For example: + * * + `google-api-python-client/1.4.0`: * The request was made by the Google API client for Python. * + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: @@ -1082,6 +1056,7 @@ public com.google.protobuf.ByteString getCallerSuppliedUserAgentBytes() { * The user agent of the caller. * This information is not authenticated and should be treated accordingly. * For example: + * * + `google-api-python-client/1.4.0`: * The request was made by the Google API client for Python. * + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: @@ -1112,6 +1087,7 @@ public Builder setCallerSuppliedUserAgent(java.lang.String value) { * The user agent of the caller. * This information is not authenticated and should be treated accordingly. * For example: + * * + `google-api-python-client/1.4.0`: * The request was made by the Google API client for Python. * + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: @@ -1138,6 +1114,7 @@ public Builder clearCallerSuppliedUserAgent() { * The user agent of the caller. * This information is not authenticated and should be treated accordingly. * For example: + * * + `google-api-python-client/1.4.0`: * The request was made by the Google API client for Python. * + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: @@ -1173,6 +1150,7 @@ public Builder setCallerSuppliedUserAgentBytes(com.google.protobuf.ByteString va * (or project) as the accessed resource. * See https://cloud.google.com/compute/docs/vpc/ for more information. * This is a scheme-less URI full resource name. For example: + * * "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID" *
* @@ -1200,6 +1178,7 @@ public java.lang.String getCallerNetwork() { * (or project) as the accessed resource. * See https://cloud.google.com/compute/docs/vpc/ for more information. * This is a scheme-less URI full resource name. For example: + * * "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID" *
* @@ -1227,6 +1206,7 @@ public com.google.protobuf.ByteString getCallerNetworkBytes() { * (or project) as the accessed resource. * See https://cloud.google.com/compute/docs/vpc/ for more information. * This is a scheme-less URI full resource name. For example: + * * "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID" *
* @@ -1253,6 +1233,7 @@ public Builder setCallerNetwork(java.lang.String value) { * (or project) as the accessed resource. * See https://cloud.google.com/compute/docs/vpc/ for more information. * This is a scheme-less URI full resource name. For example: + * * "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID" *
* @@ -1275,6 +1256,7 @@ public Builder clearCallerNetwork() { * (or project) as the accessed resource. * See https://cloud.google.com/compute/docs/vpc/ for more information. * This is a scheme-less URI full resource name. For example: + * * "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID" *
* @@ -1307,6 +1289,8 @@ public Builder setCallerNetworkBytes(com.google.protobuf.ByteString value) { * Request attributes used in IAM condition evaluation. This field contains * request attributes like request time and access levels associated with * the request. + * + * * To get the whole view of the attributes used in IAM * condition evaluation, the user must also look into * `AuditLog.authentication_info.resource_attributes`. @@ -1326,6 +1310,8 @@ public boolean hasRequestAttributes() { * Request attributes used in IAM condition evaluation. This field contains * request attributes like request time and access levels associated with * the request. + * + * * To get the whole view of the attributes used in IAM * condition evaluation, the user must also look into * `AuditLog.authentication_info.resource_attributes`. @@ -1351,6 +1337,8 @@ public com.google.rpc.context.AttributeContext.Request getRequestAttributes() { * Request attributes used in IAM condition evaluation. This field contains * request attributes like request time and access levels associated with * the request. + * + * * To get the whole view of the attributes used in IAM * condition evaluation, the user must also look into * `AuditLog.authentication_info.resource_attributes`. @@ -1378,6 +1366,8 @@ public Builder setRequestAttributes(com.google.rpc.context.AttributeContext.Requ * Request attributes used in IAM condition evaluation. This field contains * request attributes like request time and access levels associated with * the request. + * + * * To get the whole view of the attributes used in IAM * condition evaluation, the user must also look into * `AuditLog.authentication_info.resource_attributes`. @@ -1403,6 +1393,8 @@ public Builder setRequestAttributes( * Request attributes used in IAM condition evaluation. This field contains * request attributes like request time and access levels associated with * the request. + * + * * To get the whole view of the attributes used in IAM * condition evaluation, the user must also look into * `AuditLog.authentication_info.resource_attributes`. @@ -1434,6 +1426,8 @@ public Builder mergeRequestAttributes(com.google.rpc.context.AttributeContext.Re * Request attributes used in IAM condition evaluation. This field contains * request attributes like request time and access levels associated with * the request. + * + * * To get the whole view of the attributes used in IAM * condition evaluation, the user must also look into * `AuditLog.authentication_info.resource_attributes`. @@ -1458,6 +1452,8 @@ public Builder clearRequestAttributes() { * Request attributes used in IAM condition evaluation. This field contains * request attributes like request time and access levels associated with * the request. + * + * * To get the whole view of the attributes used in IAM * condition evaluation, the user must also look into * `AuditLog.authentication_info.resource_attributes`. @@ -1477,6 +1473,8 @@ public com.google.rpc.context.AttributeContext.Request.Builder getRequestAttribu * Request attributes used in IAM condition evaluation. This field contains * request attributes like request time and access levels associated with * the request. + * + * * To get the whole view of the attributes used in IAM * condition evaluation, the user must also look into * `AuditLog.authentication_info.resource_attributes`. @@ -1501,6 +1499,8 @@ public com.google.rpc.context.AttributeContext.Request.Builder getRequestAttribu * Request attributes used in IAM condition evaluation. This field contains * request attributes like request time and access levels associated with * the request. + * + * * To get the whole view of the attributes used in IAM * condition evaluation, the user must also look into * `AuditLog.authentication_info.resource_attributes`. diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadataOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadataOrBuilder.java index 593541486f..9bfaafe790 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadataOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadataOrBuilder.java @@ -75,6 +75,7 @@ public interface RequestMetadataOrBuilder * The user agent of the caller. * This information is not authenticated and should be treated accordingly. * For example: + * * + `google-api-python-client/1.4.0`: * The request was made by the Google API client for Python. * + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: @@ -96,6 +97,7 @@ public interface RequestMetadataOrBuilder * The user agent of the caller. * This information is not authenticated and should be treated accordingly. * For example: + * * + `google-api-python-client/1.4.0`: * The request was made by the Google API client for Python. * + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: @@ -120,6 +122,7 @@ public interface RequestMetadataOrBuilder * (or project) as the accessed resource. * See https://cloud.google.com/compute/docs/vpc/ for more information. * This is a scheme-less URI full resource name. For example: + * * "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID" *
* @@ -137,6 +140,7 @@ public interface RequestMetadataOrBuilder * (or project) as the accessed resource. * See https://cloud.google.com/compute/docs/vpc/ for more information. * This is a scheme-less URI full resource name. For example: + * * "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID" *
* @@ -153,6 +157,8 @@ public interface RequestMetadataOrBuilder * Request attributes used in IAM condition evaluation. This field contains * request attributes like request time and access levels associated with * the request. + * + * * To get the whole view of the attributes used in IAM * condition evaluation, the user must also look into * `AuditLog.authentication_info.resource_attributes`. @@ -170,6 +176,8 @@ public interface RequestMetadataOrBuilder * Request attributes used in IAM condition evaluation. This field contains * request attributes like request time and access levels associated with * the request. + * + * * To get the whole view of the attributes used in IAM * condition evaluation, the user must also look into * `AuditLog.authentication_info.resource_attributes`. @@ -187,6 +195,8 @@ public interface RequestMetadataOrBuilder * Request attributes used in IAM condition evaluation. This field contains * request attributes like request time and access levels associated with * the request. + * + * * To get the whole view of the attributes used in IAM * condition evaluation, the user must also look into * `AuditLog.authentication_info.resource_attributes`. diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocation.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocation.java index 0c5b2caaa2..f8285e172d 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocation.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocation.java @@ -38,8 +38,8 @@ private ResourceLocation(com.google.protobuf.GeneratedMessageV3.Builder build } private ResourceLocation() { - currentLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - originalLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + currentLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + originalLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResourceLocation(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.audit.AuditLogProto .internal_static_google_cloud_audit_ResourceLocation_descriptor; @@ -71,7 +66,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int CURRENT_LOCATIONS_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList currentLocations_; + private com.google.protobuf.LazyStringArrayList currentLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -80,6 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Requests to create or delete a location based resource must populate * the 'current_locations' field and not the 'original_locations' field. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -100,6 +97,7 @@ public com.google.protobuf.ProtocolStringList getCurrentLocationsList() { * Requests to create or delete a location based resource must populate * the 'current_locations' field and not the 'original_locations' field. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -120,6 +118,7 @@ public int getCurrentLocationsCount() { * Requests to create or delete a location based resource must populate * the 'current_locations' field and not the 'original_locations' field. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -141,6 +140,7 @@ public java.lang.String getCurrentLocations(int index) { * Requests to create or delete a location based resource must populate * the 'current_locations' field and not the 'original_locations' field. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -158,7 +158,8 @@ public com.google.protobuf.ByteString getCurrentLocationsBytes(int index) { public static final int ORIGINAL_LOCATIONS_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList originalLocations_; + private com.google.protobuf.LazyStringArrayList originalLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -167,6 +168,7 @@ public com.google.protobuf.ByteString getCurrentLocationsBytes(int index) { * Requests that mutate the resource's location must populate both the * 'original_locations' as well as the 'current_locations' fields. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -187,6 +189,7 @@ public com.google.protobuf.ProtocolStringList getOriginalLocationsList() { * Requests that mutate the resource's location must populate both the * 'original_locations' as well as the 'current_locations' fields. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -207,6 +210,7 @@ public int getOriginalLocationsCount() { * Requests that mutate the resource's location must populate both the * 'original_locations' as well as the 'current_locations' fields. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -228,6 +232,7 @@ public java.lang.String getOriginalLocations(int index) { * Requests that mutate the resource's location must populate both the * 'original_locations' as well as the 'current_locations' fields. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -462,10 +467,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - currentLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - originalLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + currentLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + originalLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -493,7 +496,6 @@ public com.google.cloud.audit.ResourceLocation build() { public com.google.cloud.audit.ResourceLocation buildPartial() { com.google.cloud.audit.ResourceLocation result = new com.google.cloud.audit.ResourceLocation(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -501,54 +503,16 @@ public com.google.cloud.audit.ResourceLocation buildPartial() { return result; } - private void buildPartialRepeatedFields(com.google.cloud.audit.ResourceLocation result) { - if (((bitField0_ & 0x00000001) != 0)) { - currentLocations_ = currentLocations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.currentLocations_ = currentLocations_; - if (((bitField0_ & 0x00000002) != 0)) { - originalLocations_ = originalLocations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.originalLocations_ = originalLocations_; - } - private void buildPartial0(com.google.cloud.audit.ResourceLocation result) { int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + if (((from_bitField0_ & 0x00000001) != 0)) { + currentLocations_.makeImmutable(); + result.currentLocations_ = currentLocations_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + originalLocations_.makeImmutable(); + result.originalLocations_ = originalLocations_; + } } @java.lang.Override @@ -566,7 +530,7 @@ public Builder mergeFrom(com.google.cloud.audit.ResourceLocation other) { if (!other.currentLocations_.isEmpty()) { if (currentLocations_.isEmpty()) { currentLocations_ = other.currentLocations_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensureCurrentLocationsIsMutable(); currentLocations_.addAll(other.currentLocations_); @@ -576,7 +540,7 @@ public Builder mergeFrom(com.google.cloud.audit.ResourceLocation other) { if (!other.originalLocations_.isEmpty()) { if (originalLocations_.isEmpty()) { originalLocations_ = other.originalLocations_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ |= 0x00000002; } else { ensureOriginalLocationsIsMutable(); originalLocations_.addAll(other.originalLocations_); @@ -642,14 +606,14 @@ public Builder mergeFrom( private int bitField0_; - private com.google.protobuf.LazyStringList currentLocations_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList currentLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureCurrentLocationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!currentLocations_.isModifiable()) { currentLocations_ = new com.google.protobuf.LazyStringArrayList(currentLocations_); - bitField0_ |= 0x00000001; } + bitField0_ |= 0x00000001; } /** * @@ -659,6 +623,7 @@ private void ensureCurrentLocationsIsMutable() { * Requests to create or delete a location based resource must populate * the 'current_locations' field and not the 'original_locations' field. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -669,7 +634,8 @@ private void ensureCurrentLocationsIsMutable() { * @return A list containing the currentLocations. */ public com.google.protobuf.ProtocolStringList getCurrentLocationsList() { - return currentLocations_.getUnmodifiableView(); + currentLocations_.makeImmutable(); + return currentLocations_; } /** * @@ -679,6 +645,7 @@ public com.google.protobuf.ProtocolStringList getCurrentLocationsList() { * Requests to create or delete a location based resource must populate * the 'current_locations' field and not the 'original_locations' field. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -699,6 +666,7 @@ public int getCurrentLocationsCount() { * Requests to create or delete a location based resource must populate * the 'current_locations' field and not the 'original_locations' field. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -720,6 +688,7 @@ public java.lang.String getCurrentLocations(int index) { * Requests to create or delete a location based resource must populate * the 'current_locations' field and not the 'original_locations' field. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -741,6 +710,7 @@ public com.google.protobuf.ByteString getCurrentLocationsBytes(int index) { * Requests to create or delete a location based resource must populate * the 'current_locations' field and not the 'original_locations' field. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -758,6 +728,7 @@ public Builder setCurrentLocations(int index, java.lang.String value) { } ensureCurrentLocationsIsMutable(); currentLocations_.set(index, value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -769,6 +740,7 @@ public Builder setCurrentLocations(int index, java.lang.String value) { * Requests to create or delete a location based resource must populate * the 'current_locations' field and not the 'original_locations' field. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -785,6 +757,7 @@ public Builder addCurrentLocations(java.lang.String value) { } ensureCurrentLocationsIsMutable(); currentLocations_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -796,6 +769,7 @@ public Builder addCurrentLocations(java.lang.String value) { * Requests to create or delete a location based resource must populate * the 'current_locations' field and not the 'original_locations' field. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -809,6 +783,7 @@ public Builder addCurrentLocations(java.lang.String value) { public Builder addAllCurrentLocations(java.lang.Iterable values) { ensureCurrentLocationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, currentLocations_); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -820,6 +795,7 @@ public Builder addAllCurrentLocations(java.lang.Iterable value * Requests to create or delete a location based resource must populate * the 'current_locations' field and not the 'original_locations' field. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -830,8 +806,9 @@ public Builder addAllCurrentLocations(java.lang.Iterable value * @return This builder for chaining. */ public Builder clearCurrentLocations() { - currentLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + currentLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } @@ -843,6 +820,7 @@ public Builder clearCurrentLocations() { * Requests to create or delete a location based resource must populate * the 'current_locations' field and not the 'original_locations' field. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -860,18 +838,19 @@ public Builder addCurrentLocationsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureCurrentLocationsIsMutable(); currentLocations_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } - private com.google.protobuf.LazyStringList originalLocations_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList originalLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureOriginalLocationsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!originalLocations_.isModifiable()) { originalLocations_ = new com.google.protobuf.LazyStringArrayList(originalLocations_); - bitField0_ |= 0x00000002; } + bitField0_ |= 0x00000002; } /** * @@ -881,6 +860,7 @@ private void ensureOriginalLocationsIsMutable() { * Requests that mutate the resource's location must populate both the * 'original_locations' as well as the 'current_locations' fields. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -891,7 +871,8 @@ private void ensureOriginalLocationsIsMutable() { * @return A list containing the originalLocations. */ public com.google.protobuf.ProtocolStringList getOriginalLocationsList() { - return originalLocations_.getUnmodifiableView(); + originalLocations_.makeImmutable(); + return originalLocations_; } /** * @@ -901,6 +882,7 @@ public com.google.protobuf.ProtocolStringList getOriginalLocationsList() { * Requests that mutate the resource's location must populate both the * 'original_locations' as well as the 'current_locations' fields. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -921,6 +903,7 @@ public int getOriginalLocationsCount() { * Requests that mutate the resource's location must populate both the * 'original_locations' as well as the 'current_locations' fields. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -942,6 +925,7 @@ public java.lang.String getOriginalLocations(int index) { * Requests that mutate the resource's location must populate both the * 'original_locations' as well as the 'current_locations' fields. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -963,6 +947,7 @@ public com.google.protobuf.ByteString getOriginalLocationsBytes(int index) { * Requests that mutate the resource's location must populate both the * 'original_locations' as well as the 'current_locations' fields. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -980,6 +965,7 @@ public Builder setOriginalLocations(int index, java.lang.String value) { } ensureOriginalLocationsIsMutable(); originalLocations_.set(index, value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -991,6 +977,7 @@ public Builder setOriginalLocations(int index, java.lang.String value) { * Requests that mutate the resource's location must populate both the * 'original_locations' as well as the 'current_locations' fields. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -1007,6 +994,7 @@ public Builder addOriginalLocations(java.lang.String value) { } ensureOriginalLocationsIsMutable(); originalLocations_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1018,6 +1006,7 @@ public Builder addOriginalLocations(java.lang.String value) { * Requests that mutate the resource's location must populate both the * 'original_locations' as well as the 'current_locations' fields. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -1031,6 +1020,7 @@ public Builder addOriginalLocations(java.lang.String value) { public Builder addAllOriginalLocations(java.lang.Iterable values) { ensureOriginalLocationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, originalLocations_); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1042,6 +1032,7 @@ public Builder addAllOriginalLocations(java.lang.Iterable valu * Requests that mutate the resource's location must populate both the * 'original_locations' as well as the 'current_locations' fields. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -1052,8 +1043,9 @@ public Builder addAllOriginalLocations(java.lang.Iterable valu * @return This builder for chaining. */ public Builder clearOriginalLocations() { - originalLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + originalLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } @@ -1065,6 +1057,7 @@ public Builder clearOriginalLocations() { * Requests that mutate the resource's location must populate both the * 'original_locations' as well as the 'current_locations' fields. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -1082,6 +1075,7 @@ public Builder addOriginalLocationsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureOriginalLocationsIsMutable(); originalLocations_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocationOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocationOrBuilder.java index 2a0e76f4af..7849d69394 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocationOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocationOrBuilder.java @@ -31,6 +31,7 @@ public interface ResourceLocationOrBuilder * Requests to create or delete a location based resource must populate * the 'current_locations' field and not the 'original_locations' field. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -49,6 +50,7 @@ public interface ResourceLocationOrBuilder * Requests to create or delete a location based resource must populate * the 'current_locations' field and not the 'original_locations' field. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -67,6 +69,7 @@ public interface ResourceLocationOrBuilder * Requests to create or delete a location based resource must populate * the 'current_locations' field and not the 'original_locations' field. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -86,6 +89,7 @@ public interface ResourceLocationOrBuilder * Requests to create or delete a location based resource must populate * the 'current_locations' field and not the 'original_locations' field. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -106,6 +110,7 @@ public interface ResourceLocationOrBuilder * Requests that mutate the resource's location must populate both the * 'original_locations' as well as the 'current_locations' fields. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -124,6 +129,7 @@ public interface ResourceLocationOrBuilder * Requests that mutate the resource's location must populate both the * 'original_locations' as well as the 'current_locations' fields. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -142,6 +148,7 @@ public interface ResourceLocationOrBuilder * Requests that mutate the resource's location must populate both the * 'original_locations' as well as the 'current_locations' fields. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" @@ -161,6 +168,7 @@ public interface ResourceLocationOrBuilder * Requests that mutate the resource's location must populate both the * 'original_locations' as well as the 'current_locations' fields. * For example: + * * "europe-west1-a" * "us-east1" * "nam3" diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfo.java index e0a88f5878..8fcdd8e180 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfo.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ServiceAccountDelegationInfo(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.audit.AuditLogProto .internal_static_google_cloud_audit_ServiceAccountDelegationInfo_descriptor; @@ -161,11 +156,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FirstPartyPrincipal(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.audit.AuditLogProto .internal_static_google_cloud_audit_ServiceAccountDelegationInfo_FirstPartyPrincipal_descriptor; @@ -558,41 +548,6 @@ private void buildPartial0( } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other @@ -1100,11 +1055,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ThirdPartyPrincipal(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.audit.AuditLogProto .internal_static_google_cloud_audit_ServiceAccountDelegationInfo_ThirdPartyPrincipal_descriptor; @@ -1435,41 +1385,6 @@ private void buildPartial0( } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other @@ -1794,6 +1709,8 @@ public com.google.protobuf.Parser getParserForType() { } private int authorityCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object authority_; public enum AuthorityCase @@ -2326,39 +2243,6 @@ private void buildPartialOneofs(com.google.cloud.audit.ServiceAccountDelegationI } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.audit.ServiceAccountDelegationInfo) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfoOrBuilder.java index 6dd5b65ce7..eaad80e169 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfoOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfoOrBuilder.java @@ -142,5 +142,5 @@ public interface ServiceAccountDelegationInfoOrBuilder com.google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipalOrBuilder getThirdPartyPrincipalOrBuilder(); - public com.google.cloud.audit.ServiceAccountDelegationInfo.AuthorityCase getAuthorityCase(); + com.google.cloud.audit.ServiceAccountDelegationInfo.AuthorityCase getAuthorityCase(); } diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ViolationInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ViolationInfo.java index 3311f42a98..826d358967 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ViolationInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ViolationInfo.java @@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ViolationInfo(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.audit.AuditLogProto .internal_static_google_cloud_audit_ViolationInfo_descriptor; @@ -723,39 +718,6 @@ private void buildPartial0(com.google.cloud.audit.ViolationInfo result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.audit.ViolationInfo) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/GetLocationRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/GetLocationRequest.java index ccb3932003..a937d732cc 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/GetLocationRequest.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/GetLocationRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetLocationRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.location.LocationsProto .internal_static_google_cloud_location_GetLocationRequest_descriptor; @@ -358,39 +353,6 @@ private void buildPartial0(com.google.cloud.location.GetLocationRequest result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.location.GetLocationRequest) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsRequest.java index 8f0385f283..7e22e7b460 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsRequest.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsRequest.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLocationsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.location.LocationsProto .internal_static_google_cloud_location_ListLocationsRequest_descriptor; @@ -519,39 +514,6 @@ private void buildPartial0(com.google.cloud.location.ListLocationsRequest result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.location.ListLocationsRequest) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsResponse.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsResponse.java index 5367d42a46..cadb55c215 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsResponse.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsResponse.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLocationsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.location.LocationsProto .internal_static_google_cloud_location_ListLocationsResponse_descriptor; @@ -462,39 +457,6 @@ private void buildPartial0(com.google.cloud.location.ListLocationsResponse resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.location.ListLocationsResponse) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/Location.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/Location.java index 936101f085..8901862270 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/Location.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/Location.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Location(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.location.LocationsProto .internal_static_google_cloud_location_Location_descriptor; @@ -268,6 +263,7 @@ public int getLabelsCount() { * *
    * Cross-service attributes for the location. For example
+   *
    *     {"cloud.googleapis.com/region": "us-east1"}
    * 
* @@ -291,6 +287,7 @@ public java.util.Map getLabels() { * *
    * Cross-service attributes for the location. For example
+   *
    *     {"cloud.googleapis.com/region": "us-east1"}
    * 
* @@ -305,6 +302,7 @@ public java.util.Map getLabelsMap() { * *
    * Cross-service attributes for the location. For example
+   *
    *     {"cloud.googleapis.com/region": "us-east1"}
    * 
* @@ -326,6 +324,7 @@ public java.util.Map getLabelsMap() { * *
    * Cross-service attributes for the location. For example
+   *
    *     {"cloud.googleapis.com/region": "us-east1"}
    * 
* @@ -719,39 +718,6 @@ private void buildPartial0(com.google.cloud.location.Location result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.location.Location) { @@ -1223,6 +1189,7 @@ public int getLabelsCount() { * *
      * Cross-service attributes for the location. For example
+     *
      *     {"cloud.googleapis.com/region": "us-east1"}
      * 
* @@ -1246,6 +1213,7 @@ public java.util.Map getLabels() { * *
      * Cross-service attributes for the location. For example
+     *
      *     {"cloud.googleapis.com/region": "us-east1"}
      * 
* @@ -1260,6 +1228,7 @@ public java.util.Map getLabelsMap() { * *
      * Cross-service attributes for the location. For example
+     *
      *     {"cloud.googleapis.com/region": "us-east1"}
      * 
* @@ -1281,6 +1250,7 @@ public java.util.Map getLabelsMap() { * *
      * Cross-service attributes for the location. For example
+     *
      *     {"cloud.googleapis.com/region": "us-east1"}
      * 
* @@ -1308,6 +1278,7 @@ public Builder clearLabels() { * *
      * Cross-service attributes for the location. For example
+     *
      *     {"cloud.googleapis.com/region": "us-east1"}
      * 
* @@ -1331,6 +1302,7 @@ public java.util.Map getMutableLabels() { * *
      * Cross-service attributes for the location. For example
+     *
      *     {"cloud.googleapis.com/region": "us-east1"}
      * 
* @@ -1352,6 +1324,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * *
      * Cross-service attributes for the location. For example
+     *
      *     {"cloud.googleapis.com/region": "us-east1"}
      * 
* diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/LocationOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/LocationOrBuilder.java index 72eade68c2..4b358ed53d 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/LocationOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/LocationOrBuilder.java @@ -107,6 +107,7 @@ public interface LocationOrBuilder * *
    * Cross-service attributes for the location. For example
+   *
    *     {"cloud.googleapis.com/region": "us-east1"}
    * 
* @@ -118,6 +119,7 @@ public interface LocationOrBuilder * *
    * Cross-service attributes for the location. For example
+   *
    *     {"cloud.googleapis.com/region": "us-east1"}
    * 
* @@ -132,6 +134,7 @@ public interface LocationOrBuilder * *
    * Cross-service attributes for the location. For example
+   *
    *     {"cloud.googleapis.com/region": "us-east1"}
    * 
* @@ -143,6 +146,7 @@ public interface LocationOrBuilder * *
    * Cross-service attributes for the location. For example
+   *
    *     {"cloud.googleapis.com/region": "us-east1"}
    * 
* @@ -158,6 +162,7 @@ java.lang.String getLabelsOrDefault( * *
    * Cross-service attributes for the location. For example
+   *
    *     {"cloud.googleapis.com/region": "us-east1"}
    * 
* diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/geo/type/Viewport.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/geo/type/Viewport.java index c0eaf905ee..1e19140b74 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/geo/type/Viewport.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/geo/type/Viewport.java @@ -27,18 +27,26 @@ * its boundary. The latitude bounds must range between -90 to 90 degrees * inclusive, and the longitude bounds must range between -180 to 180 degrees * inclusive. Various cases include: + * * - If `low` = `high`, the viewport consists of that single point. + * * - If `low.longitude` > `high.longitude`, the longitude range is inverted * (the viewport crosses the 180 degree longitude line). + * * - If `low.longitude` = -180 degrees and `high.longitude` = 180 degrees, * the viewport includes all longitudes. + * * - If `low.longitude` = 180 degrees and `high.longitude` = -180 degrees, * the longitude range is empty. + * * - If `low.latitude` > `high.latitude`, the latitude range is empty. + * * Both `low` and `high` must be populated, and the represented box cannot be * empty (as specified by the definitions above). An empty viewport will result * in an error. + * * For example, this viewport fully encloses New York City: + * * { * "low": { * "latitude": 40.477398, @@ -71,11 +79,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Viewport(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.type.ViewportProto.internal_static_google_geo_type_Viewport_descriptor; } @@ -366,18 +369,26 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * its boundary. The latitude bounds must range between -90 to 90 degrees * inclusive, and the longitude bounds must range between -180 to 180 degrees * inclusive. Various cases include: + * * - If `low` = `high`, the viewport consists of that single point. + * * - If `low.longitude` > `high.longitude`, the longitude range is inverted * (the viewport crosses the 180 degree longitude line). + * * - If `low.longitude` = -180 degrees and `high.longitude` = 180 degrees, * the viewport includes all longitudes. + * * - If `low.longitude` = 180 degrees and `high.longitude` = -180 degrees, * the longitude range is empty. + * * - If `low.latitude` > `high.latitude`, the latitude range is empty. + * * Both `low` and `high` must be populated, and the represented box cannot be * empty (as specified by the definitions above). An empty viewport will result * in an error. + * * For example, this viewport fully encloses New York City: + * * { * "low": { * "latitude": 40.477398, @@ -472,39 +483,6 @@ private void buildPartial0(com.google.geo.type.Viewport result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.geo.type.Viewport) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequest.java index 37a52d34c9..b22db62e2a 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequest.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequest.java @@ -55,11 +55,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HttpRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.logging.type.HttpRequestProto .internal_static_google_logging_type_HttpRequest_descriptor; @@ -1068,39 +1063,6 @@ private void buildPartial0(com.google.logging.type.HttpRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.type.HttpRequest) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverity.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverity.java index 4ec7bfe118..7238de705c 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverity.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverity.java @@ -26,10 +26,13 @@ * standard severity levels listed below. For your reference, the levels are * assigned the listed numeric values. The effect of using numeric values other * than those listed is undefined. + * * You can filter for log entries by severity. For example, the following * filter expression will match log entries with severities `INFO`, `NOTICE`, * and `WARNING`: + * * severity > DEBUG AND severity <= WARNING + * * If you are writing log entries, you should map other severity encodings to * one of these standard levels. For example, you might map all of Java's FINE, * FINER, and FINEST levels to `LogSeverity.DEBUG`. You can preserve the diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequest.java index 455e6539e5..6868f36b0b 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequest.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CancelOperationRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.longrunning.OperationsProto .internal_static_google_longrunning_CancelOperationRequest_descriptor; @@ -358,39 +353,6 @@ private void buildPartial0(com.google.longrunning.CancelOperationRequest result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.longrunning.CancelOperationRequest) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequest.java index 5d74c7f44c..8b4370dcff 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequest.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteOperationRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.longrunning.OperationsProto .internal_static_google_longrunning_DeleteOperationRequest_descriptor; @@ -358,39 +353,6 @@ private void buildPartial0(com.google.longrunning.DeleteOperationRequest result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.longrunning.DeleteOperationRequest) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequest.java index c815fad8a1..b78572086b 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequest.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetOperationRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.longrunning.OperationsProto .internal_static_google_longrunning_GetOperationRequest_descriptor; @@ -358,39 +353,6 @@ private void buildPartial0(com.google.longrunning.GetOperationRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.longrunning.GetOperationRequest) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequest.java index 7da625be76..b8936085a2 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequest.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequest.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListOperationsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.longrunning.OperationsProto .internal_static_google_longrunning_ListOperationsRequest_descriptor; @@ -519,39 +514,6 @@ private void buildPartial0(com.google.longrunning.ListOperationsRequest result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.longrunning.ListOperationsRequest) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponse.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponse.java index af082c12a4..e33b47c235 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponse.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponse.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListOperationsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.longrunning.OperationsProto .internal_static_google_longrunning_ListOperationsResponse_descriptor; @@ -461,39 +456,6 @@ private void buildPartial0(com.google.longrunning.ListOperationsResponse result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.longrunning.ListOperationsResponse) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/Operation.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/Operation.java index 16832c02ce..a1c86193fe 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/Operation.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/Operation.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Operation(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.longrunning.OperationsProto .internal_static_google_longrunning_Operation_descriptor; @@ -68,6 +63,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int resultCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object result_; public enum ResultCase @@ -699,39 +696,6 @@ private void buildPartialOneofs(com.google.longrunning.Operation result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.longrunning.Operation) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfo.java index 8e6dd32dd9..389f656706 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfo.java @@ -23,7 +23,9 @@ * *
  * A message representing the message types used by a long-running operation.
+ *
  * Example:
+ *
  *   rpc LongRunningRecognize(LongRunningRecognizeRequest)
  *       returns (google.longrunning.Operation) {
  *     option (google.longrunning.operation_info) = {
@@ -56,11 +58,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new OperationInfo();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.longrunning.OperationsProto
         .internal_static_google_longrunning_OperationInfo_descriptor;
@@ -87,8 +84,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * Required. The message name of the primary return type for this
    * long-running operation.
    * This type will be used to deserialize the LRO's response.
+   *
    * If the response is in a different package from the rpc, a fully-qualified
    * message name must be used (e.g. `google.protobuf.Struct`).
+   *
    * Note: Altering this value constitutes a breaking change.
    * 
* @@ -115,8 +114,10 @@ public java.lang.String getResponseType() { * Required. The message name of the primary return type for this * long-running operation. * This type will be used to deserialize the LRO's response. + * * If the response is in a different package from the rpc, a fully-qualified * message name must be used (e.g. `google.protobuf.Struct`). + * * Note: Altering this value constitutes a breaking change. *
* @@ -147,8 +148,10 @@ public com.google.protobuf.ByteString getResponseTypeBytes() { *
    * Required. The message name of the metadata type for this long-running
    * operation.
+   *
    * If the response is in a different package from the rpc, a fully-qualified
    * message name must be used (e.g. `google.protobuf.Struct`).
+   *
    * Note: Altering this value constitutes a breaking change.
    * 
* @@ -174,8 +177,10 @@ public java.lang.String getMetadataType() { *
    * Required. The message name of the metadata type for this long-running
    * operation.
+   *
    * If the response is in a different package from the rpc, a fully-qualified
    * message name must be used (e.g. `google.protobuf.Struct`).
+   *
    * Note: Altering this value constitutes a breaking change.
    * 
* @@ -367,7 +372,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * A message representing the message types used by a long-running operation.
+   *
    * Example:
+   *
    *   rpc LongRunningRecognize(LongRunningRecognizeRequest)
    *       returns (google.longrunning.Operation) {
    *     option (google.longrunning.operation_info) = {
@@ -454,39 +461,6 @@ private void buildPartial0(com.google.longrunning.OperationInfo result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.longrunning.OperationInfo) {
@@ -574,8 +548,10 @@ public Builder mergeFrom(
      * Required. The message name of the primary return type for this
      * long-running operation.
      * This type will be used to deserialize the LRO's response.
+     *
      * If the response is in a different package from the rpc, a fully-qualified
      * message name must be used (e.g. `google.protobuf.Struct`).
+     *
      * Note: Altering this value constitutes a breaking change.
      * 
* @@ -601,8 +577,10 @@ public java.lang.String getResponseType() { * Required. The message name of the primary return type for this * long-running operation. * This type will be used to deserialize the LRO's response. + * * If the response is in a different package from the rpc, a fully-qualified * message name must be used (e.g. `google.protobuf.Struct`). + * * Note: Altering this value constitutes a breaking change. *
* @@ -628,8 +606,10 @@ public com.google.protobuf.ByteString getResponseTypeBytes() { * Required. The message name of the primary return type for this * long-running operation. * This type will be used to deserialize the LRO's response. + * * If the response is in a different package from the rpc, a fully-qualified * message name must be used (e.g. `google.protobuf.Struct`). + * * Note: Altering this value constitutes a breaking change. *
* @@ -654,8 +634,10 @@ public Builder setResponseType(java.lang.String value) { * Required. The message name of the primary return type for this * long-running operation. * This type will be used to deserialize the LRO's response. + * * If the response is in a different package from the rpc, a fully-qualified * message name must be used (e.g. `google.protobuf.Struct`). + * * Note: Altering this value constitutes a breaking change. *
* @@ -676,8 +658,10 @@ public Builder clearResponseType() { * Required. The message name of the primary return type for this * long-running operation. * This type will be used to deserialize the LRO's response. + * * If the response is in a different package from the rpc, a fully-qualified * message name must be used (e.g. `google.protobuf.Struct`). + * * Note: Altering this value constitutes a breaking change. *
* @@ -704,8 +688,10 @@ public Builder setResponseTypeBytes(com.google.protobuf.ByteString value) { *
      * Required. The message name of the metadata type for this long-running
      * operation.
+     *
      * If the response is in a different package from the rpc, a fully-qualified
      * message name must be used (e.g. `google.protobuf.Struct`).
+     *
      * Note: Altering this value constitutes a breaking change.
      * 
* @@ -730,8 +716,10 @@ public java.lang.String getMetadataType() { *
      * Required. The message name of the metadata type for this long-running
      * operation.
+     *
      * If the response is in a different package from the rpc, a fully-qualified
      * message name must be used (e.g. `google.protobuf.Struct`).
+     *
      * Note: Altering this value constitutes a breaking change.
      * 
* @@ -756,8 +744,10 @@ public com.google.protobuf.ByteString getMetadataTypeBytes() { *
      * Required. The message name of the metadata type for this long-running
      * operation.
+     *
      * If the response is in a different package from the rpc, a fully-qualified
      * message name must be used (e.g. `google.protobuf.Struct`).
+     *
      * Note: Altering this value constitutes a breaking change.
      * 
* @@ -781,8 +771,10 @@ public Builder setMetadataType(java.lang.String value) { *
      * Required. The message name of the metadata type for this long-running
      * operation.
+     *
      * If the response is in a different package from the rpc, a fully-qualified
      * message name must be used (e.g. `google.protobuf.Struct`).
+     *
      * Note: Altering this value constitutes a breaking change.
      * 
* @@ -802,8 +794,10 @@ public Builder clearMetadataType() { *
      * Required. The message name of the metadata type for this long-running
      * operation.
+     *
      * If the response is in a different package from the rpc, a fully-qualified
      * message name must be used (e.g. `google.protobuf.Struct`).
+     *
      * Note: Altering this value constitutes a breaking change.
      * 
* diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfoOrBuilder.java index 2e65c6e69c..e0d5a389f2 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfoOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfoOrBuilder.java @@ -30,8 +30,10 @@ public interface OperationInfoOrBuilder * Required. The message name of the primary return type for this * long-running operation. * This type will be used to deserialize the LRO's response. + * * If the response is in a different package from the rpc, a fully-qualified * message name must be used (e.g. `google.protobuf.Struct`). + * * Note: Altering this value constitutes a breaking change. *
* @@ -47,8 +49,10 @@ public interface OperationInfoOrBuilder * Required. The message name of the primary return type for this * long-running operation. * This type will be used to deserialize the LRO's response. + * * If the response is in a different package from the rpc, a fully-qualified * message name must be used (e.g. `google.protobuf.Struct`). + * * Note: Altering this value constitutes a breaking change. *
* @@ -64,8 +68,10 @@ public interface OperationInfoOrBuilder *
    * Required. The message name of the metadata type for this long-running
    * operation.
+   *
    * If the response is in a different package from the rpc, a fully-qualified
    * message name must be used (e.g. `google.protobuf.Struct`).
+   *
    * Note: Altering this value constitutes a breaking change.
    * 
* @@ -80,8 +86,10 @@ public interface OperationInfoOrBuilder *
    * Required. The message name of the metadata type for this long-running
    * operation.
+   *
    * If the response is in a different package from the rpc, a fully-qualified
    * message name must be used (e.g. `google.protobuf.Struct`).
+   *
    * Note: Altering this value constitutes a breaking change.
    * 
* diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationOrBuilder.java index beb4b5e4d0..5ed218983d 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationOrBuilder.java @@ -202,5 +202,5 @@ public interface OperationOrBuilder */ com.google.protobuf.AnyOrBuilder getResponseOrBuilder(); - public com.google.longrunning.Operation.ResultCase getResultCase(); + com.google.longrunning.Operation.ResultCase getResultCase(); } diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationsProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationsProto.java index 781db90574..18dae2a6fb 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationsProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationsProto.java @@ -37,6 +37,7 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r * Additional information regarding long-running operations. * In particular, this specifies the types that are returned from * long-running operations. + * * Required for methods that return `google.longrunning.Operation`; invalid * otherwise. *
@@ -116,18 +117,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pe\030\002 \001(\t2\252\005\n\nOperations\022\224\001\n\016ListOperatio" + "ns\022).google.longrunning.ListOperationsRe" + "quest\032*.google.longrunning.ListOperation" - + "sResponse\"+\202\323\344\223\002\027\022\025/v1/{name=operations}" - + "\332A\013name,filter\022\177\n\014GetOperation\022\'.google." + + "sResponse\"+\332A\013name,filter\202\323\344\223\002\027\022\025/v1/{na" + + "me=operations}\022\177\n\014GetOperation\022\'.google." + "longrunning.GetOperationRequest\032\035.google" - + ".longrunning.Operation\"\'\202\323\344\223\002\032\022\030/v1/{nam" - + "e=operations/**}\332A\004name\022~\n\017DeleteOperati" + + ".longrunning.Operation\"\'\332A\004name\202\323\344\223\002\032\022\030/" + + "v1/{name=operations/**}\022~\n\017DeleteOperati" + "on\022*.google.longrunning.DeleteOperationR" - + "equest\032\026.google.protobuf.Empty\"\'\202\323\344\223\002\032*\030" - + "/v1/{name=operations/**}\332A\004name\022\210\001\n\017Canc" + + "equest\032\026.google.protobuf.Empty\"\'\332A\004name\202" + + "\323\344\223\002\032*\030/v1/{name=operations/**}\022\210\001\n\017Canc" + "elOperation\022*.google.longrunning.CancelO" + "perationRequest\032\026.google.protobuf.Empty\"" - + "1\202\323\344\223\002$\"\037/v1/{name=operations/**}:cancel" - + ":\001*\332A\004name\022Z\n\rWaitOperation\022(.google.lon" + + "1\332A\004name\202\323\344\223\002$\"\037/v1/{name=operations/**}" + + ":cancel:\001*\022Z\n\rWaitOperation\022(.google.lon" + "grunning.WaitOperationRequest\032\035.google.l" + "ongrunning.Operation\"\000\032\035\312A\032longrunning.g" + "oogleapis.com:Z\n\016operation_info\022\036.google" diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequest.java index 69570f9b3c..006f0ed47d 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequest.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WaitOperationRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.longrunning.OperationsProto .internal_static_google_longrunning_WaitOperationRequest_descriptor; @@ -432,39 +427,6 @@ private void buildPartial0(com.google.longrunning.WaitOperationRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.longrunning.WaitOperationRequest) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/BadRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/BadRequest.java index 417e4ab37f..cf63124ea9 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/BadRequest.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/BadRequest.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BadRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_BadRequest_descriptor; } @@ -77,7 +72,9 @@ public interface FieldViolationOrBuilder * A path that leads to a field in the request body. The value will be a * sequence of dot-separated identifiers that identify a protocol buffer * field. + * * Consider the following: + * * message CreateContactRequest { * message EmailAddress { * enum Type { @@ -85,19 +82,25 @@ public interface FieldViolationOrBuilder * HOME = 1; * WORK = 2; * } + * * optional string email = 1; * repeated EmailType type = 2; * } + * * string full_name = 1; * repeated EmailAddress email_addresses = 2; * } + * * In this example, in proto `field` could take one of the following values: + * * * `full_name` for a violation in the `full_name` value * * `email_addresses[1].email` for a violation in the `email` field of the * first `email_addresses` message * * `email_addresses[3].type[2]` for a violation in the second `type` * value in the third `email_addresses` message. + * * In JSON, the same values are represented as: + * * * `fullName` for a violation in the `fullName` value * * `emailAddresses[1].email` for a violation in the `email` field of the * first `emailAddresses` message @@ -117,7 +120,9 @@ public interface FieldViolationOrBuilder * A path that leads to a field in the request body. The value will be a * sequence of dot-separated identifiers that identify a protocol buffer * field. + * * Consider the following: + * * message CreateContactRequest { * message EmailAddress { * enum Type { @@ -125,19 +130,25 @@ public interface FieldViolationOrBuilder * HOME = 1; * WORK = 2; * } + * * optional string email = 1; * repeated EmailType type = 2; * } + * * string full_name = 1; * repeated EmailAddress email_addresses = 2; * } + * * In this example, in proto `field` could take one of the following values: + * * * `full_name` for a violation in the `full_name` value * * `email_addresses[1].email` for a violation in the `email` field of the * first `email_addresses` message * * `email_addresses[3].type[2]` for a violation in the second `type` * value in the third `email_addresses` message. + * * In JSON, the same values are represented as: + * * * `fullName` for a violation in the `fullName` value * * `emailAddresses[1].email` for a violation in the `email` field of the * first `emailAddresses` message @@ -206,11 +217,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FieldViolation(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.ErrorDetailsProto .internal_static_google_rpc_BadRequest_FieldViolation_descriptor; @@ -237,7 +243,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * A path that leads to a field in the request body. The value will be a * sequence of dot-separated identifiers that identify a protocol buffer * field. + * * Consider the following: + * * message CreateContactRequest { * message EmailAddress { * enum Type { @@ -245,19 +253,25 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * HOME = 1; * WORK = 2; * } + * * optional string email = 1; * repeated EmailType type = 2; * } + * * string full_name = 1; * repeated EmailAddress email_addresses = 2; * } + * * In this example, in proto `field` could take one of the following values: + * * * `full_name` for a violation in the `full_name` value * * `email_addresses[1].email` for a violation in the `email` field of the * first `email_addresses` message * * `email_addresses[3].type[2]` for a violation in the second `type` * value in the third `email_addresses` message. + * * In JSON, the same values are represented as: + * * * `fullName` for a violation in the `fullName` value * * `emailAddresses[1].email` for a violation in the `email` field of the * first `emailAddresses` message @@ -288,7 +302,9 @@ public java.lang.String getField() { * A path that leads to a field in the request body. The value will be a * sequence of dot-separated identifiers that identify a protocol buffer * field. + * * Consider the following: + * * message CreateContactRequest { * message EmailAddress { * enum Type { @@ -296,19 +312,25 @@ public java.lang.String getField() { * HOME = 1; * WORK = 2; * } + * * optional string email = 1; * repeated EmailType type = 2; * } + * * string full_name = 1; * repeated EmailAddress email_addresses = 2; * } + * * In this example, in proto `field` could take one of the following values: + * * * `full_name` for a violation in the `full_name` value * * `email_addresses[1].email` for a violation in the `email` field of the * first `email_addresses` message * * `email_addresses[3].type[2]` for a violation in the second `type` * value in the third `email_addresses` message. + * * In JSON, the same values are represented as: + * * * `fullName` for a violation in the `fullName` value * * `emailAddresses[1].email` for a violation in the `email` field of the * first `emailAddresses` message @@ -639,41 +661,6 @@ private void buildPartial0(com.google.rpc.BadRequest.FieldViolation result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.rpc.BadRequest.FieldViolation) { @@ -761,7 +748,9 @@ public Builder mergeFrom( * A path that leads to a field in the request body. The value will be a * sequence of dot-separated identifiers that identify a protocol buffer * field. + * * Consider the following: + * * message CreateContactRequest { * message EmailAddress { * enum Type { @@ -769,19 +758,25 @@ public Builder mergeFrom( * HOME = 1; * WORK = 2; * } + * * optional string email = 1; * repeated EmailType type = 2; * } + * * string full_name = 1; * repeated EmailAddress email_addresses = 2; * } + * * In this example, in proto `field` could take one of the following values: + * * * `full_name` for a violation in the `full_name` value * * `email_addresses[1].email` for a violation in the `email` field of the * first `email_addresses` message * * `email_addresses[3].type[2]` for a violation in the second `type` * value in the third `email_addresses` message. + * * In JSON, the same values are represented as: + * * * `fullName` for a violation in the `fullName` value * * `emailAddresses[1].email` for a violation in the `email` field of the * first `emailAddresses` message @@ -811,7 +806,9 @@ public java.lang.String getField() { * A path that leads to a field in the request body. The value will be a * sequence of dot-separated identifiers that identify a protocol buffer * field. + * * Consider the following: + * * message CreateContactRequest { * message EmailAddress { * enum Type { @@ -819,19 +816,25 @@ public java.lang.String getField() { * HOME = 1; * WORK = 2; * } + * * optional string email = 1; * repeated EmailType type = 2; * } + * * string full_name = 1; * repeated EmailAddress email_addresses = 2; * } + * * In this example, in proto `field` could take one of the following values: + * * * `full_name` for a violation in the `full_name` value * * `email_addresses[1].email` for a violation in the `email` field of the * first `email_addresses` message * * `email_addresses[3].type[2]` for a violation in the second `type` * value in the third `email_addresses` message. + * * In JSON, the same values are represented as: + * * * `fullName` for a violation in the `fullName` value * * `emailAddresses[1].email` for a violation in the `email` field of the * first `emailAddresses` message @@ -861,7 +864,9 @@ public com.google.protobuf.ByteString getFieldBytes() { * A path that leads to a field in the request body. The value will be a * sequence of dot-separated identifiers that identify a protocol buffer * field. + * * Consider the following: + * * message CreateContactRequest { * message EmailAddress { * enum Type { @@ -869,19 +874,25 @@ public com.google.protobuf.ByteString getFieldBytes() { * HOME = 1; * WORK = 2; * } + * * optional string email = 1; * repeated EmailType type = 2; * } + * * string full_name = 1; * repeated EmailAddress email_addresses = 2; * } + * * In this example, in proto `field` could take one of the following values: + * * * `full_name` for a violation in the `full_name` value * * `email_addresses[1].email` for a violation in the `email` field of the * first `email_addresses` message * * `email_addresses[3].type[2]` for a violation in the second `type` * value in the third `email_addresses` message. + * * In JSON, the same values are represented as: + * * * `fullName` for a violation in the `fullName` value * * `emailAddresses[1].email` for a violation in the `email` field of the * first `emailAddresses` message @@ -910,7 +921,9 @@ public Builder setField(java.lang.String value) { * A path that leads to a field in the request body. The value will be a * sequence of dot-separated identifiers that identify a protocol buffer * field. + * * Consider the following: + * * message CreateContactRequest { * message EmailAddress { * enum Type { @@ -918,19 +931,25 @@ public Builder setField(java.lang.String value) { * HOME = 1; * WORK = 2; * } + * * optional string email = 1; * repeated EmailType type = 2; * } + * * string full_name = 1; * repeated EmailAddress email_addresses = 2; * } + * * In this example, in proto `field` could take one of the following values: + * * * `full_name` for a violation in the `full_name` value * * `email_addresses[1].email` for a violation in the `email` field of the * first `email_addresses` message * * `email_addresses[3].type[2]` for a violation in the second `type` * value in the third `email_addresses` message. + * * In JSON, the same values are represented as: + * * * `fullName` for a violation in the `fullName` value * * `emailAddresses[1].email` for a violation in the `email` field of the * first `emailAddresses` message @@ -955,7 +974,9 @@ public Builder clearField() { * A path that leads to a field in the request body. The value will be a * sequence of dot-separated identifiers that identify a protocol buffer * field. + * * Consider the following: + * * message CreateContactRequest { * message EmailAddress { * enum Type { @@ -963,19 +984,25 @@ public Builder clearField() { * HOME = 1; * WORK = 2; * } + * * optional string email = 1; * repeated EmailType type = 2; * } + * * string full_name = 1; * repeated EmailAddress email_addresses = 2; * } + * * In this example, in proto `field` could take one of the following values: + * * * `full_name` for a violation in the `full_name` value * * `email_addresses[1].email` for a violation in the `email` field of the * first `email_addresses` message * * `email_addresses[3].type[2]` for a violation in the second `type` * value in the third `email_addresses` message. + * * In JSON, the same values are represented as: + * * * `fullName` for a violation in the `fullName` value * * `emailAddresses[1].email` for a violation in the `email` field of the * first `emailAddresses` message @@ -1493,39 +1520,6 @@ private void buildPartial0(com.google.rpc.BadRequest result) { int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.rpc.BadRequest) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Code.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Code.java index 4e9024417f..a762494b4c 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Code.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Code.java @@ -23,6 +23,8 @@ * *
  * The canonical error codes for gRPC APIs.
+ *
+ *
  * Sometimes multiple error codes may apply.  Services should return
  * the most specific error code that applies.  For example, prefer
  * `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply.
@@ -37,6 +39,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
    *
    * 
    * Not an error; returned on success.
+   *
    * HTTP Mapping: 200 OK
    * 
* @@ -48,6 +51,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * *
    * The operation was cancelled, typically by the caller.
+   *
    * HTTP Mapping: 499 Client Closed Request
    * 
* @@ -63,6 +67,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * an error space that is not known in this address space. Also * errors raised by APIs that do not return enough error information * may be converted to this error. + * * HTTP Mapping: 500 Internal Server Error *
* @@ -77,6 +82,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments * that are problematic regardless of the state of the system * (e.g., a malformed file name). + * * HTTP Mapping: 400 Bad Request *
* @@ -92,6 +98,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * even if the operation has completed successfully. For example, a * successful response from a server could have been delayed long * enough for the deadline to expire. + * * HTTP Mapping: 504 Gateway Timeout *
* @@ -103,11 +110,13 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * *
    * Some requested entity (e.g., file or directory) was not found.
+   *
    * Note to server developers: if a request is denied for an entire class
    * of users, such as gradual feature rollout or undocumented allowlist,
    * `NOT_FOUND` may be used. If a request is denied for some users within
    * a class of users, such as user-based access control, `PERMISSION_DENIED`
    * must be used.
+   *
    * HTTP Mapping: 404 Not Found
    * 
* @@ -120,6 +129,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { *
    * The entity that a client attempted to create (e.g., file or directory)
    * already exists.
+   *
    * HTTP Mapping: 409 Conflict
    * 
* @@ -138,6 +148,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * instead for those errors). This error code does not imply the * request is valid or the requested entity exists or satisfies * other pre-conditions. + * * HTTP Mapping: 403 Forbidden *
* @@ -150,6 +161,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { *
    * The request does not have valid authentication credentials for the
    * operation.
+   *
    * HTTP Mapping: 401 Unauthorized
    * 
* @@ -162,6 +174,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { *
    * Some resource has been exhausted, perhaps a per-user quota, or
    * perhaps the entire file system is out of space.
+   *
    * HTTP Mapping: 429 Too Many Requests
    * 
* @@ -176,6 +189,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * required for the operation's execution. For example, the directory * to be deleted is non-empty, an rmdir operation is applied to * a non-directory, etc. + * * Service implementors can use the following guidelines to decide * between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: * (a) Use `UNAVAILABLE` if the client can retry just the failing call. @@ -187,6 +201,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * fails because the directory is non-empty, `FAILED_PRECONDITION` * should be returned since the client should not retry unless * the files are deleted from the directory. + * * HTTP Mapping: 400 Bad Request *
* @@ -199,8 +214,10 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { *
    * The operation was aborted, typically due to a concurrency issue such as
    * a sequencer check failure or transaction abort.
+   *
    * See the guidelines above for deciding between `FAILED_PRECONDITION`,
    * `ABORTED`, and `UNAVAILABLE`.
+   *
    * HTTP Mapping: 409 Conflict
    * 
* @@ -213,17 +230,20 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { *
    * The operation was attempted past the valid range.  E.g., seeking or
    * reading past end-of-file.
+   *
    * Unlike `INVALID_ARGUMENT`, this error indicates a problem that may
    * be fixed if the system state changes. For example, a 32-bit file
    * system will generate `INVALID_ARGUMENT` if asked to read at an
    * offset that is not in the range [0,2^32-1], but it will generate
    * `OUT_OF_RANGE` if asked to read from an offset past the current
    * file size.
+   *
    * There is a fair bit of overlap between `FAILED_PRECONDITION` and
    * `OUT_OF_RANGE`.  We recommend using `OUT_OF_RANGE` (the more specific
    * error) when it applies so that callers who are iterating through
    * a space can easily look for an `OUT_OF_RANGE` error to detect when
    * they are done.
+   *
    * HTTP Mapping: 400 Bad Request
    * 
* @@ -236,6 +256,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { *
    * The operation is not implemented or is not supported/enabled in this
    * service.
+   *
    * HTTP Mapping: 501 Not Implemented
    * 
* @@ -249,6 +270,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * Internal errors. This means that some invariants expected by the * underlying system have been broken. This error code is reserved * for serious errors. + * * HTTP Mapping: 500 Internal Server Error *
* @@ -263,8 +285,10 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * transient condition, which can be corrected by retrying with * a backoff. Note that it is not always safe to retry * non-idempotent operations. + * * See the guidelines above for deciding between `FAILED_PRECONDITION`, * `ABORTED`, and `UNAVAILABLE`. + * * HTTP Mapping: 503 Service Unavailable *
* @@ -276,6 +300,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * *
    * Unrecoverable data loss or corruption.
+   *
    * HTTP Mapping: 500 Internal Server Error
    * 
* @@ -290,6 +315,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * *
    * Not an error; returned on success.
+   *
    * HTTP Mapping: 200 OK
    * 
* @@ -301,6 +327,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * *
    * The operation was cancelled, typically by the caller.
+   *
    * HTTP Mapping: 499 Client Closed Request
    * 
* @@ -316,6 +343,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * an error space that is not known in this address space. Also * errors raised by APIs that do not return enough error information * may be converted to this error. + * * HTTP Mapping: 500 Internal Server Error *
* @@ -330,6 +358,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments * that are problematic regardless of the state of the system * (e.g., a malformed file name). + * * HTTP Mapping: 400 Bad Request * * @@ -345,6 +374,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * even if the operation has completed successfully. For example, a * successful response from a server could have been delayed long * enough for the deadline to expire. + * * HTTP Mapping: 504 Gateway Timeout * * @@ -356,11 +386,13 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * *
    * Some requested entity (e.g., file or directory) was not found.
+   *
    * Note to server developers: if a request is denied for an entire class
    * of users, such as gradual feature rollout or undocumented allowlist,
    * `NOT_FOUND` may be used. If a request is denied for some users within
    * a class of users, such as user-based access control, `PERMISSION_DENIED`
    * must be used.
+   *
    * HTTP Mapping: 404 Not Found
    * 
* @@ -373,6 +405,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { *
    * The entity that a client attempted to create (e.g., file or directory)
    * already exists.
+   *
    * HTTP Mapping: 409 Conflict
    * 
* @@ -391,6 +424,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * instead for those errors). This error code does not imply the * request is valid or the requested entity exists or satisfies * other pre-conditions. + * * HTTP Mapping: 403 Forbidden * * @@ -403,6 +437,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { *
    * The request does not have valid authentication credentials for the
    * operation.
+   *
    * HTTP Mapping: 401 Unauthorized
    * 
* @@ -415,6 +450,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { *
    * Some resource has been exhausted, perhaps a per-user quota, or
    * perhaps the entire file system is out of space.
+   *
    * HTTP Mapping: 429 Too Many Requests
    * 
* @@ -429,6 +465,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * required for the operation's execution. For example, the directory * to be deleted is non-empty, an rmdir operation is applied to * a non-directory, etc. + * * Service implementors can use the following guidelines to decide * between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: * (a) Use `UNAVAILABLE` if the client can retry just the failing call. @@ -440,6 +477,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * fails because the directory is non-empty, `FAILED_PRECONDITION` * should be returned since the client should not retry unless * the files are deleted from the directory. + * * HTTP Mapping: 400 Bad Request * * @@ -452,8 +490,10 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { *
    * The operation was aborted, typically due to a concurrency issue such as
    * a sequencer check failure or transaction abort.
+   *
    * See the guidelines above for deciding between `FAILED_PRECONDITION`,
    * `ABORTED`, and `UNAVAILABLE`.
+   *
    * HTTP Mapping: 409 Conflict
    * 
* @@ -466,17 +506,20 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { *
    * The operation was attempted past the valid range.  E.g., seeking or
    * reading past end-of-file.
+   *
    * Unlike `INVALID_ARGUMENT`, this error indicates a problem that may
    * be fixed if the system state changes. For example, a 32-bit file
    * system will generate `INVALID_ARGUMENT` if asked to read at an
    * offset that is not in the range [0,2^32-1], but it will generate
    * `OUT_OF_RANGE` if asked to read from an offset past the current
    * file size.
+   *
    * There is a fair bit of overlap between `FAILED_PRECONDITION` and
    * `OUT_OF_RANGE`.  We recommend using `OUT_OF_RANGE` (the more specific
    * error) when it applies so that callers who are iterating through
    * a space can easily look for an `OUT_OF_RANGE` error to detect when
    * they are done.
+   *
    * HTTP Mapping: 400 Bad Request
    * 
* @@ -489,6 +532,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { *
    * The operation is not implemented or is not supported/enabled in this
    * service.
+   *
    * HTTP Mapping: 501 Not Implemented
    * 
* @@ -502,6 +546,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * Internal errors. This means that some invariants expected by the * underlying system have been broken. This error code is reserved * for serious errors. + * * HTTP Mapping: 500 Internal Server Error * * @@ -516,8 +561,10 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * transient condition, which can be corrected by retrying with * a backoff. Note that it is not always safe to retry * non-idempotent operations. + * * See the guidelines above for deciding between `FAILED_PRECONDITION`, * `ABORTED`, and `UNAVAILABLE`. + * * HTTP Mapping: 503 Service Unavailable * * @@ -529,6 +576,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * *
    * Unrecoverable data loss or corruption.
+   *
    * HTTP Mapping: 500 Internal Server Error
    * 
* diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfo.java index 278956d960..e441862e79 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfo.java @@ -38,7 +38,7 @@ private DebugInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { } private DebugInfo() { - stackEntries_ = com.google.protobuf.LazyStringArrayList.EMPTY; + stackEntries_ = com.google.protobuf.LazyStringArrayList.emptyList(); detail_ = ""; } @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DebugInfo(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_DebugInfo_descriptor; } @@ -68,7 +63,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int STACK_ENTRIES_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList stackEntries_; + private com.google.protobuf.LazyStringArrayList stackEntries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -389,8 +385,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - stackEntries_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + stackEntries_ = com.google.protobuf.LazyStringArrayList.emptyList(); detail_ = ""; return this; } @@ -417,7 +412,6 @@ public com.google.rpc.DebugInfo build() { @java.lang.Override public com.google.rpc.DebugInfo buildPartial() { com.google.rpc.DebugInfo result = new com.google.rpc.DebugInfo(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -425,54 +419,17 @@ public com.google.rpc.DebugInfo buildPartial() { return result; } - private void buildPartialRepeatedFields(com.google.rpc.DebugInfo result) { - if (((bitField0_ & 0x00000001) != 0)) { - stackEntries_ = stackEntries_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.stackEntries_ = stackEntries_; - } - private void buildPartial0(com.google.rpc.DebugInfo result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + stackEntries_.makeImmutable(); + result.stackEntries_ = stackEntries_; + } if (((from_bitField0_ & 0x00000002) != 0)) { result.detail_ = detail_; } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.rpc.DebugInfo) { @@ -488,7 +445,7 @@ public Builder mergeFrom(com.google.rpc.DebugInfo other) { if (!other.stackEntries_.isEmpty()) { if (stackEntries_.isEmpty()) { stackEntries_ = other.stackEntries_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensureStackEntriesIsMutable(); stackEntries_.addAll(other.stackEntries_); @@ -558,14 +515,14 @@ public Builder mergeFrom( private int bitField0_; - private com.google.protobuf.LazyStringList stackEntries_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList stackEntries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureStackEntriesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!stackEntries_.isModifiable()) { stackEntries_ = new com.google.protobuf.LazyStringArrayList(stackEntries_); - bitField0_ |= 0x00000001; } + bitField0_ |= 0x00000001; } /** * @@ -579,7 +536,8 @@ private void ensureStackEntriesIsMutable() { * @return A list containing the stackEntries. */ public com.google.protobuf.ProtocolStringList getStackEntriesList() { - return stackEntries_.getUnmodifiableView(); + stackEntries_.makeImmutable(); + return stackEntries_; } /** * @@ -644,6 +602,7 @@ public Builder setStackEntries(int index, java.lang.String value) { } ensureStackEntriesIsMutable(); stackEntries_.set(index, value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -665,6 +624,7 @@ public Builder addStackEntries(java.lang.String value) { } ensureStackEntriesIsMutable(); stackEntries_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -683,6 +643,7 @@ public Builder addStackEntries(java.lang.String value) { public Builder addAllStackEntries(java.lang.Iterable values) { ensureStackEntriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stackEntries_); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -698,8 +659,9 @@ public Builder addAllStackEntries(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearStackEntries() { - stackEntries_ = com.google.protobuf.LazyStringArrayList.EMPTY; + stackEntries_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } @@ -722,6 +684,7 @@ public Builder addStackEntriesBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureStackEntriesIsMutable(); stackEntries_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfo.java index b5c4a71be2..cbab12ccfd 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfo.java @@ -23,8 +23,10 @@ * *
  * Describes the cause of the error with structured details.
+ *
  * Example of an error when contacting the "pubsub.googleapis.com" API when it
  * is not enabled:
+ *
  *     { "reason": "API_DISABLED"
  *       "domain": "googleapis.com"
  *       "metadata": {
@@ -32,9 +34,12 @@
  *         "service": "pubsub.googleapis.com"
  *       }
  *     }
+ *
  * This response indicates that the pubsub.googleapis.com API is not enabled.
+ *
  * Example of an error that is returned when attempting to create a Spanner
  * instance in a region that is out of stock:
+ *
  *     { "reason": "STOCKOUT"
  *       "domain": "spanner.googleapis.com",
  *       "metadata": {
@@ -66,11 +71,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ErrorInfo();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_ErrorInfo_descriptor;
   }
@@ -245,6 +245,7 @@ public int getMetadataCount() {
    *
    * 
    * Additional structured details about this error.
+   *
    * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
    * length. When identifying the current value of an exceeded limit, the units
    * should be contained in the key, not the value.  For example, rather than
@@ -273,6 +274,7 @@ public java.util.Map getMetadata() {
    *
    * 
    * Additional structured details about this error.
+   *
    * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
    * length. When identifying the current value of an exceeded limit, the units
    * should be contained in the key, not the value.  For example, rather than
@@ -292,6 +294,7 @@ public java.util.Map getMetadataMap() {
    *
    * 
    * Additional structured details about this error.
+   *
    * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
    * length. When identifying the current value of an exceeded limit, the units
    * should be contained in the key, not the value.  For example, rather than
@@ -318,6 +321,7 @@ public java.util.Map getMetadataMap() {
    *
    * 
    * Additional structured details about this error.
+   *
    * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
    * length. When identifying the current value of an exceeded limit, the units
    * should be contained in the key, not the value.  For example, rather than
@@ -528,8 +532,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 
    * Describes the cause of the error with structured details.
+   *
    * Example of an error when contacting the "pubsub.googleapis.com" API when it
    * is not enabled:
+   *
    *     { "reason": "API_DISABLED"
    *       "domain": "googleapis.com"
    *       "metadata": {
@@ -537,9 +543,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *         "service": "pubsub.googleapis.com"
    *       }
    *     }
+   *
    * This response indicates that the pubsub.googleapis.com API is not enabled.
+   *
    * Example of an error that is returned when attempting to create a Spanner
    * instance in a region that is out of stock:
+   *
    *     { "reason": "STOCKOUT"
    *       "domain": "spanner.googleapis.com",
    *       "metadata": {
@@ -647,39 +656,6 @@ private void buildPartial0(com.google.rpc.ErrorInfo result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.rpc.ErrorInfo) {
@@ -1061,6 +1037,7 @@ public int getMetadataCount() {
      *
      * 
      * Additional structured details about this error.
+     *
      * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
      * length. When identifying the current value of an exceeded limit, the units
      * should be contained in the key, not the value.  For example, rather than
@@ -1089,6 +1066,7 @@ public java.util.Map getMetadata() {
      *
      * 
      * Additional structured details about this error.
+     *
      * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
      * length. When identifying the current value of an exceeded limit, the units
      * should be contained in the key, not the value.  For example, rather than
@@ -1108,6 +1086,7 @@ public java.util.Map getMetadataMap() {
      *
      * 
      * Additional structured details about this error.
+     *
      * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
      * length. When identifying the current value of an exceeded limit, the units
      * should be contained in the key, not the value.  For example, rather than
@@ -1134,6 +1113,7 @@ public java.util.Map getMetadataMap() {
      *
      * 
      * Additional structured details about this error.
+     *
      * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
      * length. When identifying the current value of an exceeded limit, the units
      * should be contained in the key, not the value.  For example, rather than
@@ -1166,6 +1146,7 @@ public Builder clearMetadata() {
      *
      * 
      * Additional structured details about this error.
+     *
      * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
      * length. When identifying the current value of an exceeded limit, the units
      * should be contained in the key, not the value.  For example, rather than
@@ -1194,6 +1175,7 @@ public java.util.Map getMutableMetadata() {
      *
      * 
      * Additional structured details about this error.
+     *
      * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
      * length. When identifying the current value of an exceeded limit, the units
      * should be contained in the key, not the value.  For example, rather than
@@ -1220,6 +1202,7 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) {
      *
      * 
      * Additional structured details about this error.
+     *
      * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
      * length. When identifying the current value of an exceeded limit, the units
      * should be contained in the key, not the value.  For example, rather than
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfoOrBuilder.java
index c563c2a587..f92f526b7f 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfoOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfoOrBuilder.java
@@ -96,6 +96,7 @@ public interface ErrorInfoOrBuilder
    *
    * 
    * Additional structured details about this error.
+   *
    * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
    * length. When identifying the current value of an exceeded limit, the units
    * should be contained in the key, not the value.  For example, rather than
@@ -112,6 +113,7 @@ public interface ErrorInfoOrBuilder
    *
    * 
    * Additional structured details about this error.
+   *
    * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
    * length. When identifying the current value of an exceeded limit, the units
    * should be contained in the key, not the value.  For example, rather than
@@ -131,6 +133,7 @@ public interface ErrorInfoOrBuilder
    *
    * 
    * Additional structured details about this error.
+   *
    * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
    * length. When identifying the current value of an exceeded limit, the units
    * should be contained in the key, not the value.  For example, rather than
@@ -147,6 +150,7 @@ public interface ErrorInfoOrBuilder
    *
    * 
    * Additional structured details about this error.
+   *
    * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
    * length. When identifying the current value of an exceeded limit, the units
    * should be contained in the key, not the value.  For example, rather than
@@ -167,6 +171,7 @@ java.lang.String getMetadataOrDefault(
    *
    * 
    * Additional structured details about this error.
+   *
    * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
    * length. When identifying the current value of an exceeded limit, the units
    * should be contained in the key, not the value.  For example, rather than
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Help.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Help.java
index e9063f68b9..7f1ce9860f 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Help.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Help.java
@@ -23,6 +23,7 @@
  *
  * 
  * Provides links to documentation or for performing an out of band action.
+ *
  * For example, if a quota check failed with an error indicating the calling
  * project hasn't enabled the accessed service, this can contain a URL pointing
  * directly to the right place in the developer console to flip the bit.
@@ -50,11 +51,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Help();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_descriptor;
   }
@@ -152,11 +148,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Link();
     }
 
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-      return this.unknownFields;
-    }
-
     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_Link_descriptor;
     }
@@ -521,41 +512,6 @@ private void buildPartial0(com.google.rpc.Help.Link result) {
         }
       }
 
-      @java.lang.Override
-      public Builder clone() {
-        return super.clone();
-      }
-
-      @java.lang.Override
-      public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-        return super.setField(field, value);
-      }
-
-      @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-        return super.clearField(field);
-      }
-
-      @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-        return super.clearOneof(oneof);
-      }
-
-      @java.lang.Override
-      public Builder setRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
-        return super.setRepeatedField(field, index, value);
-      }
-
-      @java.lang.Override
-      public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-        return super.addRepeatedField(field, value);
-      }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.rpc.Help.Link) {
@@ -1145,6 +1101,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 
    * Provides links to documentation or for performing an out of band action.
+   *
    * For example, if a quota check failed with an error indicating the calling
    * project hasn't enabled the accessed service, this can contain a URL pointing
    * directly to the right place in the developer console to flip the bit.
@@ -1235,39 +1192,6 @@ private void buildPartial0(com.google.rpc.Help result) {
       int from_bitField0_ = bitField0_;
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.rpc.Help) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessage.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessage.java
index b91c680d20..330854a8d7 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessage.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessage.java
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LocalizedMessage();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_LocalizedMessage_descriptor;
   }
@@ -423,39 +418,6 @@ private void buildPartial0(com.google.rpc.LocalizedMessage result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.rpc.LocalizedMessage) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailure.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailure.java
index 06c6a00f15..30f84342e4 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailure.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailure.java
@@ -23,6 +23,7 @@
  *
  * 
  * Describes what preconditions have failed.
+ *
  * For example, if an RPC failed because it required the Terms of Service to be
  * acknowledged, it could list the terms of service violation in the
  * PreconditionFailure message.
@@ -50,11 +51,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PreconditionFailure();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.rpc.ErrorDetailsProto
         .internal_static_google_rpc_PreconditionFailure_descriptor;
@@ -139,6 +135,7 @@ public interface ViolationOrBuilder
      * 
      * A description of how the precondition failed. Developers can use this
      * description to understand how to fix the failure.
+     *
      * For example: "Terms of service not accepted".
      * 
* @@ -153,6 +150,7 @@ public interface ViolationOrBuilder *
      * A description of how the precondition failed. Developers can use this
      * description to understand how to fix the failure.
+     *
      * For example: "Terms of service not accepted".
      * 
* @@ -193,11 +191,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Violation(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.ErrorDetailsProto .internal_static_google_rpc_PreconditionFailure_Violation_descriptor; @@ -333,6 +326,7 @@ public com.google.protobuf.ByteString getSubjectBytes() { *
      * A description of how the precondition failed. Developers can use this
      * description to understand how to fix the failure.
+     *
      * For example: "Terms of service not accepted".
      * 
* @@ -358,6 +352,7 @@ public java.lang.String getDescription() { *
      * A description of how the precondition failed. Developers can use this
      * description to understand how to fix the failure.
+     *
      * For example: "Terms of service not accepted".
      * 
* @@ -646,41 +641,6 @@ private void buildPartial0(com.google.rpc.PreconditionFailure.Violation result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.rpc.PreconditionFailure.Violation) { @@ -1010,6 +970,7 @@ public Builder setSubjectBytes(com.google.protobuf.ByteString value) { *
        * A description of how the precondition failed. Developers can use this
        * description to understand how to fix the failure.
+       *
        * For example: "Terms of service not accepted".
        * 
* @@ -1034,6 +995,7 @@ public java.lang.String getDescription() { *
        * A description of how the precondition failed. Developers can use this
        * description to understand how to fix the failure.
+       *
        * For example: "Terms of service not accepted".
        * 
* @@ -1058,6 +1020,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { *
        * A description of how the precondition failed. Developers can use this
        * description to understand how to fix the failure.
+       *
        * For example: "Terms of service not accepted".
        * 
* @@ -1081,6 +1044,7 @@ public Builder setDescription(java.lang.String value) { *
        * A description of how the precondition failed. Developers can use this
        * description to understand how to fix the failure.
+       *
        * For example: "Terms of service not accepted".
        * 
* @@ -1100,6 +1064,7 @@ public Builder clearDescription() { *
        * A description of how the precondition failed. Developers can use this
        * description to understand how to fix the failure.
+       *
        * For example: "Terms of service not accepted".
        * 
* @@ -1418,6 +1383,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Describes what preconditions have failed.
+   *
    * For example, if an RPC failed because it required the Terms of Service to be
    * acknowledged, it could list the terms of service violation in the
    * PreconditionFailure message.
@@ -1512,39 +1478,6 @@ private void buildPartial0(com.google.rpc.PreconditionFailure result) {
       int from_bitField0_ = bitField0_;
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.rpc.PreconditionFailure) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailure.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailure.java
index 5b9a09d8e5..5fcd0c555d 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailure.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailure.java
@@ -23,12 +23,14 @@
  *
  * 
  * Describes how a quota check failed.
+ *
  * For example if a daily limit was exceeded for the calling project,
  * a service could respond with a QuotaFailure detail containing the project
  * id and the description of the quota limit that was exceeded.  If the
  * calling project hasn't enabled the service in the developer console, then
  * a service could respond with the project id and set `service_disabled`
  * to true.
+ *
  * Also see RetryInfo and Help types for other details about handling a
  * quota failure.
  * 
@@ -55,11 +57,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new QuotaFailure(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_QuotaFailure_descriptor; } @@ -115,6 +112,7 @@ public interface ViolationOrBuilder * description to find more about the quota configuration in the service's * public documentation, or find the relevant quota limit to adjust through * developer console. + * * For example: "Service disabled" or "Daily Limit for read operations * exceeded". *
@@ -132,6 +130,7 @@ public interface ViolationOrBuilder * description to find more about the quota configuration in the service's * public documentation, or find the relevant quota limit to adjust through * developer console. + * * For example: "Service disabled" or "Daily Limit for read operations * exceeded". *
@@ -173,11 +172,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Violation(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.ErrorDetailsProto .internal_static_google_rpc_QuotaFailure_Violation_descriptor; @@ -260,6 +254,7 @@ public com.google.protobuf.ByteString getSubjectBytes() { * description to find more about the quota configuration in the service's * public documentation, or find the relevant quota limit to adjust through * developer console. + * * For example: "Service disabled" or "Daily Limit for read operations * exceeded". *
@@ -288,6 +283,7 @@ public java.lang.String getDescription() { * description to find more about the quota configuration in the service's * public documentation, or find the relevant quota limit to adjust through * developer console. + * * For example: "Service disabled" or "Daily Limit for read operations * exceeded". *
@@ -564,41 +560,6 @@ private void buildPartial0(com.google.rpc.QuotaFailure.Violation result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.rpc.QuotaFailure.Violation) { @@ -803,6 +764,7 @@ public Builder setSubjectBytes(com.google.protobuf.ByteString value) { * description to find more about the quota configuration in the service's * public documentation, or find the relevant quota limit to adjust through * developer console. + * * For example: "Service disabled" or "Daily Limit for read operations * exceeded". *
@@ -830,6 +792,7 @@ public java.lang.String getDescription() { * description to find more about the quota configuration in the service's * public documentation, or find the relevant quota limit to adjust through * developer console. + * * For example: "Service disabled" or "Daily Limit for read operations * exceeded". *
@@ -857,6 +820,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * description to find more about the quota configuration in the service's * public documentation, or find the relevant quota limit to adjust through * developer console. + * * For example: "Service disabled" or "Daily Limit for read operations * exceeded". *
@@ -883,6 +847,7 @@ public Builder setDescription(java.lang.String value) { * description to find more about the quota configuration in the service's * public documentation, or find the relevant quota limit to adjust through * developer console. + * * For example: "Service disabled" or "Daily Limit for read operations * exceeded". *
@@ -905,6 +870,7 @@ public Builder clearDescription() { * description to find more about the quota configuration in the service's * public documentation, or find the relevant quota limit to adjust through * developer console. + * * For example: "Service disabled" or "Daily Limit for read operations * exceeded". *
@@ -1224,12 +1190,14 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Describes how a quota check failed.
+   *
    * For example if a daily limit was exceeded for the calling project,
    * a service could respond with a QuotaFailure detail containing the project
    * id and the description of the quota limit that was exceeded.  If the
    * calling project hasn't enabled the service in the developer console, then
    * a service could respond with the project id and set `service_disabled`
    * to true.
+   *
    * Also see RetryInfo and Help types for other details about handling a
    * quota failure.
    * 
@@ -1320,39 +1288,6 @@ private void buildPartial0(com.google.rpc.QuotaFailure result) { int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.rpc.QuotaFailure) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfo.java index 74a95775da..53d4e17221 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfo.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RequestInfo(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RequestInfo_descriptor; } @@ -421,39 +416,6 @@ private void buildPartial0(com.google.rpc.RequestInfo result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.rpc.RequestInfo) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfo.java index ae4be5457a..faaaffad88 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfo.java @@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResourceInfo(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_ResourceInfo_descriptor; } @@ -563,39 +558,6 @@ private void buildPartial0(com.google.rpc.ResourceInfo result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.rpc.ResourceInfo) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfo.java index 51e56791ad..8800a05806 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfo.java @@ -25,8 +25,10 @@ * Describes when the clients can retry a failed request. Clients could ignore * the recommendation here or retry when this information is missing from error * responses. + * * It's always recommended that clients should use exponential backoff when * retrying. + * * Clients should wait until `retry_delay` amount of time has passed since * receiving the error response before retrying. If retrying requests also * fail, clients should use an exponential backoff scheme to gradually increase @@ -55,11 +57,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RetryInfo(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RetryInfo_descriptor; } @@ -287,8 +284,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * Describes when the clients can retry a failed request. Clients could ignore * the recommendation here or retry when this information is missing from error * responses. + * * It's always recommended that clients should use exponential backoff when * retrying. + * * Clients should wait until `retry_delay` amount of time has passed since * receiving the error response before retrying. If retrying requests also * fail, clients should use an exponential backoff scheme to gradually increase @@ -371,39 +370,6 @@ private void buildPartial0(com.google.rpc.RetryInfo result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.rpc.RetryInfo) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Status.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Status.java index 44168247e2..f4df267ef7 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Status.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Status.java @@ -26,6 +26,7 @@ * different programming environments, including REST APIs and RPC APIs. It is * used by [gRPC](https://github.com/grpc). Each `Status` message contains * three pieces of data: error code, error message, and error details. + * * You can find out more about this error model and how to work with it in the * [API Design Guide](https://cloud.google.com/apis/design/errors). *
@@ -53,11 +54,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Status(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.StatusProto.internal_static_google_rpc_Status_descriptor; } @@ -406,6 +402,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * different programming environments, including REST APIs and RPC APIs. It is * used by [gRPC](https://github.com/grpc). Each `Status` message contains * three pieces of data: error code, error message, and error details. + * * You can find out more about this error model and how to work with it in the * [API Design Guide](https://cloud.google.com/apis/design/errors). *
@@ -503,39 +500,6 @@ private void buildPartial0(com.google.rpc.Status result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.rpc.Status) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContext.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContext.java index 1a0db34e7f..456b9e72e5 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContext.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContext.java @@ -23,15 +23,19 @@ * *
  * This message defines the standard attribute vocabulary for Google APIs.
+ *
  * An attribute is a piece of metadata that describes an activity on a network
  * service. For example, the size of an HTTP request, or the status code of
  * an HTTP response.
+ *
  * Each attribute has a type and a name, which is logically defined as
  * a proto message field in `AttributeContext`. The field type becomes the
  * attribute type, and the field path becomes the attribute name. For example,
  * the attribute `source.ip` maps to field `AttributeContext.source.ip`.
+ *
  * This message definition is guaranteed not to have any wire breaking change.
  * So you can use it directly for passing attributes across different systems.
+ *
  * NOTE: Different system may generate different subset of attributes. Please
  * verify the system specification before relying on an attribute generated
  * a system.
@@ -59,11 +63,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AttributeContext();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.rpc.context.AttributeContextProto
         .internal_static_google_rpc_context_AttributeContext_descriptor;
@@ -272,11 +271,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Peer();
     }
 
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-      return this.unknownFields;
-    }
-
     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.rpc.context.AttributeContextProto
           .internal_static_google_rpc_context_AttributeContext_Peer_descriptor;
@@ -910,41 +904,6 @@ private void buildPartial0(com.google.rpc.context.AttributeContext.Peer result)
         }
       }
 
-      @java.lang.Override
-      public Builder clone() {
-        return super.clone();
-      }
-
-      @java.lang.Override
-      public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-        return super.setField(field, value);
-      }
-
-      @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-        return super.clearField(field);
-      }
-
-      @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-        return super.clearOneof(oneof);
-      }
-
-      @java.lang.Override
-      public Builder setRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
-        return super.setRepeatedField(field, index, value);
-      }
-
-      @java.lang.Override
-      public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-        return super.addRepeatedField(field, value);
-      }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.rpc.context.AttributeContext.Peer) {
@@ -1827,11 +1786,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Api();
     }
 
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-      return this.unknownFields;
-    }
-
     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.rpc.context.AttributeContextProto
           .internal_static_google_rpc_context_AttributeContext_Api_descriptor;
@@ -2346,41 +2300,6 @@ private void buildPartial0(com.google.rpc.context.AttributeContext.Api result) {
         }
       }
 
-      @java.lang.Override
-      public Builder clone() {
-        return super.clone();
-      }
-
-      @java.lang.Override
-      public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-        return super.setField(field, value);
-      }
-
-      @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-        return super.clearField(field);
-      }
-
-      @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-        return super.clearOneof(oneof);
-      }
-
-      @java.lang.Override
-      public Builder setRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
-        return super.setRepeatedField(field, index, value);
-      }
-
-      @java.lang.Override
-      public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-        return super.addRepeatedField(field, value);
-      }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.rpc.context.AttributeContext.Api) {
@@ -3046,12 +2965,14 @@ public interface AuthOrBuilder
      * the audience (`aud`) claim within a JWT. The audience
      * value(s) depends on the `issuer`, but typically include one or more of
      * the following pieces of information:
+     *
      * *  The services intended to receive the credential. For example,
      *    ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
      * *  A set of service-based scopes. For example,
      *    ["https://www.googleapis.com/auth/cloud-platform"].
      * *  The client id of an app, such as the Firebase project id for JWTs
      *    from Firebase Auth.
+     *
      * Consult the documentation for the credential issuer to determine the
      * information provided.
      * 
@@ -3069,12 +2990,14 @@ public interface AuthOrBuilder * the audience (`aud`) claim within a JWT. The audience * value(s) depends on the `issuer`, but typically include one or more of * the following pieces of information: + * * * The services intended to receive the credential. For example, * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. * * A set of service-based scopes. For example, * ["https://www.googleapis.com/auth/cloud-platform"]. * * The client id of an app, such as the Firebase project id for JWTs * from Firebase Auth. + * * Consult the documentation for the credential issuer to determine the * information provided. *
@@ -3092,12 +3015,14 @@ public interface AuthOrBuilder * the audience (`aud`) claim within a JWT. The audience * value(s) depends on the `issuer`, but typically include one or more of * the following pieces of information: + * * * The services intended to receive the credential. For example, * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. * * A set of service-based scopes. For example, * ["https://www.googleapis.com/auth/cloud-platform"]. * * The client id of an app, such as the Firebase project id for JWTs * from Firebase Auth. + * * Consult the documentation for the credential issuer to determine the * information provided. *
@@ -3116,12 +3041,14 @@ public interface AuthOrBuilder * the audience (`aud`) claim within a JWT. The audience * value(s) depends on the `issuer`, but typically include one or more of * the following pieces of information: + * * * The services intended to receive the credential. For example, * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. * * A set of service-based scopes. For example, * ["https://www.googleapis.com/auth/cloud-platform"]. * * The client id of an app, such as the Firebase project id for JWTs * from Firebase Auth. + * * Consult the documentation for the credential issuer to determine the * information provided. *
@@ -3172,6 +3099,7 @@ public interface AuthOrBuilder * `{key: value}` pairs for standard and private claims. The following * is a subset of the standard required and optional claims that would * typically be presented for a Google-based JWT: + * * {'iss': 'accounts.google.com', * 'sub': '113289723416554971153', * 'aud': ['123456789012', 'pubsub.googleapis.com'], @@ -3179,6 +3107,7 @@ public interface AuthOrBuilder * 'email': 'jsmith@example.com', * 'iat': 1353601026, * 'exp': 1353604926} + * * SAML assertions are similarly specified, but with an identity provider * dependent structure. *
@@ -3196,6 +3125,7 @@ public interface AuthOrBuilder * `{key: value}` pairs for standard and private claims. The following * is a subset of the standard required and optional claims that would * typically be presented for a Google-based JWT: + * * {'iss': 'accounts.google.com', * 'sub': '113289723416554971153', * 'aud': ['123456789012', 'pubsub.googleapis.com'], @@ -3203,6 +3133,7 @@ public interface AuthOrBuilder * 'email': 'jsmith@example.com', * 'iat': 1353601026, * 'exp': 1353604926} + * * SAML assertions are similarly specified, but with an identity provider * dependent structure. *
@@ -3220,6 +3151,7 @@ public interface AuthOrBuilder * `{key: value}` pairs for standard and private claims. The following * is a subset of the standard required and optional claims that would * typically be presented for a Google-based JWT: + * * {'iss': 'accounts.google.com', * 'sub': '113289723416554971153', * 'aud': ['123456789012', 'pubsub.googleapis.com'], @@ -3227,6 +3159,7 @@ public interface AuthOrBuilder * 'email': 'jsmith@example.com', * 'iat': 1353601026, * 'exp': 1353604926} + * * SAML assertions are similarly specified, but with an identity provider * dependent structure. *
@@ -3243,6 +3176,7 @@ public interface AuthOrBuilder * accessed by authenticated requester. It is part of Secure GCP processing * for the incoming request. An access level string has the format: * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * * Example: * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" *
@@ -3260,6 +3194,7 @@ public interface AuthOrBuilder * accessed by authenticated requester. It is part of Secure GCP processing * for the incoming request. An access level string has the format: * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * * Example: * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" *
@@ -3277,6 +3212,7 @@ public interface AuthOrBuilder * accessed by authenticated requester. It is part of Secure GCP processing * for the incoming request. An access level string has the format: * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * * Example: * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" *
@@ -3295,6 +3231,7 @@ public interface AuthOrBuilder * accessed by authenticated requester. It is part of Secure GCP processing * for the incoming request. An access level string has the format: * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * * Example: * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" *
@@ -3329,9 +3266,9 @@ private Auth(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Auth() { principal_ = ""; - audiences_ = com.google.protobuf.LazyStringArrayList.EMPTY; + audiences_ = com.google.protobuf.LazyStringArrayList.emptyList(); presenter_ = ""; - accessLevels_ = com.google.protobuf.LazyStringArrayList.EMPTY; + accessLevels_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -3340,11 +3277,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Auth(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Auth_descriptor; @@ -3422,7 +3354,8 @@ public com.google.protobuf.ByteString getPrincipalBytes() { public static final int AUDIENCES_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList audiences_; + private com.google.protobuf.LazyStringArrayList audiences_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -3431,12 +3364,14 @@ public com.google.protobuf.ByteString getPrincipalBytes() { * the audience (`aud`) claim within a JWT. The audience * value(s) depends on the `issuer`, but typically include one or more of * the following pieces of information: + * * * The services intended to receive the credential. For example, * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. * * A set of service-based scopes. For example, * ["https://www.googleapis.com/auth/cloud-platform"]. * * The client id of an app, such as the Firebase project id for JWTs * from Firebase Auth. + * * Consult the documentation for the credential issuer to determine the * information provided. *
@@ -3456,12 +3391,14 @@ public com.google.protobuf.ProtocolStringList getAudiencesList() { * the audience (`aud`) claim within a JWT. The audience * value(s) depends on the `issuer`, but typically include one or more of * the following pieces of information: + * * * The services intended to receive the credential. For example, * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. * * A set of service-based scopes. For example, * ["https://www.googleapis.com/auth/cloud-platform"]. * * The client id of an app, such as the Firebase project id for JWTs * from Firebase Auth. + * * Consult the documentation for the credential issuer to determine the * information provided. * @@ -3481,12 +3418,14 @@ public int getAudiencesCount() { * the audience (`aud`) claim within a JWT. The audience * value(s) depends on the `issuer`, but typically include one or more of * the following pieces of information: + * * * The services intended to receive the credential. For example, * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. * * A set of service-based scopes. For example, * ["https://www.googleapis.com/auth/cloud-platform"]. * * The client id of an app, such as the Firebase project id for JWTs * from Firebase Auth. + * * Consult the documentation for the credential issuer to determine the * information provided. * @@ -3507,12 +3446,14 @@ public java.lang.String getAudiences(int index) { * the audience (`aud`) claim within a JWT. The audience * value(s) depends on the `issuer`, but typically include one or more of * the following pieces of information: + * * * The services intended to receive the credential. For example, * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. * * A set of service-based scopes. For example, * ["https://www.googleapis.com/auth/cloud-platform"]. * * The client id of an app, such as the Firebase project id for JWTs * from Firebase Auth. + * * Consult the documentation for the credential issuer to determine the * information provided. * @@ -3593,6 +3534,7 @@ public com.google.protobuf.ByteString getPresenterBytes() { * `{key: value}` pairs for standard and private claims. The following * is a subset of the standard required and optional claims that would * typically be presented for a Google-based JWT: + * * {'iss': 'accounts.google.com', * 'sub': '113289723416554971153', * 'aud': ['123456789012', 'pubsub.googleapis.com'], @@ -3600,6 +3542,7 @@ public com.google.protobuf.ByteString getPresenterBytes() { * 'email': 'jsmith@example.com', * 'iat': 1353601026, * 'exp': 1353604926} + * * SAML assertions are similarly specified, but with an identity provider * dependent structure. * @@ -3620,6 +3563,7 @@ public boolean hasClaims() { * `{key: value}` pairs for standard and private claims. The following * is a subset of the standard required and optional claims that would * typically be presented for a Google-based JWT: + * * {'iss': 'accounts.google.com', * 'sub': '113289723416554971153', * 'aud': ['123456789012', 'pubsub.googleapis.com'], @@ -3627,6 +3571,7 @@ public boolean hasClaims() { * 'email': 'jsmith@example.com', * 'iat': 1353601026, * 'exp': 1353604926} + * * SAML assertions are similarly specified, but with an identity provider * dependent structure. * @@ -3647,6 +3592,7 @@ public com.google.protobuf.Struct getClaims() { * `{key: value}` pairs for standard and private claims. The following * is a subset of the standard required and optional claims that would * typically be presented for a Google-based JWT: + * * {'iss': 'accounts.google.com', * 'sub': '113289723416554971153', * 'aud': ['123456789012', 'pubsub.googleapis.com'], @@ -3654,6 +3600,7 @@ public com.google.protobuf.Struct getClaims() { * 'email': 'jsmith@example.com', * 'iat': 1353601026, * 'exp': 1353604926} + * * SAML assertions are similarly specified, but with an identity provider * dependent structure. * @@ -3668,7 +3615,8 @@ public com.google.protobuf.StructOrBuilder getClaimsOrBuilder() { public static final int ACCESS_LEVELS_FIELD_NUMBER = 5; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList accessLevels_; + private com.google.protobuf.LazyStringArrayList accessLevels_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -3677,6 +3625,7 @@ public com.google.protobuf.StructOrBuilder getClaimsOrBuilder() { * accessed by authenticated requester. It is part of Secure GCP processing * for the incoming request. An access level string has the format: * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * * Example: * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" * @@ -3696,6 +3645,7 @@ public com.google.protobuf.ProtocolStringList getAccessLevelsList() { * accessed by authenticated requester. It is part of Secure GCP processing * for the incoming request. An access level string has the format: * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * * Example: * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" * @@ -3715,6 +3665,7 @@ public int getAccessLevelsCount() { * accessed by authenticated requester. It is part of Secure GCP processing * for the incoming request. An access level string has the format: * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * * Example: * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" * @@ -3735,6 +3686,7 @@ public java.lang.String getAccessLevels(int index) { * accessed by authenticated requester. It is part of Secure GCP processing * for the incoming request. An access level string has the format: * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * * Example: * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" * @@ -4006,16 +3958,14 @@ public Builder clear() { super.clear(); bitField0_ = 0; principal_ = ""; - audiences_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + audiences_ = com.google.protobuf.LazyStringArrayList.emptyList(); presenter_ = ""; claims_ = null; if (claimsBuilder_ != null) { claimsBuilder_.dispose(); claimsBuilder_ = null; } - accessLevels_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); + accessLevels_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -4043,7 +3993,6 @@ public com.google.rpc.context.AttributeContext.Auth build() { public com.google.rpc.context.AttributeContext.Auth buildPartial() { com.google.rpc.context.AttributeContext.Auth result = new com.google.rpc.context.AttributeContext.Auth(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -4051,65 +4000,25 @@ public com.google.rpc.context.AttributeContext.Auth buildPartial() { return result; } - private void buildPartialRepeatedFields(com.google.rpc.context.AttributeContext.Auth result) { - if (((bitField0_ & 0x00000002) != 0)) { - audiences_ = audiences_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.audiences_ = audiences_; - if (((bitField0_ & 0x00000010) != 0)) { - accessLevels_ = accessLevels_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.accessLevels_ = accessLevels_; - } - private void buildPartial0(com.google.rpc.context.AttributeContext.Auth result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.principal_ = principal_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + audiences_.makeImmutable(); + result.audiences_ = audiences_; + } if (((from_bitField0_ & 0x00000004) != 0)) { result.presenter_ = presenter_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.claims_ = claimsBuilder_ == null ? claims_ : claimsBuilder_.build(); } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + if (((from_bitField0_ & 0x00000010) != 0)) { + accessLevels_.makeImmutable(); + result.accessLevels_ = accessLevels_; + } } @java.lang.Override @@ -4132,7 +4041,7 @@ public Builder mergeFrom(com.google.rpc.context.AttributeContext.Auth other) { if (!other.audiences_.isEmpty()) { if (audiences_.isEmpty()) { audiences_ = other.audiences_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ |= 0x00000002; } else { ensureAudiencesIsMutable(); audiences_.addAll(other.audiences_); @@ -4150,7 +4059,7 @@ public Builder mergeFrom(com.google.rpc.context.AttributeContext.Auth other) { if (!other.accessLevels_.isEmpty()) { if (accessLevels_.isEmpty()) { accessLevels_ = other.accessLevels_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ |= 0x00000010; } else { ensureAccessLevelsIsMutable(); accessLevels_.addAll(other.accessLevels_); @@ -4360,14 +4269,14 @@ public Builder setPrincipalBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList audiences_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList audiences_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureAudiencesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!audiences_.isModifiable()) { audiences_ = new com.google.protobuf.LazyStringArrayList(audiences_); - bitField0_ |= 0x00000002; } + bitField0_ |= 0x00000002; } /** * @@ -4377,12 +4286,14 @@ private void ensureAudiencesIsMutable() { * the audience (`aud`) claim within a JWT. The audience * value(s) depends on the `issuer`, but typically include one or more of * the following pieces of information: + * * * The services intended to receive the credential. For example, * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. * * A set of service-based scopes. For example, * ["https://www.googleapis.com/auth/cloud-platform"]. * * The client id of an app, such as the Firebase project id for JWTs * from Firebase Auth. + * * Consult the documentation for the credential issuer to determine the * information provided. * @@ -4392,7 +4303,8 @@ private void ensureAudiencesIsMutable() { * @return A list containing the audiences. */ public com.google.protobuf.ProtocolStringList getAudiencesList() { - return audiences_.getUnmodifiableView(); + audiences_.makeImmutable(); + return audiences_; } /** * @@ -4402,12 +4314,14 @@ public com.google.protobuf.ProtocolStringList getAudiencesList() { * the audience (`aud`) claim within a JWT. The audience * value(s) depends on the `issuer`, but typically include one or more of * the following pieces of information: + * * * The services intended to receive the credential. For example, * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. * * A set of service-based scopes. For example, * ["https://www.googleapis.com/auth/cloud-platform"]. * * The client id of an app, such as the Firebase project id for JWTs * from Firebase Auth. + * * Consult the documentation for the credential issuer to determine the * information provided. * @@ -4427,12 +4341,14 @@ public int getAudiencesCount() { * the audience (`aud`) claim within a JWT. The audience * value(s) depends on the `issuer`, but typically include one or more of * the following pieces of information: + * * * The services intended to receive the credential. For example, * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. * * A set of service-based scopes. For example, * ["https://www.googleapis.com/auth/cloud-platform"]. * * The client id of an app, such as the Firebase project id for JWTs * from Firebase Auth. + * * Consult the documentation for the credential issuer to determine the * information provided. * @@ -4453,12 +4369,14 @@ public java.lang.String getAudiences(int index) { * the audience (`aud`) claim within a JWT. The audience * value(s) depends on the `issuer`, but typically include one or more of * the following pieces of information: + * * * The services intended to receive the credential. For example, * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. * * A set of service-based scopes. For example, * ["https://www.googleapis.com/auth/cloud-platform"]. * * The client id of an app, such as the Firebase project id for JWTs * from Firebase Auth. + * * Consult the documentation for the credential issuer to determine the * information provided. * @@ -4479,12 +4397,14 @@ public com.google.protobuf.ByteString getAudiencesBytes(int index) { * the audience (`aud`) claim within a JWT. The audience * value(s) depends on the `issuer`, but typically include one or more of * the following pieces of information: + * * * The services intended to receive the credential. For example, * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. * * A set of service-based scopes. For example, * ["https://www.googleapis.com/auth/cloud-platform"]. * * The client id of an app, such as the Firebase project id for JWTs * from Firebase Auth. + * * Consult the documentation for the credential issuer to determine the * information provided. * @@ -4501,6 +4421,7 @@ public Builder setAudiences(int index, java.lang.String value) { } ensureAudiencesIsMutable(); audiences_.set(index, value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4512,12 +4433,14 @@ public Builder setAudiences(int index, java.lang.String value) { * the audience (`aud`) claim within a JWT. The audience * value(s) depends on the `issuer`, but typically include one or more of * the following pieces of information: + * * * The services intended to receive the credential. For example, * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. * * A set of service-based scopes. For example, * ["https://www.googleapis.com/auth/cloud-platform"]. * * The client id of an app, such as the Firebase project id for JWTs * from Firebase Auth. + * * Consult the documentation for the credential issuer to determine the * information provided. * @@ -4533,6 +4456,7 @@ public Builder addAudiences(java.lang.String value) { } ensureAudiencesIsMutable(); audiences_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4544,12 +4468,14 @@ public Builder addAudiences(java.lang.String value) { * the audience (`aud`) claim within a JWT. The audience * value(s) depends on the `issuer`, but typically include one or more of * the following pieces of information: + * * * The services intended to receive the credential. For example, * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. * * A set of service-based scopes. For example, * ["https://www.googleapis.com/auth/cloud-platform"]. * * The client id of an app, such as the Firebase project id for JWTs * from Firebase Auth. + * * Consult the documentation for the credential issuer to determine the * information provided. * @@ -4562,6 +4488,7 @@ public Builder addAudiences(java.lang.String value) { public Builder addAllAudiences(java.lang.Iterable values) { ensureAudiencesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, audiences_); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4573,12 +4500,14 @@ public Builder addAllAudiences(java.lang.Iterable values) { * the audience (`aud`) claim within a JWT. The audience * value(s) depends on the `issuer`, but typically include one or more of * the following pieces of information: + * * * The services intended to receive the credential. For example, * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. * * A set of service-based scopes. For example, * ["https://www.googleapis.com/auth/cloud-platform"]. * * The client id of an app, such as the Firebase project id for JWTs * from Firebase Auth. + * * Consult the documentation for the credential issuer to determine the * information provided. * @@ -4588,8 +4517,9 @@ public Builder addAllAudiences(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearAudiences() { - audiences_ = com.google.protobuf.LazyStringArrayList.EMPTY; + audiences_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } @@ -4601,12 +4531,14 @@ public Builder clearAudiences() { * the audience (`aud`) claim within a JWT. The audience * value(s) depends on the `issuer`, but typically include one or more of * the following pieces of information: + * * * The services intended to receive the credential. For example, * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. * * A set of service-based scopes. For example, * ["https://www.googleapis.com/auth/cloud-platform"]. * * The client id of an app, such as the Firebase project id for JWTs * from Firebase Auth. + * * Consult the documentation for the credential issuer to determine the * information provided. * @@ -4623,6 +4555,7 @@ public Builder addAudiencesBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureAudiencesIsMutable(); audiences_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4762,6 +4695,7 @@ public Builder setPresenterBytes(com.google.protobuf.ByteString value) { * `{key: value}` pairs for standard and private claims. The following * is a subset of the standard required and optional claims that would * typically be presented for a Google-based JWT: + * * {'iss': 'accounts.google.com', * 'sub': '113289723416554971153', * 'aud': ['123456789012', 'pubsub.googleapis.com'], @@ -4769,6 +4703,7 @@ public Builder setPresenterBytes(com.google.protobuf.ByteString value) { * 'email': 'jsmith@example.com', * 'iat': 1353601026, * 'exp': 1353604926} + * * SAML assertions are similarly specified, but with an identity provider * dependent structure. * @@ -4788,6 +4723,7 @@ public boolean hasClaims() { * `{key: value}` pairs for standard and private claims. The following * is a subset of the standard required and optional claims that would * typically be presented for a Google-based JWT: + * * {'iss': 'accounts.google.com', * 'sub': '113289723416554971153', * 'aud': ['123456789012', 'pubsub.googleapis.com'], @@ -4795,6 +4731,7 @@ public boolean hasClaims() { * 'email': 'jsmith@example.com', * 'iat': 1353601026, * 'exp': 1353604926} + * * SAML assertions are similarly specified, but with an identity provider * dependent structure. * @@ -4818,6 +4755,7 @@ public com.google.protobuf.Struct getClaims() { * `{key: value}` pairs for standard and private claims. The following * is a subset of the standard required and optional claims that would * typically be presented for a Google-based JWT: + * * {'iss': 'accounts.google.com', * 'sub': '113289723416554971153', * 'aud': ['123456789012', 'pubsub.googleapis.com'], @@ -4825,6 +4763,7 @@ public com.google.protobuf.Struct getClaims() { * 'email': 'jsmith@example.com', * 'iat': 1353601026, * 'exp': 1353604926} + * * SAML assertions are similarly specified, but with an identity provider * dependent structure. * @@ -4852,6 +4791,7 @@ public Builder setClaims(com.google.protobuf.Struct value) { * `{key: value}` pairs for standard and private claims. The following * is a subset of the standard required and optional claims that would * typically be presented for a Google-based JWT: + * * {'iss': 'accounts.google.com', * 'sub': '113289723416554971153', * 'aud': ['123456789012', 'pubsub.googleapis.com'], @@ -4859,6 +4799,7 @@ public Builder setClaims(com.google.protobuf.Struct value) { * 'email': 'jsmith@example.com', * 'iat': 1353601026, * 'exp': 1353604926} + * * SAML assertions are similarly specified, but with an identity provider * dependent structure. * @@ -4883,6 +4824,7 @@ public Builder setClaims(com.google.protobuf.Struct.Builder builderForValue) { * `{key: value}` pairs for standard and private claims. The following * is a subset of the standard required and optional claims that would * typically be presented for a Google-based JWT: + * * {'iss': 'accounts.google.com', * 'sub': '113289723416554971153', * 'aud': ['123456789012', 'pubsub.googleapis.com'], @@ -4890,6 +4832,7 @@ public Builder setClaims(com.google.protobuf.Struct.Builder builderForValue) { * 'email': 'jsmith@example.com', * 'iat': 1353601026, * 'exp': 1353604926} + * * SAML assertions are similarly specified, but with an identity provider * dependent structure. * @@ -4920,6 +4863,7 @@ public Builder mergeClaims(com.google.protobuf.Struct value) { * `{key: value}` pairs for standard and private claims. The following * is a subset of the standard required and optional claims that would * typically be presented for a Google-based JWT: + * * {'iss': 'accounts.google.com', * 'sub': '113289723416554971153', * 'aud': ['123456789012', 'pubsub.googleapis.com'], @@ -4927,6 +4871,7 @@ public Builder mergeClaims(com.google.protobuf.Struct value) { * 'email': 'jsmith@example.com', * 'iat': 1353601026, * 'exp': 1353604926} + * * SAML assertions are similarly specified, but with an identity provider * dependent structure. * @@ -4951,6 +4896,7 @@ public Builder clearClaims() { * `{key: value}` pairs for standard and private claims. The following * is a subset of the standard required and optional claims that would * typically be presented for a Google-based JWT: + * * {'iss': 'accounts.google.com', * 'sub': '113289723416554971153', * 'aud': ['123456789012', 'pubsub.googleapis.com'], @@ -4958,6 +4904,7 @@ public Builder clearClaims() { * 'email': 'jsmith@example.com', * 'iat': 1353601026, * 'exp': 1353604926} + * * SAML assertions are similarly specified, but with an identity provider * dependent structure. * @@ -4977,6 +4924,7 @@ public com.google.protobuf.Struct.Builder getClaimsBuilder() { * `{key: value}` pairs for standard and private claims. The following * is a subset of the standard required and optional claims that would * typically be presented for a Google-based JWT: + * * {'iss': 'accounts.google.com', * 'sub': '113289723416554971153', * 'aud': ['123456789012', 'pubsub.googleapis.com'], @@ -4984,6 +4932,7 @@ public com.google.protobuf.Struct.Builder getClaimsBuilder() { * 'email': 'jsmith@example.com', * 'iat': 1353601026, * 'exp': 1353604926} + * * SAML assertions are similarly specified, but with an identity provider * dependent structure. * @@ -5005,6 +4954,7 @@ public com.google.protobuf.StructOrBuilder getClaimsOrBuilder() { * `{key: value}` pairs for standard and private claims. The following * is a subset of the standard required and optional claims that would * typically be presented for a Google-based JWT: + * * {'iss': 'accounts.google.com', * 'sub': '113289723416554971153', * 'aud': ['123456789012', 'pubsub.googleapis.com'], @@ -5012,6 +4962,7 @@ public com.google.protobuf.StructOrBuilder getClaimsOrBuilder() { * 'email': 'jsmith@example.com', * 'iat': 1353601026, * 'exp': 1353604926} + * * SAML assertions are similarly specified, but with an identity provider * dependent structure. * @@ -5035,14 +4986,14 @@ public com.google.protobuf.StructOrBuilder getClaimsOrBuilder() { return claimsBuilder_; } - private com.google.protobuf.LazyStringList accessLevels_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList accessLevels_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureAccessLevelsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!accessLevels_.isModifiable()) { accessLevels_ = new com.google.protobuf.LazyStringArrayList(accessLevels_); - bitField0_ |= 0x00000010; } + bitField0_ |= 0x00000010; } /** * @@ -5052,6 +5003,7 @@ private void ensureAccessLevelsIsMutable() { * accessed by authenticated requester. It is part of Secure GCP processing * for the incoming request. An access level string has the format: * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * * Example: * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" * @@ -5061,7 +5013,8 @@ private void ensureAccessLevelsIsMutable() { * @return A list containing the accessLevels. */ public com.google.protobuf.ProtocolStringList getAccessLevelsList() { - return accessLevels_.getUnmodifiableView(); + accessLevels_.makeImmutable(); + return accessLevels_; } /** * @@ -5071,6 +5024,7 @@ public com.google.protobuf.ProtocolStringList getAccessLevelsList() { * accessed by authenticated requester. It is part of Secure GCP processing * for the incoming request. An access level string has the format: * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * * Example: * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" * @@ -5090,6 +5044,7 @@ public int getAccessLevelsCount() { * accessed by authenticated requester. It is part of Secure GCP processing * for the incoming request. An access level string has the format: * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * * Example: * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" * @@ -5110,6 +5065,7 @@ public java.lang.String getAccessLevels(int index) { * accessed by authenticated requester. It is part of Secure GCP processing * for the incoming request. An access level string has the format: * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * * Example: * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" * @@ -5130,6 +5086,7 @@ public com.google.protobuf.ByteString getAccessLevelsBytes(int index) { * accessed by authenticated requester. It is part of Secure GCP processing * for the incoming request. An access level string has the format: * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * * Example: * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" * @@ -5146,6 +5103,7 @@ public Builder setAccessLevels(int index, java.lang.String value) { } ensureAccessLevelsIsMutable(); accessLevels_.set(index, value); + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -5157,6 +5115,7 @@ public Builder setAccessLevels(int index, java.lang.String value) { * accessed by authenticated requester. It is part of Secure GCP processing * for the incoming request. An access level string has the format: * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * * Example: * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" * @@ -5172,6 +5131,7 @@ public Builder addAccessLevels(java.lang.String value) { } ensureAccessLevelsIsMutable(); accessLevels_.add(value); + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -5183,6 +5143,7 @@ public Builder addAccessLevels(java.lang.String value) { * accessed by authenticated requester. It is part of Secure GCP processing * for the incoming request. An access level string has the format: * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * * Example: * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" * @@ -5195,6 +5156,7 @@ public Builder addAccessLevels(java.lang.String value) { public Builder addAllAccessLevels(java.lang.Iterable values) { ensureAccessLevelsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessLevels_); + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -5206,6 +5168,7 @@ public Builder addAllAccessLevels(java.lang.Iterable values) { * accessed by authenticated requester. It is part of Secure GCP processing * for the incoming request. An access level string has the format: * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * * Example: * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" * @@ -5215,8 +5178,9 @@ public Builder addAllAccessLevels(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearAccessLevels() { - accessLevels_ = com.google.protobuf.LazyStringArrayList.EMPTY; + accessLevels_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); + ; onChanged(); return this; } @@ -5228,6 +5192,7 @@ public Builder clearAccessLevels() { * accessed by authenticated requester. It is part of Secure GCP processing * for the incoming request. An access level string has the format: * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * * Example: * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" * @@ -5244,6 +5209,7 @@ public Builder addAccessLevelsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureAccessLevelsIsMutable(); accessLevels_.add(value); + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -5726,11 +5692,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Request(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Request_descriptor; @@ -6843,41 +6804,6 @@ private void buildPartial0(com.google.rpc.context.AttributeContext.Request resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.rpc.context.AttributeContext.Request) { @@ -8833,11 +8759,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Response(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Response_descriptor; @@ -9461,41 +9382,6 @@ private void buildPartial0(com.google.rpc.context.AttributeContext.Response resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.rpc.context.AttributeContext.Response) { @@ -10393,12 +10279,14 @@ public interface ResourceOrBuilder * The stable identifier (name) of a resource on the `service`. A resource * can be logically identified as "//{resource.service}/{resource.name}". * The differences between a resource name and a URI are: + * * * Resource name is a logical identifier, independent of network * protocol and API version. For example, * `//pubsub.googleapis.com/projects/123/topics/news-feed`. * * URI often includes protocol and version information, so it can * be used directly by applications. For example, * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. + * * See https://cloud.google.com/apis/design/resource_names for details. * * @@ -10414,12 +10302,14 @@ public interface ResourceOrBuilder * The stable identifier (name) of a resource on the `service`. A resource * can be logically identified as "//{resource.service}/{resource.name}". * The differences between a resource name and a URI are: + * * * Resource name is a logical identifier, independent of network * protocol and API version. For example, * `//pubsub.googleapis.com/projects/123/topics/news-feed`. * * URI often includes protocol and version information, so it can * be used directly by applications. For example, * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. + * * See https://cloud.google.com/apis/design/resource_names for details. * * @@ -10435,6 +10325,7 @@ public interface ResourceOrBuilder *
      * The type of the resource. The syntax is platform-specific because
      * different platforms define their resources differently.
+     *
      * For Google APIs, the type format must be "{service}/{kind}", such as
      * "pubsub.googleapis.com/Topic".
      * 
@@ -10450,6 +10341,7 @@ public interface ResourceOrBuilder *
      * The type of the resource. The syntax is platform-specific because
      * different platforms define their resources differently.
+     *
      * For Google APIs, the type format must be "{service}/{kind}", such as
      * "pubsub.googleapis.com/Topic".
      * 
@@ -10563,6 +10455,7 @@ java.lang.String getLabelsOrDefault( * Annotations is an unstructured key-value map stored with a resource that * may be set by external tools to store and retrieve arbitrary metadata. * They are not queryable and should be preserved when modifying objects. + * * More info: https://kubernetes.io/docs/user-guide/annotations * * @@ -10576,6 +10469,7 @@ java.lang.String getLabelsOrDefault( * Annotations is an unstructured key-value map stored with a resource that * may be set by external tools to store and retrieve arbitrary metadata. * They are not queryable and should be preserved when modifying objects. + * * More info: https://kubernetes.io/docs/user-guide/annotations * * @@ -10592,6 +10486,7 @@ java.lang.String getLabelsOrDefault( * Annotations is an unstructured key-value map stored with a resource that * may be set by external tools to store and retrieve arbitrary metadata. * They are not queryable and should be preserved when modifying objects. + * * More info: https://kubernetes.io/docs/user-guide/annotations * * @@ -10605,6 +10500,7 @@ java.lang.String getLabelsOrDefault( * Annotations is an unstructured key-value map stored with a resource that * may be set by external tools to store and retrieve arbitrary metadata. * They are not queryable and should be preserved when modifying objects. + * * More info: https://kubernetes.io/docs/user-guide/annotations * * @@ -10622,6 +10518,7 @@ java.lang.String getAnnotationsOrDefault( * Annotations is an unstructured key-value map stored with a resource that * may be set by external tools to store and retrieve arbitrary metadata. * They are not queryable and should be preserved when modifying objects. + * * More info: https://kubernetes.io/docs/user-guide/annotations * * @@ -10807,6 +10704,7 @@ java.lang.String getAnnotationsOrDefault( * Immutable. The location of the resource. The location encoding is * specific to the service provider, and new encoding may be introduced * as the service evolves. + * * For Google Cloud products, the encoding is what is used by Google Cloud * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The * semantics of `location` is identical to the @@ -10825,6 +10723,7 @@ java.lang.String getAnnotationsOrDefault( * Immutable. The location of the resource. The location encoding is * specific to the service provider, and new encoding may be introduced * as the service evolves. + * * For Google Cloud products, the encoding is what is used by Google Cloud * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The * semantics of `location` is identical to the @@ -10874,11 +10773,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Resource(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Resource_descriptor; @@ -10973,12 +10867,14 @@ public com.google.protobuf.ByteString getServiceBytes() { * The stable identifier (name) of a resource on the `service`. A resource * can be logically identified as "//{resource.service}/{resource.name}". * The differences between a resource name and a URI are: + * * * Resource name is a logical identifier, independent of network * protocol and API version. For example, * `//pubsub.googleapis.com/projects/123/topics/news-feed`. * * URI often includes protocol and version information, so it can * be used directly by applications. For example, * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. + * * See https://cloud.google.com/apis/design/resource_names for details. * * @@ -11005,12 +10901,14 @@ public java.lang.String getName() { * The stable identifier (name) of a resource on the `service`. A resource * can be logically identified as "//{resource.service}/{resource.name}". * The differences between a resource name and a URI are: + * * * Resource name is a logical identifier, independent of network * protocol and API version. For example, * `//pubsub.googleapis.com/projects/123/topics/news-feed`. * * URI often includes protocol and version information, so it can * be used directly by applications. For example, * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. + * * See https://cloud.google.com/apis/design/resource_names for details. * * @@ -11041,6 +10939,7 @@ public com.google.protobuf.ByteString getNameBytes() { *
      * The type of the resource. The syntax is platform-specific because
      * different platforms define their resources differently.
+     *
      * For Google APIs, the type format must be "{service}/{kind}", such as
      * "pubsub.googleapis.com/Topic".
      * 
@@ -11067,6 +10966,7 @@ public java.lang.String getType() { *
      * The type of the resource. The syntax is platform-specific because
      * different platforms define their resources differently.
+     *
      * For Google APIs, the type format must be "{service}/{kind}", such as
      * "pubsub.googleapis.com/Topic".
      * 
@@ -11288,6 +11188,7 @@ public int getAnnotationsCount() { * Annotations is an unstructured key-value map stored with a resource that * may be set by external tools to store and retrieve arbitrary metadata. * They are not queryable and should be preserved when modifying objects. + * * More info: https://kubernetes.io/docs/user-guide/annotations * * @@ -11313,6 +11214,7 @@ public java.util.Map getAnnotations() { * Annotations is an unstructured key-value map stored with a resource that * may be set by external tools to store and retrieve arbitrary metadata. * They are not queryable and should be preserved when modifying objects. + * * More info: https://kubernetes.io/docs/user-guide/annotations * * @@ -11329,6 +11231,7 @@ public java.util.Map getAnnotationsMap() { * Annotations is an unstructured key-value map stored with a resource that * may be set by external tools to store and retrieve arbitrary metadata. * They are not queryable and should be preserved when modifying objects. + * * More info: https://kubernetes.io/docs/user-guide/annotations * * @@ -11352,6 +11255,7 @@ public java.util.Map getAnnotationsMap() { * Annotations is an unstructured key-value map stored with a resource that * may be set by external tools to store and retrieve arbitrary metadata. * They are not queryable and should be preserved when modifying objects. + * * More info: https://kubernetes.io/docs/user-guide/annotations * * @@ -11636,6 +11540,7 @@ public com.google.protobuf.ByteString getEtagBytes() { * Immutable. The location of the resource. The location encoding is * specific to the service provider, and new encoding may be introduced * as the service evolves. + * * For Google Cloud products, the encoding is what is used by Google Cloud * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The * semantics of `location` is identical to the @@ -11665,6 +11570,7 @@ public java.lang.String getLocation() { * Immutable. The location of the resource. The location encoding is * specific to the service provider, and new encoding may be introduced * as the service evolves. + * * For Google Cloud products, the encoding is what is used by Google Cloud * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The * semantics of `location` is identical to the @@ -12147,41 +12053,6 @@ private void buildPartial0(com.google.rpc.context.AttributeContext.Resource resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.rpc.context.AttributeContext.Resource) { @@ -12496,12 +12367,14 @@ public Builder setServiceBytes(com.google.protobuf.ByteString value) { * The stable identifier (name) of a resource on the `service`. A resource * can be logically identified as "//{resource.service}/{resource.name}". * The differences between a resource name and a URI are: + * * * Resource name is a logical identifier, independent of network * protocol and API version. For example, * `//pubsub.googleapis.com/projects/123/topics/news-feed`. * * URI often includes protocol and version information, so it can * be used directly by applications. For example, * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. + * * See https://cloud.google.com/apis/design/resource_names for details. * * @@ -12527,12 +12400,14 @@ public java.lang.String getName() { * The stable identifier (name) of a resource on the `service`. A resource * can be logically identified as "//{resource.service}/{resource.name}". * The differences between a resource name and a URI are: + * * * Resource name is a logical identifier, independent of network * protocol and API version. For example, * `//pubsub.googleapis.com/projects/123/topics/news-feed`. * * URI often includes protocol and version information, so it can * be used directly by applications. For example, * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. + * * See https://cloud.google.com/apis/design/resource_names for details. * * @@ -12558,12 +12433,14 @@ public com.google.protobuf.ByteString getNameBytes() { * The stable identifier (name) of a resource on the `service`. A resource * can be logically identified as "//{resource.service}/{resource.name}". * The differences between a resource name and a URI are: + * * * Resource name is a logical identifier, independent of network * protocol and API version. For example, * `//pubsub.googleapis.com/projects/123/topics/news-feed`. * * URI often includes protocol and version information, so it can * be used directly by applications. For example, * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. + * * See https://cloud.google.com/apis/design/resource_names for details. * * @@ -12588,12 +12465,14 @@ public Builder setName(java.lang.String value) { * The stable identifier (name) of a resource on the `service`. A resource * can be logically identified as "//{resource.service}/{resource.name}". * The differences between a resource name and a URI are: + * * * Resource name is a logical identifier, independent of network * protocol and API version. For example, * `//pubsub.googleapis.com/projects/123/topics/news-feed`. * * URI often includes protocol and version information, so it can * be used directly by applications. For example, * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. + * * See https://cloud.google.com/apis/design/resource_names for details. * * @@ -12614,12 +12493,14 @@ public Builder clearName() { * The stable identifier (name) of a resource on the `service`. A resource * can be logically identified as "//{resource.service}/{resource.name}". * The differences between a resource name and a URI are: + * * * Resource name is a logical identifier, independent of network * protocol and API version. For example, * `//pubsub.googleapis.com/projects/123/topics/news-feed`. * * URI often includes protocol and version information, so it can * be used directly by applications. For example, * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. + * * See https://cloud.google.com/apis/design/resource_names for details. * * @@ -12646,6 +12527,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { *
        * The type of the resource. The syntax is platform-specific because
        * different platforms define their resources differently.
+       *
        * For Google APIs, the type format must be "{service}/{kind}", such as
        * "pubsub.googleapis.com/Topic".
        * 
@@ -12671,6 +12553,7 @@ public java.lang.String getType() { *
        * The type of the resource. The syntax is platform-specific because
        * different platforms define their resources differently.
+       *
        * For Google APIs, the type format must be "{service}/{kind}", such as
        * "pubsub.googleapis.com/Topic".
        * 
@@ -12696,6 +12579,7 @@ public com.google.protobuf.ByteString getTypeBytes() { *
        * The type of the resource. The syntax is platform-specific because
        * different platforms define their resources differently.
+       *
        * For Google APIs, the type format must be "{service}/{kind}", such as
        * "pubsub.googleapis.com/Topic".
        * 
@@ -12720,6 +12604,7 @@ public Builder setType(java.lang.String value) { *
        * The type of the resource. The syntax is platform-specific because
        * different platforms define their resources differently.
+       *
        * For Google APIs, the type format must be "{service}/{kind}", such as
        * "pubsub.googleapis.com/Topic".
        * 
@@ -12740,6 +12625,7 @@ public Builder clearType() { *
        * The type of the resource. The syntax is platform-specific because
        * different platforms define their resources differently.
+       *
        * For Google APIs, the type format must be "{service}/{kind}", such as
        * "pubsub.googleapis.com/Topic".
        * 
@@ -13091,6 +12977,7 @@ public int getAnnotationsCount() { * Annotations is an unstructured key-value map stored with a resource that * may be set by external tools to store and retrieve arbitrary metadata. * They are not queryable and should be preserved when modifying objects. + * * More info: https://kubernetes.io/docs/user-guide/annotations * * @@ -13116,6 +13003,7 @@ public java.util.Map getAnnotations() { * Annotations is an unstructured key-value map stored with a resource that * may be set by external tools to store and retrieve arbitrary metadata. * They are not queryable and should be preserved when modifying objects. + * * More info: https://kubernetes.io/docs/user-guide/annotations * * @@ -13132,6 +13020,7 @@ public java.util.Map getAnnotationsMap() { * Annotations is an unstructured key-value map stored with a resource that * may be set by external tools to store and retrieve arbitrary metadata. * They are not queryable and should be preserved when modifying objects. + * * More info: https://kubernetes.io/docs/user-guide/annotations * * @@ -13155,6 +13044,7 @@ public java.util.Map getAnnotationsMap() { * Annotations is an unstructured key-value map stored with a resource that * may be set by external tools to store and retrieve arbitrary metadata. * They are not queryable and should be preserved when modifying objects. + * * More info: https://kubernetes.io/docs/user-guide/annotations * * @@ -13184,6 +13074,7 @@ public Builder clearAnnotations() { * Annotations is an unstructured key-value map stored with a resource that * may be set by external tools to store and retrieve arbitrary metadata. * They are not queryable and should be preserved when modifying objects. + * * More info: https://kubernetes.io/docs/user-guide/annotations * * @@ -13209,6 +13100,7 @@ public java.util.Map getMutableAnnotations() * Annotations is an unstructured key-value map stored with a resource that * may be set by external tools to store and retrieve arbitrary metadata. * They are not queryable and should be preserved when modifying objects. + * * More info: https://kubernetes.io/docs/user-guide/annotations * * @@ -13232,6 +13124,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { * Annotations is an unstructured key-value map stored with a resource that * may be set by external tools to store and retrieve arbitrary metadata. * They are not queryable and should be preserved when modifying objects. + * * More info: https://kubernetes.io/docs/user-guide/annotations * * @@ -14058,6 +13951,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { * Immutable. The location of the resource. The location encoding is * specific to the service provider, and new encoding may be introduced * as the service evolves. + * * For Google Cloud products, the encoding is what is used by Google Cloud * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The * semantics of `location` is identical to the @@ -14086,6 +13980,7 @@ public java.lang.String getLocation() { * Immutable. The location of the resource. The location encoding is * specific to the service provider, and new encoding may be introduced * as the service evolves. + * * For Google Cloud products, the encoding is what is used by Google Cloud * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The * semantics of `location` is identical to the @@ -14114,6 +14009,7 @@ public com.google.protobuf.ByteString getLocationBytes() { * Immutable. The location of the resource. The location encoding is * specific to the service provider, and new encoding may be introduced * as the service evolves. + * * For Google Cloud products, the encoding is what is used by Google Cloud * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The * semantics of `location` is identical to the @@ -14141,6 +14037,7 @@ public Builder setLocation(java.lang.String value) { * Immutable. The location of the resource. The location encoding is * specific to the service provider, and new encoding may be introduced * as the service evolves. + * * For Google Cloud products, the encoding is what is used by Google Cloud * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The * semantics of `location` is identical to the @@ -14164,6 +14061,7 @@ public Builder clearLocation() { * Immutable. The location of the resource. The location encoding is * specific to the service provider, and new encoding may be introduced * as the service evolves. + * * For Google Cloud products, the encoding is what is used by Google Cloud * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The * semantics of `location` is identical to the @@ -14953,15 +14851,19 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * This message defines the standard attribute vocabulary for Google APIs.
+   *
    * An attribute is a piece of metadata that describes an activity on a network
    * service. For example, the size of an HTTP request, or the status code of
    * an HTTP response.
+   *
    * Each attribute has a type and a name, which is logically defined as
    * a proto message field in `AttributeContext`. The field type becomes the
    * attribute type, and the field path becomes the attribute name. For example,
    * the attribute `source.ip` maps to field `AttributeContext.source.ip`.
+   *
    * This message definition is guaranteed not to have any wire breaking change.
    * So you can use it directly for passing attributes across different systems.
+   *
    * NOTE: Different system may generate different subset of attributes. Please
    * verify the system specification before relying on an attribute generated
    * a system.
@@ -15114,39 +15016,6 @@ private void buildPartial0(com.google.rpc.context.AttributeContext result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.rpc.context.AttributeContext) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AuditContext.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AuditContext.java
index c1ad7785a7..694a0c5b93 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AuditContext.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AuditContext.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AuditContext();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.rpc.context.AuditContextProto
         .internal_static_google_rpc_context_AuditContext_descriptor;
@@ -582,39 +577,6 @@ private void buildPartial0(com.google.rpc.context.AuditContext result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.rpc.context.AuditContext) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Color.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Color.java
index 291b0ec150..e4d64a640c 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Color.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Color.java
@@ -29,27 +29,34 @@
  * can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
  * method in iOS; and, with just a little work, it can be easily formatted into
  * a CSS `rgba()` string in JavaScript.
+ *
  * This reference page doesn't carry information about the absolute color
  * space
  * that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
  * DCI-P3, BT.2020, etc.). By default, applications should assume the sRGB color
  * space.
+ *
  * When color equality needs to be decided, implementations, unless
  * documented otherwise, treat two colors as equal if all their red,
  * green, blue, and alpha values each differ by at most 1e-5.
+ *
  * Example (Java):
+ *
  *      import com.google.type.Color;
+ *
  *      // ...
  *      public static java.awt.Color fromProto(Color protocolor) {
  *        float alpha = protocolor.hasAlpha()
  *            ? protocolor.getAlpha().getValue()
  *            : 1.0;
+ *
  *        return new java.awt.Color(
  *            protocolor.getRed(),
  *            protocolor.getGreen(),
  *            protocolor.getBlue(),
  *            alpha);
  *      }
+ *
  *      public static Color toProto(java.awt.Color color) {
  *        float red = (float) color.getRed();
  *        float green = (float) color.getGreen();
@@ -72,7 +79,9 @@
  *        return resultBuilder.build();
  *      }
  *      // ...
+ *
  * Example (iOS / Obj-C):
+ *
  *      // ...
  *      static UIColor* fromProto(Color* protocolor) {
  *         float red = [protocolor red];
@@ -85,6 +94,7 @@
  *         }
  *         return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
  *      }
+ *
  *      static Color* toProto(UIColor* color) {
  *          CGFloat red, green, blue, alpha;
  *          if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) {
@@ -101,8 +111,11 @@
  *          return result;
  *     }
  *     // ...
+ *
  *  Example (JavaScript):
+ *
  *     // ...
+ *
  *     var protoToCssColor = function(rgb_color) {
  *        var redFrac = rgb_color.red || 0.0;
  *        var greenFrac = rgb_color.green || 0.0;
@@ -110,13 +123,16 @@
  *        var red = Math.floor(redFrac * 255);
  *        var green = Math.floor(greenFrac * 255);
  *        var blue = Math.floor(blueFrac * 255);
+ *
  *        if (!('alpha' in rgb_color)) {
  *           return rgbToCssColor(red, green, blue);
  *        }
+ *
  *        var alphaFrac = rgb_color.alpha.value || 0.0;
  *        var rgbParams = [red, green, blue].join(',');
  *        return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
  *     };
+ *
  *     var rgbToCssColor = function(red, green, blue) {
  *       var rgbNumber = new Number((red << 16) | (green << 8) | blue);
  *       var hexString = rgbNumber.toString(16);
@@ -128,6 +144,7 @@
  *       resultBuilder.push(hexString);
  *       return resultBuilder.join('');
  *     };
+ *
  *     // ...
  * 
* @@ -151,11 +168,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Color(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.type.ColorProto.internal_static_google_type_Color_descriptor; } @@ -230,7 +242,9 @@ public float getBlue() { *
    * The fraction of this color that should be applied to the pixel. That is,
    * the final pixel color is defined by the equation:
+   *
    *   `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+   *
    * This means that a value of 1.0 corresponds to a solid color, whereas
    * a value of 0.0 corresponds to a completely transparent color. This
    * uses a wrapper message rather than a simple float scalar so that it is
@@ -253,7 +267,9 @@ public boolean hasAlpha() {
    * 
    * The fraction of this color that should be applied to the pixel. That is,
    * the final pixel color is defined by the equation:
+   *
    *   `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+   *
    * This means that a value of 1.0 corresponds to a solid color, whereas
    * a value of 0.0 corresponds to a completely transparent color. This
    * uses a wrapper message rather than a simple float scalar so that it is
@@ -276,7 +292,9 @@ public com.google.protobuf.FloatValue getAlpha() {
    * 
    * The fraction of this color that should be applied to the pixel. That is,
    * the final pixel color is defined by the equation:
+   *
    *   `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+   *
    * This means that a value of 1.0 corresponds to a solid color, whereas
    * a value of 0.0 corresponds to a completely transparent color. This
    * uses a wrapper message rather than a simple float scalar so that it is
@@ -495,27 +513,34 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
    * method in iOS; and, with just a little work, it can be easily formatted into
    * a CSS `rgba()` string in JavaScript.
+   *
    * This reference page doesn't carry information about the absolute color
    * space
    * that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
    * DCI-P3, BT.2020, etc.). By default, applications should assume the sRGB color
    * space.
+   *
    * When color equality needs to be decided, implementations, unless
    * documented otherwise, treat two colors as equal if all their red,
    * green, blue, and alpha values each differ by at most 1e-5.
+   *
    * Example (Java):
+   *
    *      import com.google.type.Color;
+   *
    *      // ...
    *      public static java.awt.Color fromProto(Color protocolor) {
    *        float alpha = protocolor.hasAlpha()
    *            ? protocolor.getAlpha().getValue()
    *            : 1.0;
+   *
    *        return new java.awt.Color(
    *            protocolor.getRed(),
    *            protocolor.getGreen(),
    *            protocolor.getBlue(),
    *            alpha);
    *      }
+   *
    *      public static Color toProto(java.awt.Color color) {
    *        float red = (float) color.getRed();
    *        float green = (float) color.getGreen();
@@ -538,7 +563,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *        return resultBuilder.build();
    *      }
    *      // ...
+   *
    * Example (iOS / Obj-C):
+   *
    *      // ...
    *      static UIColor* fromProto(Color* protocolor) {
    *         float red = [protocolor red];
@@ -551,6 +578,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *         }
    *         return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
    *      }
+   *
    *      static Color* toProto(UIColor* color) {
    *          CGFloat red, green, blue, alpha;
    *          if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) {
@@ -567,8 +595,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *          return result;
    *     }
    *     // ...
+   *
    *  Example (JavaScript):
+   *
    *     // ...
+   *
    *     var protoToCssColor = function(rgb_color) {
    *        var redFrac = rgb_color.red || 0.0;
    *        var greenFrac = rgb_color.green || 0.0;
@@ -576,13 +607,16 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *        var red = Math.floor(redFrac * 255);
    *        var green = Math.floor(greenFrac * 255);
    *        var blue = Math.floor(blueFrac * 255);
+   *
    *        if (!('alpha' in rgb_color)) {
    *           return rgbToCssColor(red, green, blue);
    *        }
+   *
    *        var alphaFrac = rgb_color.alpha.value || 0.0;
    *        var rgbParams = [red, green, blue].join(',');
    *        return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
    *     };
+   *
    *     var rgbToCssColor = function(red, green, blue) {
    *       var rgbNumber = new Number((red << 16) | (green << 8) | blue);
    *       var hexString = rgbNumber.toString(16);
@@ -594,6 +628,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *       resultBuilder.push(hexString);
    *       return resultBuilder.join('');
    *     };
+   *
    *     // ...
    * 
* @@ -682,39 +717,6 @@ private void buildPartial0(com.google.type.Color result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.type.Color) { @@ -979,7 +981,9 @@ public Builder clearBlue() { *
      * The fraction of this color that should be applied to the pixel. That is,
      * the final pixel color is defined by the equation:
+     *
      *   `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+     *
      * This means that a value of 1.0 corresponds to a solid color, whereas
      * a value of 0.0 corresponds to a completely transparent color. This
      * uses a wrapper message rather than a simple float scalar so that it is
@@ -1001,7 +1005,9 @@ public boolean hasAlpha() {
      * 
      * The fraction of this color that should be applied to the pixel. That is,
      * the final pixel color is defined by the equation:
+     *
      *   `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+     *
      * This means that a value of 1.0 corresponds to a solid color, whereas
      * a value of 0.0 corresponds to a completely transparent color. This
      * uses a wrapper message rather than a simple float scalar so that it is
@@ -1027,7 +1033,9 @@ public com.google.protobuf.FloatValue getAlpha() {
      * 
      * The fraction of this color that should be applied to the pixel. That is,
      * the final pixel color is defined by the equation:
+     *
      *   `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+     *
      * This means that a value of 1.0 corresponds to a solid color, whereas
      * a value of 0.0 corresponds to a completely transparent color. This
      * uses a wrapper message rather than a simple float scalar so that it is
@@ -1057,7 +1065,9 @@ public Builder setAlpha(com.google.protobuf.FloatValue value) {
      * 
      * The fraction of this color that should be applied to the pixel. That is,
      * the final pixel color is defined by the equation:
+     *
      *   `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+     *
      * This means that a value of 1.0 corresponds to a solid color, whereas
      * a value of 0.0 corresponds to a completely transparent color. This
      * uses a wrapper message rather than a simple float scalar so that it is
@@ -1084,7 +1094,9 @@ public Builder setAlpha(com.google.protobuf.FloatValue.Builder builderForValue)
      * 
      * The fraction of this color that should be applied to the pixel. That is,
      * the final pixel color is defined by the equation:
+     *
      *   `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+     *
      * This means that a value of 1.0 corresponds to a solid color, whereas
      * a value of 0.0 corresponds to a completely transparent color. This
      * uses a wrapper message rather than a simple float scalar so that it is
@@ -1117,7 +1129,9 @@ public Builder mergeAlpha(com.google.protobuf.FloatValue value) {
      * 
      * The fraction of this color that should be applied to the pixel. That is,
      * the final pixel color is defined by the equation:
+     *
      *   `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+     *
      * This means that a value of 1.0 corresponds to a solid color, whereas
      * a value of 0.0 corresponds to a completely transparent color. This
      * uses a wrapper message rather than a simple float scalar so that it is
@@ -1144,7 +1158,9 @@ public Builder clearAlpha() {
      * 
      * The fraction of this color that should be applied to the pixel. That is,
      * the final pixel color is defined by the equation:
+     *
      *   `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+     *
      * This means that a value of 1.0 corresponds to a solid color, whereas
      * a value of 0.0 corresponds to a completely transparent color. This
      * uses a wrapper message rather than a simple float scalar so that it is
@@ -1166,7 +1182,9 @@ public com.google.protobuf.FloatValue.Builder getAlphaBuilder() {
      * 
      * The fraction of this color that should be applied to the pixel. That is,
      * the final pixel color is defined by the equation:
+     *
      *   `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+     *
      * This means that a value of 1.0 corresponds to a solid color, whereas
      * a value of 0.0 corresponds to a completely transparent color. This
      * uses a wrapper message rather than a simple float scalar so that it is
@@ -1190,7 +1208,9 @@ public com.google.protobuf.FloatValueOrBuilder getAlphaOrBuilder() {
      * 
      * The fraction of this color that should be applied to the pixel. That is,
      * the final pixel color is defined by the equation:
+     *
      *   `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+     *
      * This means that a value of 1.0 corresponds to a solid color, whereas
      * a value of 0.0 corresponds to a completely transparent color. This
      * uses a wrapper message rather than a simple float scalar so that it is
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ColorOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ColorOrBuilder.java
index f789a85df7..eb53a17bb9 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ColorOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ColorOrBuilder.java
@@ -68,7 +68,9 @@ public interface ColorOrBuilder
    * 
    * The fraction of this color that should be applied to the pixel. That is,
    * the final pixel color is defined by the equation:
+   *
    *   `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+   *
    * This means that a value of 1.0 corresponds to a solid color, whereas
    * a value of 0.0 corresponds to a completely transparent color. This
    * uses a wrapper message rather than a simple float scalar so that it is
@@ -88,7 +90,9 @@ public interface ColorOrBuilder
    * 
    * The fraction of this color that should be applied to the pixel. That is,
    * the final pixel color is defined by the equation:
+   *
    *   `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+   *
    * This means that a value of 1.0 corresponds to a solid color, whereas
    * a value of 0.0 corresponds to a completely transparent color. This
    * uses a wrapper message rather than a simple float scalar so that it is
@@ -108,7 +112,9 @@ public interface ColorOrBuilder
    * 
    * The fraction of this color that should be applied to the pixel. That is,
    * the final pixel color is defined by the equation:
+   *
    *   `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+   *
    * This means that a value of 1.0 corresponds to a solid color, whereas
    * a value of 0.0 corresponds to a completely transparent color. This
    * uses a wrapper message rather than a simple float scalar so that it is
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Date.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Date.java
index bf46c6f021..8ba5148c55 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Date.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Date.java
@@ -26,11 +26,13 @@
  * day and time zone are either specified elsewhere or are insignificant. The
  * date is relative to the Gregorian Calendar. This can represent one of the
  * following:
+ *
  * * A full date, with non-zero year, month, and day values
  * * A month and day value, with a zero year, such as an anniversary
  * * A year on its own, with zero month and day values
  * * A year and month value, with a zero day, such as a credit card expiration
  * date
+ *
  * Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and
  * `google.protobuf.Timestamp`.
  * 
@@ -55,11 +57,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Date(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.type.DateProto.internal_static_google_type_Date_descriptor; } @@ -313,11 +310,13 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * day and time zone are either specified elsewhere or are insignificant. The * date is relative to the Gregorian Calendar. This can represent one of the * following: + * * * A full date, with non-zero year, month, and day values * * A month and day value, with a zero year, such as an anniversary * * A year on its own, with zero month and day values * * A year and month value, with a zero day, such as a credit card expiration * date + * * Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and * `google.protobuf.Timestamp`. *
@@ -399,39 +398,6 @@ private void buildPartial0(com.google.type.Date result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.type.Date) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTime.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTime.java index 295d91ad96..8ecc8ef24d 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTime.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTime.java @@ -23,21 +23,27 @@ * *
  * Represents civil time (or occasionally physical time).
+ *
  * This type can represent a civil time in one of a few possible ways:
+ *
  *  * When utc_offset is set and time_zone is unset: a civil time on a calendar
  *    day with a particular offset from UTC.
  *  * When time_zone is set and utc_offset is unset: a civil time on a calendar
  *    day in a particular time zone.
  *  * When neither time_zone nor utc_offset is set: a civil time on a calendar
  *    day in local time.
+ *
  * The date is relative to the Proleptic Gregorian Calendar.
+ *
  * If year is 0, the DateTime is considered not to have a specific year. month
  * and day must have valid, non-zero values.
+ *
  * This type may also be used to represent a physical time if all the date and
  * time fields are set and either case of the `time_offset` oneof is set.
  * Consider using `Timestamp` message for physical time instead. If your use
  * case also would like to store the user's timezone, that can be done in
  * another field.
+ *
  * This type is more flexible than some applications may want. Make sure to
  * document and validate your application's limitations.
  * 
@@ -62,11 +68,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DateTime(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.type.DateTimeProto.internal_static_google_type_DateTime_descriptor; } @@ -80,6 +81,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int timeOffsetCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object timeOffset_; public enum TimeOffsetCase @@ -621,21 +624,27 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Represents civil time (or occasionally physical time).
+   *
    * This type can represent a civil time in one of a few possible ways:
+   *
    *  * When utc_offset is set and time_zone is unset: a civil time on a calendar
    *    day with a particular offset from UTC.
    *  * When time_zone is set and utc_offset is unset: a civil time on a calendar
    *    day in a particular time zone.
    *  * When neither time_zone nor utc_offset is set: a civil time on a calendar
    *    day in local time.
+   *
    * The date is relative to the Proleptic Gregorian Calendar.
+   *
    * If year is 0, the DateTime is considered not to have a specific year. month
    * and day must have valid, non-zero values.
+   *
    * This type may also be used to represent a physical time if all the date and
    * time fields are set and either case of the `time_offset` oneof is set.
    * Consider using `Timestamp` message for physical time instead. If your use
    * case also would like to store the user's timezone, that can be done in
    * another field.
+   *
    * This type is more flexible than some applications may want. Make sure to
    * document and validate your application's limitations.
    * 
@@ -753,39 +762,6 @@ private void buildPartialOneofs(com.google.type.DateTime result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.type.DateTime) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeOrBuilder.java index fb8329d59c..3d237dbb18 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeOrBuilder.java @@ -196,5 +196,5 @@ public interface DateTimeOrBuilder */ com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder(); - public com.google.type.DateTime.TimeOffsetCase getTimeOffsetCase(); + com.google.type.DateTime.TimeOffsetCase getTimeOffsetCase(); } diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Decimal.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Decimal.java index 7cd61f76c7..3a7ce4b3fb 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Decimal.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Decimal.java @@ -25,6 +25,7 @@ * A representation of a decimal value, such as 2.5. Clients may convert values * into language-native decimal formats, such as Java's [BigDecimal][] or * Python's [decimal.Decimal][]. + * * [BigDecimal]: * https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html * [decimal.Decimal]: https://docs.python.org/3/library/decimal.html @@ -52,11 +53,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Decimal(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.type.DecimalProto.internal_static_google_type_Decimal_descriptor; } @@ -78,47 +74,63 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * The decimal value, as a string.
+   *
    * The string representation consists of an optional sign, `+` (`U+002B`)
    * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
    * ("the integer"), optionally followed by a fraction, optionally followed
    * by an exponent.
+   *
    * The fraction consists of a decimal point followed by zero or more decimal
    * digits. The string must contain at least one digit in either the integer
    * or the fraction. The number formed by the sign, the integer and the
    * fraction is referred to as the significand.
+   *
    * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`)
    * followed by one or more decimal digits.
+   *
    * Services **should** normalize decimal values before storing them by:
+   *
    *   - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
    *   - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
    *   - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
    *   - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+   *
    * Services **may** perform additional normalization based on its own needs
    * and the internal decimal implementation selected, such as shifting the
    * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
    * Additionally, services **may** preserve trailing zeroes in the fraction
    * to indicate increased precision, but are not required to do so.
+   *
    * Note that only the `.` character is supported to divide the integer
    * and the fraction; `,` **should not** be supported regardless of locale.
    * Additionally, thousand separators **should not** be supported. If a
    * service does support them, values **must** be normalized.
+   *
    * The ENBF grammar is:
+   *
    *     DecimalString =
    *       [Sign] Significand [Exponent];
+   *
    *     Sign = '+' | '-';
+   *
    *     Significand =
    *       Digits ['.'] [Digits] | [Digits] '.' Digits;
+   *
    *     Exponent = ('e' | 'E') [Sign] Digits;
+   *
    *     Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' };
+   *
    * Services **should** clearly document the range of supported values, the
    * maximum supported precision (total number of digits), and, if applicable,
    * the scale (number of digits after the decimal point), as well as how it
    * behaves when receiving out-of-bounds values.
+   *
    * Services **may** choose to accept values passed as input even when the
    * value has a higher precision or scale than the service supports, and
    * **should** round the value to fit the supported scale. Alternatively, the
    * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC)
    * if precision would be lost.
+   *
    * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in
    * gRPC) if the service receives a value outside of the supported range.
    * 
@@ -144,47 +156,63 @@ public java.lang.String getValue() { * *
    * The decimal value, as a string.
+   *
    * The string representation consists of an optional sign, `+` (`U+002B`)
    * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
    * ("the integer"), optionally followed by a fraction, optionally followed
    * by an exponent.
+   *
    * The fraction consists of a decimal point followed by zero or more decimal
    * digits. The string must contain at least one digit in either the integer
    * or the fraction. The number formed by the sign, the integer and the
    * fraction is referred to as the significand.
+   *
    * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`)
    * followed by one or more decimal digits.
+   *
    * Services **should** normalize decimal values before storing them by:
+   *
    *   - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
    *   - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
    *   - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
    *   - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+   *
    * Services **may** perform additional normalization based on its own needs
    * and the internal decimal implementation selected, such as shifting the
    * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
    * Additionally, services **may** preserve trailing zeroes in the fraction
    * to indicate increased precision, but are not required to do so.
+   *
    * Note that only the `.` character is supported to divide the integer
    * and the fraction; `,` **should not** be supported regardless of locale.
    * Additionally, thousand separators **should not** be supported. If a
    * service does support them, values **must** be normalized.
+   *
    * The ENBF grammar is:
+   *
    *     DecimalString =
    *       [Sign] Significand [Exponent];
+   *
    *     Sign = '+' | '-';
+   *
    *     Significand =
    *       Digits ['.'] [Digits] | [Digits] '.' Digits;
+   *
    *     Exponent = ('e' | 'E') [Sign] Digits;
+   *
    *     Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' };
+   *
    * Services **should** clearly document the range of supported values, the
    * maximum supported precision (total number of digits), and, if applicable,
    * the scale (number of digits after the decimal point), as well as how it
    * behaves when receiving out-of-bounds values.
+   *
    * Services **may** choose to accept values passed as input even when the
    * value has a higher precision or scale than the service supports, and
    * **should** round the value to fit the supported scale. Alternatively, the
    * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC)
    * if precision would be lost.
+   *
    * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in
    * gRPC) if the service receives a value outside of the supported range.
    * 
@@ -370,6 +398,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * A representation of a decimal value, such as 2.5. Clients may convert values * into language-native decimal formats, such as Java's [BigDecimal][] or * Python's [decimal.Decimal][]. + * * [BigDecimal]: * https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html * [decimal.Decimal]: https://docs.python.org/3/library/decimal.html @@ -444,39 +473,6 @@ private void buildPartial0(com.google.type.Decimal result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.type.Decimal) { @@ -551,47 +547,63 @@ public Builder mergeFrom( * *
      * The decimal value, as a string.
+     *
      * The string representation consists of an optional sign, `+` (`U+002B`)
      * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
      * ("the integer"), optionally followed by a fraction, optionally followed
      * by an exponent.
+     *
      * The fraction consists of a decimal point followed by zero or more decimal
      * digits. The string must contain at least one digit in either the integer
      * or the fraction. The number formed by the sign, the integer and the
      * fraction is referred to as the significand.
+     *
      * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`)
      * followed by one or more decimal digits.
+     *
      * Services **should** normalize decimal values before storing them by:
+     *
      *   - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
      *   - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
      *   - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
      *   - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+     *
      * Services **may** perform additional normalization based on its own needs
      * and the internal decimal implementation selected, such as shifting the
      * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
      * Additionally, services **may** preserve trailing zeroes in the fraction
      * to indicate increased precision, but are not required to do so.
+     *
      * Note that only the `.` character is supported to divide the integer
      * and the fraction; `,` **should not** be supported regardless of locale.
      * Additionally, thousand separators **should not** be supported. If a
      * service does support them, values **must** be normalized.
+     *
      * The ENBF grammar is:
+     *
      *     DecimalString =
      *       [Sign] Significand [Exponent];
+     *
      *     Sign = '+' | '-';
+     *
      *     Significand =
      *       Digits ['.'] [Digits] | [Digits] '.' Digits;
+     *
      *     Exponent = ('e' | 'E') [Sign] Digits;
+     *
      *     Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' };
+     *
      * Services **should** clearly document the range of supported values, the
      * maximum supported precision (total number of digits), and, if applicable,
      * the scale (number of digits after the decimal point), as well as how it
      * behaves when receiving out-of-bounds values.
+     *
      * Services **may** choose to accept values passed as input even when the
      * value has a higher precision or scale than the service supports, and
      * **should** round the value to fit the supported scale. Alternatively, the
      * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC)
      * if precision would be lost.
+     *
      * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in
      * gRPC) if the service receives a value outside of the supported range.
      * 
@@ -616,47 +628,63 @@ public java.lang.String getValue() { * *
      * The decimal value, as a string.
+     *
      * The string representation consists of an optional sign, `+` (`U+002B`)
      * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
      * ("the integer"), optionally followed by a fraction, optionally followed
      * by an exponent.
+     *
      * The fraction consists of a decimal point followed by zero or more decimal
      * digits. The string must contain at least one digit in either the integer
      * or the fraction. The number formed by the sign, the integer and the
      * fraction is referred to as the significand.
+     *
      * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`)
      * followed by one or more decimal digits.
+     *
      * Services **should** normalize decimal values before storing them by:
+     *
      *   - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
      *   - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
      *   - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
      *   - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+     *
      * Services **may** perform additional normalization based on its own needs
      * and the internal decimal implementation selected, such as shifting the
      * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
      * Additionally, services **may** preserve trailing zeroes in the fraction
      * to indicate increased precision, but are not required to do so.
+     *
      * Note that only the `.` character is supported to divide the integer
      * and the fraction; `,` **should not** be supported regardless of locale.
      * Additionally, thousand separators **should not** be supported. If a
      * service does support them, values **must** be normalized.
+     *
      * The ENBF grammar is:
+     *
      *     DecimalString =
      *       [Sign] Significand [Exponent];
+     *
      *     Sign = '+' | '-';
+     *
      *     Significand =
      *       Digits ['.'] [Digits] | [Digits] '.' Digits;
+     *
      *     Exponent = ('e' | 'E') [Sign] Digits;
+     *
      *     Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' };
+     *
      * Services **should** clearly document the range of supported values, the
      * maximum supported precision (total number of digits), and, if applicable,
      * the scale (number of digits after the decimal point), as well as how it
      * behaves when receiving out-of-bounds values.
+     *
      * Services **may** choose to accept values passed as input even when the
      * value has a higher precision or scale than the service supports, and
      * **should** round the value to fit the supported scale. Alternatively, the
      * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC)
      * if precision would be lost.
+     *
      * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in
      * gRPC) if the service receives a value outside of the supported range.
      * 
@@ -681,47 +709,63 @@ public com.google.protobuf.ByteString getValueBytes() { * *
      * The decimal value, as a string.
+     *
      * The string representation consists of an optional sign, `+` (`U+002B`)
      * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
      * ("the integer"), optionally followed by a fraction, optionally followed
      * by an exponent.
+     *
      * The fraction consists of a decimal point followed by zero or more decimal
      * digits. The string must contain at least one digit in either the integer
      * or the fraction. The number formed by the sign, the integer and the
      * fraction is referred to as the significand.
+     *
      * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`)
      * followed by one or more decimal digits.
+     *
      * Services **should** normalize decimal values before storing them by:
+     *
      *   - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
      *   - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
      *   - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
      *   - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+     *
      * Services **may** perform additional normalization based on its own needs
      * and the internal decimal implementation selected, such as shifting the
      * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
      * Additionally, services **may** preserve trailing zeroes in the fraction
      * to indicate increased precision, but are not required to do so.
+     *
      * Note that only the `.` character is supported to divide the integer
      * and the fraction; `,` **should not** be supported regardless of locale.
      * Additionally, thousand separators **should not** be supported. If a
      * service does support them, values **must** be normalized.
+     *
      * The ENBF grammar is:
+     *
      *     DecimalString =
      *       [Sign] Significand [Exponent];
+     *
      *     Sign = '+' | '-';
+     *
      *     Significand =
      *       Digits ['.'] [Digits] | [Digits] '.' Digits;
+     *
      *     Exponent = ('e' | 'E') [Sign] Digits;
+     *
      *     Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' };
+     *
      * Services **should** clearly document the range of supported values, the
      * maximum supported precision (total number of digits), and, if applicable,
      * the scale (number of digits after the decimal point), as well as how it
      * behaves when receiving out-of-bounds values.
+     *
      * Services **may** choose to accept values passed as input even when the
      * value has a higher precision or scale than the service supports, and
      * **should** round the value to fit the supported scale. Alternatively, the
      * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC)
      * if precision would be lost.
+     *
      * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in
      * gRPC) if the service receives a value outside of the supported range.
      * 
@@ -745,47 +789,63 @@ public Builder setValue(java.lang.String value) { * *
      * The decimal value, as a string.
+     *
      * The string representation consists of an optional sign, `+` (`U+002B`)
      * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
      * ("the integer"), optionally followed by a fraction, optionally followed
      * by an exponent.
+     *
      * The fraction consists of a decimal point followed by zero or more decimal
      * digits. The string must contain at least one digit in either the integer
      * or the fraction. The number formed by the sign, the integer and the
      * fraction is referred to as the significand.
+     *
      * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`)
      * followed by one or more decimal digits.
+     *
      * Services **should** normalize decimal values before storing them by:
+     *
      *   - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
      *   - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
      *   - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
      *   - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+     *
      * Services **may** perform additional normalization based on its own needs
      * and the internal decimal implementation selected, such as shifting the
      * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
      * Additionally, services **may** preserve trailing zeroes in the fraction
      * to indicate increased precision, but are not required to do so.
+     *
      * Note that only the `.` character is supported to divide the integer
      * and the fraction; `,` **should not** be supported regardless of locale.
      * Additionally, thousand separators **should not** be supported. If a
      * service does support them, values **must** be normalized.
+     *
      * The ENBF grammar is:
+     *
      *     DecimalString =
      *       [Sign] Significand [Exponent];
+     *
      *     Sign = '+' | '-';
+     *
      *     Significand =
      *       Digits ['.'] [Digits] | [Digits] '.' Digits;
+     *
      *     Exponent = ('e' | 'E') [Sign] Digits;
+     *
      *     Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' };
+     *
      * Services **should** clearly document the range of supported values, the
      * maximum supported precision (total number of digits), and, if applicable,
      * the scale (number of digits after the decimal point), as well as how it
      * behaves when receiving out-of-bounds values.
+     *
      * Services **may** choose to accept values passed as input even when the
      * value has a higher precision or scale than the service supports, and
      * **should** round the value to fit the supported scale. Alternatively, the
      * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC)
      * if precision would be lost.
+     *
      * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in
      * gRPC) if the service receives a value outside of the supported range.
      * 
@@ -805,47 +865,63 @@ public Builder clearValue() { * *
      * The decimal value, as a string.
+     *
      * The string representation consists of an optional sign, `+` (`U+002B`)
      * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
      * ("the integer"), optionally followed by a fraction, optionally followed
      * by an exponent.
+     *
      * The fraction consists of a decimal point followed by zero or more decimal
      * digits. The string must contain at least one digit in either the integer
      * or the fraction. The number formed by the sign, the integer and the
      * fraction is referred to as the significand.
+     *
      * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`)
      * followed by one or more decimal digits.
+     *
      * Services **should** normalize decimal values before storing them by:
+     *
      *   - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
      *   - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
      *   - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
      *   - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+     *
      * Services **may** perform additional normalization based on its own needs
      * and the internal decimal implementation selected, such as shifting the
      * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
      * Additionally, services **may** preserve trailing zeroes in the fraction
      * to indicate increased precision, but are not required to do so.
+     *
      * Note that only the `.` character is supported to divide the integer
      * and the fraction; `,` **should not** be supported regardless of locale.
      * Additionally, thousand separators **should not** be supported. If a
      * service does support them, values **must** be normalized.
+     *
      * The ENBF grammar is:
+     *
      *     DecimalString =
      *       [Sign] Significand [Exponent];
+     *
      *     Sign = '+' | '-';
+     *
      *     Significand =
      *       Digits ['.'] [Digits] | [Digits] '.' Digits;
+     *
      *     Exponent = ('e' | 'E') [Sign] Digits;
+     *
      *     Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' };
+     *
      * Services **should** clearly document the range of supported values, the
      * maximum supported precision (total number of digits), and, if applicable,
      * the scale (number of digits after the decimal point), as well as how it
      * behaves when receiving out-of-bounds values.
+     *
      * Services **may** choose to accept values passed as input even when the
      * value has a higher precision or scale than the service supports, and
      * **should** round the value to fit the supported scale. Alternatively, the
      * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC)
      * if precision would be lost.
+     *
      * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in
      * gRPC) if the service receives a value outside of the supported range.
      * 
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalOrBuilder.java index 15e152ccc9..73e0329eb2 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalOrBuilder.java @@ -28,47 +28,63 @@ public interface DecimalOrBuilder * *
    * The decimal value, as a string.
+   *
    * The string representation consists of an optional sign, `+` (`U+002B`)
    * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
    * ("the integer"), optionally followed by a fraction, optionally followed
    * by an exponent.
+   *
    * The fraction consists of a decimal point followed by zero or more decimal
    * digits. The string must contain at least one digit in either the integer
    * or the fraction. The number formed by the sign, the integer and the
    * fraction is referred to as the significand.
+   *
    * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`)
    * followed by one or more decimal digits.
+   *
    * Services **should** normalize decimal values before storing them by:
+   *
    *   - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
    *   - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
    *   - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
    *   - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+   *
    * Services **may** perform additional normalization based on its own needs
    * and the internal decimal implementation selected, such as shifting the
    * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
    * Additionally, services **may** preserve trailing zeroes in the fraction
    * to indicate increased precision, but are not required to do so.
+   *
    * Note that only the `.` character is supported to divide the integer
    * and the fraction; `,` **should not** be supported regardless of locale.
    * Additionally, thousand separators **should not** be supported. If a
    * service does support them, values **must** be normalized.
+   *
    * The ENBF grammar is:
+   *
    *     DecimalString =
    *       [Sign] Significand [Exponent];
+   *
    *     Sign = '+' | '-';
+   *
    *     Significand =
    *       Digits ['.'] [Digits] | [Digits] '.' Digits;
+   *
    *     Exponent = ('e' | 'E') [Sign] Digits;
+   *
    *     Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' };
+   *
    * Services **should** clearly document the range of supported values, the
    * maximum supported precision (total number of digits), and, if applicable,
    * the scale (number of digits after the decimal point), as well as how it
    * behaves when receiving out-of-bounds values.
+   *
    * Services **may** choose to accept values passed as input even when the
    * value has a higher precision or scale than the service supports, and
    * **should** round the value to fit the supported scale. Alternatively, the
    * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC)
    * if precision would be lost.
+   *
    * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in
    * gRPC) if the service receives a value outside of the supported range.
    * 
@@ -83,47 +99,63 @@ public interface DecimalOrBuilder * *
    * The decimal value, as a string.
+   *
    * The string representation consists of an optional sign, `+` (`U+002B`)
    * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
    * ("the integer"), optionally followed by a fraction, optionally followed
    * by an exponent.
+   *
    * The fraction consists of a decimal point followed by zero or more decimal
    * digits. The string must contain at least one digit in either the integer
    * or the fraction. The number formed by the sign, the integer and the
    * fraction is referred to as the significand.
+   *
    * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`)
    * followed by one or more decimal digits.
+   *
    * Services **should** normalize decimal values before storing them by:
+   *
    *   - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
    *   - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
    *   - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
    *   - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+   *
    * Services **may** perform additional normalization based on its own needs
    * and the internal decimal implementation selected, such as shifting the
    * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
    * Additionally, services **may** preserve trailing zeroes in the fraction
    * to indicate increased precision, but are not required to do so.
+   *
    * Note that only the `.` character is supported to divide the integer
    * and the fraction; `,` **should not** be supported regardless of locale.
    * Additionally, thousand separators **should not** be supported. If a
    * service does support them, values **must** be normalized.
+   *
    * The ENBF grammar is:
+   *
    *     DecimalString =
    *       [Sign] Significand [Exponent];
+   *
    *     Sign = '+' | '-';
+   *
    *     Significand =
    *       Digits ['.'] [Digits] | [Digits] '.' Digits;
+   *
    *     Exponent = ('e' | 'E') [Sign] Digits;
+   *
    *     Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' };
+   *
    * Services **should** clearly document the range of supported values, the
    * maximum supported precision (total number of digits), and, if applicable,
    * the scale (number of digits after the decimal point), as well as how it
    * behaves when receiving out-of-bounds values.
+   *
    * Services **may** choose to accept values passed as input even when the
    * value has a higher precision or scale than the service supports, and
    * **should** round the value to fit the supported scale. Alternatively, the
    * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC)
    * if precision would be lost.
+   *
    * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in
    * gRPC) if the service receives a value outside of the supported range.
    * 
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Expr.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Expr.java index 24b8e6d689..d6692b298e 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Expr.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Expr.java @@ -25,22 +25,31 @@ * Represents a textual expression in the Common Expression Language (CEL) * syntax. CEL is a C-like expression language. The syntax and semantics of CEL * are documented at https://github.com/google/cel-spec. + * * Example (Comparison): + * * title: "Summary size limit" * description: "Determines if a summary is less than 100 chars" * expression: "document.summary.size() < 100" + * * Example (Equality): + * * title: "Requestor is owner" * description: "Determines if requestor is the document owner" * expression: "document.owner == request.auth.claims.email" + * * Example (Logic): + * * title: "Public documents" * description: "Determine whether the document should be publicly visible" * expression: "document.type != 'private' && document.type != 'internal'" + * * Example (Data Manipulation): + * * title: "Notification string" * description: "Create a notification string with a timestamp." * expression: "'New message received at ' + string(document.create_time)" + * * The exact variables and functions that may be referenced within an expression * are determined by the service that evaluates it. See the service * documentation for additional information. @@ -71,11 +80,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Expr(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.type.ExprProto.internal_static_google_type_Expr_descriptor; } @@ -493,22 +497,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * Represents a textual expression in the Common Expression Language (CEL) * syntax. CEL is a C-like expression language. The syntax and semantics of CEL * are documented at https://github.com/google/cel-spec. + * * Example (Comparison): + * * title: "Summary size limit" * description: "Determines if a summary is less than 100 chars" * expression: "document.summary.size() < 100" + * * Example (Equality): + * * title: "Requestor is owner" * description: "Determines if requestor is the document owner" * expression: "document.owner == request.auth.claims.email" + * * Example (Logic): + * * title: "Public documents" * description: "Determine whether the document should be publicly visible" * expression: "document.type != 'private' && document.type != 'internal'" + * * Example (Data Manipulation): + * * title: "Notification string" * description: "Create a notification string with a timestamp." * expression: "'New message received at ' + string(document.create_time)" + * * The exact variables and functions that may be referenced within an expression * are determined by the service that evaluates it. See the service * documentation for additional information. @@ -595,39 +608,6 @@ private void buildPartial0(com.google.type.Expr result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.type.Expr) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Fraction.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Fraction.java index b2cfd71e8d..fd1bb43a24 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Fraction.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Fraction.java @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Fraction(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.type.FractionProto.internal_static_google_type_Fraction_descriptor; } @@ -345,39 +340,6 @@ private void buildPartial0(com.google.type.Fraction result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.type.Fraction) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Interval.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Interval.java index 3424d0d429..4eee93a5bf 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Interval.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Interval.java @@ -24,6 +24,7 @@ *
  * Represents a time interval, encoded as a Timestamp start (inclusive) and a
  * Timestamp end (exclusive).
+ *
  * The start must be less than or equal to the end.
  * When the start equals the end, the interval is empty (matches no time).
  * When both start and end are unspecified, the interval matches any time.
@@ -49,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Interval();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.type.IntervalProto.internal_static_google_type_Interval_descriptor;
   }
@@ -73,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * 
    * Optional. Inclusive start of the interval.
+   *
    * If specified, a Timestamp matching this interval will have to be the same
    * or after the start.
    * 
@@ -90,6 +87,7 @@ public boolean hasStartTime() { * *
    * Optional. Inclusive start of the interval.
+   *
    * If specified, a Timestamp matching this interval will have to be the same
    * or after the start.
    * 
@@ -107,6 +105,7 @@ public com.google.protobuf.Timestamp getStartTime() { * *
    * Optional. Inclusive start of the interval.
+   *
    * If specified, a Timestamp matching this interval will have to be the same
    * or after the start.
    * 
@@ -125,6 +124,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * *
    * Optional. Exclusive end of the interval.
+   *
    * If specified, a Timestamp matching this interval will have to be before the
    * end.
    * 
@@ -142,6 +142,7 @@ public boolean hasEndTime() { * *
    * Optional. Exclusive end of the interval.
+   *
    * If specified, a Timestamp matching this interval will have to be before the
    * end.
    * 
@@ -159,6 +160,7 @@ public com.google.protobuf.Timestamp getEndTime() { * *
    * Optional. Exclusive end of the interval.
+   *
    * If specified, a Timestamp matching this interval will have to be before the
    * end.
    * 
@@ -352,6 +354,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
    * Represents a time interval, encoded as a Timestamp start (inclusive) and a
    * Timestamp end (exclusive).
+   *
    * The start must be less than or equal to the end.
    * When the start equals the end, the interval is empty (matches no time).
    * When both start and end are unspecified, the interval matches any time.
@@ -438,39 +441,6 @@ private void buildPartial0(com.google.type.Interval result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.type.Interval) {
@@ -557,6 +527,7 @@ public Builder mergeFrom(
      *
      * 
      * Optional. Inclusive start of the interval.
+     *
      * If specified, a Timestamp matching this interval will have to be the same
      * or after the start.
      * 
@@ -573,6 +544,7 @@ public boolean hasStartTime() { * *
      * Optional. Inclusive start of the interval.
+     *
      * If specified, a Timestamp matching this interval will have to be the same
      * or after the start.
      * 
@@ -593,6 +565,7 @@ public com.google.protobuf.Timestamp getStartTime() { * *
      * Optional. Inclusive start of the interval.
+     *
      * If specified, a Timestamp matching this interval will have to be the same
      * or after the start.
      * 
@@ -617,6 +590,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { * *
      * Optional. Inclusive start of the interval.
+     *
      * If specified, a Timestamp matching this interval will have to be the same
      * or after the start.
      * 
@@ -638,6 +612,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu * *
      * Optional. Inclusive start of the interval.
+     *
      * If specified, a Timestamp matching this interval will have to be the same
      * or after the start.
      * 
@@ -665,6 +640,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * *
      * Optional. Inclusive start of the interval.
+     *
      * If specified, a Timestamp matching this interval will have to be the same
      * or after the start.
      * 
@@ -686,6 +662,7 @@ public Builder clearStartTime() { * *
      * Optional. Inclusive start of the interval.
+     *
      * If specified, a Timestamp matching this interval will have to be the same
      * or after the start.
      * 
@@ -702,6 +679,7 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { * *
      * Optional. Inclusive start of the interval.
+     *
      * If specified, a Timestamp matching this interval will have to be the same
      * or after the start.
      * 
@@ -720,6 +698,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * *
      * Optional. Inclusive start of the interval.
+     *
      * If specified, a Timestamp matching this interval will have to be the same
      * or after the start.
      * 
@@ -754,6 +733,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * *
      * Optional. Exclusive end of the interval.
+     *
      * If specified, a Timestamp matching this interval will have to be before the
      * end.
      * 
@@ -770,6 +750,7 @@ public boolean hasEndTime() { * *
      * Optional. Exclusive end of the interval.
+     *
      * If specified, a Timestamp matching this interval will have to be before the
      * end.
      * 
@@ -790,6 +771,7 @@ public com.google.protobuf.Timestamp getEndTime() { * *
      * Optional. Exclusive end of the interval.
+     *
      * If specified, a Timestamp matching this interval will have to be before the
      * end.
      * 
@@ -814,6 +796,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { * *
      * Optional. Exclusive end of the interval.
+     *
      * If specified, a Timestamp matching this interval will have to be before the
      * end.
      * 
@@ -835,6 +818,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) * *
      * Optional. Exclusive end of the interval.
+     *
      * If specified, a Timestamp matching this interval will have to be before the
      * end.
      * 
@@ -862,6 +846,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * *
      * Optional. Exclusive end of the interval.
+     *
      * If specified, a Timestamp matching this interval will have to be before the
      * end.
      * 
@@ -883,6 +868,7 @@ public Builder clearEndTime() { * *
      * Optional. Exclusive end of the interval.
+     *
      * If specified, a Timestamp matching this interval will have to be before the
      * end.
      * 
@@ -899,6 +885,7 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { * *
      * Optional. Exclusive end of the interval.
+     *
      * If specified, a Timestamp matching this interval will have to be before the
      * end.
      * 
@@ -917,6 +904,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * *
      * Optional. Exclusive end of the interval.
+     *
      * If specified, a Timestamp matching this interval will have to be before the
      * end.
      * 
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/IntervalOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/IntervalOrBuilder.java index 3267b41792..0efe6bf8b5 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/IntervalOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/IntervalOrBuilder.java @@ -28,6 +28,7 @@ public interface IntervalOrBuilder * *
    * Optional. Inclusive start of the interval.
+   *
    * If specified, a Timestamp matching this interval will have to be the same
    * or after the start.
    * 
@@ -42,6 +43,7 @@ public interface IntervalOrBuilder * *
    * Optional. Inclusive start of the interval.
+   *
    * If specified, a Timestamp matching this interval will have to be the same
    * or after the start.
    * 
@@ -56,6 +58,7 @@ public interface IntervalOrBuilder * *
    * Optional. Inclusive start of the interval.
+   *
    * If specified, a Timestamp matching this interval will have to be the same
    * or after the start.
    * 
@@ -69,6 +72,7 @@ public interface IntervalOrBuilder * *
    * Optional. Exclusive end of the interval.
+   *
    * If specified, a Timestamp matching this interval will have to be before the
    * end.
    * 
@@ -83,6 +87,7 @@ public interface IntervalOrBuilder * *
    * Optional. Exclusive end of the interval.
+   *
    * If specified, a Timestamp matching this interval will have to be before the
    * end.
    * 
@@ -97,6 +102,7 @@ public interface IntervalOrBuilder * *
    * Optional. Exclusive end of the interval.
+   *
    * If specified, a Timestamp matching this interval will have to be before the
    * end.
    * 
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLng.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLng.java index 2af3af9f69..e4fe01ccbb 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLng.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLng.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LatLng(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.type.LatLngProto.internal_static_google_type_LatLng_descriptor; } @@ -360,39 +355,6 @@ private void buildPartial0(com.google.type.LatLng result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.type.LatLng) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedText.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedText.java index d9175895a3..362fa0d001 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedText.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedText.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LocalizedText(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.type.LocalizedTextProto.internal_static_google_type_LocalizedText_descriptor; } @@ -126,6 +121,7 @@ public com.google.protobuf.ByteString getTextBytes() { * *
    * The text's BCP-47 language code, such as "en-US" or "sr-Latn".
+   *
    * For more information, see
    * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
    * 
@@ -151,6 +147,7 @@ public java.lang.String getLanguageCode() { * *
    * The text's BCP-47 language code, such as "en-US" or "sr-Latn".
+   *
    * For more information, see
    * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
    * 
@@ -421,39 +418,6 @@ private void buildPartial0(com.google.type.LocalizedText result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.type.LocalizedText) { @@ -645,6 +609,7 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { * *
      * The text's BCP-47 language code, such as "en-US" or "sr-Latn".
+     *
      * For more information, see
      * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
      * 
@@ -669,6 +634,7 @@ public java.lang.String getLanguageCode() { * *
      * The text's BCP-47 language code, such as "en-US" or "sr-Latn".
+     *
      * For more information, see
      * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
      * 
@@ -693,6 +659,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * *
      * The text's BCP-47 language code, such as "en-US" or "sr-Latn".
+     *
      * For more information, see
      * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
      * 
@@ -716,6 +683,7 @@ public Builder setLanguageCode(java.lang.String value) { * *
      * The text's BCP-47 language code, such as "en-US" or "sr-Latn".
+     *
      * For more information, see
      * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
      * 
@@ -735,6 +703,7 @@ public Builder clearLanguageCode() { * *
      * The text's BCP-47 language code, such as "en-US" or "sr-Latn".
+     *
      * For more information, see
      * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
      * 
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextOrBuilder.java index c103886996..ff8778cea4 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextOrBuilder.java @@ -53,6 +53,7 @@ public interface LocalizedTextOrBuilder * *
    * The text's BCP-47 language code, such as "en-US" or "sr-Latn".
+   *
    * For more information, see
    * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
    * 
@@ -67,6 +68,7 @@ public interface LocalizedTextOrBuilder * *
    * The text's BCP-47 language code, such as "en-US" or "sr-Latn".
+   *
    * For more information, see
    * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
    * 
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Money.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Money.java index bf2afe6d29..d1f445544b 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Money.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Money.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Money(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.type.MoneyProto.internal_static_google_type_Money_descriptor; } @@ -416,39 +411,6 @@ private void buildPartial0(com.google.type.Money result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.type.Money) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumber.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumber.java index b4d9d9b595..d2d0dfbcb2 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumber.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumber.java @@ -23,15 +23,21 @@ * *
  * An object representing a phone number, suitable as an API wire format.
+ *
  * This representation:
+ *
  *  - should not be used for locale-specific formatting of a phone number, such
  *    as "+1 (650) 253-0000 ext. 123"
+ *
  *  - is not designed for efficient storage
  *  - may not be suitable for dialing - specialized libraries (see references)
  *    should be used to parse the number for that purpose
+ *
  * To do something meaningful with this number, such as format it for various
  * use-cases, convert it to an `i18n.phonenumbers.PhoneNumber` object first.
+ *
  * For instance, in Java this would be:
+ *
  *    com.google.type.PhoneNumber wireProto =
  *        com.google.type.PhoneNumber.newBuilder().build();
  *    com.google.i18n.phonenumbers.Phonenumber.PhoneNumber phoneNumber =
@@ -39,6 +45,7 @@
  *    if (!wireProto.getExtension().isEmpty()) {
  *      phoneNumber.setExtension(wireProto.getExtension());
  *    }
+ *
  *  Reference(s):
  *   - https://github.com/google/libphonenumber
  * 
@@ -65,11 +72,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PhoneNumber(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.type.PhoneNumberProto.internal_static_google_type_PhoneNumber_descriptor; } @@ -94,6 +96,7 @@ public interface ShortCodeOrBuilder *
      * Required. The BCP-47 region code of the location where calls to this
      * short code can be made, such as "US" and "BB".
+     *
      * Reference(s):
      *  - http://www.unicode.org/reports/tr35/#unicode_region_subtag
      * 
@@ -109,6 +112,7 @@ public interface ShortCodeOrBuilder *
      * Required. The BCP-47 region code of the location where calls to this
      * short code can be made, such as "US" and "BB".
+     *
      * Reference(s):
      *  - http://www.unicode.org/reports/tr35/#unicode_region_subtag
      * 
@@ -154,6 +158,7 @@ public interface ShortCodeOrBuilder * typically much shorter than regular phone numbers and can be used to * address messages in MMS and SMS systems, as well as for abbreviated dialing * (e.g. "Text 611 to see how many minutes you have remaining on your plan."). + * * Short codes are restricted to a region and are not internationally * dialable, which means the same short code can exist in different regions, * with different usage and pricing, even if those regions share the same @@ -183,11 +188,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ShortCode(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.type.PhoneNumberProto .internal_static_google_type_PhoneNumber_ShortCode_descriptor; @@ -213,6 +213,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
      * Required. The BCP-47 region code of the location where calls to this
      * short code can be made, such as "US" and "BB".
+     *
      * Reference(s):
      *  - http://www.unicode.org/reports/tr35/#unicode_region_subtag
      * 
@@ -239,6 +240,7 @@ public java.lang.String getRegionCode() { *
      * Required. The BCP-47 region code of the location where calls to this
      * short code can be made, such as "US" and "BB".
+     *
      * Reference(s):
      *  - http://www.unicode.org/reports/tr35/#unicode_region_subtag
      * 
@@ -489,6 +491,7 @@ protected Builder newBuilderForType( * typically much shorter than regular phone numbers and can be used to * address messages in MMS and SMS systems, as well as for abbreviated dialing * (e.g. "Text 611 to see how many minutes you have remaining on your plan."). + * * Short codes are restricted to a region and are not internationally * dialable, which means the same short code can exist in different regions, * with different usage and pricing, even if those regions share the same @@ -574,41 +577,6 @@ private void buildPartial0(com.google.type.PhoneNumber.ShortCode result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.type.PhoneNumber.ShortCode) { @@ -695,6 +663,7 @@ public Builder mergeFrom( *
        * Required. The BCP-47 region code of the location where calls to this
        * short code can be made, such as "US" and "BB".
+       *
        * Reference(s):
        *  - http://www.unicode.org/reports/tr35/#unicode_region_subtag
        * 
@@ -720,6 +689,7 @@ public java.lang.String getRegionCode() { *
        * Required. The BCP-47 region code of the location where calls to this
        * short code can be made, such as "US" and "BB".
+       *
        * Reference(s):
        *  - http://www.unicode.org/reports/tr35/#unicode_region_subtag
        * 
@@ -745,6 +715,7 @@ public com.google.protobuf.ByteString getRegionCodeBytes() { *
        * Required. The BCP-47 region code of the location where calls to this
        * short code can be made, such as "US" and "BB".
+       *
        * Reference(s):
        *  - http://www.unicode.org/reports/tr35/#unicode_region_subtag
        * 
@@ -769,6 +740,7 @@ public Builder setRegionCode(java.lang.String value) { *
        * Required. The BCP-47 region code of the location where calls to this
        * short code can be made, such as "US" and "BB".
+       *
        * Reference(s):
        *  - http://www.unicode.org/reports/tr35/#unicode_region_subtag
        * 
@@ -789,6 +761,7 @@ public Builder clearRegionCode() { *
        * Required. The BCP-47 region code of the location where calls to this
        * short code can be made, such as "US" and "BB".
+       *
        * Reference(s):
        *  - http://www.unicode.org/reports/tr35/#unicode_region_subtag
        * 
@@ -985,6 +958,8 @@ public com.google.type.PhoneNumber.ShortCode getDefaultInstanceForType() { } private int kindCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object kind_; public enum KindCase @@ -1042,9 +1017,11 @@ public KindCase getKindCase() { * additional spaces or formatting, e.g.: * - correct: "+15552220123" * - incorrect: "+1 (555) 222-01234 x123". + * * The ITU E.164 format limits the latter to 12 digits, but in practice not * all countries respect that, so we relax that restriction here. * National-only numbers are not allowed. + * * References: * - https://www.itu.int/rec/T-REC-E.164-201011-I * - https://en.wikipedia.org/wiki/E.164. @@ -1068,9 +1045,11 @@ public boolean hasE164Number() { * additional spaces or formatting, e.g.: * - correct: "+15552220123" * - incorrect: "+1 (555) 222-01234 x123". + * * The ITU E.164 format limits the latter to 12 digits, but in practice not * all countries respect that, so we relax that restriction here. * National-only numbers are not allowed. + * * References: * - https://www.itu.int/rec/T-REC-E.164-201011-I * - https://en.wikipedia.org/wiki/E.164. @@ -1107,9 +1086,11 @@ public java.lang.String getE164Number() { * additional spaces or formatting, e.g.: * - correct: "+15552220123" * - incorrect: "+1 (555) 222-01234 x123". + * * The ITU E.164 format limits the latter to 12 digits, but in practice not * all countries respect that, so we relax that restriction here. * National-only numbers are not allowed. + * * References: * - https://www.itu.int/rec/T-REC-E.164-201011-I * - https://en.wikipedia.org/wiki/E.164. @@ -1143,6 +1124,7 @@ public com.google.protobuf.ByteString getE164NumberBytes() { * *
    * A short code.
+   *
    * Reference(s):
    *  - https://en.wikipedia.org/wiki/Short_code
    * 
@@ -1160,6 +1142,7 @@ public boolean hasShortCode() { * *
    * A short code.
+   *
    * Reference(s):
    *  - https://en.wikipedia.org/wiki/Short_code
    * 
@@ -1180,6 +1163,7 @@ public com.google.type.PhoneNumber.ShortCode getShortCode() { * *
    * A short code.
+   *
    * Reference(s):
    *  - https://en.wikipedia.org/wiki/Short_code
    * 
@@ -1206,6 +1190,7 @@ public com.google.type.PhoneNumber.ShortCodeOrBuilder getShortCodeOrBuilder() { * recommendations, except for being defined as a series of numbers with a * maximum length of 40 digits. Other than digits, some other dialing * characters such as ',' (indicating a wait) or '#' may be stored here. + * * Note that no regions currently use extensions with short codes, so this * field is normally only set in conjunction with an E.164 number. It is held * separately from the E.164 number to allow for short code extensions in the @@ -1236,6 +1221,7 @@ public java.lang.String getExtension() { * recommendations, except for being defined as a series of numbers with a * maximum length of 40 digits. Other than digits, some other dialing * characters such as ',' (indicating a wait) or '#' may be stored here. + * * Note that no regions currently use extensions with short codes, so this * field is normally only set in conjunction with an E.164 number. It is held * separately from the E.164 number to allow for short code extensions in the @@ -1458,15 +1444,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * An object representing a phone number, suitable as an API wire format.
+   *
    * This representation:
+   *
    *  - should not be used for locale-specific formatting of a phone number, such
    *    as "+1 (650) 253-0000 ext. 123"
+   *
    *  - is not designed for efficient storage
    *  - may not be suitable for dialing - specialized libraries (see references)
    *    should be used to parse the number for that purpose
+   *
    * To do something meaningful with this number, such as format it for various
    * use-cases, convert it to an `i18n.phonenumbers.PhoneNumber` object first.
+   *
    * For instance, in Java this would be:
+   *
    *    com.google.type.PhoneNumber wireProto =
    *        com.google.type.PhoneNumber.newBuilder().build();
    *    com.google.i18n.phonenumbers.Phonenumber.PhoneNumber phoneNumber =
@@ -1474,6 +1466,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *    if (!wireProto.getExtension().isEmpty()) {
    *      phoneNumber.setExtension(wireProto.getExtension());
    *    }
+   *
    *  Reference(s):
    *   - https://github.com/google/libphonenumber
    * 
@@ -1562,39 +1555,6 @@ private void buildPartialOneofs(com.google.type.PhoneNumber result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.type.PhoneNumber) { @@ -1718,9 +1678,11 @@ public Builder clearKind() { * additional spaces or formatting, e.g.: * - correct: "+15552220123" * - incorrect: "+1 (555) 222-01234 x123". + * * The ITU E.164 format limits the latter to 12 digits, but in practice not * all countries respect that, so we relax that restriction here. * National-only numbers are not allowed. + * * References: * - https://www.itu.int/rec/T-REC-E.164-201011-I * - https://en.wikipedia.org/wiki/E.164. @@ -1745,9 +1707,11 @@ public boolean hasE164Number() { * additional spaces or formatting, e.g.: * - correct: "+15552220123" * - incorrect: "+1 (555) 222-01234 x123". + * * The ITU E.164 format limits the latter to 12 digits, but in practice not * all countries respect that, so we relax that restriction here. * National-only numbers are not allowed. + * * References: * - https://www.itu.int/rec/T-REC-E.164-201011-I * - https://en.wikipedia.org/wiki/E.164. @@ -1785,9 +1749,11 @@ public java.lang.String getE164Number() { * additional spaces or formatting, e.g.: * - correct: "+15552220123" * - incorrect: "+1 (555) 222-01234 x123". + * * The ITU E.164 format limits the latter to 12 digits, but in practice not * all countries respect that, so we relax that restriction here. * National-only numbers are not allowed. + * * References: * - https://www.itu.int/rec/T-REC-E.164-201011-I * - https://en.wikipedia.org/wiki/E.164. @@ -1825,9 +1791,11 @@ public com.google.protobuf.ByteString getE164NumberBytes() { * additional spaces or formatting, e.g.: * - correct: "+15552220123" * - incorrect: "+1 (555) 222-01234 x123". + * * The ITU E.164 format limits the latter to 12 digits, but in practice not * all countries respect that, so we relax that restriction here. * National-only numbers are not allowed. + * * References: * - https://www.itu.int/rec/T-REC-E.164-201011-I * - https://en.wikipedia.org/wiki/E.164. @@ -1858,9 +1826,11 @@ public Builder setE164Number(java.lang.String value) { * additional spaces or formatting, e.g.: * - correct: "+15552220123" * - incorrect: "+1 (555) 222-01234 x123". + * * The ITU E.164 format limits the latter to 12 digits, but in practice not * all countries respect that, so we relax that restriction here. * National-only numbers are not allowed. + * * References: * - https://www.itu.int/rec/T-REC-E.164-201011-I * - https://en.wikipedia.org/wiki/E.164. @@ -1889,9 +1859,11 @@ public Builder clearE164Number() { * additional spaces or formatting, e.g.: * - correct: "+15552220123" * - incorrect: "+1 (555) 222-01234 x123". + * * The ITU E.164 format limits the latter to 12 digits, but in practice not * all countries respect that, so we relax that restriction here. * National-only numbers are not allowed. + * * References: * - https://www.itu.int/rec/T-REC-E.164-201011-I * - https://en.wikipedia.org/wiki/E.164. @@ -1924,6 +1896,7 @@ public Builder setE164NumberBytes(com.google.protobuf.ByteString value) { * *
      * A short code.
+     *
      * Reference(s):
      *  - https://en.wikipedia.org/wiki/Short_code
      * 
@@ -1941,6 +1914,7 @@ public boolean hasShortCode() { * *
      * A short code.
+     *
      * Reference(s):
      *  - https://en.wikipedia.org/wiki/Short_code
      * 
@@ -1968,6 +1942,7 @@ public com.google.type.PhoneNumber.ShortCode getShortCode() { * *
      * A short code.
+     *
      * Reference(s):
      *  - https://en.wikipedia.org/wiki/Short_code
      * 
@@ -1992,6 +1967,7 @@ public Builder setShortCode(com.google.type.PhoneNumber.ShortCode value) { * *
      * A short code.
+     *
      * Reference(s):
      *  - https://en.wikipedia.org/wiki/Short_code
      * 
@@ -2013,6 +1989,7 @@ public Builder setShortCode(com.google.type.PhoneNumber.ShortCode.Builder builde * *
      * A short code.
+     *
      * Reference(s):
      *  - https://en.wikipedia.org/wiki/Short_code
      * 
@@ -2046,6 +2023,7 @@ public Builder mergeShortCode(com.google.type.PhoneNumber.ShortCode value) { * *
      * A short code.
+     *
      * Reference(s):
      *  - https://en.wikipedia.org/wiki/Short_code
      * 
@@ -2073,6 +2051,7 @@ public Builder clearShortCode() { * *
      * A short code.
+     *
      * Reference(s):
      *  - https://en.wikipedia.org/wiki/Short_code
      * 
@@ -2087,6 +2066,7 @@ public com.google.type.PhoneNumber.ShortCode.Builder getShortCodeBuilder() { * *
      * A short code.
+     *
      * Reference(s):
      *  - https://en.wikipedia.org/wiki/Short_code
      * 
@@ -2109,6 +2089,7 @@ public com.google.type.PhoneNumber.ShortCodeOrBuilder getShortCodeOrBuilder() { * *
      * A short code.
+     *
      * Reference(s):
      *  - https://en.wikipedia.org/wiki/Short_code
      * 
@@ -2146,6 +2127,7 @@ public com.google.type.PhoneNumber.ShortCodeOrBuilder getShortCodeOrBuilder() { * recommendations, except for being defined as a series of numbers with a * maximum length of 40 digits. Other than digits, some other dialing * characters such as ',' (indicating a wait) or '#' may be stored here. + * * Note that no regions currently use extensions with short codes, so this * field is normally only set in conjunction with an E.164 number. It is held * separately from the E.164 number to allow for short code extensions in the @@ -2175,6 +2157,7 @@ public java.lang.String getExtension() { * recommendations, except for being defined as a series of numbers with a * maximum length of 40 digits. Other than digits, some other dialing * characters such as ',' (indicating a wait) or '#' may be stored here. + * * Note that no regions currently use extensions with short codes, so this * field is normally only set in conjunction with an E.164 number. It is held * separately from the E.164 number to allow for short code extensions in the @@ -2204,6 +2187,7 @@ public com.google.protobuf.ByteString getExtensionBytes() { * recommendations, except for being defined as a series of numbers with a * maximum length of 40 digits. Other than digits, some other dialing * characters such as ',' (indicating a wait) or '#' may be stored here. + * * Note that no regions currently use extensions with short codes, so this * field is normally only set in conjunction with an E.164 number. It is held * separately from the E.164 number to allow for short code extensions in the @@ -2232,6 +2216,7 @@ public Builder setExtension(java.lang.String value) { * recommendations, except for being defined as a series of numbers with a * maximum length of 40 digits. Other than digits, some other dialing * characters such as ',' (indicating a wait) or '#' may be stored here. + * * Note that no regions currently use extensions with short codes, so this * field is normally only set in conjunction with an E.164 number. It is held * separately from the E.164 number to allow for short code extensions in the @@ -2256,6 +2241,7 @@ public Builder clearExtension() { * recommendations, except for being defined as a series of numbers with a * maximum length of 40 digits. Other than digits, some other dialing * characters such as ',' (indicating a wait) or '#' may be stored here. + * * Note that no regions currently use extensions with short codes, so this * field is normally only set in conjunction with an E.164 number. It is held * separately from the E.164 number to allow for short code extensions in the diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberOrBuilder.java index 00bd363c71..a29bc63aa0 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberOrBuilder.java @@ -33,9 +33,11 @@ public interface PhoneNumberOrBuilder * additional spaces or formatting, e.g.: * - correct: "+15552220123" * - incorrect: "+1 (555) 222-01234 x123". + * * The ITU E.164 format limits the latter to 12 digits, but in practice not * all countries respect that, so we relax that restriction here. * National-only numbers are not allowed. + * * References: * - https://www.itu.int/rec/T-REC-E.164-201011-I * - https://en.wikipedia.org/wiki/E.164. @@ -57,9 +59,11 @@ public interface PhoneNumberOrBuilder * additional spaces or formatting, e.g.: * - correct: "+15552220123" * - incorrect: "+1 (555) 222-01234 x123". + * * The ITU E.164 format limits the latter to 12 digits, but in practice not * all countries respect that, so we relax that restriction here. * National-only numbers are not allowed. + * * References: * - https://www.itu.int/rec/T-REC-E.164-201011-I * - https://en.wikipedia.org/wiki/E.164. @@ -81,9 +85,11 @@ public interface PhoneNumberOrBuilder * additional spaces or formatting, e.g.: * - correct: "+15552220123" * - incorrect: "+1 (555) 222-01234 x123". + * * The ITU E.164 format limits the latter to 12 digits, but in practice not * all countries respect that, so we relax that restriction here. * National-only numbers are not allowed. + * * References: * - https://www.itu.int/rec/T-REC-E.164-201011-I * - https://en.wikipedia.org/wiki/E.164. @@ -101,6 +107,7 @@ public interface PhoneNumberOrBuilder * *
    * A short code.
+   *
    * Reference(s):
    *  - https://en.wikipedia.org/wiki/Short_code
    * 
@@ -115,6 +122,7 @@ public interface PhoneNumberOrBuilder * *
    * A short code.
+   *
    * Reference(s):
    *  - https://en.wikipedia.org/wiki/Short_code
    * 
@@ -129,6 +137,7 @@ public interface PhoneNumberOrBuilder * *
    * A short code.
+   *
    * Reference(s):
    *  - https://en.wikipedia.org/wiki/Short_code
    * 
@@ -145,6 +154,7 @@ public interface PhoneNumberOrBuilder * recommendations, except for being defined as a series of numbers with a * maximum length of 40 digits. Other than digits, some other dialing * characters such as ',' (indicating a wait) or '#' may be stored here. + * * Note that no regions currently use extensions with short codes, so this * field is normally only set in conjunction with an E.164 number. It is held * separately from the E.164 number to allow for short code extensions in the @@ -164,6 +174,7 @@ public interface PhoneNumberOrBuilder * recommendations, except for being defined as a series of numbers with a * maximum length of 40 digits. Other than digits, some other dialing * characters such as ',' (indicating a wait) or '#' may be stored here. + * * Note that no regions currently use extensions with short codes, so this * field is normally only set in conjunction with an E.164 number. It is held * separately from the E.164 number to allow for short code extensions in the @@ -176,5 +187,5 @@ public interface PhoneNumberOrBuilder */ com.google.protobuf.ByteString getExtensionBytes(); - public com.google.type.PhoneNumber.KindCase getKindCase(); + com.google.type.PhoneNumber.KindCase getKindCase(); } diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddress.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddress.java index bd83a5b3ba..02cfa4c0a3 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddress.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddress.java @@ -27,13 +27,16 @@ * Box or similar. * It is not intended to model geographical locations (roads, towns, * mountains). + * * In typical usage an address would be created via user input or from importing * existing data, depending on the type of process. + * * Advice on address input / editing: * - Use an i18n-ready address widget such as * https://github.com/google/libaddressinput) * - Users should not be presented with UI elements for input or editing of * fields outside countries where that field is used. + * * For more guidance on how to use this schema, please see: * https://support.google.com/business/answer/6397478 *
@@ -58,8 +61,8 @@ private PostalAddress() { administrativeArea_ = ""; locality_ = ""; sublocality_ = ""; - addressLines_ = com.google.protobuf.LazyStringArrayList.EMPTY; - recipients_ = com.google.protobuf.LazyStringArrayList.EMPTY; + addressLines_ = com.google.protobuf.LazyStringArrayList.emptyList(); + recipients_ = com.google.protobuf.LazyStringArrayList.emptyList(); organization_ = ""; } @@ -69,11 +72,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PostalAddress(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.type.PostalAddressProto.internal_static_google_type_PostalAddress_descriptor; } @@ -95,6 +93,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * The schema revision of the `PostalAddress`. This must be set to 0, which is
    * the latest revision.
+   *
    * All new revisions **must** be backward compatible with old revisions.
    * 
* @@ -181,8 +180,10 @@ public com.google.protobuf.ByteString getRegionCodeBytes() { * This can affect formatting in certain countries, but is not critical * to the correctness of the data and will never affect any validation or * other non-formatting related operations. + * * If this value is not known, it should be omitted (rather than specifying a * possibly incorrect default). + * * Examples: "zh-Hant", "ja", "ja-Latn", "en". *
* @@ -213,8 +214,10 @@ public java.lang.String getLanguageCode() { * This can affect formatting in certain countries, but is not critical * to the correctness of the data and will never affect any validation or * other non-formatting related operations. + * * If this value is not known, it should be omitted (rather than specifying a * possibly incorrect default). + * * Examples: "zh-Hant", "ja", "ja-Latn", "en". *
* @@ -527,12 +530,14 @@ public com.google.protobuf.ByteString getSublocalityBytes() { public static final int ADDRESS_LINES_FIELD_NUMBER = 9; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList addressLines_; + private com.google.protobuf.LazyStringArrayList addressLines_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
    * Unstructured address lines describing the lower levels of an address.
+   *
    * Because values in address_lines do not have type information and may
    * sometimes contain multiple values in a single field (e.g.
    * "Austin, TX"), it is important that the line order is clear. The order of
@@ -541,12 +546,14 @@ public com.google.protobuf.ByteString getSublocalityBytes() {
    * used to make it explicit (e.g. "ja" for large-to-small ordering and
    * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
    * an address can be selected based on the language.
+   *
    * The minimum permitted structural representation of an address consists
    * of a region_code with all remaining information placed in the
    * address_lines. It would be possible to format such an address very
    * approximately without geocoding, but no semantic reasoning could be
    * made about any of the address components until it was at least
    * partially resolved.
+   *
    * Creating an address only containing a region_code and address_lines, and
    * then geocoding is the recommended way to handle completely unstructured
    * addresses (as opposed to guessing which parts of the address should be
@@ -565,6 +572,7 @@ public com.google.protobuf.ProtocolStringList getAddressLinesList() {
    *
    * 
    * Unstructured address lines describing the lower levels of an address.
+   *
    * Because values in address_lines do not have type information and may
    * sometimes contain multiple values in a single field (e.g.
    * "Austin, TX"), it is important that the line order is clear. The order of
@@ -573,12 +581,14 @@ public com.google.protobuf.ProtocolStringList getAddressLinesList() {
    * used to make it explicit (e.g. "ja" for large-to-small ordering and
    * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
    * an address can be selected based on the language.
+   *
    * The minimum permitted structural representation of an address consists
    * of a region_code with all remaining information placed in the
    * address_lines. It would be possible to format such an address very
    * approximately without geocoding, but no semantic reasoning could be
    * made about any of the address components until it was at least
    * partially resolved.
+   *
    * Creating an address only containing a region_code and address_lines, and
    * then geocoding is the recommended way to handle completely unstructured
    * addresses (as opposed to guessing which parts of the address should be
@@ -597,6 +607,7 @@ public int getAddressLinesCount() {
    *
    * 
    * Unstructured address lines describing the lower levels of an address.
+   *
    * Because values in address_lines do not have type information and may
    * sometimes contain multiple values in a single field (e.g.
    * "Austin, TX"), it is important that the line order is clear. The order of
@@ -605,12 +616,14 @@ public int getAddressLinesCount() {
    * used to make it explicit (e.g. "ja" for large-to-small ordering and
    * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
    * an address can be selected based on the language.
+   *
    * The minimum permitted structural representation of an address consists
    * of a region_code with all remaining information placed in the
    * address_lines. It would be possible to format such an address very
    * approximately without geocoding, but no semantic reasoning could be
    * made about any of the address components until it was at least
    * partially resolved.
+   *
    * Creating an address only containing a region_code and address_lines, and
    * then geocoding is the recommended way to handle completely unstructured
    * addresses (as opposed to guessing which parts of the address should be
@@ -630,6 +643,7 @@ public java.lang.String getAddressLines(int index) {
    *
    * 
    * Unstructured address lines describing the lower levels of an address.
+   *
    * Because values in address_lines do not have type information and may
    * sometimes contain multiple values in a single field (e.g.
    * "Austin, TX"), it is important that the line order is clear. The order of
@@ -638,12 +652,14 @@ public java.lang.String getAddressLines(int index) {
    * used to make it explicit (e.g. "ja" for large-to-small ordering and
    * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
    * an address can be selected based on the language.
+   *
    * The minimum permitted structural representation of an address consists
    * of a region_code with all remaining information placed in the
    * address_lines. It would be possible to format such an address very
    * approximately without geocoding, but no semantic reasoning could be
    * made about any of the address components until it was at least
    * partially resolved.
+   *
    * Creating an address only containing a region_code and address_lines, and
    * then geocoding is the recommended way to handle completely unstructured
    * addresses (as opposed to guessing which parts of the address should be
@@ -662,7 +678,8 @@ public com.google.protobuf.ByteString getAddressLinesBytes(int index) {
   public static final int RECIPIENTS_FIELD_NUMBER = 10;
 
   @SuppressWarnings("serial")
-  private com.google.protobuf.LazyStringList recipients_;
+  private com.google.protobuf.LazyStringArrayList recipients_ =
+      com.google.protobuf.LazyStringArrayList.emptyList();
   /**
    *
    *
@@ -1051,13 +1068,16 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * Box or similar.
    * It is not intended to model geographical locations (roads, towns,
    * mountains).
+   *
    * In typical usage an address would be created via user input or from importing
    * existing data, depending on the type of process.
+   *
    * Advice on address input / editing:
    *  - Use an i18n-ready address widget such as
    *    https://github.com/google/libaddressinput)
    * - Users should not be presented with UI elements for input or editing of
    *   fields outside countries where that field is used.
+   *
    * For more guidance on how to use this schema, please see:
    * https://support.google.com/business/answer/6397478
    * 
@@ -1101,10 +1121,8 @@ public Builder clear() { administrativeArea_ = ""; locality_ = ""; sublocality_ = ""; - addressLines_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000100); - recipients_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000200); + addressLines_ = com.google.protobuf.LazyStringArrayList.emptyList(); + recipients_ = com.google.protobuf.LazyStringArrayList.emptyList(); organization_ = ""; return this; } @@ -1132,7 +1150,6 @@ public com.google.type.PostalAddress build() { @java.lang.Override public com.google.type.PostalAddress buildPartial() { com.google.type.PostalAddress result = new com.google.type.PostalAddress(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -1140,19 +1157,6 @@ public com.google.type.PostalAddress buildPartial() { return result; } - private void buildPartialRepeatedFields(com.google.type.PostalAddress result) { - if (((bitField0_ & 0x00000100) != 0)) { - addressLines_ = addressLines_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000100); - } - result.addressLines_ = addressLines_; - if (((bitField0_ & 0x00000200) != 0)) { - recipients_ = recipients_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000200); - } - result.recipients_ = recipients_; - } - private void buildPartial0(com.google.type.PostalAddress result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -1179,44 +1183,19 @@ private void buildPartial0(com.google.type.PostalAddress result) { if (((from_bitField0_ & 0x00000080) != 0)) { result.sublocality_ = sublocality_; } + if (((from_bitField0_ & 0x00000100) != 0)) { + addressLines_.makeImmutable(); + result.addressLines_ = addressLines_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + recipients_.makeImmutable(); + result.recipients_ = recipients_; + } if (((from_bitField0_ & 0x00000400) != 0)) { result.organization_ = organization_; } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.type.PostalAddress) { @@ -1270,7 +1249,7 @@ public Builder mergeFrom(com.google.type.PostalAddress other) { if (!other.addressLines_.isEmpty()) { if (addressLines_.isEmpty()) { addressLines_ = other.addressLines_; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ |= 0x00000100; } else { ensureAddressLinesIsMutable(); addressLines_.addAll(other.addressLines_); @@ -1280,7 +1259,7 @@ public Builder mergeFrom(com.google.type.PostalAddress other) { if (!other.recipients_.isEmpty()) { if (recipients_.isEmpty()) { recipients_ = other.recipients_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ |= 0x00000200; } else { ensureRecipientsIsMutable(); recipients_.addAll(other.recipients_); @@ -1412,6 +1391,7 @@ public Builder mergeFrom( *
      * The schema revision of the `PostalAddress`. This must be set to 0, which is
      * the latest revision.
+     *
      * All new revisions **must** be backward compatible with old revisions.
      * 
* @@ -1429,6 +1409,7 @@ public int getRevision() { *
      * The schema revision of the `PostalAddress`. This must be set to 0, which is
      * the latest revision.
+     *
      * All new revisions **must** be backward compatible with old revisions.
      * 
* @@ -1450,6 +1431,7 @@ public Builder setRevision(int value) { *
      * The schema revision of the `PostalAddress`. This must be set to 0, which is
      * the latest revision.
+     *
      * All new revisions **must** be backward compatible with old revisions.
      * 
* @@ -1602,8 +1584,10 @@ public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { * This can affect formatting in certain countries, but is not critical * to the correctness of the data and will never affect any validation or * other non-formatting related operations. + * * If this value is not known, it should be omitted (rather than specifying a * possibly incorrect default). + * * Examples: "zh-Hant", "ja", "ja-Latn", "en". *
* @@ -1633,8 +1617,10 @@ public java.lang.String getLanguageCode() { * This can affect formatting in certain countries, but is not critical * to the correctness of the data and will never affect any validation or * other non-formatting related operations. + * * If this value is not known, it should be omitted (rather than specifying a * possibly incorrect default). + * * Examples: "zh-Hant", "ja", "ja-Latn", "en". *
* @@ -1664,8 +1650,10 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * This can affect formatting in certain countries, but is not critical * to the correctness of the data and will never affect any validation or * other non-formatting related operations. + * * If this value is not known, it should be omitted (rather than specifying a * possibly incorrect default). + * * Examples: "zh-Hant", "ja", "ja-Latn", "en". *
* @@ -1694,8 +1682,10 @@ public Builder setLanguageCode(java.lang.String value) { * This can affect formatting in certain countries, but is not critical * to the correctness of the data and will never affect any validation or * other non-formatting related operations. + * * If this value is not known, it should be omitted (rather than specifying a * possibly incorrect default). + * * Examples: "zh-Hant", "ja", "ja-Latn", "en". *
* @@ -1720,8 +1710,10 @@ public Builder clearLanguageCode() { * This can affect formatting in certain countries, but is not critical * to the correctness of the data and will never affect any validation or * other non-formatting related operations. + * * If this value is not known, it should be omitted (rather than specifying a * possibly incorrect default). + * * Examples: "zh-Hant", "ja", "ja-Latn", "en". *
* @@ -2356,20 +2348,21 @@ public Builder setSublocalityBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList addressLines_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList addressLines_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureAddressLinesIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { + if (!addressLines_.isModifiable()) { addressLines_ = new com.google.protobuf.LazyStringArrayList(addressLines_); - bitField0_ |= 0x00000100; } + bitField0_ |= 0x00000100; } /** * * *
      * Unstructured address lines describing the lower levels of an address.
+     *
      * Because values in address_lines do not have type information and may
      * sometimes contain multiple values in a single field (e.g.
      * "Austin, TX"), it is important that the line order is clear. The order of
@@ -2378,12 +2371,14 @@ private void ensureAddressLinesIsMutable() {
      * used to make it explicit (e.g. "ja" for large-to-small ordering and
      * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
      * an address can be selected based on the language.
+     *
      * The minimum permitted structural representation of an address consists
      * of a region_code with all remaining information placed in the
      * address_lines. It would be possible to format such an address very
      * approximately without geocoding, but no semantic reasoning could be
      * made about any of the address components until it was at least
      * partially resolved.
+     *
      * Creating an address only containing a region_code and address_lines, and
      * then geocoding is the recommended way to handle completely unstructured
      * addresses (as opposed to guessing which parts of the address should be
@@ -2395,13 +2390,15 @@ private void ensureAddressLinesIsMutable() {
      * @return A list containing the addressLines.
      */
     public com.google.protobuf.ProtocolStringList getAddressLinesList() {
-      return addressLines_.getUnmodifiableView();
+      addressLines_.makeImmutable();
+      return addressLines_;
     }
     /**
      *
      *
      * 
      * Unstructured address lines describing the lower levels of an address.
+     *
      * Because values in address_lines do not have type information and may
      * sometimes contain multiple values in a single field (e.g.
      * "Austin, TX"), it is important that the line order is clear. The order of
@@ -2410,12 +2407,14 @@ public com.google.protobuf.ProtocolStringList getAddressLinesList() {
      * used to make it explicit (e.g. "ja" for large-to-small ordering and
      * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
      * an address can be selected based on the language.
+     *
      * The minimum permitted structural representation of an address consists
      * of a region_code with all remaining information placed in the
      * address_lines. It would be possible to format such an address very
      * approximately without geocoding, but no semantic reasoning could be
      * made about any of the address components until it was at least
      * partially resolved.
+     *
      * Creating an address only containing a region_code and address_lines, and
      * then geocoding is the recommended way to handle completely unstructured
      * addresses (as opposed to guessing which parts of the address should be
@@ -2434,6 +2433,7 @@ public int getAddressLinesCount() {
      *
      * 
      * Unstructured address lines describing the lower levels of an address.
+     *
      * Because values in address_lines do not have type information and may
      * sometimes contain multiple values in a single field (e.g.
      * "Austin, TX"), it is important that the line order is clear. The order of
@@ -2442,12 +2442,14 @@ public int getAddressLinesCount() {
      * used to make it explicit (e.g. "ja" for large-to-small ordering and
      * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
      * an address can be selected based on the language.
+     *
      * The minimum permitted structural representation of an address consists
      * of a region_code with all remaining information placed in the
      * address_lines. It would be possible to format such an address very
      * approximately without geocoding, but no semantic reasoning could be
      * made about any of the address components until it was at least
      * partially resolved.
+     *
      * Creating an address only containing a region_code and address_lines, and
      * then geocoding is the recommended way to handle completely unstructured
      * addresses (as opposed to guessing which parts of the address should be
@@ -2467,6 +2469,7 @@ public java.lang.String getAddressLines(int index) {
      *
      * 
      * Unstructured address lines describing the lower levels of an address.
+     *
      * Because values in address_lines do not have type information and may
      * sometimes contain multiple values in a single field (e.g.
      * "Austin, TX"), it is important that the line order is clear. The order of
@@ -2475,12 +2478,14 @@ public java.lang.String getAddressLines(int index) {
      * used to make it explicit (e.g. "ja" for large-to-small ordering and
      * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
      * an address can be selected based on the language.
+     *
      * The minimum permitted structural representation of an address consists
      * of a region_code with all remaining information placed in the
      * address_lines. It would be possible to format such an address very
      * approximately without geocoding, but no semantic reasoning could be
      * made about any of the address components until it was at least
      * partially resolved.
+     *
      * Creating an address only containing a region_code and address_lines, and
      * then geocoding is the recommended way to handle completely unstructured
      * addresses (as opposed to guessing which parts of the address should be
@@ -2500,6 +2505,7 @@ public com.google.protobuf.ByteString getAddressLinesBytes(int index) {
      *
      * 
      * Unstructured address lines describing the lower levels of an address.
+     *
      * Because values in address_lines do not have type information and may
      * sometimes contain multiple values in a single field (e.g.
      * "Austin, TX"), it is important that the line order is clear. The order of
@@ -2508,12 +2514,14 @@ public com.google.protobuf.ByteString getAddressLinesBytes(int index) {
      * used to make it explicit (e.g. "ja" for large-to-small ordering and
      * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
      * an address can be selected based on the language.
+     *
      * The minimum permitted structural representation of an address consists
      * of a region_code with all remaining information placed in the
      * address_lines. It would be possible to format such an address very
      * approximately without geocoding, but no semantic reasoning could be
      * made about any of the address components until it was at least
      * partially resolved.
+     *
      * Creating an address only containing a region_code and address_lines, and
      * then geocoding is the recommended way to handle completely unstructured
      * addresses (as opposed to guessing which parts of the address should be
@@ -2532,6 +2540,7 @@ public Builder setAddressLines(int index, java.lang.String value) {
       }
       ensureAddressLinesIsMutable();
       addressLines_.set(index, value);
+      bitField0_ |= 0x00000100;
       onChanged();
       return this;
     }
@@ -2540,6 +2549,7 @@ public Builder setAddressLines(int index, java.lang.String value) {
      *
      * 
      * Unstructured address lines describing the lower levels of an address.
+     *
      * Because values in address_lines do not have type information and may
      * sometimes contain multiple values in a single field (e.g.
      * "Austin, TX"), it is important that the line order is clear. The order of
@@ -2548,12 +2558,14 @@ public Builder setAddressLines(int index, java.lang.String value) {
      * used to make it explicit (e.g. "ja" for large-to-small ordering and
      * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
      * an address can be selected based on the language.
+     *
      * The minimum permitted structural representation of an address consists
      * of a region_code with all remaining information placed in the
      * address_lines. It would be possible to format such an address very
      * approximately without geocoding, but no semantic reasoning could be
      * made about any of the address components until it was at least
      * partially resolved.
+     *
      * Creating an address only containing a region_code and address_lines, and
      * then geocoding is the recommended way to handle completely unstructured
      * addresses (as opposed to guessing which parts of the address should be
@@ -2571,6 +2583,7 @@ public Builder addAddressLines(java.lang.String value) {
       }
       ensureAddressLinesIsMutable();
       addressLines_.add(value);
+      bitField0_ |= 0x00000100;
       onChanged();
       return this;
     }
@@ -2579,6 +2592,7 @@ public Builder addAddressLines(java.lang.String value) {
      *
      * 
      * Unstructured address lines describing the lower levels of an address.
+     *
      * Because values in address_lines do not have type information and may
      * sometimes contain multiple values in a single field (e.g.
      * "Austin, TX"), it is important that the line order is clear. The order of
@@ -2587,12 +2601,14 @@ public Builder addAddressLines(java.lang.String value) {
      * used to make it explicit (e.g. "ja" for large-to-small ordering and
      * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
      * an address can be selected based on the language.
+     *
      * The minimum permitted structural representation of an address consists
      * of a region_code with all remaining information placed in the
      * address_lines. It would be possible to format such an address very
      * approximately without geocoding, but no semantic reasoning could be
      * made about any of the address components until it was at least
      * partially resolved.
+     *
      * Creating an address only containing a region_code and address_lines, and
      * then geocoding is the recommended way to handle completely unstructured
      * addresses (as opposed to guessing which parts of the address should be
@@ -2607,6 +2623,7 @@ public Builder addAddressLines(java.lang.String value) {
     public Builder addAllAddressLines(java.lang.Iterable values) {
       ensureAddressLinesIsMutable();
       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addressLines_);
+      bitField0_ |= 0x00000100;
       onChanged();
       return this;
     }
@@ -2615,6 +2632,7 @@ public Builder addAllAddressLines(java.lang.Iterable values) {
      *
      * 
      * Unstructured address lines describing the lower levels of an address.
+     *
      * Because values in address_lines do not have type information and may
      * sometimes contain multiple values in a single field (e.g.
      * "Austin, TX"), it is important that the line order is clear. The order of
@@ -2623,12 +2641,14 @@ public Builder addAllAddressLines(java.lang.Iterable values) {
      * used to make it explicit (e.g. "ja" for large-to-small ordering and
      * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
      * an address can be selected based on the language.
+     *
      * The minimum permitted structural representation of an address consists
      * of a region_code with all remaining information placed in the
      * address_lines. It would be possible to format such an address very
      * approximately without geocoding, but no semantic reasoning could be
      * made about any of the address components until it was at least
      * partially resolved.
+     *
      * Creating an address only containing a region_code and address_lines, and
      * then geocoding is the recommended way to handle completely unstructured
      * addresses (as opposed to guessing which parts of the address should be
@@ -2640,8 +2660,9 @@ public Builder addAllAddressLines(java.lang.Iterable values) {
      * @return This builder for chaining.
      */
     public Builder clearAddressLines() {
-      addressLines_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      addressLines_ = com.google.protobuf.LazyStringArrayList.emptyList();
       bitField0_ = (bitField0_ & ~0x00000100);
+      ;
       onChanged();
       return this;
     }
@@ -2650,6 +2671,7 @@ public Builder clearAddressLines() {
      *
      * 
      * Unstructured address lines describing the lower levels of an address.
+     *
      * Because values in address_lines do not have type information and may
      * sometimes contain multiple values in a single field (e.g.
      * "Austin, TX"), it is important that the line order is clear. The order of
@@ -2658,12 +2680,14 @@ public Builder clearAddressLines() {
      * used to make it explicit (e.g. "ja" for large-to-small ordering and
      * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
      * an address can be selected based on the language.
+     *
      * The minimum permitted structural representation of an address consists
      * of a region_code with all remaining information placed in the
      * address_lines. It would be possible to format such an address very
      * approximately without geocoding, but no semantic reasoning could be
      * made about any of the address components until it was at least
      * partially resolved.
+     *
      * Creating an address only containing a region_code and address_lines, and
      * then geocoding is the recommended way to handle completely unstructured
      * addresses (as opposed to guessing which parts of the address should be
@@ -2682,18 +2706,19 @@ public Builder addAddressLinesBytes(com.google.protobuf.ByteString value) {
       checkByteStringIsUtf8(value);
       ensureAddressLinesIsMutable();
       addressLines_.add(value);
+      bitField0_ |= 0x00000100;
       onChanged();
       return this;
     }
 
-    private com.google.protobuf.LazyStringList recipients_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringArrayList recipients_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
 
     private void ensureRecipientsIsMutable() {
-      if (!((bitField0_ & 0x00000200) != 0)) {
+      if (!recipients_.isModifiable()) {
         recipients_ = new com.google.protobuf.LazyStringArrayList(recipients_);
-        bitField0_ |= 0x00000200;
       }
+      bitField0_ |= 0x00000200;
     }
     /**
      *
@@ -2709,7 +2734,8 @@ private void ensureRecipientsIsMutable() {
      * @return A list containing the recipients.
      */
     public com.google.protobuf.ProtocolStringList getRecipientsList() {
-      return recipients_.getUnmodifiableView();
+      recipients_.makeImmutable();
+      return recipients_;
     }
     /**
      *
@@ -2782,6 +2808,7 @@ public Builder setRecipients(int index, java.lang.String value) {
       }
       ensureRecipientsIsMutable();
       recipients_.set(index, value);
+      bitField0_ |= 0x00000200;
       onChanged();
       return this;
     }
@@ -2805,6 +2832,7 @@ public Builder addRecipients(java.lang.String value) {
       }
       ensureRecipientsIsMutable();
       recipients_.add(value);
+      bitField0_ |= 0x00000200;
       onChanged();
       return this;
     }
@@ -2825,6 +2853,7 @@ public Builder addRecipients(java.lang.String value) {
     public Builder addAllRecipients(java.lang.Iterable values) {
       ensureRecipientsIsMutable();
       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recipients_);
+      bitField0_ |= 0x00000200;
       onChanged();
       return this;
     }
@@ -2842,8 +2871,9 @@ public Builder addAllRecipients(java.lang.Iterable values) {
      * @return This builder for chaining.
      */
     public Builder clearRecipients() {
-      recipients_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      recipients_ = com.google.protobuf.LazyStringArrayList.emptyList();
       bitField0_ = (bitField0_ & ~0x00000200);
+      ;
       onChanged();
       return this;
     }
@@ -2868,6 +2898,7 @@ public Builder addRecipientsBytes(com.google.protobuf.ByteString value) {
       checkByteStringIsUtf8(value);
       ensureRecipientsIsMutable();
       recipients_.add(value);
+      bitField0_ |= 0x00000200;
       onChanged();
       return this;
     }
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressOrBuilder.java
index a760feb104..e4822d0d4f 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressOrBuilder.java
@@ -29,6 +29,7 @@ public interface PostalAddressOrBuilder
    * 
    * The schema revision of the `PostalAddress`. This must be set to 0, which is
    * the latest revision.
+   *
    * All new revisions **must** be backward compatible with old revisions.
    * 
* @@ -82,8 +83,10 @@ public interface PostalAddressOrBuilder * This can affect formatting in certain countries, but is not critical * to the correctness of the data and will never affect any validation or * other non-formatting related operations. + * * If this value is not known, it should be omitted (rather than specifying a * possibly incorrect default). + * * Examples: "zh-Hant", "ja", "ja-Latn", "en". *
* @@ -103,8 +106,10 @@ public interface PostalAddressOrBuilder * This can affect formatting in certain countries, but is not critical * to the correctness of the data and will never affect any validation or * other non-formatting related operations. + * * If this value is not known, it should be omitted (rather than specifying a * possibly incorrect default). + * * Examples: "zh-Hant", "ja", "ja-Latn", "en". *
* @@ -278,6 +283,7 @@ public interface PostalAddressOrBuilder * *
    * Unstructured address lines describing the lower levels of an address.
+   *
    * Because values in address_lines do not have type information and may
    * sometimes contain multiple values in a single field (e.g.
    * "Austin, TX"), it is important that the line order is clear. The order of
@@ -286,12 +292,14 @@ public interface PostalAddressOrBuilder
    * used to make it explicit (e.g. "ja" for large-to-small ordering and
    * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
    * an address can be selected based on the language.
+   *
    * The minimum permitted structural representation of an address consists
    * of a region_code with all remaining information placed in the
    * address_lines. It would be possible to format such an address very
    * approximately without geocoding, but no semantic reasoning could be
    * made about any of the address components until it was at least
    * partially resolved.
+   *
    * Creating an address only containing a region_code and address_lines, and
    * then geocoding is the recommended way to handle completely unstructured
    * addresses (as opposed to guessing which parts of the address should be
@@ -308,6 +316,7 @@ public interface PostalAddressOrBuilder
    *
    * 
    * Unstructured address lines describing the lower levels of an address.
+   *
    * Because values in address_lines do not have type information and may
    * sometimes contain multiple values in a single field (e.g.
    * "Austin, TX"), it is important that the line order is clear. The order of
@@ -316,12 +325,14 @@ public interface PostalAddressOrBuilder
    * used to make it explicit (e.g. "ja" for large-to-small ordering and
    * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
    * an address can be selected based on the language.
+   *
    * The minimum permitted structural representation of an address consists
    * of a region_code with all remaining information placed in the
    * address_lines. It would be possible to format such an address very
    * approximately without geocoding, but no semantic reasoning could be
    * made about any of the address components until it was at least
    * partially resolved.
+   *
    * Creating an address only containing a region_code and address_lines, and
    * then geocoding is the recommended way to handle completely unstructured
    * addresses (as opposed to guessing which parts of the address should be
@@ -338,6 +349,7 @@ public interface PostalAddressOrBuilder
    *
    * 
    * Unstructured address lines describing the lower levels of an address.
+   *
    * Because values in address_lines do not have type information and may
    * sometimes contain multiple values in a single field (e.g.
    * "Austin, TX"), it is important that the line order is clear. The order of
@@ -346,12 +358,14 @@ public interface PostalAddressOrBuilder
    * used to make it explicit (e.g. "ja" for large-to-small ordering and
    * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
    * an address can be selected based on the language.
+   *
    * The minimum permitted structural representation of an address consists
    * of a region_code with all remaining information placed in the
    * address_lines. It would be possible to format such an address very
    * approximately without geocoding, but no semantic reasoning could be
    * made about any of the address components until it was at least
    * partially resolved.
+   *
    * Creating an address only containing a region_code and address_lines, and
    * then geocoding is the recommended way to handle completely unstructured
    * addresses (as opposed to guessing which parts of the address should be
@@ -369,6 +383,7 @@ public interface PostalAddressOrBuilder
    *
    * 
    * Unstructured address lines describing the lower levels of an address.
+   *
    * Because values in address_lines do not have type information and may
    * sometimes contain multiple values in a single field (e.g.
    * "Austin, TX"), it is important that the line order is clear. The order of
@@ -377,12 +392,14 @@ public interface PostalAddressOrBuilder
    * used to make it explicit (e.g. "ja" for large-to-small ordering and
    * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
    * an address can be selected based on the language.
+   *
    * The minimum permitted structural representation of an address consists
    * of a region_code with all remaining information placed in the
    * address_lines. It would be possible to format such an address very
    * approximately without geocoding, but no semantic reasoning could be
    * made about any of the address components until it was at least
    * partially resolved.
+   *
    * Creating an address only containing a region_code and address_lines, and
    * then geocoding is the recommended way to handle completely unstructured
    * addresses (as opposed to guessing which parts of the address should be
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Quaternion.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Quaternion.java
index 95157b0a23..b607d114ba 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Quaternion.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Quaternion.java
@@ -25,41 +25,53 @@
  * A quaternion is defined as the quotient of two directed lines in a
  * three-dimensional space or equivalently as the quotient of two Euclidean
  * vectors (https://en.wikipedia.org/wiki/Quaternion).
+ *
  * Quaternions are often used in calculations involving three-dimensional
  * rotations (https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation),
  * as they provide greater mathematical robustness by avoiding the gimbal lock
  * problems that can be encountered when using Euler angles
  * (https://en.wikipedia.org/wiki/Gimbal_lock).
+ *
  * Quaternions are generally represented in this form:
+ *
  *     w + xi + yj + zk
+ *
  * where x, y, z, and w are real numbers, and i, j, and k are three imaginary
  * numbers.
+ *
  * Our naming choice `(x, y, z, w)` comes from the desire to avoid confusion for
  * those interested in the geometric properties of the quaternion in the 3D
  * Cartesian space. Other texts often use alternative names or subscripts, such
  * as `(a, b, c, d)`, `(1, i, j, k)`, or `(0, 1, 2, 3)`, which are perhaps
  * better suited for mathematical interpretations.
+ *
  * To avoid any confusion, as well as to maintain compatibility with a large
  * number of software libraries, the quaternions represented using the protocol
  * buffer below *must* follow the Hamilton convention, which defines `ij = k`
  * (i.e. a right-handed algebra), and therefore:
+ *
  *     i^2 = j^2 = k^2 = ijk = −1
  *     ij = −ji = k
  *     jk = −kj = i
  *     ki = −ik = j
+ *
  * Please DO NOT use this to represent quaternions that follow the JPL
  * convention, or any of the other quaternion flavors out there.
+ *
  * Definitions:
+ *
  *   - Quaternion norm (or magnitude): `sqrt(x^2 + y^2 + z^2 + w^2)`.
  *   - Unit (or normalized) quaternion: a quaternion whose norm is 1.
  *   - Pure quaternion: a quaternion whose scalar component (`w`) is 0.
  *   - Rotation quaternion: a unit quaternion used to represent rotation.
  *   - Orientation quaternion: a unit quaternion used to represent orientation.
+ *
  * A quaternion can be normalized by dividing it by its norm. The resulting
  * quaternion maintains the same direction, but has a norm of 1, i.e. it moves
  * on the unit sphere. This is generally necessary for rotation and orientation
  * quaternions, to avoid rounding errors:
  * https://en.wikipedia.org/wiki/Rotation_formalisms_in_three_dimensions
+ *
  * Note that `(x, y, z, w)` and `(-x, -y, -z, -w)` represent the same rotation,
  * but normalization would be even more useful, e.g. for comparison purposes, if
  * it would produce a unique representation. It is thus recommended that `w` be
@@ -87,11 +99,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Quaternion();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.type.QuaternionProto.internal_static_google_type_Quaternion_descriptor;
   }
@@ -379,41 +386,53 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * A quaternion is defined as the quotient of two directed lines in a
    * three-dimensional space or equivalently as the quotient of two Euclidean
    * vectors (https://en.wikipedia.org/wiki/Quaternion).
+   *
    * Quaternions are often used in calculations involving three-dimensional
    * rotations (https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation),
    * as they provide greater mathematical robustness by avoiding the gimbal lock
    * problems that can be encountered when using Euler angles
    * (https://en.wikipedia.org/wiki/Gimbal_lock).
+   *
    * Quaternions are generally represented in this form:
+   *
    *     w + xi + yj + zk
+   *
    * where x, y, z, and w are real numbers, and i, j, and k are three imaginary
    * numbers.
+   *
    * Our naming choice `(x, y, z, w)` comes from the desire to avoid confusion for
    * those interested in the geometric properties of the quaternion in the 3D
    * Cartesian space. Other texts often use alternative names or subscripts, such
    * as `(a, b, c, d)`, `(1, i, j, k)`, or `(0, 1, 2, 3)`, which are perhaps
    * better suited for mathematical interpretations.
+   *
    * To avoid any confusion, as well as to maintain compatibility with a large
    * number of software libraries, the quaternions represented using the protocol
    * buffer below *must* follow the Hamilton convention, which defines `ij = k`
    * (i.e. a right-handed algebra), and therefore:
+   *
    *     i^2 = j^2 = k^2 = ijk = −1
    *     ij = −ji = k
    *     jk = −kj = i
    *     ki = −ik = j
+   *
    * Please DO NOT use this to represent quaternions that follow the JPL
    * convention, or any of the other quaternion flavors out there.
+   *
    * Definitions:
+   *
    *   - Quaternion norm (or magnitude): `sqrt(x^2 + y^2 + z^2 + w^2)`.
    *   - Unit (or normalized) quaternion: a quaternion whose norm is 1.
    *   - Pure quaternion: a quaternion whose scalar component (`w`) is 0.
    *   - Rotation quaternion: a unit quaternion used to represent rotation.
    *   - Orientation quaternion: a unit quaternion used to represent orientation.
+   *
    * A quaternion can be normalized by dividing it by its norm. The resulting
    * quaternion maintains the same direction, but has a norm of 1, i.e. it moves
    * on the unit sphere. This is generally necessary for rotation and orientation
    * quaternions, to avoid rounding errors:
    * https://en.wikipedia.org/wiki/Rotation_formalisms_in_three_dimensions
+   *
    * Note that `(x, y, z, w)` and `(-x, -y, -z, -w)` represent the same rotation,
    * but normalization would be even more useful, e.g. for comparison purposes, if
    * it would produce a unique representation. It is thus recommended that `w` be
@@ -503,39 +522,6 @@ private void buildPartial0(com.google.type.Quaternion result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.type.Quaternion) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDay.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDay.java
index 0a0e46f926..cddb42c5b9 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDay.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDay.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TimeOfDay();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.type.TimeOfDayProto.internal_static_google_type_TimeOfDay_descriptor;
   }
@@ -414,39 +409,6 @@ private void buildPartial0(com.google.type.TimeOfDay result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.type.TimeOfDay) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZone.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZone.java
index 372d9e7039..65b04f06c4 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZone.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZone.java
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TimeZone();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.type.DateTimeProto.internal_static_google_type_TimeZone_descriptor;
   }
@@ -415,39 +410,6 @@ private void buildPartial0(com.google.type.TimeZone result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.type.TimeZone) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/client.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/client.proto
index d542de9e2f..6d01954eee 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/client.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/client.proto
@@ -307,7 +307,7 @@ message MethodSettings {
   // long-running operation pattern.
   // All default values below are from those used in the client library
   // generators (e.g.
-  // [Java](https://github.com/googleapis/sdk-platform-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)).
+  // [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)).
   message LongRunning {
     // Initial delay after which the first poll request will be made.
     // Default value: 5 seconds.