diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index c7a9e13..49dc761 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -60,29 +60,6 @@ jobs: export PATH=$PATH:$(go env GOPATH)/bin addlicense -ignore="**/BUILD" -check . - protobuf: - runs-on: ubuntu-22.04 - - steps: - - uses: actions/checkout@v2 - - - name: Install protobuf v3.9.1 - run: | - git clone https://github.com/protocolbuffers/protobuf - cd protobuf - git checkout v3.9.1 - ./autogen.sh - ./configure - make - sudo make install - sudo ldconfig - - - name: Re-generate and verify protobuf artifacts - run: | - rm *.pb.{cc,h} - make protobuf - git diff --exit-code -G "(^[^ /])|(^\s+[^\*])" *.pb.{cc,h} - build: runs-on: ubuntu-22.04 diff --git a/Dockerfile-sdk b/Dockerfile-sdk index ff77ed3..6a062b1 100644 --- a/Dockerfile-sdk +++ b/Dockerfile-sdk @@ -1,7 +1,6 @@ FROM ubuntu:noble -COPY ./sdk_container.sh / -COPY ./build_wasm.sh / +COPY *.sh / COPY *.cc *.h *.js *.proto Makefile* /sdk/ RUN ./sdk_container.sh diff --git a/Makefile b/Makefile index 93c2d76..165cf42 100644 --- a/Makefile +++ b/Makefile @@ -1,27 +1,57 @@ -CPP_API ?= . +ifdef NO_CONTEXT + CPP_CONTEXT_LIB = +else + CPP_CONTEXT_LIB = ${PROXY_WASM_CPP_SDK}/proxy_wasm_intrinsics.cc +endif -all: proxy_wasm_intrinsics.pb.h proxy_wasm_intrinsics_lite.pb.h struct_lite.pb.h ${CPP_API}/libprotobuf.a ${CPP_API}/libprotobuf-lite.a +PROTOBUF ?= none +ifeq ($(PROTOBUF), full) + PROTO_DEPS := protobuf + PROTO_OPTS := -DPROXY_WASM_PROTOBUF_FULL=1 \ + ${PROXY_WASM_CPP_SDK}/proxy_wasm_intrinsics.pb.cc +else ifeq ($(PROTOBUF), lite) + PROTO_DEPS := protobuf-lite + PROTO_OPTS := -DPROXY_WASM_PROTOBUF_LITE=1 \ + ${PROXY_WASM_CPP_SDK}/proxy_wasm_intrinsics_lite.pb.cc \ + ${PROXY_WASM_CPP_SDK}/struct_lite.pb.cc +else + PROTO_DEPS := + PROTO_OPTS := +endif -protobuf: proxy_wasm_intrinsics.pb.h proxy_wasm_intrinsics_lite.pb.h struct_lite.pb.h +# Provide a list of libraries that the wasm depends on (absl_*, re2, etc). +WASM_DEPS ?= -proxy_wasm_intrinsics.pb.h: proxy_wasm_intrinsics.proto - protoc --cpp_out=. proxy_wasm_intrinsics.proto +# Determine dependency link options. +# NOTE: Strip out -pthread which RE2 claims to need... +PKG_CONFIG ?= pkg-config +PKG_CONFIG_PATH = ${EMSDK}/upstream/emscripten/cache/sysroot/lib/pkgconfig +WASM_LIBS = $(shell $(PKG_CONFIG) $(WASM_DEPS) $(PROTO_DEPS) \ + --with-path=$(PKG_CONFIG_PATH) --libs | sed -e 's/-pthread //g') -proxy_wasm_intrinsics_lite.pb.h struct_lite.pb.h: proxy_wasm_intrinsics_lite.proto - protoc --cpp_out=. -I. proxy_wasm_intrinsics_lite.proto - protoc --cpp_out=. struct_lite.proto +debug-deps: + # WASM_DEPS : ${WASM_DEPS} + # WASM_LIBS : ${WASM_LIBS} + # PROTO_DEPS: ${PROTO_DEPS} + # PROTO_OPTS: ${PROTO_OPTS} -${CPP_API}/libprotobuf.a ${CPP_API}/libprotobuf-lite.a: - rm -rf protobuf-wasm \ - && git clone https://github.com/protocolbuffers/protobuf protobuf-wasm \ - && cd protobuf-wasm \ - && git checkout v3.9.1 \ - && ./autogen.sh \ - && emconfigure ./configure --disable-shared CXXFLAGS="-O3 -flto" \ - && emmake make \ - && cd .. \ - && cp protobuf-wasm/src/.libs/libprotobuf-lite.a ${CPP_API}/libprotobuf-lite.a \ - && cp protobuf-wasm/src/.libs/libprotobuf.a ${CPP_API}/libprotobuf.a +# TODO(mpwarres): Add Emscripten stack/heap size params in PR#174. +%.wasm %.wat: %.cc + em++ --no-entry -sSTANDALONE_WASM -sEXPORTED_FUNCTIONS=_malloc \ + --std=c++17 -O3 -flto \ + --js-library ${PROXY_WASM_CPP_SDK}/proxy_wasm_intrinsics.js \ + -I${PROXY_WASM_CPP_SDK} \ + ${CPP_CONTEXT_LIB} \ + ${PROTO_OPTS} \ + ${WASM_LIBS} \ + $*.cc -o $*.wasm clean: - rm -f proxy_wasm_intrinsics.pb.h proxy_wasm_intrinsics_lite.pb.h struct_lite.pb.h ${CPP_API}/libprotobuf.a ${CPP_API}/libprotobuf-lite.a + rm *.wasm + +# NOTE: How to regenerate .pb.h and .pb.cc files for a protobuf update: +# - download + extract protobuf release (currently v26.1) +# - regenerate: +# ./bin/protoc --cpp_out=../ -I../ -Iinclude/google/protobuf/ ../struct_lite.proto +# ./bin/protoc --cpp_out=../ -I../ -Iinclude/google/protobuf/ ../proxy_wasm_intrinsics_lite.proto +# ./bin/protoc --cpp_out=../ -I../ -Iinclude/google/protobuf/ ../proxy_wasm_intrinsics.proto diff --git a/Makefile.base b/Makefile.base deleted file mode 100644 index 148bac5..0000000 --- a/Makefile.base +++ /dev/null @@ -1,11 +0,0 @@ -ifdef NO_CONTEXT - CPP_CONTEXT_LIB = -else - CPP_CONTEXT_LIB = ${PROXY_WASM_CPP_SDK}/proxy_wasm_intrinsics.cc -endif - -%.wasm: %.cc ${PROXY_WASM_CPP_SDK}/proxy_wasm_intrinsics.h ${PROXY_WASM_CPP_SDK}/proxy_wasm_enums.h ${PROXY_WASM_CPP_SDK}/proxy_wasm_externs.h ${PROXY_WASM_CPP_SDK}/proxy_wasm_api.h ${PROXY_WASM_CPP_SDK}/proxy_wasm_intrinsics.js ${CPP_CONTEXT_LIB} - em++ --no-entry -s EXPORTED_FUNCTIONS=['_malloc'] --std=c++17 -O3 -flto -I${PROXY_WASM_CPP_SDK} -I/usr/local/include --js-library ${PROXY_WASM_CPP_SDK}/proxy_wasm_intrinsics.js $*.cc ${PROXY_WASM_CPP_SDK}/proxy_wasm_intrinsics.pb.cc ${CPP_CONTEXT_LIB} ${PROXY_WASM_CPP_SDK}/libprotobuf.a -o $*.wasm - -clean: - rm *.wasm diff --git a/Makefile.base_lite b/Makefile.base_lite deleted file mode 100644 index 6a875b0..0000000 --- a/Makefile.base_lite +++ /dev/null @@ -1,11 +0,0 @@ -ifdef NO_CONTEXT - CPP_CONTEXT_LIB = -else - CPP_CONTEXT_LIB = ${PROXY_WASM_CPP_SDK}/proxy_wasm_intrinsics.cc -endif - -%.wasm %.wat: %.cc ${PROXY_WASM_CPP_SDK}/proxy_wasm_intrinsics.h ${PROXY_WASM_CPP_SDK}/proxy_wasm_enums.h ${PROXY_WASM_CPP_SDK}/proxy_wasm_externs.h ${PROXY_WASM_CPP_SDK}/proxy_wasm_api.h ${PROXY_WASM_CPP_SDK}/proxy_wasm_intrinsics.js ${CPP_CONTEXT_LIB} - em++ --no-entry -s EXPORTED_FUNCTIONS=['_malloc'] --std=c++17 -O3 -flto -DPROXY_WASM_PROTOBUF_LITE=1 -I${PROXY_WASM_CPP_SDK} -I/usr/local/include --js-library ${PROXY_WASM_CPP_SDK}/proxy_wasm_intrinsics.js $*.cc ${PROXY_WASM_CPP_SDK}/proxy_wasm_intrinsics_lite.pb.cc ${PROXY_WASM_CPP_SDK}/struct_lite.pb.cc ${CPP_CONTEXT_LIB} ${PROXY_WASM_CPP_SDK}/libprotobuf-lite.a -o $*.wasm - -clean: - rm *.wasm diff --git a/bazel/defs.bzl b/bazel/defs.bzl index 2e20a86..d81ea01 100644 --- a/bazel/defs.bzl +++ b/bazel/defs.bzl @@ -16,10 +16,11 @@ load("@emsdk//emscripten_toolchain:wasm_rules.bzl", "wasm_cc_binary") load("@rules_cc//cc:defs.bzl", "cc_binary") def _optimized_wasm_cc_binary_transition_impl(settings, attr): - # TODO(PiotrSikora): Add -flto to copts/linkopts when fixed in emsdk. - # See: https://github.com/emscripten-core/emsdk/issues/971 + # Define STANDALONE_WASM at compile time as well as link time (below). + # This fixes Abseil by not including Emscripten JS stacktraces + symbolization. + # TODO(martijneken): Remove after Abseil stops using this define. return { - "//command_line_option:copt": ["-O3"], + "//command_line_option:copt": ["-O3", "-flto", "-DSTANDALONE_WASM"], "//command_line_option:cxxopt": [], "//command_line_option:linkopt": [], "//command_line_option:collect_code_coverage": False, @@ -102,6 +103,8 @@ def proxy_wasm_cc_binary( ) wasm_cc_binary( + standalone = True, + threads = "off", name = "wasm_" + name, cc_target = ":proxy_wasm_" + name.rstrip(".wasm"), tags = tags + [ diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 7ca6517..d28daf5 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -31,3 +31,19 @@ def proxy_wasm_cpp_sdk_repositories(): strip_prefix = "protobuf-3.17.3", url = "https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protobuf-all-3.17.3.tar.gz", ) + + maybe( + http_archive, + name = "com_google_absl", + sha256 = "95e90be7c3643e658670e0dd3c1b27092349c34b632c6e795686355f67eca89f", + strip_prefix = "abseil-cpp-20240722.0", + urls = ["https://github.com/abseil/abseil-cpp/archive/20240722.0.zip"], + ) + + maybe( + http_archive, + name = "com_google_re2", + sha256 = "18cf85922e27fad3ed9c96a27733037da445f35eb1a2744c306a37c6d11e95c4", + strip_prefix = "re2-2023-07-01", + url = "https://github.com/google/re2/archive/2023-07-01.tar.gz", + ) diff --git a/build_wasm.sh b/build_wasm.sh index e8cf183..e689c12 100755 --- a/build_wasm.sh +++ b/build_wasm.sh @@ -16,4 +16,4 @@ source /root/emsdk/emsdk_env.sh export PATH=/usr/local/bin:$PATH -make +make "$@" diff --git a/docs/building.md b/docs/building.md index 50472f7..592dd02 100644 --- a/docs/building.md +++ b/docs/building.md @@ -1,8 +1,8 @@ # Proxy-Wasm C++ SDK Build Instructions The C++ SDK has dependencies on specific versions of the C++ WebAssembly -toolchain [Emscripten](https://emscripten.org) and the protobuf library, -therefore use of a Docker image is recommended. +toolchain [Emscripten](https://emscripten.org). Use of a Docker image is +recommended to achieve repeatable builds and save work. ## Docker @@ -11,7 +11,7 @@ A Dockerfile for the C++ SDK is provided in [Dockerfile-sdk](../Dockerfile-sdk). It can built in this repository's root directory by: ```bash -docker build -t wasmsdk:v2 -f Dockerfile-sdk . +docker build -t wasmsdk:v3 -f Dockerfile-sdk . ``` The docker image can be used for compiling C++ plugin code into Wasm modules. @@ -23,12 +23,10 @@ Create a directory with your source files and a Makefile: ```makefile PROXY_WASM_CPP_SDK=/sdk -all: myproject.wasm - -include ${PROXY_WASM_CPP_SDK}/Makefile.base_lite +include ${PROXY_WASM_CPP_SDK}/Makefile ``` -Source file (myproject.cc): +Create a C++ source file (myproject.cc): ```c++ #include @@ -57,62 +55,40 @@ void ExampleContext::onDone() { logInfo("onDone " + std::to_string(id())); } ### Compiling with the Docker build image -Run docker: - -```bash -docker run -v $PWD:/work -w /work wasmsdk:v2 /build_wasm.sh -``` - -### Caching the standard libraries - -The first time that emscripten runs it will generate the standard libraries. To -cache these in the docker image, after the first successful compilation (e.g -myproject.cc above), commit the image with the standard libraries: +Run docker to build wasm, using a target with a .wasm suffix: ```bash -docker commit `docker ps -l | grep wasmsdk:v2 | awk '{print $1}'` wasmsdk:v2 +docker run -v $PWD:/work -w /work wasmsdk:v3 /build_wasm.sh myproject.wasm ``` -This will save time on subsequent compiles. +You can specify wasm dependencies via these Makefile variables: -### Using Abseil from the Docker image +- PROTOBUF = {full, lite, none} +- WASM_DEPS = list of libraries -Abseil (optionally) is built in /root/abseil and can be used. Note that the -Abseil containers (e.g. `absl::flat_hash_set`) exercise many syscalls which are -not supported. Consequentially individual files should be pulled in which are -relatively self contained (e.g. `strings`). Example customized Makefile: +For example: ```makefile PROXY_WASM_CPP_SDK=/sdk -CPP_API:=${PROXY_WASM_CPP_SDK} -CPP_CONTEXT_LIB = ${CPP_API}/proxy_wasm_intrinsics.cc -ABSL = /root/abseil-cpp -ABSL_CPP = ${ABSL}/absl/strings/str_cat.cc ${ABSL}/absl/strings/str_split.cc ${ABSL}/absl/strings/numbers.cc ${ABSL}/absl/strings/ascii.cc -all: plugin.wasm +PROTOBUF=lite +WASM_DEPS=re2 absl_strings -%.wasm %.wat: %.cc ${CPP_API}/proxy_wasm_intrinsics.h ${CPP_API}/proxy_wasm_enums.h ${CPP_API}/proxy_wasm_externs.h ${CPP_API}/proxy_wasm_api.h ${CPP_API}/proxy_wasm_intrinsics.js ${CPP_CONTEXT_LIB} - ls /root - em++ --no-entry -s EXPORTED_FUNCTIONS=['_malloc'] --std=c++17 -O3 -flto -I${CPP_API} -I${CPP_API}/google/protobuf -I/usr/local/include -I${ABSL} --js-library ${CPP_API}/proxy_wasm_intrinsics.js ${ABSL_CPP} $*.cc ${CPP_API}/proxy_wasm_intrinsics.pb.cc ${CPP_CONTEXT_LIB} ${CPP_API}/libprotobuf.a -o $*.wasm +include ${PROXY_WASM_CPP_SDK}/Makefile ``` -Precompiled Abseil libraries are also available, so the above can also be done -as: - -```makefile -PROXY_WASM_CPP_SDK=/sdk -CPP_API:=${PROXY_WASM_CPP_SDK} -CPP_CONTEXT_LIB = ${CPP_API}/proxy_wasm_intrinsics.cc -ABSL = /root/abseil-cpp -ABSL_LIBS = ${ABSL}/absl/strings/libabsl_strings.a ${ABSL}/absl/strings/libabsl_strings_internal.a ${ABSL}/absl/strings/libabsl_str_format_internal.a +### Caching the standard libraries -all: plugin.wasm +The first time that emscripten runs it will generate the standard libraries. To +cache these in the docker image, after the first successful compilation (e.g +myproject.cc above), commit the image with the standard libraries: -%.wasm %.wat: %.cc ${CPP_API}/proxy_wasm_intrinsics.h ${CPP_API}/proxy_wasm_enums.h ${CPP_API}/proxy_wasm_externs.h ${CPP_API}/proxy_wasm_api.h ${CPP_API}/proxy_wasm_intrinsics.js ${CPP_CONTEXT_LIB} - ls /root - em++ --no-entry -s EXPORTED_FUNCTIONS=['_malloc'] --std=c++17 -O3 -flto -I${CPP_API} -I${CPP_API}/google/protobuf -I/usr/local/include -I${ABSL} --js-library ${CPP_API}/proxy_wasm_intrinsics.js $*.cc ${CPP_API}/proxy_wasm_intrinsics.pb.cc ${CPP_CONTEXT_LIB} ${CPP_API}/libprotobuf.a ${ABSL_LIBS} -o $*.wasm +```bash +docker commit `docker ps -l | grep wasmsdk:v3 | awk '{print $1}'` wasmsdk:v3 ``` +This will save time on subsequent compiles. + ### Ownership of the resulting .wasm files The compiled files may be owned by root. To chown them, add the follow lines to @@ -124,48 +100,32 @@ PROXY_WASM_CPP_SDK=/sdk all: myproject.wasm chown ${uid}.${gid} $^ -include ${PROXY_WASM_CPP_SDK}/Makefile.base_lite +include ${PROXY_WASM_CPP_SDK}/Makefile ``` Invocation file (e.g. build.sh): ```bash #!/bin/bash -docker run -e uid="$(id -u)" -e gid="$(id -g)" -v $PWD:/work -w /work wasmsdk:v2 /build_wasm.sh +docker run -e uid="$(id -u)" -e gid="$(id -g)" -v $PWD:/work -w /work wasmsdk:v3 /build_wasm.sh ``` ## Dependencies for building Wasm modules: If you do not wish to use the Docker image, the dependencies can be installed by -script (sdk\_container.sh), or by hand. - -### protobuf v3.9.1 - -You must install the version of protobuf on your build system that matches the -libprotobuf.a files (without any patches) so that the generated code matches the -.a library. Currently this is based on tag v3.9.1 of -https://github.com/protocolbuffers/protobuf. - -```bash -git clone https://github.com/protocolbuffers/protobuf -cd protobuf -git checkout v3.9.1 -git submodule update --init --recursive -./autogen.sh -./configure -make -make check -sudo make install -``` +script (sdk\_container.sh), or by hand. First you need Emscripten to build +everything else. Then you can build other wasm-compatible libraries, such as +protobuf, abseil, and RE2. ### Emscripten +Version 3.1.67 is known to work: + ```bash git clone https://github.com/emscripten-core/emsdk.git cd emsdk git checkout 3.1.67 - -./emsdk install 3.1.67 +./emsdk install --shallow 3.1.67 ./emsdk activate 3.1.67 source ./emsdk_env.sh @@ -178,26 +138,3 @@ It is possible later versions will work, e.g. ./emsdk install latest ./emsdk activate latest ``` - -However 3.1.67 is known to work. - -### Rebuilding the libprotobuf.a files - -To build the protobuf static libraries for use in your proxy-wasm wasm module, -if you need them, you may use Emscripten in the same way sdk\_container.sh does -it: - -```bash -git clone https://github.com/protocolbuffers/protobuf protobuf-wasm -cd protobuf-wasm -git checkout v3.9.1 -git submodule update --init --recursive -./autogen.sh -emconfigure ./configure --disable-shared CXXFLAGS="-O3 -flto" -emmake make -cd .. -cp protobuf-wasm/src/.libs/libprotobuf-lite.a ${CPP_API}/libprotobuf-lite.a -cp protobuf-wasm/src/.libs/libprotobuf.a ${CPP_API}/libprotobuf.a -``` - -Note: ensure /usr/local/bin is in your path. diff --git a/example/BUILD b/example/BUILD index ea2cc66..d603f06 100644 --- a/example/BUILD +++ b/example/BUILD @@ -9,15 +9,28 @@ proxy_wasm_cc_binary( ) proxy_wasm_cc_binary( - name = "http_wasm_example_with_protobuf_lite.wasm", - srcs = ["http_wasm_example.cc"], + name = "http_re_example.wasm", + srcs = ["http_re_example.cc"], + copts = ["-std=c++17"], + deps = ["@com_google_re2//:re2"], +) + +proxy_wasm_cc_binary( + name = "http_proto_example_none.wasm", + srcs = ["http_proto_example.cc"], + copts = ["-std=c++17"], +) + +proxy_wasm_cc_binary( + name = "http_proto_example_lite.wasm", + srcs = ["http_proto_example.cc"], copts = ["-std=c++17"], protobuf = "lite", ) proxy_wasm_cc_binary( - name = "http_wasm_example_with_protobuf_full.wasm", - srcs = ["http_wasm_example.cc"], + name = "http_proto_example_full.wasm", + srcs = ["http_proto_example.cc"], copts = ["-std=c++17"], protobuf = "full", ) diff --git a/example/http_proto_example.cc b/example/http_proto_example.cc new file mode 100644 index 0000000..d382d8e --- /dev/null +++ b/example/http_proto_example.cc @@ -0,0 +1,43 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "proxy_wasm_intrinsics.h" + +class MyRootContext : public RootContext { +public: + explicit MyRootContext(uint32_t id, std::string_view root_id) : RootContext(id, root_id) {} + + bool onStart(size_t) override { +#if defined(PROXY_WASM_PROTOBUF_FULL) + LOG_TRACE("onStart with protobuf (full)"); + google::protobuf::Value value; + value.set_string_value("unused"); +#elif defined(PROXY_WASM_PROTOBUF_LITE) + LOG_TRACE("onStart with protobuf (lite)"); + google::protobuf::Value value; + value.set_string_value("unused"); +#else + LOG_TRACE("onStart without protobuf"); +#endif + return true; + } +}; + +class MyHttpContext : public Context { +public: + explicit MyHttpContext(uint32_t id, RootContext *root) : Context(id, root) {} +}; + +static RegisterContextFactory register_StaticContext(CONTEXT_FACTORY(MyHttpContext), + ROOT_FACTORY(MyRootContext)); diff --git a/example/http_re_example.cc b/example/http_re_example.cc new file mode 100644 index 0000000..90a232c --- /dev/null +++ b/example/http_re_example.cc @@ -0,0 +1,52 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "proxy_wasm_intrinsics.h" +#include "re2/re2.h" + +class MyRootContext : public RootContext { +public: + explicit MyRootContext(uint32_t id, std::string_view root_id) : RootContext(id, root_id) {} + + bool onConfigure(size_t) override { + // Compile the regex expression at plugin setup time. + path_match.emplace("/foo-([^/]+)/"); + return path_match->ok(); + } + + std::optional path_match; +}; + +class MyHttpContext : public Context { +public: + explicit MyHttpContext(uint32_t id, RootContext *root) + : Context(id, root), root_(static_cast(root)) {} + + FilterHeadersStatus onRequestHeaders(uint32_t headers, bool end_of_stream) override { + auto path = getRequestHeader(":path"); + if (path) { + std::string edit = path->toString(); // mutable copy + if (re2::RE2::Replace(&edit, *root_->path_match, "/\\1/")) { + replaceRequestHeader(":path", edit); + } + } + return FilterHeadersStatus::Continue; + } + +private: + const MyRootContext *root_; +}; + +static RegisterContextFactory register_StaticContext(CONTEXT_FACTORY(MyHttpContext), + ROOT_FACTORY(MyRootContext)); diff --git a/example/http_wasm_example.cc b/example/http_wasm_example.cc index ca5998a..8dfc616 100644 --- a/example/http_wasm_example.cc +++ b/example/http_wasm_example.cc @@ -15,7 +15,6 @@ #include #include -#include #include "proxy_wasm_intrinsics.h" @@ -42,21 +41,10 @@ class ExampleContext : public Context { void onDelete() override; }; static RegisterContextFactory register_ExampleContext(CONTEXT_FACTORY(ExampleContext), - ROOT_FACTORY(ExampleRootContext), - "my_root_id"); + ROOT_FACTORY(ExampleRootContext)); bool ExampleRootContext::onStart(size_t) { -#if defined(PROXY_WASM_PROTOBUF_FULL) - LOG_TRACE("onStart with protobuf (full)"); - google::protobuf::Value value; - value.set_string_value("unused"); -#elif defined(PROXY_WASM_PROTOBUF_LITE) - LOG_TRACE("onStart with protobuf (lite)"); - google::protobuf::Value value; - value.set_string_value("unused"); -#else LOG_TRACE("onStart"); -#endif return true; } diff --git a/proxy_wasm_intrinsics.pb.cc b/proxy_wasm_intrinsics.pb.cc index 9e56f38..274a951 100644 --- a/proxy_wasm_intrinsics.pb.cc +++ b/proxy_wasm_intrinsics.pb.cc @@ -15,829 +15,866 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: proxy_wasm_intrinsics.proto +// Protobuf C++ Version: 5.26.1 #include "proxy_wasm_intrinsics.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/wire_format_lite.h" +#include "google/protobuf/descriptor.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/reflection_ops.h" +#include "google/protobuf/wire_format.h" +#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DataSource_proxy_5fwasm_5fintrinsics_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_EnvoyGrpc_proxy_5fwasm_5fintrinsics_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_GrpcService_GoogleGrpc_proxy_5fwasm_5fintrinsics_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_proxy_5fwasm_5fintrinsics_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_proxy_5fwasm_5fintrinsics_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_GrpcService_GoogleGrpc_ChannelCredentials_proxy_5fwasm_5fintrinsics_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_GoogleLocalCredentials_proxy_5fwasm_5fintrinsics_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GrpcService_GoogleGrpc_SslCredentials_proxy_5fwasm_5fintrinsics_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_HeaderValue_proxy_5fwasm_5fintrinsics_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fany_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Any_google_2fprotobuf_2fany_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fempty_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Empty_google_2fprotobuf_2fempty_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fstruct_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto; -class WKTDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _WKT_default_instance_; -class DataSourceDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr filename_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr inline_bytes_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr inline_string_; -} _DataSource_default_instance_; -class GrpcService_EnvoyGrpcDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GrpcService_EnvoyGrpc_default_instance_; -class GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GrpcService_GoogleGrpc_SslCredentials_default_instance_; -class GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_; -class GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; - const ::GrpcService_GoogleGrpc_SslCredentials* ssl_credentials_; - const PROTOBUF_NAMESPACE_ID::Empty* google_default_; - const ::GrpcService_GoogleGrpc_GoogleLocalCredentials* local_credentials_; -} _GrpcService_GoogleGrpc_ChannelCredentials_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; - const PROTOBUF_NAMESPACE_ID::Struct* config_; - const PROTOBUF_NAMESPACE_ID::Any* typed_config_; -} _GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_; -class GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr access_token_; - const PROTOBUF_NAMESPACE_ID::Empty* google_compute_engine_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr google_refresh_token_; - const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* service_account_jwt_access_; - const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* google_iam_; - const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* from_plugin_; - const ::GrpcService_GoogleGrpc_CallCredentials_StsService* sts_service_; -} _GrpcService_GoogleGrpc_CallCredentials_default_instance_; -class GrpcService_GoogleGrpcDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GrpcService_GoogleGrpc_default_instance_; -class GrpcService_HeaderValueDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GrpcService_HeaderValue_default_instance_; -class GrpcServiceDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; - const ::GrpcService_EnvoyGrpc* envoy_grpc_; - const ::GrpcService_GoogleGrpc* google_grpc_; -} _GrpcService_default_instance_; -static void InitDefaultsscc_info_DataSource_proxy_5fwasm_5fintrinsics_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_DataSource_default_instance_; - new (ptr) ::DataSource(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::DataSource::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DataSource_proxy_5fwasm_5fintrinsics_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_DataSource_proxy_5fwasm_5fintrinsics_2eproto}, {}}; - -static void InitDefaultsscc_info_GrpcService_proxy_5fwasm_5fintrinsics_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_default_instance_; - new (ptr) ::GrpcService(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_GrpcService_proxy_5fwasm_5fintrinsics_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsscc_info_GrpcService_proxy_5fwasm_5fintrinsics_2eproto}, { - &scc_info_GrpcService_EnvoyGrpc_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base, - &scc_info_GrpcService_HeaderValue_proxy_5fwasm_5fintrinsics_2eproto.base,}}; - -static void InitDefaultsscc_info_GrpcService_EnvoyGrpc_proxy_5fwasm_5fintrinsics_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_EnvoyGrpc_default_instance_; - new (ptr) ::GrpcService_EnvoyGrpc(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_EnvoyGrpc::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_EnvoyGrpc_proxy_5fwasm_5fintrinsics_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GrpcService_EnvoyGrpc_proxy_5fwasm_5fintrinsics_2eproto}, {}}; - -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_proxy_5fwasm_5fintrinsics_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_GoogleGrpc_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_GrpcService_GoogleGrpc_proxy_5fwasm_5fintrinsics_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_GrpcService_GoogleGrpc_proxy_5fwasm_5fintrinsics_2eproto}, { - &scc_info_GrpcService_GoogleGrpc_ChannelCredentials_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto.base,}}; - -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_GoogleGrpc_CallCredentials_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_CallCredentials(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_CallCredentials::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 5, InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_2eproto}, { - &scc_info_Empty_google_2fprotobuf_2fempty_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_2eproto.base,}}; - -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_proxy_5fwasm_5fintrinsics_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_proxy_5fwasm_5fintrinsics_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_proxy_5fwasm_5fintrinsics_2eproto}, {}}; - -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_proxy_5fwasm_5fintrinsics_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_proxy_5fwasm_5fintrinsics_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_proxy_5fwasm_5fintrinsics_2eproto}, { - &scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto.base, - &scc_info_Any_google_2fprotobuf_2fany_2eproto.base,}}; - -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_2eproto}, {}}; - -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_CallCredentials_StsService(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_CallCredentials_StsService::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_2eproto}, {}}; -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_ChannelCredentials_proxy_5fwasm_5fintrinsics_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_ChannelCredentials(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_ChannelCredentials::InitAsDefaultInstance(); -} +// Must be included last. +#include "google/protobuf/port_def.inc" +PROTOBUF_PRAGMA_INIT_SEG +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; + +inline constexpr GrpcService_HeaderValue::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + value_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR GrpcService_HeaderValue::GrpcService_HeaderValue(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcService_HeaderValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcService_HeaderValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcService_HeaderValueDefaultTypeInternal() {} + union { + GrpcService_HeaderValue _instance; + }; +}; -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_GrpcService_GoogleGrpc_ChannelCredentials_proxy_5fwasm_5fintrinsics_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_GrpcService_GoogleGrpc_ChannelCredentials_proxy_5fwasm_5fintrinsics_2eproto}, { - &scc_info_GrpcService_GoogleGrpc_SslCredentials_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_Empty_google_2fprotobuf_2fempty_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_GoogleLocalCredentials_proxy_5fwasm_5fintrinsics_2eproto.base,}}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_HeaderValueDefaultTypeInternal _GrpcService_HeaderValue_default_instance_; + template +PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_GoogleLocalCredentials::GrpcService_GoogleGrpc_GoogleLocalCredentials(::_pbi::ConstantInitialized) {} +struct GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal() {} + union { + GrpcService_GoogleGrpc_GoogleLocalCredentials _instance; + }; +}; -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_GoogleLocalCredentials_proxy_5fwasm_5fintrinsics_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_; + +inline constexpr GrpcService_GoogleGrpc_CallCredentials_StsService::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : token_exchange_service_uri_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + resource_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + audience_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + scope_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + requested_token_type_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + subject_token_path_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + subject_token_type_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + actor_token_path_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + actor_token_type_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_StsService::GrpcService_GoogleGrpc_CallCredentials_StsService(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal() {} + union { + GrpcService_GoogleGrpc_CallCredentials_StsService _instance; + }; +}; - { - void* ptr = &::_GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_GoogleLocalCredentials(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_GoogleLocalCredentials::InitAsDefaultInstance(); -} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_; + +inline constexpr GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : json_key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + token_lifetime_seconds_{::uint64_t{0u}}, + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal() {} + union { + GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials _instance; + }; +}; -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_GoogleLocalCredentials_proxy_5fwasm_5fintrinsics_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GrpcService_GoogleGrpc_GoogleLocalCredentials_proxy_5fwasm_5fintrinsics_2eproto}, {}}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_; + +inline constexpr GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : authorization_token_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + authority_selector_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal() {} + union { + GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials _instance; + }; +}; -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_SslCredentials_proxy_5fwasm_5fintrinsics_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_; + +inline constexpr GrpcService_EnvoyGrpc::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : cluster_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR GrpcService_EnvoyGrpc::GrpcService_EnvoyGrpc(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcService_EnvoyGrpcDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcService_EnvoyGrpcDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcService_EnvoyGrpcDefaultTypeInternal() {} + union { + GrpcService_EnvoyGrpc _instance; + }; +}; - { - void* ptr = &::_GrpcService_GoogleGrpc_SslCredentials_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_SslCredentials(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_SslCredentials::InitAsDefaultInstance(); -} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_EnvoyGrpcDefaultTypeInternal _GrpcService_EnvoyGrpc_default_instance_; + +inline constexpr DataSource::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : specifier_{}, + _cached_size_{0}, + _oneof_case_{} {} + +template +PROTOBUF_CONSTEXPR DataSource::DataSource(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct DataSourceDefaultTypeInternal { + PROTOBUF_CONSTEXPR DataSourceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DataSourceDefaultTypeInternal() {} + union { + DataSource _instance; + }; +}; -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GrpcService_GoogleGrpc_SslCredentials_proxy_5fwasm_5fintrinsics_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_GrpcService_GoogleGrpc_SslCredentials_proxy_5fwasm_5fintrinsics_2eproto}, { - &scc_info_DataSource_proxy_5fwasm_5fintrinsics_2eproto.base,}}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DataSourceDefaultTypeInternal _DataSource_default_instance_; + +inline constexpr WKT::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + struct__{nullptr} {} + +template +PROTOBUF_CONSTEXPR WKT::WKT(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct WKTDefaultTypeInternal { + PROTOBUF_CONSTEXPR WKTDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~WKTDefaultTypeInternal() {} + union { + WKT _instance; + }; +}; -static void InitDefaultsscc_info_GrpcService_HeaderValue_proxy_5fwasm_5fintrinsics_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WKTDefaultTypeInternal _WKT_default_instance_; + +inline constexpr GrpcService_GoogleGrpc_SslCredentials::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + root_certs_{nullptr}, + private_key_{nullptr}, + cert_chain_{nullptr} {} + +template +PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_SslCredentials::GrpcService_GoogleGrpc_SslCredentials(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal() {} + union { + GrpcService_GoogleGrpc_SslCredentials _instance; + }; +}; - { - void* ptr = &::_GrpcService_HeaderValue_default_instance_; - new (ptr) ::GrpcService_HeaderValue(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_HeaderValue::InitAsDefaultInstance(); -} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_SslCredentials_default_instance_; + +inline constexpr GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + config_type_{}, + _cached_size_{0}, + _oneof_case_{} {} + +template +PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal() {} + union { + GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin _instance; + }; +}; -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_HeaderValue_proxy_5fwasm_5fintrinsics_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GrpcService_HeaderValue_proxy_5fwasm_5fintrinsics_2eproto}, {}}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_; + +inline constexpr GrpcService_GoogleGrpc_ChannelCredentials::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : credential_specifier_{}, + _cached_size_{0}, + _oneof_case_{} {} + +template +PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_ChannelCredentials::GrpcService_GoogleGrpc_ChannelCredentials(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal() {} + union { + GrpcService_GoogleGrpc_ChannelCredentials _instance; + }; +}; -static void InitDefaultsscc_info_WKT_proxy_5fwasm_5fintrinsics_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_ChannelCredentials_default_instance_; + +inline constexpr GrpcService_GoogleGrpc_CallCredentials::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : credential_specifier_{}, + _cached_size_{0}, + _oneof_case_{} {} + +template +PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials::GrpcService_GoogleGrpc_CallCredentials(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal() {} + union { + GrpcService_GoogleGrpc_CallCredentials _instance; + }; +}; - { - void* ptr = &::_WKT_default_instance_; - new (ptr) ::WKT(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::WKT::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_WKT_proxy_5fwasm_5fintrinsics_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_WKT_proxy_5fwasm_5fintrinsics_2eproto}, { - &scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto.base,}}; - -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[14]; -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_proxy_5fwasm_5fintrinsics_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_proxy_5fwasm_5fintrinsics_2eproto = nullptr; - -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_proxy_5fwasm_5fintrinsics_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::WKT, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::WKT, struct__), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::DataSource, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::DataSource, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::DataSourceDefaultTypeInternal, filename_), - offsetof(::DataSourceDefaultTypeInternal, inline_bytes_), - offsetof(::DataSourceDefaultTypeInternal, inline_string_), - PROTOBUF_FIELD_OFFSET(::DataSource, specifier_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::GrpcService_EnvoyGrpc, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::GrpcService_EnvoyGrpc, cluster_name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_SslCredentials, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_SslCredentials, root_certs_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_SslCredentials, private_key_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_SslCredentials, cert_chain_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_GoogleLocalCredentials, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_ChannelCredentials, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_ChannelCredentials, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal, ssl_credentials_), - offsetof(::GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal, google_default_), - offsetof(::GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal, local_credentials_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_ChannelCredentials, credential_specifier_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, json_key_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, token_lifetime_seconds_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, authorization_token_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, authority_selector_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, name_), - offsetof(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal, config_), - offsetof(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal, typed_config_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, config_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, token_exchange_service_uri_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, resource_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, audience_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, scope_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, requested_token_type_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, subject_token_path_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, subject_token_type_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, actor_token_path_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, actor_token_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal, access_token_), - offsetof(::GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal, google_compute_engine_), - offsetof(::GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal, google_refresh_token_), - offsetof(::GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal, service_account_jwt_access_), - offsetof(::GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal, google_iam_), - offsetof(::GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal, from_plugin_), - offsetof(::GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal, sts_service_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials, credential_specifier_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, target_uri_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, channel_credentials_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, call_credentials_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, stat_prefix_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, credentials_factory_name_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, config_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::GrpcService_HeaderValue, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::GrpcService_HeaderValue, key_), - PROTOBUF_FIELD_OFFSET(::GrpcService_HeaderValue, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::GrpcService, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::GrpcService, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::GrpcServiceDefaultTypeInternal, envoy_grpc_), - offsetof(::GrpcServiceDefaultTypeInternal, google_grpc_), - PROTOBUF_FIELD_OFFSET(::GrpcService, timeout_), - PROTOBUF_FIELD_OFFSET(::GrpcService, initial_metadata_), - PROTOBUF_FIELD_OFFSET(::GrpcService, target_specifier_), +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_default_instance_; + +inline constexpr GrpcService_GoogleGrpc::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + call_credentials_{}, + target_uri_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + stat_prefix_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + credentials_factory_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + channel_credentials_{nullptr}, + config_{nullptr} {} + +template +PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc::GrpcService_GoogleGrpc(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcService_GoogleGrpcDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcService_GoogleGrpcDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcService_GoogleGrpcDefaultTypeInternal() {} + union { + GrpcService_GoogleGrpc _instance; + }; }; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::WKT)}, - { 6, -1, sizeof(::DataSource)}, - { 15, -1, sizeof(::GrpcService_EnvoyGrpc)}, - { 21, -1, sizeof(::GrpcService_GoogleGrpc_SslCredentials)}, - { 29, -1, sizeof(::GrpcService_GoogleGrpc_GoogleLocalCredentials)}, - { 34, -1, sizeof(::GrpcService_GoogleGrpc_ChannelCredentials)}, - { 43, -1, sizeof(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials)}, - { 50, -1, sizeof(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials)}, - { 57, -1, sizeof(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin)}, - { 66, -1, sizeof(::GrpcService_GoogleGrpc_CallCredentials_StsService)}, - { 80, -1, sizeof(::GrpcService_GoogleGrpc_CallCredentials)}, - { 93, -1, sizeof(::GrpcService_GoogleGrpc)}, - { 104, -1, sizeof(::GrpcService_HeaderValue)}, - { 111, -1, sizeof(::GrpcService)}, + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpcDefaultTypeInternal _GrpcService_GoogleGrpc_default_instance_; + +inline constexpr GrpcService::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + initial_metadata_{}, + timeout_{nullptr}, + target_specifier_{}, + _oneof_case_{} {} + +template +PROTOBUF_CONSTEXPR GrpcService::GrpcService(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcServiceDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcServiceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcServiceDefaultTypeInternal() {} + union { + GrpcService _instance; + }; }; -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::_WKT_default_instance_), - reinterpret_cast(&::_DataSource_default_instance_), - reinterpret_cast(&::_GrpcService_EnvoyGrpc_default_instance_), - reinterpret_cast(&::_GrpcService_GoogleGrpc_SslCredentials_default_instance_), - reinterpret_cast(&::_GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_), - reinterpret_cast(&::_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_), - reinterpret_cast(&::_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_), - reinterpret_cast(&::_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_), - reinterpret_cast(&::_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_), - reinterpret_cast(&::_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_), - reinterpret_cast(&::_GrpcService_GoogleGrpc_CallCredentials_default_instance_), - reinterpret_cast(&::_GrpcService_GoogleGrpc_default_instance_), - reinterpret_cast(&::_GrpcService_HeaderValue_default_instance_), - reinterpret_cast(&::_GrpcService_default_instance_), +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcServiceDefaultTypeInternal _GrpcService_default_instance_; +static ::_pb::Metadata file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[14]; +static constexpr const ::_pb::EnumDescriptor** + file_level_enum_descriptors_proxy_5fwasm_5fintrinsics_2eproto = nullptr; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_proxy_5fwasm_5fintrinsics_2eproto = nullptr; +const ::uint32_t + TableStruct_proxy_5fwasm_5fintrinsics_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::WKT, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::WKT, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::WKT, _impl_.struct__), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::DataSource, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::DataSource, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::DataSource, _impl_.specifier_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::GrpcService_EnvoyGrpc, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::GrpcService_EnvoyGrpc, _impl_.cluster_name_), + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_SslCredentials, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_SslCredentials, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_SslCredentials, _impl_.root_certs_), + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_SslCredentials, _impl_.private_key_), + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_SslCredentials, _impl_.cert_chain_), + 0, + 1, + 2, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_GoogleLocalCredentials, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_ChannelCredentials, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_ChannelCredentials, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_ChannelCredentials, _impl_.credential_specifier_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_.json_key_), + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_.token_lifetime_seconds_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_.authorization_token_), + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_.authority_selector_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_.name_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_.config_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.token_exchange_service_uri_), + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.resource_), + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.audience_), + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.scope_), + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.requested_token_type_), + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.subject_token_path_), + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.subject_token_type_), + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.actor_token_path_), + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.actor_token_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_), + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, _impl_.target_uri_), + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, _impl_.channel_credentials_), + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, _impl_.call_credentials_), + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, _impl_.stat_prefix_), + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, _impl_.credentials_factory_name_), + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, _impl_.config_), + ~0u, + 0, + ~0u, + ~0u, + ~0u, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::GrpcService_HeaderValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::GrpcService_HeaderValue, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::GrpcService_HeaderValue, _impl_.value_), + PROTOBUF_FIELD_OFFSET(::GrpcService, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::GrpcService, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::GrpcService, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::GrpcService, _impl_.timeout_), + PROTOBUF_FIELD_OFFSET(::GrpcService, _impl_.initial_metadata_), + PROTOBUF_FIELD_OFFSET(::GrpcService, _impl_.target_specifier_), + ~0u, + ~0u, + 0, + ~0u, }; -const char descriptor_table_protodef_proxy_5fwasm_5fintrinsics_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\033proxy_wasm_intrinsics.proto\032\031google/pr" - "otobuf/any.proto\032\036google/protobuf/durati" - "on.proto\032\033google/protobuf/empty.proto\032\034g" - "oogle/protobuf/struct.proto\".\n\003WKT\022\'\n\006st" - "ruct\030\001 \001(\0132\027.google.protobuf.Struct\"^\n\nD" - "ataSource\022\022\n\010filename\030\001 \001(\tH\000\022\026\n\014inline_" - "bytes\030\002 \001(\014H\000\022\027\n\rinline_string\030\003 \001(\tH\000B\013" - "\n\tspecifier\"\204\020\n\013GrpcService\022,\n\nenvoy_grp" - "c\030\001 \001(\0132\026.GrpcService.EnvoyGrpcH\000\022.\n\013goo" - "gle_grpc\030\002 \001(\0132\027.GrpcService.GoogleGrpcH" - "\000\022*\n\007timeout\030\003 \001(\0132\031.google.protobuf.Dur" - "ation\0222\n\020initial_metadata\030\005 \003(\0132\030.GrpcSe" - "rvice.HeaderValue\032!\n\tEnvoyGrpc\022\024\n\014cluste" - "r_name\030\001 \001(\t\032\316\r\n\nGoogleGrpc\022\022\n\ntarget_ur" - "i\030\001 \001(\t\022G\n\023channel_credentials\030\002 \001(\0132*.G" - "rpcService.GoogleGrpc.ChannelCredentials" - "\022A\n\020call_credentials\030\003 \003(\0132\'.GrpcService" - ".GoogleGrpc.CallCredentials\022\023\n\013stat_pref" - "ix\030\004 \001(\t\022 \n\030credentials_factory_name\030\005 \001" - "(\t\022\'\n\006config\030\006 \001(\0132\027.google.protobuf.Str" - "uct\032t\n\016SslCredentials\022\037\n\nroot_certs\030\001 \001(" - "\0132\013.DataSource\022 \n\013private_key\030\002 \001(\0132\013.Da" - "taSource\022\037\n\ncert_chain\030\003 \001(\0132\013.DataSourc" - "e\032\030\n\026GoogleLocalCredentials\032\356\001\n\022ChannelC" - "redentials\022A\n\017ssl_credentials\030\001 \001(\0132&.Gr" - "pcService.GoogleGrpc.SslCredentialsH\000\0220\n" - "\016google_default\030\002 \001(\0132\026.google.protobuf." - "EmptyH\000\022K\n\021local_credentials\030\003 \001(\0132..Grp" - "cService.GoogleGrpc.GoogleLocalCredentia" - "lsH\000B\026\n\024credential_specifier\032\276\010\n\017CallCre" - "dentials\022\026\n\014access_token\030\001 \001(\tH\000\0227\n\025goog" - "le_compute_engine\030\002 \001(\0132\026.google.protobu" - "f.EmptyH\000\022\036\n\024google_refresh_token\030\003 \001(\tH" - "\000\022p\n\032service_account_jwt_access\030\004 \001(\0132J." - "GrpcService.GoogleGrpc.CallCredentials.S" - "erviceAccountJWTAccessCredentialsH\000\022R\n\ng" - "oogle_iam\030\005 \001(\0132<.GrpcService.GoogleGrpc" - ".CallCredentials.GoogleIAMCredentialsH\000\022" - "\\\n\013from_plugin\030\006 \001(\0132E.GrpcService.Googl" - "eGrpc.CallCredentials.MetadataCredential" - "sFromPluginH\000\022I\n\013sts_service\030\007 \001(\01322.Grp" - "cService.GoogleGrpc.CallCredentials.StsS" - "erviceH\000\032V\n\"ServiceAccountJWTAccessCrede" - "ntials\022\020\n\010json_key\030\001 \001(\t\022\036\n\026token_lifeti" - "me_seconds\030\002 \001(\004\032O\n\024GoogleIAMCredentials" - "\022\033\n\023authorization_token\030\001 \001(\t\022\032\n\022authori" - "ty_selector\030\002 \001(\t\032\231\001\n\035MetadataCredential" - "sFromPlugin\022\014\n\004name\030\001 \001(\t\022-\n\006config\030\002 \001(" - "\0132\027.google.protobuf.StructB\002\030\001H\000\022,\n\014type" - "d_config\030\003 \001(\0132\024.google.protobuf.AnyH\000B\r" - "\n\013config_type\032\355\001\n\nStsService\022\"\n\032token_ex" - "change_service_uri\030\001 \001(\t\022\020\n\010resource\030\002 \001" - "(\t\022\020\n\010audience\030\003 \001(\t\022\r\n\005scope\030\004 \001(\t\022\034\n\024r" - "equested_token_type\030\005 \001(\t\022\032\n\022subject_tok" - "en_path\030\006 \001(\t\022\032\n\022subject_token_type\030\007 \001(" - "\t\022\030\n\020actor_token_path\030\010 \001(\t\022\030\n\020actor_tok" - "en_type\030\t \001(\tB\026\n\024credential_specifier\032)\n" - "\013HeaderValue\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - "B\022\n\020target_specifierJ\004\010\004\020\005b\006proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_deps[4] = { - &::descriptor_table_google_2fprotobuf_2fany_2eproto, - &::descriptor_table_google_2fprotobuf_2fduration_2eproto, - &::descriptor_table_google_2fprotobuf_2fempty_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 9, -1, sizeof(::WKT)}, + {10, -1, -1, sizeof(::DataSource)}, + {22, -1, -1, sizeof(::GrpcService_EnvoyGrpc)}, + {31, 42, -1, sizeof(::GrpcService_GoogleGrpc_SslCredentials)}, + {45, -1, -1, sizeof(::GrpcService_GoogleGrpc_GoogleLocalCredentials)}, + {53, -1, -1, sizeof(::GrpcService_GoogleGrpc_ChannelCredentials)}, + {65, -1, -1, sizeof(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials)}, + {75, -1, -1, sizeof(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials)}, + {85, -1, -1, sizeof(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin)}, + {97, -1, -1, sizeof(::GrpcService_GoogleGrpc_CallCredentials_StsService)}, + {114, -1, -1, sizeof(::GrpcService_GoogleGrpc_CallCredentials)}, + {130, 144, -1, sizeof(::GrpcService_GoogleGrpc)}, + {150, -1, -1, sizeof(::GrpcService_HeaderValue)}, + {160, 173, -1, sizeof(::GrpcService)}, }; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_sccs[14] = { - &scc_info_DataSource_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_GrpcService_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_GrpcService_EnvoyGrpc_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_ChannelCredentials_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_GoogleLocalCredentials_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_SslCredentials_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_GrpcService_HeaderValue_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_WKT_proxy_5fwasm_5fintrinsics_2eproto.base, +static const ::_pb::Message* const file_default_instances[] = { + &::_WKT_default_instance_._instance, + &::_DataSource_default_instance_._instance, + &::_GrpcService_EnvoyGrpc_default_instance_._instance, + &::_GrpcService_GoogleGrpc_SslCredentials_default_instance_._instance, + &::_GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_._instance, + &::_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_._instance, + &::_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_._instance, + &::_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_._instance, + &::_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_._instance, + &::_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_._instance, + &::_GrpcService_GoogleGrpc_CallCredentials_default_instance_._instance, + &::_GrpcService_GoogleGrpc_default_instance_._instance, + &::_GrpcService_HeaderValue_default_instance_._instance, + &::_GrpcService_default_instance_._instance, }; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once; -static bool descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_initialized = false; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_proxy_5fwasm_5fintrinsics_2eproto = { - &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_initialized, descriptor_table_protodef_proxy_5fwasm_5fintrinsics_2eproto, "proxy_wasm_intrinsics.proto", 2354, - &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_sccs, descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_deps, 14, 4, - schemas, file_default_instances, TableStruct_proxy_5fwasm_5fintrinsics_2eproto::offsets, - file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto, 14, file_level_enum_descriptors_proxy_5fwasm_5fintrinsics_2eproto, file_level_service_descriptors_proxy_5fwasm_5fintrinsics_2eproto, +const char descriptor_table_protodef_proxy_5fwasm_5fintrinsics_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\033proxy_wasm_intrinsics.proto\032\031google/pr" + "otobuf/any.proto\032\036google/protobuf/durati" + "on.proto\032\033google/protobuf/empty.proto\032\034g" + "oogle/protobuf/struct.proto\".\n\003WKT\022\'\n\006st" + "ruct\030\001 \001(\0132\027.google.protobuf.Struct\"^\n\nD" + "ataSource\022\022\n\010filename\030\001 \001(\tH\000\022\026\n\014inline_" + "bytes\030\002 \001(\014H\000\022\027\n\rinline_string\030\003 \001(\tH\000B\013" + "\n\tspecifier\"\204\020\n\013GrpcService\022,\n\nenvoy_grp" + "c\030\001 \001(\0132\026.GrpcService.EnvoyGrpcH\000\022.\n\013goo" + "gle_grpc\030\002 \001(\0132\027.GrpcService.GoogleGrpcH" + "\000\022*\n\007timeout\030\003 \001(\0132\031.google.protobuf.Dur" + "ation\0222\n\020initial_metadata\030\005 \003(\0132\030.GrpcSe" + "rvice.HeaderValue\032!\n\tEnvoyGrpc\022\024\n\014cluste" + "r_name\030\001 \001(\t\032\316\r\n\nGoogleGrpc\022\022\n\ntarget_ur" + "i\030\001 \001(\t\022G\n\023channel_credentials\030\002 \001(\0132*.G" + "rpcService.GoogleGrpc.ChannelCredentials" + "\022A\n\020call_credentials\030\003 \003(\0132\'.GrpcService" + ".GoogleGrpc.CallCredentials\022\023\n\013stat_pref" + "ix\030\004 \001(\t\022 \n\030credentials_factory_name\030\005 \001" + "(\t\022\'\n\006config\030\006 \001(\0132\027.google.protobuf.Str" + "uct\032t\n\016SslCredentials\022\037\n\nroot_certs\030\001 \001(" + "\0132\013.DataSource\022 \n\013private_key\030\002 \001(\0132\013.Da" + "taSource\022\037\n\ncert_chain\030\003 \001(\0132\013.DataSourc" + "e\032\030\n\026GoogleLocalCredentials\032\356\001\n\022ChannelC" + "redentials\022A\n\017ssl_credentials\030\001 \001(\0132&.Gr" + "pcService.GoogleGrpc.SslCredentialsH\000\0220\n" + "\016google_default\030\002 \001(\0132\026.google.protobuf." + "EmptyH\000\022K\n\021local_credentials\030\003 \001(\0132..Grp" + "cService.GoogleGrpc.GoogleLocalCredentia" + "lsH\000B\026\n\024credential_specifier\032\276\010\n\017CallCre" + "dentials\022\026\n\014access_token\030\001 \001(\tH\000\0227\n\025goog" + "le_compute_engine\030\002 \001(\0132\026.google.protobu" + "f.EmptyH\000\022\036\n\024google_refresh_token\030\003 \001(\tH" + "\000\022p\n\032service_account_jwt_access\030\004 \001(\0132J." + "GrpcService.GoogleGrpc.CallCredentials.S" + "erviceAccountJWTAccessCredentialsH\000\022R\n\ng" + "oogle_iam\030\005 \001(\0132<.GrpcService.GoogleGrpc" + ".CallCredentials.GoogleIAMCredentialsH\000\022" + "\\\n\013from_plugin\030\006 \001(\0132E.GrpcService.Googl" + "eGrpc.CallCredentials.MetadataCredential" + "sFromPluginH\000\022I\n\013sts_service\030\007 \001(\01322.Grp" + "cService.GoogleGrpc.CallCredentials.StsS" + "erviceH\000\032V\n\"ServiceAccountJWTAccessCrede" + "ntials\022\020\n\010json_key\030\001 \001(\t\022\036\n\026token_lifeti" + "me_seconds\030\002 \001(\004\032O\n\024GoogleIAMCredentials" + "\022\033\n\023authorization_token\030\001 \001(\t\022\032\n\022authori" + "ty_selector\030\002 \001(\t\032\231\001\n\035MetadataCredential" + "sFromPlugin\022\014\n\004name\030\001 \001(\t\022-\n\006config\030\002 \001(" + "\0132\027.google.protobuf.StructB\002\030\001H\000\022,\n\014type" + "d_config\030\003 \001(\0132\024.google.protobuf.AnyH\000B\r" + "\n\013config_type\032\355\001\n\nStsService\022\"\n\032token_ex" + "change_service_uri\030\001 \001(\t\022\020\n\010resource\030\002 \001" + "(\t\022\020\n\010audience\030\003 \001(\t\022\r\n\005scope\030\004 \001(\t\022\034\n\024r" + "equested_token_type\030\005 \001(\t\022\032\n\022subject_tok" + "en_path\030\006 \001(\t\022\032\n\022subject_token_type\030\007 \001(" + "\t\022\030\n\020actor_token_path\030\010 \001(\t\022\030\n\020actor_tok" + "en_type\030\t \001(\tB\026\n\024credential_specifier\032)\n" + "\013HeaderValue\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + "B\022\n\020target_specifierJ\004\010\004\020\005b\006proto3" +}; +static const ::_pbi::DescriptorTable* const descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_deps[4] = + { + &::descriptor_table_google_2fprotobuf_2fany_2eproto, + &::descriptor_table_google_2fprotobuf_2fduration_2eproto, + &::descriptor_table_google_2fprotobuf_2fempty_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, +}; +static ::absl::once_flag descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_proxy_5fwasm_5fintrinsics_2eproto = { + false, + false, + 2354, + descriptor_table_protodef_proxy_5fwasm_5fintrinsics_2eproto, + "proxy_wasm_intrinsics.proto", + &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, + descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_deps, + 4, + 14, + schemas, + file_default_instances, + TableStruct_proxy_5fwasm_5fintrinsics_2eproto::offsets, + file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto, + file_level_enum_descriptors_proxy_5fwasm_5fintrinsics_2eproto, + file_level_service_descriptors_proxy_5fwasm_5fintrinsics_2eproto, }; -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_proxy_5fwasm_5fintrinsics_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto), true); - +// This function exists to be marked as weak. +// It can significantly speed up compilation by breaking up LLVM's SCC +// in the .pb.cc translation units. Large translation units see a +// reduction of more than 35% of walltime for optimized builds. Without +// the weak attribute all the messages in the file, including all the +// vtables and everything they use become part of the same SCC through +// a cycle like: +// GetMetadata -> descriptor table -> default instances -> +// vtables -> GetMetadata +// By adding a weak function here we break the connection from the +// individual vtables back into the descriptor table. +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter() { + return &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto; +} // =================================================================== -void WKT::InitAsDefaultInstance() { - ::_WKT_default_instance_._instance.get_mutable()->struct__ = const_cast< PROTOBUF_NAMESPACE_ID::Struct*>( - PROTOBUF_NAMESPACE_ID::Struct::internal_default_instance()); -} class WKT::_Internal { public: - static const PROTOBUF_NAMESPACE_ID::Struct& struct_(const WKT* msg); + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(WKT, _impl_._has_bits_); }; -const PROTOBUF_NAMESPACE_ID::Struct& -WKT::_Internal::struct_(const WKT* msg) { - return *msg->struct__; -} void WKT::clear_struct_() { - if (GetArenaNoVirtual() == nullptr && struct__ != nullptr) { - delete struct__; - } - struct__ = nullptr; -} -WKT::WKT() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:WKT) -} -WKT::WKT(const WKT& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_struct_()) { - struct__ = new PROTOBUF_NAMESPACE_ID::Struct(*from.struct__); - } else { - struct__ = nullptr; - } + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.struct__ != nullptr) _impl_.struct__->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +WKT::WKT(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:WKT) +} +inline PROTOBUF_NDEBUG_INLINE WKT::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +WKT::WKT( + ::google::protobuf::Arena* arena, + const WKT& from) + : ::google::protobuf::Message(arena) { + WKT* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.struct__ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::google::protobuf::Struct>( + arena, *from._impl_.struct__) + : nullptr; + // @@protoc_insertion_point(copy_constructor:WKT) } +inline PROTOBUF_NDEBUG_INLINE WKT::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} -void WKT::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_WKT_proxy_5fwasm_5fintrinsics_2eproto.base); - struct__ = nullptr; +inline void WKT::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.struct__ = {}; } - WKT::~WKT() { // @@protoc_insertion_point(destructor:WKT) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - -void WKT::SharedDtor() { - if (this != internal_default_instance()) delete struct__; -} - -void WKT::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WKT& WKT::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_WKT_proxy_5fwasm_5fintrinsics_2eproto.base); - return *internal_default_instance(); -} - - -void WKT::Clear() { +inline void WKT::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.struct__; + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +WKT::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(WKT, _impl_._cached_size_), + false, + }, + &WKT::MergeImpl, + &WKT::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void WKT::Clear() { // @@protoc_insertion_point(message_clear_start:WKT) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaNoVirtual() == nullptr && struct__ != nullptr) { - delete struct__; - } - struct__ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WKT::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .google.protobuf.Struct struct = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_struct_(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool WKT::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:WKT) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .google.protobuf.Struct struct = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_struct_())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.struct__ != nullptr); + _impl_.struct__->Clear(); } -success: - // @@protoc_insertion_point(parse_success:WKT) - return true; -failure: - // @@protoc_insertion_point(parse_failure:WKT) - return false; -#undef DO_ + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void WKT::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:WKT) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; +const char* WKT::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} - // .google.protobuf.Struct struct = 1; - if (this->has_struct_()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::struct_(this), output); - } - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:WKT) -} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> WKT::_table_ = { + { + PROTOBUF_FIELD_OFFSET(WKT, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_WKT_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::WKT>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .google.protobuf.Struct struct = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(WKT, _impl_.struct__)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .google.protobuf.Struct struct = 1; + {PROTOBUF_FIELD_OFFSET(WKT, _impl_.struct__), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, + }}, {{ + }}, +}; -::PROTOBUF_NAMESPACE_ID::uint8* WKT::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::uint8_t* WKT::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:WKT) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct struct = 1; - if (this->has_struct_()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::struct_(this), target); + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *_impl_.struct__, _impl_.struct__->GetCachedSize(), target, stream); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:WKT) return target; } -size_t WKT::ByteSizeLong() const { +::size_t WKT::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:WKT) - size_t total_size = 0; + ::size_t total_size = 0; - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .google.protobuf.Struct struct = 1; - if (this->has_struct_()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *struct__); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.struct__); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void WKT::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:WKT) - GOOGLE_DCHECK_NE(&from, this); - const WKT* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:WKT) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:WKT) - MergeFrom(*source); - } -} -void WKT::MergeFrom(const WKT& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:WKT) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void WKT::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:WKT) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.has_struct_()) { - mutable_struct_()->PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from.struct_()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.struct__ != nullptr); + if (_this->_impl_.struct__ == nullptr) { + _this->_impl_.struct__ = + ::google::protobuf::Message::CopyConstruct<::google::protobuf::Struct>(arena, *from._impl_.struct__); + } else { + _this->_impl_.struct__->MergeFrom(*from._impl_.struct__); + } } -} - -void WKT::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:WKT) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void WKT::CopyFrom(const WKT& from) { @@ -847,417 +884,308 @@ void WKT::CopyFrom(const WKT& from) { MergeFrom(from); } -bool WKT::IsInitialized() const { +PROTOBUF_NOINLINE bool WKT::IsInitialized() const { return true; } -void WKT::InternalSwap(WKT* other) { +void WKT::InternalSwap(WKT* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(struct__, other->struct__); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.struct__, other->_impl_.struct__); } -::PROTOBUF_NAMESPACE_ID::Metadata WKT::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata WKT::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, + &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, + file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[0]); } - - // =================================================================== -void DataSource::InitAsDefaultInstance() { - ::_DataSource_default_instance_.filename_.UnsafeSetDefault( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::_DataSource_default_instance_.inline_bytes_.UnsafeSetDefault( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::_DataSource_default_instance_.inline_string_.UnsafeSetDefault( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} class DataSource::_Internal { public: + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::DataSource, _impl_._oneof_case_); }; -DataSource::DataSource() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:DataSource) -} -DataSource::DataSource(const DataSource& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_specifier(); - switch (from.specifier_case()) { - case kFilename: { - set_filename(from.filename()); - break; - } - case kInlineBytes: { - set_inline_bytes(from.inline_bytes()); - break; - } - case kInlineString: { - set_inline_string(from.inline_string()); - break; - } - case SPECIFIER_NOT_SET: { +DataSource::DataSource(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:DataSource) +} +inline PROTOBUF_NDEBUG_INLINE DataSource::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : specifier_{}, + _cached_size_{0}, + _oneof_case_{from._oneof_case_[0]} {} + +DataSource::DataSource( + ::google::protobuf::Arena* arena, + const DataSource& from) + : ::google::protobuf::Message(arena) { + DataSource* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + switch (specifier_case()) { + case SPECIFIER_NOT_SET: break; - } + case kFilename: + new (&_impl_.specifier_.filename_) decltype(_impl_.specifier_.filename_){arena, from._impl_.specifier_.filename_}; + break; + case kInlineBytes: + new (&_impl_.specifier_.inline_bytes_) decltype(_impl_.specifier_.inline_bytes_){arena, from._impl_.specifier_.inline_bytes_}; + break; + case kInlineString: + new (&_impl_.specifier_.inline_string_) decltype(_impl_.specifier_.inline_string_){arena, from._impl_.specifier_.inline_string_}; + break; } + // @@protoc_insertion_point(copy_constructor:DataSource) } +inline PROTOBUF_NDEBUG_INLINE DataSource::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : specifier_{}, + _cached_size_{0}, + _oneof_case_{} {} -void DataSource::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DataSource_proxy_5fwasm_5fintrinsics_2eproto.base); - clear_has_specifier(); +inline void DataSource::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - DataSource::~DataSource() { // @@protoc_insertion_point(destructor:DataSource) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - -void DataSource::SharedDtor() { +inline void DataSource::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); if (has_specifier()) { clear_specifier(); } + _impl_.~Impl_(); } -void DataSource::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DataSource& DataSource::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DataSource_proxy_5fwasm_5fintrinsics_2eproto.base); - return *internal_default_instance(); -} - - void DataSource::clear_specifier() { // @@protoc_insertion_point(one_of_clear_start:DataSource) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (specifier_case()) { case kFilename: { - specifier_.filename_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.filename_.Destroy(); break; } case kInlineBytes: { - specifier_.inline_bytes_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.inline_bytes_.Destroy(); break; } case kInlineString: { - specifier_.inline_string_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.inline_string_.Destroy(); break; } case SPECIFIER_NOT_SET: { break; } } - _oneof_case_[0] = SPECIFIER_NOT_SET; + _impl_._oneof_case_[0] = SPECIFIER_NOT_SET; } -void DataSource::Clear() { +const ::google::protobuf::MessageLite::ClassData* +DataSource::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(DataSource, _impl_._cached_size_), + false, + }, + &DataSource::MergeImpl, + &DataSource::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void DataSource::Clear() { // @@protoc_insertion_point(message_clear_start:DataSource) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; clear_specifier(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DataSource::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string filename = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_filename(), ptr, ctx, "DataSource.filename"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bytes inline_bytes = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_inline_bytes(), ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string inline_string = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_inline_string(), ptr, ctx, "DataSource.inline_string"); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DataSource::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:DataSource) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string filename = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_filename())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->filename().data(), static_cast(this->filename().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "DataSource.filename")); - } else { - goto handle_unusual; - } - break; - } - - // bytes inline_bytes = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( - input, this->mutable_inline_bytes())); - } else { - goto handle_unusual; - } - break; - } - - // string inline_string = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_inline_string())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->inline_string().data(), static_cast(this->inline_string().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "DataSource.inline_string")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:DataSource) - return true; -failure: - // @@protoc_insertion_point(parse_failure:DataSource) - return false; -#undef DO_ + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DataSource::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:DataSource) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string filename = 1; - if (has_filename()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->filename().data(), static_cast(this->filename().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "DataSource.filename"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->filename(), output); - } - // bytes inline_bytes = 2; - if (has_inline_bytes()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased( - 2, this->inline_bytes(), output); - } +const char* DataSource::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} - // string inline_string = 3; - if (has_inline_string()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->inline_string().data(), static_cast(this->inline_string().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "DataSource.inline_string"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->inline_string(), output); - } - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:DataSource) -} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 3, 0, 40, 2> DataSource::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 3, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_DataSource_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::DataSource>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // string filename = 1; + {PROTOBUF_FIELD_OFFSET(DataSource, _impl_.specifier_.filename_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // bytes inline_bytes = 2; + {PROTOBUF_FIELD_OFFSET(DataSource, _impl_.specifier_.inline_bytes_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)}, + // string inline_string = 3; + {PROTOBUF_FIELD_OFFSET(DataSource, _impl_.specifier_.inline_string_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\12\10\0\15\0\0\0\0" + "DataSource" + "filename" + "inline_string" + }}, +}; -::PROTOBUF_NAMESPACE_ID::uint8* DataSource::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::uint8_t* DataSource::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:DataSource) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string filename = 1; - if (has_filename()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->filename().data(), static_cast(this->filename().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "DataSource.filename"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->filename(), target); - } + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - // bytes inline_bytes = 2; - if (has_inline_bytes()) { - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray( - 2, this->inline_bytes(), target); + switch (specifier_case()) { + case kFilename: { + const std::string& _s = this->_internal_filename(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "DataSource.filename"); + target = stream->WriteStringMaybeAliased(1, _s, target); + break; + } + case kInlineBytes: { + const std::string& _s = this->_internal_inline_bytes(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + break; + } + case kInlineString: { + const std::string& _s = this->_internal_inline_string(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "DataSource.inline_string"); + target = stream->WriteStringMaybeAliased(3, _s, target); + break; + } + default: + break; } - - // string inline_string = 3; - if (has_inline_string()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->inline_string().data(), static_cast(this->inline_string().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "DataSource.inline_string"); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 3, this->inline_string(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:DataSource) return target; } -size_t DataSource::ByteSizeLong() const { +::size_t DataSource::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:DataSource) - size_t total_size = 0; + ::size_t total_size = 0; - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; switch (specifier_case()) { // string filename = 1; case kFilename: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->filename()); + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_filename()); break; } // bytes inline_bytes = 2; case kInlineBytes: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->inline_bytes()); + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->_internal_inline_bytes()); break; } // string inline_string = 3; case kInlineString: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->inline_string()); + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_inline_string()); break; } case SPECIFIER_NOT_SET: { break; } } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void DataSource::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:DataSource) - GOOGLE_DCHECK_NE(&from, this); - const DataSource* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:DataSource) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:DataSource) - MergeFrom(*source); - } -} -void DataSource::MergeFrom(const DataSource& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:DataSource) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void DataSource::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:DataSource) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - switch (from.specifier_case()) { - case kFilename: { - set_filename(from.filename()); - break; - } - case kInlineBytes: { - set_inline_bytes(from.inline_bytes()); - break; - } - case kInlineString: { - set_inline_string(from.inline_string()); - break; - } - case SPECIFIER_NOT_SET: { - break; + if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { + const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; + const bool oneof_needs_init = oneof_to_case != oneof_from_case; + if (oneof_needs_init) { + if (oneof_to_case != 0) { + _this->clear_specifier(); + } + _this->_impl_._oneof_case_[0] = oneof_from_case; } - } -} - -void DataSource::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:DataSource) - if (&from == this) return; - Clear(); - MergeFrom(from); -} + + switch (oneof_from_case) { + case kFilename: { + if (oneof_needs_init) { + _this->_impl_.specifier_.filename_.InitDefault(); + } + _this->_impl_.specifier_.filename_.Set(from._internal_filename(), arena); + break; + } + case kInlineBytes: { + if (oneof_needs_init) { + _this->_impl_.specifier_.inline_bytes_.InitDefault(); + } + _this->_impl_.specifier_.inline_bytes_.Set(from._internal_inline_bytes(), arena); + break; + } + case kInlineString: { + if (oneof_needs_init) { + _this->_impl_.specifier_.inline_string_.InitDefault(); + } + _this->_impl_.specifier_.inline_string_.Set(from._internal_inline_string(), arena); + break; + } + case SPECIFIER_NOT_SET: + break; + } + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} void DataSource::CopyFrom(const DataSource& from) { // @@protoc_insertion_point(class_specific_copy_from_start:DataSource) @@ -1266,266 +1194,193 @@ void DataSource::CopyFrom(const DataSource& from) { MergeFrom(from); } -bool DataSource::IsInitialized() const { +PROTOBUF_NOINLINE bool DataSource::IsInitialized() const { return true; } -void DataSource::InternalSwap(DataSource* other) { +void DataSource::InternalSwap(DataSource* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(specifier_, other->specifier_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.specifier_, other->_impl_.specifier_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } -::PROTOBUF_NAMESPACE_ID::Metadata DataSource::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata DataSource::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, + &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, + file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[1]); } - - // =================================================================== -void GrpcService_EnvoyGrpc::InitAsDefaultInstance() { -} class GrpcService_EnvoyGrpc::_Internal { public: }; -GrpcService_EnvoyGrpc::GrpcService_EnvoyGrpc() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.EnvoyGrpc) -} -GrpcService_EnvoyGrpc::GrpcService_EnvoyGrpc(const GrpcService_EnvoyGrpc& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - cluster_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.cluster_name().empty()) { - cluster_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.cluster_name_); - } +GrpcService_EnvoyGrpc::GrpcService_EnvoyGrpc(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService.EnvoyGrpc) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService_EnvoyGrpc::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : cluster_name_(arena, from.cluster_name_), + _cached_size_{0} {} + +GrpcService_EnvoyGrpc::GrpcService_EnvoyGrpc( + ::google::protobuf::Arena* arena, + const GrpcService_EnvoyGrpc& from) + : ::google::protobuf::Message(arena) { + GrpcService_EnvoyGrpc* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + // @@protoc_insertion_point(copy_constructor:GrpcService.EnvoyGrpc) } +inline PROTOBUF_NDEBUG_INLINE GrpcService_EnvoyGrpc::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : cluster_name_(arena), + _cached_size_{0} {} -void GrpcService_EnvoyGrpc::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_EnvoyGrpc_proxy_5fwasm_5fintrinsics_2eproto.base); - cluster_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void GrpcService_EnvoyGrpc::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - GrpcService_EnvoyGrpc::~GrpcService_EnvoyGrpc() { // @@protoc_insertion_point(destructor:GrpcService.EnvoyGrpc) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - -void GrpcService_EnvoyGrpc::SharedDtor() { - cluster_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void GrpcService_EnvoyGrpc::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_EnvoyGrpc& GrpcService_EnvoyGrpc::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_EnvoyGrpc_proxy_5fwasm_5fintrinsics_2eproto.base); - return *internal_default_instance(); -} - - -void GrpcService_EnvoyGrpc::Clear() { +inline void GrpcService_EnvoyGrpc::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.cluster_name_.Destroy(); + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +GrpcService_EnvoyGrpc::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService_EnvoyGrpc, _impl_._cached_size_), + false, + }, + &GrpcService_EnvoyGrpc::MergeImpl, + &GrpcService_EnvoyGrpc::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void GrpcService_EnvoyGrpc::Clear() { // @@protoc_insertion_point(message_clear_start:GrpcService.EnvoyGrpc) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cluster_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_EnvoyGrpc::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string cluster_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_cluster_name(), ptr, ctx, "GrpcService.EnvoyGrpc.cluster_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_EnvoyGrpc::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:GrpcService.EnvoyGrpc) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string cluster_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_cluster_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->cluster_name().data(), static_cast(this->cluster_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.EnvoyGrpc.cluster_name")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.EnvoyGrpc) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.EnvoyGrpc) - return false; -#undef DO_ + _impl_.cluster_name_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void GrpcService_EnvoyGrpc::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.EnvoyGrpc) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; +const char* GrpcService_EnvoyGrpc::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} - // string cluster_name = 1; - if (this->cluster_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->cluster_name().data(), static_cast(this->cluster_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.EnvoyGrpc.cluster_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->cluster_name(), output); - } - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:GrpcService.EnvoyGrpc) -} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 42, 2> GrpcService_EnvoyGrpc::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GrpcService_EnvoyGrpc_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService_EnvoyGrpc>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string cluster_name = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_EnvoyGrpc, _impl_.cluster_name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string cluster_name = 1; + {PROTOBUF_FIELD_OFFSET(GrpcService_EnvoyGrpc, _impl_.cluster_name_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\25\14\0\0\0\0\0\0" + "GrpcService.EnvoyGrpc" + "cluster_name" + }}, +}; -::PROTOBUF_NAMESPACE_ID::uint8* GrpcService_EnvoyGrpc::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::uint8_t* GrpcService_EnvoyGrpc::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:GrpcService.EnvoyGrpc) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; // string cluster_name = 1; - if (this->cluster_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->cluster_name().data(), static_cast(this->cluster_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.EnvoyGrpc.cluster_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->cluster_name(), target); + if (!this->_internal_cluster_name().empty()) { + const std::string& _s = this->_internal_cluster_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.EnvoyGrpc.cluster_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:GrpcService.EnvoyGrpc) return target; } -size_t GrpcService_EnvoyGrpc::ByteSizeLong() const { +::size_t GrpcService_EnvoyGrpc::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GrpcService.EnvoyGrpc) - size_t total_size = 0; + ::size_t total_size = 0; - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string cluster_name = 1; - if (this->cluster_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->cluster_name()); + if (!this->_internal_cluster_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_cluster_name()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void GrpcService_EnvoyGrpc::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:GrpcService.EnvoyGrpc) - GOOGLE_DCHECK_NE(&from, this); - const GrpcService_EnvoyGrpc* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:GrpcService.EnvoyGrpc) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:GrpcService.EnvoyGrpc) - MergeFrom(*source); - } -} -void GrpcService_EnvoyGrpc::MergeFrom(const GrpcService_EnvoyGrpc& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.EnvoyGrpc) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void GrpcService_EnvoyGrpc::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.EnvoyGrpc) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.cluster_name().size() > 0) { - - cluster_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.cluster_name_); + if (!from._internal_cluster_name().empty()) { + _this->_internal_set_cluster_name(from._internal_cluster_name()); } -} - -void GrpcService_EnvoyGrpc::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:GrpcService.EnvoyGrpc) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GrpcService_EnvoyGrpc::CopyFrom(const GrpcService_EnvoyGrpc& from) { @@ -1535,382 +1390,296 @@ void GrpcService_EnvoyGrpc::CopyFrom(const GrpcService_EnvoyGrpc& from) { MergeFrom(from); } -bool GrpcService_EnvoyGrpc::IsInitialized() const { +PROTOBUF_NOINLINE bool GrpcService_EnvoyGrpc::IsInitialized() const { return true; } -void GrpcService_EnvoyGrpc::InternalSwap(GrpcService_EnvoyGrpc* other) { +void GrpcService_EnvoyGrpc::InternalSwap(GrpcService_EnvoyGrpc* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - cluster_name_.Swap(&other->cluster_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cluster_name_, &other->_impl_.cluster_name_, arena); } -::PROTOBUF_NAMESPACE_ID::Metadata GrpcService_EnvoyGrpc::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata GrpcService_EnvoyGrpc::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, + &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, + file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[2]); } - - // =================================================================== -void GrpcService_GoogleGrpc_SslCredentials::InitAsDefaultInstance() { - ::_GrpcService_GoogleGrpc_SslCredentials_default_instance_._instance.get_mutable()->root_certs_ = const_cast< ::DataSource*>( - ::DataSource::internal_default_instance()); - ::_GrpcService_GoogleGrpc_SslCredentials_default_instance_._instance.get_mutable()->private_key_ = const_cast< ::DataSource*>( - ::DataSource::internal_default_instance()); - ::_GrpcService_GoogleGrpc_SslCredentials_default_instance_._instance.get_mutable()->cert_chain_ = const_cast< ::DataSource*>( - ::DataSource::internal_default_instance()); -} class GrpcService_GoogleGrpc_SslCredentials::_Internal { public: - static const ::DataSource& root_certs(const GrpcService_GoogleGrpc_SslCredentials* msg); - static const ::DataSource& private_key(const GrpcService_GoogleGrpc_SslCredentials* msg); - static const ::DataSource& cert_chain(const GrpcService_GoogleGrpc_SslCredentials* msg); + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_._has_bits_); }; -const ::DataSource& -GrpcService_GoogleGrpc_SslCredentials::_Internal::root_certs(const GrpcService_GoogleGrpc_SslCredentials* msg) { - return *msg->root_certs_; -} -const ::DataSource& -GrpcService_GoogleGrpc_SslCredentials::_Internal::private_key(const GrpcService_GoogleGrpc_SslCredentials* msg) { - return *msg->private_key_; -} -const ::DataSource& -GrpcService_GoogleGrpc_SslCredentials::_Internal::cert_chain(const GrpcService_GoogleGrpc_SslCredentials* msg) { - return *msg->cert_chain_; -} -GrpcService_GoogleGrpc_SslCredentials::GrpcService_GoogleGrpc_SslCredentials() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.GoogleGrpc.SslCredentials) -} -GrpcService_GoogleGrpc_SslCredentials::GrpcService_GoogleGrpc_SslCredentials(const GrpcService_GoogleGrpc_SslCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_root_certs()) { - root_certs_ = new ::DataSource(*from.root_certs_); - } else { - root_certs_ = nullptr; - } - if (from.has_private_key()) { - private_key_ = new ::DataSource(*from.private_key_); - } else { - private_key_ = nullptr; - } - if (from.has_cert_chain()) { - cert_chain_ = new ::DataSource(*from.cert_chain_); - } else { - cert_chain_ = nullptr; - } +GrpcService_GoogleGrpc_SslCredentials::GrpcService_GoogleGrpc_SslCredentials(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.SslCredentials) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_SslCredentials::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +GrpcService_GoogleGrpc_SslCredentials::GrpcService_GoogleGrpc_SslCredentials( + ::google::protobuf::Arena* arena, + const GrpcService_GoogleGrpc_SslCredentials& from) + : ::google::protobuf::Message(arena) { + GrpcService_GoogleGrpc_SslCredentials* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.root_certs_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::DataSource>( + arena, *from._impl_.root_certs_) + : nullptr; + _impl_.private_key_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::DataSource>( + arena, *from._impl_.private_key_) + : nullptr; + _impl_.cert_chain_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::DataSource>( + arena, *from._impl_.cert_chain_) + : nullptr; + // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.SslCredentials) } +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_SslCredentials::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} -void GrpcService_GoogleGrpc_SslCredentials::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_GoogleGrpc_SslCredentials_proxy_5fwasm_5fintrinsics_2eproto.base); - ::memset(&root_certs_, 0, static_cast( - reinterpret_cast(&cert_chain_) - - reinterpret_cast(&root_certs_)) + sizeof(cert_chain_)); +inline void GrpcService_GoogleGrpc_SslCredentials::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, root_certs_), + 0, + offsetof(Impl_, cert_chain_) - + offsetof(Impl_, root_certs_) + + sizeof(Impl_::cert_chain_)); } - GrpcService_GoogleGrpc_SslCredentials::~GrpcService_GoogleGrpc_SslCredentials() { // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.SslCredentials) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - -void GrpcService_GoogleGrpc_SslCredentials::SharedDtor() { - if (this != internal_default_instance()) delete root_certs_; - if (this != internal_default_instance()) delete private_key_; - if (this != internal_default_instance()) delete cert_chain_; -} - -void GrpcService_GoogleGrpc_SslCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_GoogleGrpc_SslCredentials& GrpcService_GoogleGrpc_SslCredentials::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_GoogleGrpc_SslCredentials_proxy_5fwasm_5fintrinsics_2eproto.base); - return *internal_default_instance(); -} - - -void GrpcService_GoogleGrpc_SslCredentials::Clear() { +inline void GrpcService_GoogleGrpc_SslCredentials::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.root_certs_; + delete _impl_.private_key_; + delete _impl_.cert_chain_; + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +GrpcService_GoogleGrpc_SslCredentials::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_._cached_size_), + false, + }, + &GrpcService_GoogleGrpc_SslCredentials::MergeImpl, + &GrpcService_GoogleGrpc_SslCredentials::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_SslCredentials::Clear() { // @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.SslCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaNoVirtual() == nullptr && root_certs_ != nullptr) { - delete root_certs_; - } - root_certs_ = nullptr; - if (GetArenaNoVirtual() == nullptr && private_key_ != nullptr) { - delete private_key_; - } - private_key_ = nullptr; - if (GetArenaNoVirtual() == nullptr && cert_chain_ != nullptr) { - delete cert_chain_; - } - cert_chain_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_GoogleGrpc_SslCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .DataSource root_certs = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_root_certs(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .DataSource private_key = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(mutable_private_key(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .DataSource cert_chain = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ctx->ParseMessage(mutable_cert_chain(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_GoogleGrpc_SslCredentials::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:GrpcService.GoogleGrpc.SslCredentials) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .DataSource root_certs = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_root_certs())); - } else { - goto handle_unusual; - } - break; - } - - // .DataSource private_key = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_private_key())); - } else { - goto handle_unusual; - } - break; - } - - // .DataSource cert_chain = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_cert_chain())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.root_certs_ != nullptr); + _impl_.root_certs_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.private_key_ != nullptr); + _impl_.private_key_->Clear(); + } + if (cached_has_bits & 0x00000004u) { + ABSL_DCHECK(_impl_.cert_chain_ != nullptr); + _impl_.cert_chain_->Clear(); } } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc.SslCredentials) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.GoogleGrpc.SslCredentials) - return false; -#undef DO_ + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GrpcService_GoogleGrpc_SslCredentials::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.GoogleGrpc.SslCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .DataSource root_certs = 1; - if (this->has_root_certs()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::root_certs(this), output); - } - // .DataSource private_key = 2; - if (this->has_private_key()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, _Internal::private_key(this), output); - } +const char* GrpcService_GoogleGrpc_SslCredentials::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} - // .DataSource cert_chain = 3; - if (this->has_cert_chain()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, _Internal::cert_chain(this), output); - } - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.SslCredentials) -} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 3, 0, 2> GrpcService_GoogleGrpc_SslCredentials::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_GrpcService_GoogleGrpc_SslCredentials_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_SslCredentials>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // .DataSource root_certs = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.root_certs_)}}, + // .DataSource private_key = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 1, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.private_key_)}}, + // .DataSource cert_chain = 3; + {::_pbi::TcParser::FastMtS1, + {26, 2, 2, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.cert_chain_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .DataSource root_certs = 1; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.root_certs_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .DataSource private_key = 2; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.private_key_), _Internal::kHasBitsOffset + 1, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .DataSource cert_chain = 3; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.cert_chain_), _Internal::kHasBitsOffset + 2, 2, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::DataSource>()}, + {::_pbi::TcParser::GetTable<::DataSource>()}, + {::_pbi::TcParser::GetTable<::DataSource>()}, + }}, {{ + }}, +}; -::PROTOBUF_NAMESPACE_ID::uint8* GrpcService_GoogleGrpc_SslCredentials::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::uint8_t* GrpcService_GoogleGrpc_SslCredentials::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.SslCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .DataSource root_certs = 1; - if (this->has_root_certs()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::root_certs(this), target); + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *_impl_.root_certs_, _impl_.root_certs_->GetCachedSize(), target, stream); } // .DataSource private_key = 2; - if (this->has_private_key()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, _Internal::private_key(this), target); + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *_impl_.private_key_, _impl_.private_key_->GetCachedSize(), target, stream); } // .DataSource cert_chain = 3; - if (this->has_cert_chain()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, _Internal::cert_chain(this), target); + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *_impl_.cert_chain_, _impl_.cert_chain_->GetCachedSize(), target, stream); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.SslCredentials) return target; } -size_t GrpcService_GoogleGrpc_SslCredentials::ByteSizeLong() const { +::size_t GrpcService_GoogleGrpc_SslCredentials::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.SslCredentials) - size_t total_size = 0; + ::size_t total_size = 0; - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .DataSource root_certs = 1; - if (this->has_root_certs()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *root_certs_); - } - - // .DataSource private_key = 2; - if (this->has_private_key()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *private_key_); - } + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + // .DataSource root_certs = 1; + if (cached_has_bits & 0x00000001u) { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.root_certs_); + } - // .DataSource cert_chain = 3; - if (this->has_cert_chain()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *cert_chain_); - } + // .DataSource private_key = 2; + if (cached_has_bits & 0x00000002u) { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.private_key_); + } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} + // .DataSource cert_chain = 3; + if (cached_has_bits & 0x00000004u) { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.cert_chain_); + } -void GrpcService_GoogleGrpc_SslCredentials::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:GrpcService.GoogleGrpc.SslCredentials) - GOOGLE_DCHECK_NE(&from, this); - const GrpcService_GoogleGrpc_SslCredentials* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:GrpcService.GoogleGrpc.SslCredentials) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:GrpcService.GoogleGrpc.SslCredentials) - MergeFrom(*source); } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void GrpcService_GoogleGrpc_SslCredentials::MergeFrom(const GrpcService_GoogleGrpc_SslCredentials& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.SslCredentials) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void GrpcService_GoogleGrpc_SslCredentials::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.SslCredentials) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.has_root_certs()) { - mutable_root_certs()->::DataSource::MergeFrom(from.root_certs()); - } - if (from.has_private_key()) { - mutable_private_key()->::DataSource::MergeFrom(from.private_key()); - } - if (from.has_cert_chain()) { - mutable_cert_chain()->::DataSource::MergeFrom(from.cert_chain()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.root_certs_ != nullptr); + if (_this->_impl_.root_certs_ == nullptr) { + _this->_impl_.root_certs_ = + ::google::protobuf::Message::CopyConstruct<::DataSource>(arena, *from._impl_.root_certs_); + } else { + _this->_impl_.root_certs_->MergeFrom(*from._impl_.root_certs_); + } + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(from._impl_.private_key_ != nullptr); + if (_this->_impl_.private_key_ == nullptr) { + _this->_impl_.private_key_ = + ::google::protobuf::Message::CopyConstruct<::DataSource>(arena, *from._impl_.private_key_); + } else { + _this->_impl_.private_key_->MergeFrom(*from._impl_.private_key_); + } + } + if (cached_has_bits & 0x00000004u) { + ABSL_DCHECK(from._impl_.cert_chain_ != nullptr); + if (_this->_impl_.cert_chain_ == nullptr) { + _this->_impl_.cert_chain_ = + ::google::protobuf::Message::CopyConstruct<::DataSource>(arena, *from._impl_.cert_chain_); + } else { + _this->_impl_.cert_chain_->MergeFrom(*from._impl_.cert_chain_); + } + } } -} - -void GrpcService_GoogleGrpc_SslCredentials::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:GrpcService.GoogleGrpc.SslCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GrpcService_GoogleGrpc_SslCredentials::CopyFrom(const GrpcService_GoogleGrpc_SslCredentials& from) { @@ -1920,657 +1689,401 @@ void GrpcService_GoogleGrpc_SslCredentials::CopyFrom(const GrpcService_GoogleGrp MergeFrom(from); } -bool GrpcService_GoogleGrpc_SslCredentials::IsInitialized() const { +PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_SslCredentials::IsInitialized() const { return true; } -void GrpcService_GoogleGrpc_SslCredentials::InternalSwap(GrpcService_GoogleGrpc_SslCredentials* other) { +void GrpcService_GoogleGrpc_SslCredentials::InternalSwap(GrpcService_GoogleGrpc_SslCredentials* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(root_certs_, other->root_certs_); - swap(private_key_, other->private_key_); - swap(cert_chain_, other->cert_chain_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.cert_chain_) + + sizeof(GrpcService_GoogleGrpc_SslCredentials::_impl_.cert_chain_) + - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.root_certs_)>( + reinterpret_cast(&_impl_.root_certs_), + reinterpret_cast(&other->_impl_.root_certs_)); } -::PROTOBUF_NAMESPACE_ID::Metadata GrpcService_GoogleGrpc_SslCredentials::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata GrpcService_GoogleGrpc_SslCredentials::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, + &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, + file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[3]); } - - // =================================================================== -void GrpcService_GoogleGrpc_GoogleLocalCredentials::InitAsDefaultInstance() { -} class GrpcService_GoogleGrpc_GoogleLocalCredentials::_Internal { public: }; -GrpcService_GoogleGrpc_GoogleLocalCredentials::GrpcService_GoogleGrpc_GoogleLocalCredentials() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.GoogleGrpc.GoogleLocalCredentials) -} -GrpcService_GoogleGrpc_GoogleLocalCredentials::GrpcService_GoogleGrpc_GoogleLocalCredentials(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.GoogleLocalCredentials) -} - -void GrpcService_GoogleGrpc_GoogleLocalCredentials::SharedCtor() { -} - -GrpcService_GoogleGrpc_GoogleLocalCredentials::~GrpcService_GoogleGrpc_GoogleLocalCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.GoogleLocalCredentials) - SharedDtor(); -} - -void GrpcService_GoogleGrpc_GoogleLocalCredentials::SharedDtor() { +GrpcService_GoogleGrpc_GoogleLocalCredentials::GrpcService_GoogleGrpc_GoogleLocalCredentials(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { + // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.GoogleLocalCredentials) } +GrpcService_GoogleGrpc_GoogleLocalCredentials::GrpcService_GoogleGrpc_GoogleLocalCredentials( + ::google::protobuf::Arena* arena, + const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { + GrpcService_GoogleGrpc_GoogleLocalCredentials* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); -void GrpcService_GoogleGrpc_GoogleLocalCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_GoogleGrpc_GoogleLocalCredentials& GrpcService_GoogleGrpc_GoogleLocalCredentials::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_GoogleGrpc_GoogleLocalCredentials_proxy_5fwasm_5fintrinsics_2eproto.base); - return *internal_default_instance(); -} - - -void GrpcService_GoogleGrpc_GoogleLocalCredentials::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.GoogleLocalCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_GoogleGrpc_GoogleLocalCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - default: { - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_GoogleGrpc_GoogleLocalCredentials::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:GrpcService.GoogleGrpc.GoogleLocalCredentials) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc.GoogleLocalCredentials) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.GoogleGrpc.GoogleLocalCredentials) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GrpcService_GoogleGrpc_GoogleLocalCredentials::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.GoogleGrpc.GoogleLocalCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.GoogleLocalCredentials) -} - -::PROTOBUF_NAMESPACE_ID::uint8* GrpcService_GoogleGrpc_GoogleLocalCredentials::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.GoogleLocalCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.GoogleLocalCredentials) - return target; + // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.GoogleLocalCredentials) } -size_t GrpcService_GoogleGrpc_GoogleLocalCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.GoogleLocalCredentials) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} -void GrpcService_GoogleGrpc_GoogleLocalCredentials::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:GrpcService.GoogleGrpc.GoogleLocalCredentials) - GOOGLE_DCHECK_NE(&from, this); - const GrpcService_GoogleGrpc_GoogleLocalCredentials* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:GrpcService.GoogleGrpc.GoogleLocalCredentials) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:GrpcService.GoogleGrpc.GoogleLocalCredentials) - MergeFrom(*source); - } -} -void GrpcService_GoogleGrpc_GoogleLocalCredentials::MergeFrom(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.GoogleLocalCredentials) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; -} -void GrpcService_GoogleGrpc_GoogleLocalCredentials::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:GrpcService.GoogleGrpc.GoogleLocalCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} -void GrpcService_GoogleGrpc_GoogleLocalCredentials::CopyFrom(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.GoogleLocalCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} -bool GrpcService_GoogleGrpc_GoogleLocalCredentials::IsInitialized() const { - return true; -} -void GrpcService_GoogleGrpc_GoogleLocalCredentials::InternalSwap(GrpcService_GoogleGrpc_GoogleLocalCredentials* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} -::PROTOBUF_NAMESPACE_ID::Metadata GrpcService_GoogleGrpc_GoogleLocalCredentials::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata GrpcService_GoogleGrpc_GoogleLocalCredentials::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, + &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, + file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[4]); } - - // =================================================================== -void GrpcService_GoogleGrpc_ChannelCredentials::InitAsDefaultInstance() { - ::_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_.ssl_credentials_ = const_cast< ::GrpcService_GoogleGrpc_SslCredentials*>( - ::GrpcService_GoogleGrpc_SslCredentials::internal_default_instance()); - ::_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_.google_default_ = const_cast< PROTOBUF_NAMESPACE_ID::Empty*>( - PROTOBUF_NAMESPACE_ID::Empty::internal_default_instance()); - ::_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_.local_credentials_ = const_cast< ::GrpcService_GoogleGrpc_GoogleLocalCredentials*>( - ::GrpcService_GoogleGrpc_GoogleLocalCredentials::internal_default_instance()); -} class GrpcService_GoogleGrpc_ChannelCredentials::_Internal { public: - static const ::GrpcService_GoogleGrpc_SslCredentials& ssl_credentials(const GrpcService_GoogleGrpc_ChannelCredentials* msg); - static const PROTOBUF_NAMESPACE_ID::Empty& google_default(const GrpcService_GoogleGrpc_ChannelCredentials* msg); - static const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& local_credentials(const GrpcService_GoogleGrpc_ChannelCredentials* msg); + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_ChannelCredentials, _impl_._oneof_case_); }; -const ::GrpcService_GoogleGrpc_SslCredentials& -GrpcService_GoogleGrpc_ChannelCredentials::_Internal::ssl_credentials(const GrpcService_GoogleGrpc_ChannelCredentials* msg) { - return *msg->credential_specifier_.ssl_credentials_; -} -const PROTOBUF_NAMESPACE_ID::Empty& -GrpcService_GoogleGrpc_ChannelCredentials::_Internal::google_default(const GrpcService_GoogleGrpc_ChannelCredentials* msg) { - return *msg->credential_specifier_.google_default_; -} -const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& -GrpcService_GoogleGrpc_ChannelCredentials::_Internal::local_credentials(const GrpcService_GoogleGrpc_ChannelCredentials* msg) { - return *msg->credential_specifier_.local_credentials_; -} void GrpcService_GoogleGrpc_ChannelCredentials::set_allocated_ssl_credentials(::GrpcService_GoogleGrpc_SslCredentials* ssl_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_credential_specifier(); if (ssl_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = ssl_credentials->GetArena(); if (message_arena != submessage_arena) { - ssl_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, ssl_credentials, submessage_arena); + ssl_credentials = ::google::protobuf::internal::GetOwnedMessage(message_arena, ssl_credentials, submessage_arena); } set_has_ssl_credentials(); - credential_specifier_.ssl_credentials_ = ssl_credentials; + _impl_.credential_specifier_.ssl_credentials_ = ssl_credentials; } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) } -void GrpcService_GoogleGrpc_ChannelCredentials::set_allocated_google_default(PROTOBUF_NAMESPACE_ID::Empty* google_default) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); +void GrpcService_GoogleGrpc_ChannelCredentials::set_allocated_google_default(::google::protobuf::Empty* google_default) { + ::google::protobuf::Arena* message_arena = GetArena(); clear_credential_specifier(); if (google_default) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(google_default)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(google_default)->GetArena(); if (message_arena != submessage_arena) { - google_default = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, google_default, submessage_arena); + google_default = ::google::protobuf::internal::GetOwnedMessage(message_arena, google_default, submessage_arena); } set_has_google_default(); - credential_specifier_.google_default_ = google_default; + _impl_.credential_specifier_.google_default_ = google_default; } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.google_default) } void GrpcService_GoogleGrpc_ChannelCredentials::clear_google_default() { - if (has_google_default()) { - delete credential_specifier_.google_default_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() == kGoogleDefault) { + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.google_default_; + } clear_has_credential_specifier(); } } void GrpcService_GoogleGrpc_ChannelCredentials::set_allocated_local_credentials(::GrpcService_GoogleGrpc_GoogleLocalCredentials* local_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_credential_specifier(); if (local_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = local_credentials->GetArena(); if (message_arena != submessage_arena) { - local_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, local_credentials, submessage_arena); + local_credentials = ::google::protobuf::internal::GetOwnedMessage(message_arena, local_credentials, submessage_arena); } set_has_local_credentials(); - credential_specifier_.local_credentials_ = local_credentials; + _impl_.credential_specifier_.local_credentials_ = local_credentials; } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) } -GrpcService_GoogleGrpc_ChannelCredentials::GrpcService_GoogleGrpc_ChannelCredentials() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.GoogleGrpc.ChannelCredentials) -} -GrpcService_GoogleGrpc_ChannelCredentials::GrpcService_GoogleGrpc_ChannelCredentials(const GrpcService_GoogleGrpc_ChannelCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_credential_specifier(); - switch (from.credential_specifier_case()) { - case kSslCredentials: { - mutable_ssl_credentials()->::GrpcService_GoogleGrpc_SslCredentials::MergeFrom(from.ssl_credentials()); - break; - } - case kGoogleDefault: { - mutable_google_default()->PROTOBUF_NAMESPACE_ID::Empty::MergeFrom(from.google_default()); - break; - } - case kLocalCredentials: { - mutable_local_credentials()->::GrpcService_GoogleGrpc_GoogleLocalCredentials::MergeFrom(from.local_credentials()); - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { +GrpcService_GoogleGrpc_ChannelCredentials::GrpcService_GoogleGrpc_ChannelCredentials(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.ChannelCredentials) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_ChannelCredentials::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : credential_specifier_{}, + _cached_size_{0}, + _oneof_case_{from._oneof_case_[0]} {} + +GrpcService_GoogleGrpc_ChannelCredentials::GrpcService_GoogleGrpc_ChannelCredentials( + ::google::protobuf::Arena* arena, + const GrpcService_GoogleGrpc_ChannelCredentials& from) + : ::google::protobuf::Message(arena) { + GrpcService_GoogleGrpc_ChannelCredentials* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + switch (credential_specifier_case()) { + case CREDENTIAL_SPECIFIER_NOT_SET: break; - } + case kSslCredentials: + _impl_.credential_specifier_.ssl_credentials_ = ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_SslCredentials>(arena, *from._impl_.credential_specifier_.ssl_credentials_); + break; + case kGoogleDefault: + _impl_.credential_specifier_.google_default_ = ::google::protobuf::Message::CopyConstruct<::google::protobuf::Empty>(arena, *from._impl_.credential_specifier_.google_default_); + break; + case kLocalCredentials: + _impl_.credential_specifier_.local_credentials_ = ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_GoogleLocalCredentials>(arena, *from._impl_.credential_specifier_.local_credentials_); + break; } + // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.ChannelCredentials) } +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_ChannelCredentials::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : credential_specifier_{}, + _cached_size_{0}, + _oneof_case_{} {} -void GrpcService_GoogleGrpc_ChannelCredentials::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_GoogleGrpc_ChannelCredentials_proxy_5fwasm_5fintrinsics_2eproto.base); - clear_has_credential_specifier(); +inline void GrpcService_GoogleGrpc_ChannelCredentials::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - GrpcService_GoogleGrpc_ChannelCredentials::~GrpcService_GoogleGrpc_ChannelCredentials() { // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.ChannelCredentials) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - -void GrpcService_GoogleGrpc_ChannelCredentials::SharedDtor() { +inline void GrpcService_GoogleGrpc_ChannelCredentials::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); if (has_credential_specifier()) { clear_credential_specifier(); } + _impl_.~Impl_(); } -void GrpcService_GoogleGrpc_ChannelCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_GoogleGrpc_ChannelCredentials& GrpcService_GoogleGrpc_ChannelCredentials::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_GoogleGrpc_ChannelCredentials_proxy_5fwasm_5fintrinsics_2eproto.base); - return *internal_default_instance(); -} - - void GrpcService_GoogleGrpc_ChannelCredentials::clear_credential_specifier() { // @@protoc_insertion_point(one_of_clear_start:GrpcService.GoogleGrpc.ChannelCredentials) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (credential_specifier_case()) { case kSslCredentials: { - delete credential_specifier_.ssl_credentials_; + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.ssl_credentials_; + } break; } case kGoogleDefault: { - delete credential_specifier_.google_default_; + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.google_default_; + } break; } case kLocalCredentials: { - delete credential_specifier_.local_credentials_; + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.local_credentials_; + } break; } case CREDENTIAL_SPECIFIER_NOT_SET: { break; } } - _oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; + _impl_._oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; } -void GrpcService_GoogleGrpc_ChannelCredentials::Clear() { +const ::google::protobuf::MessageLite::ClassData* +GrpcService_GoogleGrpc_ChannelCredentials::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_ChannelCredentials, _impl_._cached_size_), + false, + }, + &GrpcService_GoogleGrpc_ChannelCredentials::MergeImpl, + &GrpcService_GoogleGrpc_ChannelCredentials::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_ChannelCredentials::Clear() { // @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.ChannelCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; clear_credential_specifier(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_GoogleGrpc_ChannelCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_ssl_credentials(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .google.protobuf.Empty google_default = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(mutable_google_default(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ctx->ParseMessage(mutable_local_credentials(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GrpcService_GoogleGrpc_ChannelCredentials::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_GoogleGrpc_ChannelCredentials::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:GrpcService.GoogleGrpc.ChannelCredentials) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_ssl_credentials())); - } else { - goto handle_unusual; - } - break; - } +} - // .google.protobuf.Empty google_default = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_google_default())); - } else { - goto handle_unusual; - } - break; - } - // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_local_credentials())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc.ChannelCredentials) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.GoogleGrpc.ChannelCredentials) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GrpcService_GoogleGrpc_ChannelCredentials::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.GoogleGrpc.ChannelCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; - if (has_ssl_credentials()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::ssl_credentials(this), output); - } - - // .google.protobuf.Empty google_default = 2; - if (has_google_default()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, _Internal::google_default(this), output); - } - - // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; - if (has_local_credentials()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, _Internal::local_credentials(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.ChannelCredentials) -} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 3, 3, 0, 2> GrpcService_GoogleGrpc_ChannelCredentials::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 3, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_ChannelCredentials>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_ChannelCredentials, _impl_.credential_specifier_.ssl_credentials_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .google.protobuf.Empty google_default = 2; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_ChannelCredentials, _impl_.credential_specifier_.google_default_), _Internal::kOneofCaseOffset + 0, 1, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvDefault)}, + // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_ChannelCredentials, _impl_.credential_specifier_.local_credentials_), _Internal::kOneofCaseOffset + 0, 2, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvDefault)}, + }}, {{ + {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_SslCredentials>()}, + {::_pbi::FieldAuxDefaultMessage{}, &::google::protobuf::_Empty_default_instance_}, + {::_pbi::FieldAuxDefaultMessage{}, &::_GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_}, + }}, {{ + }}, +}; -::PROTOBUF_NAMESPACE_ID::uint8* GrpcService_GoogleGrpc_ChannelCredentials::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::uint8_t* GrpcService_GoogleGrpc_ChannelCredentials::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.ChannelCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; - if (has_ssl_credentials()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::ssl_credentials(this), target); - } - - // .google.protobuf.Empty google_default = 2; - if (has_google_default()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, _Internal::google_default(this), target); - } + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; - if (has_local_credentials()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, _Internal::local_credentials(this), target); + switch (credential_specifier_case()) { + case kSslCredentials: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *_impl_.credential_specifier_.ssl_credentials_, _impl_.credential_specifier_.ssl_credentials_->GetCachedSize(), target, stream); + break; + } + case kGoogleDefault: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *_impl_.credential_specifier_.google_default_, _impl_.credential_specifier_.google_default_->GetCachedSize(), target, stream); + break; + } + case kLocalCredentials: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *_impl_.credential_specifier_.local_credentials_, _impl_.credential_specifier_.local_credentials_->GetCachedSize(), target, stream); + break; + } + default: + break; } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.ChannelCredentials) return target; } -size_t GrpcService_GoogleGrpc_ChannelCredentials::ByteSizeLong() const { +::size_t GrpcService_GoogleGrpc_ChannelCredentials::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.ChannelCredentials) - size_t total_size = 0; + ::size_t total_size = 0; - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; switch (credential_specifier_case()) { // .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; case kSslCredentials: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *credential_specifier_.ssl_credentials_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.ssl_credentials_); break; } // .google.protobuf.Empty google_default = 2; case kGoogleDefault: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *credential_specifier_.google_default_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.google_default_); break; } // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; case kLocalCredentials: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *credential_specifier_.local_credentials_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.local_credentials_); break; } case CREDENTIAL_SPECIFIER_NOT_SET: { break; } } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void GrpcService_GoogleGrpc_ChannelCredentials::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:GrpcService.GoogleGrpc.ChannelCredentials) - GOOGLE_DCHECK_NE(&from, this); - const GrpcService_GoogleGrpc_ChannelCredentials* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:GrpcService.GoogleGrpc.ChannelCredentials) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:GrpcService.GoogleGrpc.ChannelCredentials) - MergeFrom(*source); - } -} -void GrpcService_GoogleGrpc_ChannelCredentials::MergeFrom(const GrpcService_GoogleGrpc_ChannelCredentials& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.ChannelCredentials) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void GrpcService_GoogleGrpc_ChannelCredentials::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.ChannelCredentials) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - switch (from.credential_specifier_case()) { - case kSslCredentials: { - mutable_ssl_credentials()->::GrpcService_GoogleGrpc_SslCredentials::MergeFrom(from.ssl_credentials()); - break; - } - case kGoogleDefault: { - mutable_google_default()->PROTOBUF_NAMESPACE_ID::Empty::MergeFrom(from.google_default()); - break; - } - case kLocalCredentials: { - mutable_local_credentials()->::GrpcService_GoogleGrpc_GoogleLocalCredentials::MergeFrom(from.local_credentials()); - break; + if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { + const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; + const bool oneof_needs_init = oneof_to_case != oneof_from_case; + if (oneof_needs_init) { + if (oneof_to_case != 0) { + _this->clear_credential_specifier(); + } + _this->_impl_._oneof_case_[0] = oneof_from_case; } - case CREDENTIAL_SPECIFIER_NOT_SET: { - break; + + switch (oneof_from_case) { + case kSslCredentials: { + if (oneof_needs_init) { + _this->_impl_.credential_specifier_.ssl_credentials_ = + ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_SslCredentials>(arena, *from._impl_.credential_specifier_.ssl_credentials_); + } else { + _this->_impl_.credential_specifier_.ssl_credentials_->MergeFrom(from._internal_ssl_credentials()); + } + break; + } + case kGoogleDefault: { + if (oneof_needs_init) { + _this->_impl_.credential_specifier_.google_default_ = + ::google::protobuf::Message::CopyConstruct<::google::protobuf::Empty>(arena, *from._impl_.credential_specifier_.google_default_); + } else { + _this->_impl_.credential_specifier_.google_default_->MergeFrom(from._internal_google_default()); + } + break; + } + case kLocalCredentials: { + if (oneof_needs_init) { + _this->_impl_.credential_specifier_.local_credentials_ = + ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_GoogleLocalCredentials>(arena, *from._impl_.credential_specifier_.local_credentials_); + } else { + _this->_impl_.credential_specifier_.local_credentials_->MergeFrom(from._internal_local_credentials()); + } + break; + } + case CREDENTIAL_SPECIFIER_NOT_SET: + break; } } -} - -void GrpcService_GoogleGrpc_ChannelCredentials::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:GrpcService.GoogleGrpc.ChannelCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GrpcService_GoogleGrpc_ChannelCredentials::CopyFrom(const GrpcService_GoogleGrpc_ChannelCredentials& from) { @@ -2580,309 +2093,218 @@ void GrpcService_GoogleGrpc_ChannelCredentials::CopyFrom(const GrpcService_Googl MergeFrom(from); } -bool GrpcService_GoogleGrpc_ChannelCredentials::IsInitialized() const { +PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_ChannelCredentials::IsInitialized() const { return true; } -void GrpcService_GoogleGrpc_ChannelCredentials::InternalSwap(GrpcService_GoogleGrpc_ChannelCredentials* other) { +void GrpcService_GoogleGrpc_ChannelCredentials::InternalSwap(GrpcService_GoogleGrpc_ChannelCredentials* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(credential_specifier_, other->credential_specifier_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.credential_specifier_, other->_impl_.credential_specifier_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } -::PROTOBUF_NAMESPACE_ID::Metadata GrpcService_GoogleGrpc_ChannelCredentials::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata GrpcService_GoogleGrpc_ChannelCredentials::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, + &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, + file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[5]); } - - // =================================================================== -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::InitAsDefaultInstance() { -} class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_Internal { public: }; -GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) -} -GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - json_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.json_key().empty()) { - json_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.json_key_); - } - token_lifetime_seconds_ = from.token_lifetime_seconds_; +GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : json_key_(arena, from.json_key_), + _cached_size_{0} {} + +GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials( + ::google::protobuf::Arena* arena, + const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) + : ::google::protobuf::Message(arena) { + GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + _impl_.token_lifetime_seconds_ = from._impl_.token_lifetime_seconds_; + // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) } +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : json_key_(arena), + _cached_size_{0} {} -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_2eproto.base); - json_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - token_lifetime_seconds_ = PROTOBUF_ULONGLONG(0); +inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.token_lifetime_seconds_ = {}; } - GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::~GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials() { // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::SharedDtor() { - json_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_2eproto.base); - return *internal_default_instance(); -} - - -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::Clear() { +inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.json_key_.Destroy(); + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_._cached_size_), + false, + }, + &GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::MergeImpl, + &GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::Clear() { // @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - json_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - token_lifetime_seconds_ = PROTOBUF_ULONGLONG(0); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string json_key = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_json_key(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 token_lifetime_seconds = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - token_lifetime_seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string json_key = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_json_key())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->json_key().data(), static_cast(this->json_key().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key")); - } else { - goto handle_unusual; - } - break; - } - - // uint64 token_lifetime_seconds = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64>( - input, &token_lifetime_seconds_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - return false; -#undef DO_ + _impl_.json_key_.ClearToEmpty(); + _impl_.token_lifetime_seconds_ = ::uint64_t{0u}; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - // string json_key = 1; - if (this->json_key().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->json_key().data(), static_cast(this->json_key().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->json_key(), output); - } +const char* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} - // uint64 token_lifetime_seconds = 2; - if (this->token_lifetime_seconds() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64(2, this->token_lifetime_seconds(), output); - } - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) -} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 90, 2> GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // uint64 token_lifetime_seconds = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_.token_lifetime_seconds_), 63>(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_.token_lifetime_seconds_)}}, + // string json_key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_.json_key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string json_key = 1; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_.json_key_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // uint64 token_lifetime_seconds = 2; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_.token_lifetime_seconds_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + }}, + // no aux_entries + {{ + "\111\10\0\0\0\0\0\0" + "GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials" + "json_key" + }}, +}; -::PROTOBUF_NAMESPACE_ID::uint8* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::uint8_t* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; // string json_key = 1; - if (this->json_key().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->json_key().data(), static_cast(this->json_key().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->json_key(), target); + if (!this->_internal_json_key().empty()) { + const std::string& _s = this->_internal_json_key(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key"); + target = stream->WriteStringMaybeAliased(1, _s, target); } // uint64 token_lifetime_seconds = 2; - if (this->token_lifetime_seconds() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->token_lifetime_seconds(), target); + if (this->_internal_token_lifetime_seconds() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this->_internal_token_lifetime_seconds(), target); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) return target; } -size_t GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::ByteSizeLong() const { +::size_t GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - size_t total_size = 0; + ::size_t total_size = 0; - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string json_key = 1; - if (this->json_key().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->json_key()); + if (!this->_internal_json_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_json_key()); } // uint64 token_lifetime_seconds = 2; - if (this->token_lifetime_seconds() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->token_lifetime_seconds()); + if (this->_internal_token_lifetime_seconds() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this->_internal_token_lifetime_seconds()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - GOOGLE_DCHECK_NE(&from, this); - const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - MergeFrom(*source); - } -} -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.json_key().size() > 0) { - - json_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.json_key_); + if (!from._internal_json_key().empty()) { + _this->_internal_set_json_key(from._internal_json_key()); } - if (from.token_lifetime_seconds() != 0) { - set_token_lifetime_seconds(from.token_lifetime_seconds()); + if (from._internal_token_lifetime_seconds() != 0) { + _this->_impl_.token_lifetime_seconds_ = from._impl_.token_lifetime_seconds_; } -} - -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) { @@ -2892,328 +2314,223 @@ void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials:: MergeFrom(from); } -bool GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::IsInitialized() const { +PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::IsInitialized() const { return true; } -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* other) { +void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - json_key_.Swap(&other->json_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(token_lifetime_seconds_, other->token_lifetime_seconds_); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.json_key_, &other->_impl_.json_key_, arena); + swap(_impl_.token_lifetime_seconds_, other->_impl_.token_lifetime_seconds_); } -::PROTOBUF_NAMESPACE_ID::Metadata GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, + &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, + file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[6]); } - - // =================================================================== -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::InitAsDefaultInstance() { -} class GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_Internal { public: }; -GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) -} -GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - authorization_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.authorization_token().empty()) { - authorization_token_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.authorization_token_); - } - authority_selector_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.authority_selector().empty()) { - authority_selector_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.authority_selector_); - } +GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : authorization_token_(arena, from.authorization_token_), + authority_selector_(arena, from.authority_selector_), + _cached_size_{0} {} + +GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials( + ::google::protobuf::Arena* arena, + const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) + : ::google::protobuf::Message(arena) { + GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) } +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : authorization_token_(arena), + authority_selector_(arena), + _cached_size_{0} {} -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_proxy_5fwasm_5fintrinsics_2eproto.base); - authorization_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - authority_selector_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::~GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials() { // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::SharedDtor() { - authorization_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - authority_selector_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_proxy_5fwasm_5fintrinsics_2eproto.base); - return *internal_default_instance(); -} - - -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::Clear() { +inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.authorization_token_.Destroy(); + _impl_.authority_selector_.Destroy(); + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_._cached_size_), + false, + }, + &GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::MergeImpl, + &GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::Clear() { // @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - authorization_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - authority_selector_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string authorization_token = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_authorization_token(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string authority_selector = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_authority_selector(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector"); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string authorization_token = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_authorization_token())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->authorization_token().data(), static_cast(this->authorization_token().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token")); - } else { - goto handle_unusual; - } - break; - } - - // string authority_selector = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_authority_selector())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->authority_selector().data(), static_cast(this->authority_selector().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - return false; -#undef DO_ + _impl_.authorization_token_.ClearToEmpty(); + _impl_.authority_selector_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - // string authorization_token = 1; - if (this->authorization_token().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->authorization_token().data(), static_cast(this->authorization_token().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->authorization_token(), output); - } +const char* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} - // string authority_selector = 2; - if (this->authority_selector().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->authority_selector().data(), static_cast(this->authority_selector().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->authority_selector(), output); - } - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) -} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 105, 2> GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string authority_selector = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_.authority_selector_)}}, + // string authorization_token = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_.authorization_token_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string authorization_token = 1; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_.authorization_token_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string authority_selector = 2; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_.authority_selector_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\73\23\22\0\0\0\0\0" + "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials" + "authorization_token" + "authority_selector" + }}, +}; -::PROTOBUF_NAMESPACE_ID::uint8* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::uint8_t* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; // string authorization_token = 1; - if (this->authorization_token().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->authorization_token().data(), static_cast(this->authorization_token().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->authorization_token(), target); + if (!this->_internal_authorization_token().empty()) { + const std::string& _s = this->_internal_authorization_token(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token"); + target = stream->WriteStringMaybeAliased(1, _s, target); } // string authority_selector = 2; - if (this->authority_selector().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->authority_selector().data(), static_cast(this->authority_selector().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->authority_selector(), target); + if (!this->_internal_authority_selector().empty()) { + const std::string& _s = this->_internal_authority_selector(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector"); + target = stream->WriteStringMaybeAliased(2, _s, target); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) return target; } -size_t GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::ByteSizeLong() const { +::size_t GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - size_t total_size = 0; + ::size_t total_size = 0; - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string authorization_token = 1; - if (this->authorization_token().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->authorization_token()); + if (!this->_internal_authorization_token().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_authorization_token()); } // string authority_selector = 2; - if (this->authority_selector().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->authority_selector()); + if (!this->_internal_authority_selector().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_authority_selector()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - GOOGLE_DCHECK_NE(&from, this); - const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - MergeFrom(*source); - } -} -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.authorization_token().size() > 0) { - - authorization_token_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.authorization_token_); + if (!from._internal_authorization_token().empty()) { + _this->_internal_set_authorization_token(from._internal_authorization_token()); } - if (from.authority_selector().size() > 0) { - - authority_selector_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.authority_selector_); + if (!from._internal_authority_selector().empty()) { + _this->_internal_set_authority_selector(from._internal_authority_selector()); } -} - -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) { @@ -3223,455 +2540,355 @@ void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::CopyFrom(const MergeFrom(from); } -bool GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::IsInitialized() const { +PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::IsInitialized() const { return true; } -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* other) { +void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - authorization_token_.Swap(&other->authorization_token_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - authority_selector_.Swap(&other->authority_selector_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.authorization_token_, &other->_impl_.authorization_token_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.authority_selector_, &other->_impl_.authority_selector_, arena); } -::PROTOBUF_NAMESPACE_ID::Metadata GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, + &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, + file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[7]); } - - // =================================================================== -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::InitAsDefaultInstance() { - ::_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_.config_ = const_cast< PROTOBUF_NAMESPACE_ID::Struct*>( - PROTOBUF_NAMESPACE_ID::Struct::internal_default_instance()); - ::_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_.typed_config_ = const_cast< PROTOBUF_NAMESPACE_ID::Any*>( - PROTOBUF_NAMESPACE_ID::Any::internal_default_instance()); -} class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_Internal { public: - static const PROTOBUF_NAMESPACE_ID::Struct& config(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* msg); - static const PROTOBUF_NAMESPACE_ID::Any& typed_config(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* msg); + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_._oneof_case_); }; -const PROTOBUF_NAMESPACE_ID::Struct& -GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_Internal::config(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* msg) { - return *msg->config_type_.config_; -} -const PROTOBUF_NAMESPACE_ID::Any& -GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_Internal::typed_config(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* msg) { - return *msg->config_type_.typed_config_; -} -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_allocated_config(PROTOBUF_NAMESPACE_ID::Struct* config) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); +void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_allocated_config(::google::protobuf::Struct* config) { + ::google::protobuf::Arena* message_arena = GetArena(); clear_config_type(); if (config) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(config)->GetArena(); if (message_arena != submessage_arena) { - config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, config, submessage_arena); + config = ::google::protobuf::internal::GetOwnedMessage(message_arena, config, submessage_arena); } set_has_config(); - config_type_.config_ = config; + _impl_.config_type_.config_ = config; } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) } void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::clear_config() { - if (has_config()) { - delete config_type_.config_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (config_type_case() == kConfig) { + if (GetArena() == nullptr) { + delete _impl_.config_type_.config_; + } clear_has_config_type(); } } -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_allocated_typed_config(PROTOBUF_NAMESPACE_ID::Any* typed_config) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); +void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_allocated_typed_config(::google::protobuf::Any* typed_config) { + ::google::protobuf::Arena* message_arena = GetArena(); clear_config_type(); if (typed_config) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(typed_config)->GetArena(); if (message_arena != submessage_arena) { - typed_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, typed_config, submessage_arena); + typed_config = ::google::protobuf::internal::GetOwnedMessage(message_arena, typed_config, submessage_arena); } set_has_typed_config(); - config_type_.typed_config_ = typed_config; + _impl_.config_type_.typed_config_ = typed_config; } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) } void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::clear_typed_config() { - if (has_typed_config()) { - delete config_type_.typed_config_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (config_type_case() == kTypedConfig) { + if (GetArena() == nullptr) { + delete _impl_.config_type_.typed_config_; + } clear_has_config_type(); } } -GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) -} -GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.name().empty()) { - name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); - } - clear_has_config_type(); - switch (from.config_type_case()) { - case kConfig: { - mutable_config()->PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from.config()); - break; - } - case kTypedConfig: { - mutable_typed_config()->PROTOBUF_NAMESPACE_ID::Any::MergeFrom(from.typed_config()); - break; - } - case CONFIG_TYPE_NOT_SET: { +GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : name_(arena, from.name_), + config_type_{}, + _cached_size_{0}, + _oneof_case_{from._oneof_case_[0]} {} + +GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin( + ::google::protobuf::Arena* arena, + const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) + : ::google::protobuf::Message(arena) { + GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + switch (config_type_case()) { + case CONFIG_TYPE_NOT_SET: break; - } + case kConfig: + _impl_.config_type_.config_ = ::google::protobuf::Message::CopyConstruct<::google::protobuf::Struct>(arena, *from._impl_.config_type_.config_); + break; + case kTypedConfig: + _impl_.config_type_.typed_config_ = ::google::protobuf::Message::CopyConstruct<::google::protobuf::Any>(arena, *from._impl_.config_type_.typed_config_); + break; } + // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) } +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : name_(arena), + config_type_{}, + _cached_size_{0}, + _oneof_case_{} {} -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_proxy_5fwasm_5fintrinsics_2eproto.base); - name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - clear_has_config_type(); +inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::~GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin() { // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::SharedDtor() { - name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.name_.Destroy(); if (has_config_type()) { clear_config_type(); } + _impl_.~Impl_(); } -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_proxy_5fwasm_5fintrinsics_2eproto.base); - return *internal_default_instance(); -} - - void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::clear_config_type() { // @@protoc_insertion_point(one_of_clear_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (config_type_case()) { case kConfig: { - delete config_type_.config_; + if (GetArena() == nullptr) { + delete _impl_.config_type_.config_; + } break; } case kTypedConfig: { - delete config_type_.typed_config_; + if (GetArena() == nullptr) { + delete _impl_.config_type_.typed_config_; + } break; } case CONFIG_TYPE_NOT_SET: { break; } } - _oneof_case_[0] = CONFIG_TYPE_NOT_SET; + _impl_._oneof_case_[0] = CONFIG_TYPE_NOT_SET; } -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Clear() { +const ::google::protobuf::MessageLite::ClassData* +GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_._cached_size_), + false, + }, + &GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::MergeImpl, + &GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Clear() { // @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.name_.ClearToEmpty(); clear_config_type(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .google.protobuf.Struct config = 2 [deprecated = true]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(mutable_config(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .google.protobuf.Any typed_config = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ctx->ParseMessage(mutable_typed_config(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name")); - } else { - goto handle_unusual; - } - break; - } +} - // .google.protobuf.Struct config = 2 [deprecated = true]; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_config())); - } else { - goto handle_unusual; - } - break; - } - // .google.protobuf.Any typed_config = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_typed_config())); - } else { - goto handle_unusual; - } - break; - } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 3, 2, 81, 2> GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 3, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_.name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string name = 1; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_.name_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .google.protobuf.Struct config = 2 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_.config_type_.config_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .google.protobuf.Any typed_config = 3; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_.config_type_.typed_config_), _Internal::kOneofCaseOffset + 0, 1, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::Any>()}, + }}, {{ + "\104\4\0\0\0\0\0\0" + "GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin" + "name" + }}, +}; - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); - } - - // .google.protobuf.Struct config = 2 [deprecated = true]; - if (has_config()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, _Internal::config(this), output); - } - - // .google.protobuf.Any typed_config = 3; - if (has_typed_config()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, _Internal::typed_config(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) -} - -::PROTOBUF_NAMESPACE_ID::uint8* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::uint8_t* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; // string name = 1; - if (this->name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // .google.protobuf.Struct config = 2 [deprecated = true]; - if (has_config()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, _Internal::config(this), target); + if (!this->_internal_name().empty()) { + const std::string& _s = this->_internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); } - // .google.protobuf.Any typed_config = 3; - if (has_typed_config()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, _Internal::typed_config(this), target); + switch (config_type_case()) { + case kConfig: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *_impl_.config_type_.config_, _impl_.config_type_.config_->GetCachedSize(), target, stream); + break; + } + case kTypedConfig: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *_impl_.config_type_.typed_config_, _impl_.config_type_.typed_config_->GetCachedSize(), target, stream); + break; + } + default: + break; } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) return target; } -size_t GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::ByteSizeLong() const { +::size_t GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - size_t total_size = 0; + ::size_t total_size = 0; - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string name = 1; - if (this->name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->name()); + if (!this->_internal_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_name()); } switch (config_type_case()) { // .google.protobuf.Struct config = 2 [deprecated = true]; case kConfig: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *config_type_.config_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.config_type_.config_); break; } // .google.protobuf.Any typed_config = 3; case kTypedConfig: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *config_type_.typed_config_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.config_type_.typed_config_); break; } case CONFIG_TYPE_NOT_SET: { break; } } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - GOOGLE_DCHECK_NE(&from, this); - const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - MergeFrom(*source); - } -} -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); } - switch (from.config_type_case()) { - case kConfig: { - mutable_config()->PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from.config()); - break; - } - case kTypedConfig: { - mutable_typed_config()->PROTOBUF_NAMESPACE_ID::Any::MergeFrom(from.typed_config()); - break; + if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { + const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; + const bool oneof_needs_init = oneof_to_case != oneof_from_case; + if (oneof_needs_init) { + if (oneof_to_case != 0) { + _this->clear_config_type(); + } + _this->_impl_._oneof_case_[0] = oneof_from_case; } - case CONFIG_TYPE_NOT_SET: { - break; + + switch (oneof_from_case) { + case kConfig: { + if (oneof_needs_init) { + _this->_impl_.config_type_.config_ = + ::google::protobuf::Message::CopyConstruct<::google::protobuf::Struct>(arena, *from._impl_.config_type_.config_); + } else { + _this->_impl_.config_type_.config_->MergeFrom(from._internal_config()); + } + break; + } + case kTypedConfig: { + if (oneof_needs_init) { + _this->_impl_.config_type_.typed_config_ = + ::google::protobuf::Message::CopyConstruct<::google::protobuf::Any>(arena, *from._impl_.config_type_.typed_config_); + } else { + _this->_impl_.config_type_.typed_config_->MergeFrom(from._internal_typed_config()); + } + break; + } + case CONFIG_TYPE_NOT_SET: + break; } } -} - -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) { @@ -3681,756 +2898,427 @@ void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::CopyF MergeFrom(from); } -bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::IsInitialized() const { +PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::IsInitialized() const { return true; } -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* other) { +void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(config_type_, other->config_type_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + swap(_impl_.config_type_, other->_impl_.config_type_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } -::PROTOBUF_NAMESPACE_ID::Metadata GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, + &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, + file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[8]); } - - // =================================================================== -void GrpcService_GoogleGrpc_CallCredentials_StsService::InitAsDefaultInstance() { -} class GrpcService_GoogleGrpc_CallCredentials_StsService::_Internal { public: }; -GrpcService_GoogleGrpc_CallCredentials_StsService::GrpcService_GoogleGrpc_CallCredentials_StsService() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.GoogleGrpc.CallCredentials.StsService) -} -GrpcService_GoogleGrpc_CallCredentials_StsService::GrpcService_GoogleGrpc_CallCredentials_StsService(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_exchange_service_uri_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.token_exchange_service_uri().empty()) { - token_exchange_service_uri_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.token_exchange_service_uri_); - } - resource_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.resource().empty()) { - resource_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.resource_); - } - audience_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.audience().empty()) { - audience_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.audience_); - } - scope_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.scope().empty()) { - scope_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.scope_); - } - requested_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.requested_token_type().empty()) { - requested_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.requested_token_type_); - } - subject_token_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.subject_token_path().empty()) { - subject_token_path_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.subject_token_path_); - } - subject_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.subject_token_type().empty()) { - subject_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.subject_token_type_); - } - actor_token_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.actor_token_path().empty()) { - actor_token_path_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.actor_token_path_); - } - actor_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.actor_token_type().empty()) { - actor_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.actor_token_type_); - } +GrpcService_GoogleGrpc_CallCredentials_StsService::GrpcService_GoogleGrpc_CallCredentials_StsService(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.CallCredentials.StsService) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_StsService::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : token_exchange_service_uri_(arena, from.token_exchange_service_uri_), + resource_(arena, from.resource_), + audience_(arena, from.audience_), + scope_(arena, from.scope_), + requested_token_type_(arena, from.requested_token_type_), + subject_token_path_(arena, from.subject_token_path_), + subject_token_type_(arena, from.subject_token_type_), + actor_token_path_(arena, from.actor_token_path_), + actor_token_type_(arena, from.actor_token_type_), + _cached_size_{0} {} + +GrpcService_GoogleGrpc_CallCredentials_StsService::GrpcService_GoogleGrpc_CallCredentials_StsService( + ::google::protobuf::Arena* arena, + const GrpcService_GoogleGrpc_CallCredentials_StsService& from) + : ::google::protobuf::Message(arena) { + GrpcService_GoogleGrpc_CallCredentials_StsService* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.StsService) } - -void GrpcService_GoogleGrpc_CallCredentials_StsService::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_2eproto.base); - token_exchange_service_uri_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - resource_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - audience_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - scope_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - requested_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_StsService::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : token_exchange_service_uri_(arena), + resource_(arena), + audience_(arena), + scope_(arena), + requested_token_type_(arena), + subject_token_path_(arena), + subject_token_type_(arena), + actor_token_path_(arena), + actor_token_type_(arena), + _cached_size_{0} {} + +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - GrpcService_GoogleGrpc_CallCredentials_StsService::~GrpcService_GoogleGrpc_CallCredentials_StsService() { // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.StsService) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - -void GrpcService_GoogleGrpc_CallCredentials_StsService::SharedDtor() { - token_exchange_service_uri_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - resource_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - audience_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - scope_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - requested_token_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_GoogleGrpc_CallCredentials_StsService& GrpcService_GoogleGrpc_CallCredentials_StsService::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_2eproto.base); - return *internal_default_instance(); -} - - -void GrpcService_GoogleGrpc_CallCredentials_StsService::Clear() { +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.token_exchange_service_uri_.Destroy(); + _impl_.resource_.Destroy(); + _impl_.audience_.Destroy(); + _impl_.scope_.Destroy(); + _impl_.requested_token_type_.Destroy(); + _impl_.subject_token_path_.Destroy(); + _impl_.subject_token_type_.Destroy(); + _impl_.actor_token_path_.Destroy(); + _impl_.actor_token_type_.Destroy(); + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +GrpcService_GoogleGrpc_CallCredentials_StsService::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_._cached_size_), + false, + }, + &GrpcService_GoogleGrpc_CallCredentials_StsService::MergeImpl, + &GrpcService_GoogleGrpc_CallCredentials_StsService::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::Clear() { // @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - token_exchange_service_uri_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - resource_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - audience_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - scope_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - requested_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_path_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_path_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_GoogleGrpc_CallCredentials_StsService::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string token_exchange_service_uri = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_token_exchange_service_uri(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string resource = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_resource(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.StsService.resource"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string audience = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_audience(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.StsService.audience"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string scope = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_scope(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.StsService.scope"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string requested_token_type = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_requested_token_type(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string subject_token_path = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_subject_token_path(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string subject_token_type = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_subject_token_type(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string actor_token_path = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_actor_token_path(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string actor_token_type = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_actor_token_type(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type"); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: + _impl_.token_exchange_service_uri_.ClearToEmpty(); + _impl_.resource_.ClearToEmpty(); + _impl_.audience_.ClearToEmpty(); + _impl_.scope_.ClearToEmpty(); + _impl_.requested_token_type_.ClearToEmpty(); + _impl_.subject_token_path_.ClearToEmpty(); + _impl_.subject_token_type_.ClearToEmpty(); + _impl_.actor_token_path_.ClearToEmpty(); + _impl_.actor_token_type_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GrpcService_GoogleGrpc_CallCredentials_StsService::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_GoogleGrpc_CallCredentials_StsService::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string token_exchange_service_uri = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_token_exchange_service_uri())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->token_exchange_service_uri().data(), static_cast(this->token_exchange_service_uri().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri")); - } else { - goto handle_unusual; - } - break; - } - - // string resource = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_resource())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->resource().data(), static_cast(this->resource().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.resource")); - } else { - goto handle_unusual; - } - break; - } - - // string audience = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_audience())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->audience().data(), static_cast(this->audience().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.audience")); - } else { - goto handle_unusual; - } - break; - } - - // string scope = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_scope())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->scope().data(), static_cast(this->scope().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.scope")); - } else { - goto handle_unusual; - } - break; - } - - // string requested_token_type = 5; - case 5: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_requested_token_type())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->requested_token_type().data(), static_cast(this->requested_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type")); - } else { - goto handle_unusual; - } - break; - } - - // string subject_token_path = 6; - case 6: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_subject_token_path())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->subject_token_path().data(), static_cast(this->subject_token_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path")); - } else { - goto handle_unusual; - } - break; - } - - // string subject_token_type = 7; - case 7: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_subject_token_type())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->subject_token_type().data(), static_cast(this->subject_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type")); - } else { - goto handle_unusual; - } - break; - } - - // string actor_token_path = 8; - case 8: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_actor_token_path())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->actor_token_path().data(), static_cast(this->actor_token_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path")); - } else { - goto handle_unusual; - } - break; - } - - // string actor_token_type = 9; - case 9: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (74 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_actor_token_type())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->actor_token_type().data(), static_cast(this->actor_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc.CallCredentials.StsService) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.GoogleGrpc.CallCredentials.StsService) - return false; -#undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GrpcService_GoogleGrpc_CallCredentials_StsService::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string token_exchange_service_uri = 1; - if (this->token_exchange_service_uri().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->token_exchange_service_uri().data(), static_cast(this->token_exchange_service_uri().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->token_exchange_service_uri(), output); - } - - // string resource = 2; - if (this->resource().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->resource().data(), static_cast(this->resource().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.resource"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->resource(), output); - } - - // string audience = 3; - if (this->audience().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->audience().data(), static_cast(this->audience().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.audience"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->audience(), output); - } - - // string scope = 4; - if (this->scope().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->scope().data(), static_cast(this->scope().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.scope"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->scope(), output); - } - // string requested_token_type = 5; - if (this->requested_token_type().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->requested_token_type().data(), static_cast(this->requested_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->requested_token_type(), output); - } - - // string subject_token_path = 6; - if (this->subject_token_path().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->subject_token_path().data(), static_cast(this->subject_token_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 6, this->subject_token_path(), output); - } - - // string subject_token_type = 7; - if (this->subject_token_type().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->subject_token_type().data(), static_cast(this->subject_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 7, this->subject_token_type(), output); - } - // string actor_token_path = 8; - if (this->actor_token_path().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->actor_token_path().data(), static_cast(this->actor_token_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 8, this->actor_token_path(), output); - } - - // string actor_token_type = 9; - if (this->actor_token_type().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->actor_token_type().data(), static_cast(this->actor_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 9, this->actor_token_type(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.CallCredentials.StsService) -} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 9, 0, 201, 2> GrpcService_GoogleGrpc_CallCredentials_StsService::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 9, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294966784, // skipmap + offsetof(decltype(_table_), field_entries), + 9, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_StsService>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string token_exchange_service_uri = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.token_exchange_service_uri_)}}, + // string resource = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.resource_)}}, + // string audience = 3; + {::_pbi::TcParser::FastUS1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.audience_)}}, + // string scope = 4; + {::_pbi::TcParser::FastUS1, + {34, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.scope_)}}, + // string requested_token_type = 5; + {::_pbi::TcParser::FastUS1, + {42, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.requested_token_type_)}}, + // string subject_token_path = 6; + {::_pbi::TcParser::FastUS1, + {50, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.subject_token_path_)}}, + // string subject_token_type = 7; + {::_pbi::TcParser::FastUS1, + {58, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.subject_token_type_)}}, + // string actor_token_path = 8; + {::_pbi::TcParser::FastUS1, + {66, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.actor_token_path_)}}, + // string actor_token_type = 9; + {::_pbi::TcParser::FastUS1, + {74, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.actor_token_type_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // string token_exchange_service_uri = 1; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.token_exchange_service_uri_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string resource = 2; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.resource_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string audience = 3; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.audience_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string scope = 4; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.scope_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string requested_token_type = 5; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.requested_token_type_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string subject_token_path = 6; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.subject_token_path_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string subject_token_type = 7; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.subject_token_type_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string actor_token_path = 8; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.actor_token_path_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string actor_token_type = 9; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.actor_token_type_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\61\32\10\10\5\24\22\22\20\20\0\0\0\0\0\0" + "GrpcService.GoogleGrpc.CallCredentials.StsService" + "token_exchange_service_uri" + "resource" + "audience" + "scope" + "requested_token_type" + "subject_token_path" + "subject_token_type" + "actor_token_path" + "actor_token_type" + }}, +}; -::PROTOBUF_NAMESPACE_ID::uint8* GrpcService_GoogleGrpc_CallCredentials_StsService::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::uint8_t* GrpcService_GoogleGrpc_CallCredentials_StsService::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; // string token_exchange_service_uri = 1; - if (this->token_exchange_service_uri().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->token_exchange_service_uri().data(), static_cast(this->token_exchange_service_uri().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->token_exchange_service_uri(), target); + if (!this->_internal_token_exchange_service_uri().empty()) { + const std::string& _s = this->_internal_token_exchange_service_uri(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri"); + target = stream->WriteStringMaybeAliased(1, _s, target); } // string resource = 2; - if (this->resource().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->resource().data(), static_cast(this->resource().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.resource"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->resource(), target); + if (!this->_internal_resource().empty()) { + const std::string& _s = this->_internal_resource(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.resource"); + target = stream->WriteStringMaybeAliased(2, _s, target); } // string audience = 3; - if (this->audience().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->audience().data(), static_cast(this->audience().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.audience"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 3, this->audience(), target); + if (!this->_internal_audience().empty()) { + const std::string& _s = this->_internal_audience(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.audience"); + target = stream->WriteStringMaybeAliased(3, _s, target); } // string scope = 4; - if (this->scope().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->scope().data(), static_cast(this->scope().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.scope"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 4, this->scope(), target); + if (!this->_internal_scope().empty()) { + const std::string& _s = this->_internal_scope(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.scope"); + target = stream->WriteStringMaybeAliased(4, _s, target); } // string requested_token_type = 5; - if (this->requested_token_type().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->requested_token_type().data(), static_cast(this->requested_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 5, this->requested_token_type(), target); + if (!this->_internal_requested_token_type().empty()) { + const std::string& _s = this->_internal_requested_token_type(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type"); + target = stream->WriteStringMaybeAliased(5, _s, target); } // string subject_token_path = 6; - if (this->subject_token_path().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->subject_token_path().data(), static_cast(this->subject_token_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 6, this->subject_token_path(), target); + if (!this->_internal_subject_token_path().empty()) { + const std::string& _s = this->_internal_subject_token_path(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path"); + target = stream->WriteStringMaybeAliased(6, _s, target); } // string subject_token_type = 7; - if (this->subject_token_type().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->subject_token_type().data(), static_cast(this->subject_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 7, this->subject_token_type(), target); + if (!this->_internal_subject_token_type().empty()) { + const std::string& _s = this->_internal_subject_token_type(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type"); + target = stream->WriteStringMaybeAliased(7, _s, target); } // string actor_token_path = 8; - if (this->actor_token_path().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->actor_token_path().data(), static_cast(this->actor_token_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 8, this->actor_token_path(), target); + if (!this->_internal_actor_token_path().empty()) { + const std::string& _s = this->_internal_actor_token_path(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path"); + target = stream->WriteStringMaybeAliased(8, _s, target); } // string actor_token_type = 9; - if (this->actor_token_type().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->actor_token_type().data(), static_cast(this->actor_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 9, this->actor_token_type(), target); + if (!this->_internal_actor_token_type().empty()) { + const std::string& _s = this->_internal_actor_token_type(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type"); + target = stream->WriteStringMaybeAliased(9, _s, target); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.CallCredentials.StsService) return target; } -size_t GrpcService_GoogleGrpc_CallCredentials_StsService::ByteSizeLong() const { +::size_t GrpcService_GoogleGrpc_CallCredentials_StsService::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - size_t total_size = 0; + ::size_t total_size = 0; - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string token_exchange_service_uri = 1; - if (this->token_exchange_service_uri().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->token_exchange_service_uri()); + if (!this->_internal_token_exchange_service_uri().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_token_exchange_service_uri()); } // string resource = 2; - if (this->resource().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->resource()); + if (!this->_internal_resource().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_resource()); } // string audience = 3; - if (this->audience().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->audience()); + if (!this->_internal_audience().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_audience()); } // string scope = 4; - if (this->scope().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->scope()); + if (!this->_internal_scope().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_scope()); } // string requested_token_type = 5; - if (this->requested_token_type().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->requested_token_type()); + if (!this->_internal_requested_token_type().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_requested_token_type()); } // string subject_token_path = 6; - if (this->subject_token_path().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->subject_token_path()); + if (!this->_internal_subject_token_path().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_subject_token_path()); } // string subject_token_type = 7; - if (this->subject_token_type().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->subject_token_type()); + if (!this->_internal_subject_token_type().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_subject_token_type()); } // string actor_token_path = 8; - if (this->actor_token_path().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->actor_token_path()); + if (!this->_internal_actor_token_path().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_actor_token_path()); } // string actor_token_type = 9; - if (this->actor_token_type().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->actor_token_type()); + if (!this->_internal_actor_token_type().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_actor_token_type()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void GrpcService_GoogleGrpc_CallCredentials_StsService::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - GOOGLE_DCHECK_NE(&from, this); - const GrpcService_GoogleGrpc_CallCredentials_StsService* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:GrpcService.GoogleGrpc.CallCredentials.StsService) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:GrpcService.GoogleGrpc.CallCredentials.StsService) - MergeFrom(*source); - } -} -void GrpcService_GoogleGrpc_CallCredentials_StsService::MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void GrpcService_GoogleGrpc_CallCredentials_StsService::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.StsService) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.token_exchange_service_uri().size() > 0) { - - token_exchange_service_uri_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.token_exchange_service_uri_); + if (!from._internal_token_exchange_service_uri().empty()) { + _this->_internal_set_token_exchange_service_uri(from._internal_token_exchange_service_uri()); } - if (from.resource().size() > 0) { - - resource_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.resource_); + if (!from._internal_resource().empty()) { + _this->_internal_set_resource(from._internal_resource()); } - if (from.audience().size() > 0) { - - audience_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.audience_); + if (!from._internal_audience().empty()) { + _this->_internal_set_audience(from._internal_audience()); } - if (from.scope().size() > 0) { - - scope_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.scope_); + if (!from._internal_scope().empty()) { + _this->_internal_set_scope(from._internal_scope()); } - if (from.requested_token_type().size() > 0) { - - requested_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.requested_token_type_); + if (!from._internal_requested_token_type().empty()) { + _this->_internal_set_requested_token_type(from._internal_requested_token_type()); } - if (from.subject_token_path().size() > 0) { - - subject_token_path_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.subject_token_path_); + if (!from._internal_subject_token_path().empty()) { + _this->_internal_set_subject_token_path(from._internal_subject_token_path()); } - if (from.subject_token_type().size() > 0) { - - subject_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.subject_token_type_); + if (!from._internal_subject_token_type().empty()) { + _this->_internal_set_subject_token_type(from._internal_subject_token_type()); } - if (from.actor_token_path().size() > 0) { - - actor_token_path_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.actor_token_path_); + if (!from._internal_actor_token_path().empty()) { + _this->_internal_set_actor_token_path(from._internal_actor_token_path()); } - if (from.actor_token_type().size() > 0) { - - actor_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.actor_token_type_); + if (!from._internal_actor_token_type().empty()) { + _this->_internal_set_actor_token_type(from._internal_actor_token_type()); } -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GrpcService_GoogleGrpc_CallCredentials_StsService::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) { @@ -4440,1313 +3328,908 @@ void GrpcService_GoogleGrpc_CallCredentials_StsService::CopyFrom(const GrpcServi MergeFrom(from); } -bool GrpcService_GoogleGrpc_CallCredentials_StsService::IsInitialized() const { +PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_CallCredentials_StsService::IsInitialized() const { return true; } -void GrpcService_GoogleGrpc_CallCredentials_StsService::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_StsService* other) { +void GrpcService_GoogleGrpc_CallCredentials_StsService::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_StsService* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - token_exchange_service_uri_.Swap(&other->token_exchange_service_uri_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - resource_.Swap(&other->resource_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - audience_.Swap(&other->audience_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - scope_.Swap(&other->scope_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - requested_token_type_.Swap(&other->requested_token_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - subject_token_path_.Swap(&other->subject_token_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - subject_token_type_.Swap(&other->subject_token_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - actor_token_path_.Swap(&other->actor_token_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - actor_token_type_.Swap(&other->actor_token_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GrpcService_GoogleGrpc_CallCredentials_StsService::GetMetadata() const { - return GetMetadataStatic(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.token_exchange_service_uri_, &other->_impl_.token_exchange_service_uri_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.resource_, &other->_impl_.resource_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.audience_, &other->_impl_.audience_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.scope_, &other->_impl_.scope_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.requested_token_type_, &other->_impl_.requested_token_type_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.subject_token_path_, &other->_impl_.subject_token_path_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.subject_token_type_, &other->_impl_.subject_token_type_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.actor_token_path_, &other->_impl_.actor_token_path_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.actor_token_type_, &other->_impl_.actor_token_type_, arena); +} + +::google::protobuf::Metadata GrpcService_GoogleGrpc_CallCredentials_StsService::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, + &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, + file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[9]); } - - // =================================================================== -void GrpcService_GoogleGrpc_CallCredentials::InitAsDefaultInstance() { - ::_GrpcService_GoogleGrpc_CallCredentials_default_instance_.access_token_.UnsafeSetDefault( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::_GrpcService_GoogleGrpc_CallCredentials_default_instance_.google_compute_engine_ = const_cast< PROTOBUF_NAMESPACE_ID::Empty*>( - PROTOBUF_NAMESPACE_ID::Empty::internal_default_instance()); - ::_GrpcService_GoogleGrpc_CallCredentials_default_instance_.google_refresh_token_.UnsafeSetDefault( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::_GrpcService_GoogleGrpc_CallCredentials_default_instance_.service_account_jwt_access_ = const_cast< ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials*>( - ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::internal_default_instance()); - ::_GrpcService_GoogleGrpc_CallCredentials_default_instance_.google_iam_ = const_cast< ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials*>( - ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::internal_default_instance()); - ::_GrpcService_GoogleGrpc_CallCredentials_default_instance_.from_plugin_ = const_cast< ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin*>( - ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::internal_default_instance()); - ::_GrpcService_GoogleGrpc_CallCredentials_default_instance_.sts_service_ = const_cast< ::GrpcService_GoogleGrpc_CallCredentials_StsService*>( - ::GrpcService_GoogleGrpc_CallCredentials_StsService::internal_default_instance()); -} class GrpcService_GoogleGrpc_CallCredentials::_Internal { public: - static const PROTOBUF_NAMESPACE_ID::Empty& google_compute_engine(const GrpcService_GoogleGrpc_CallCredentials* msg); - static const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& service_account_jwt_access(const GrpcService_GoogleGrpc_CallCredentials* msg); - static const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& google_iam(const GrpcService_GoogleGrpc_CallCredentials* msg); - static const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from_plugin(const GrpcService_GoogleGrpc_CallCredentials* msg); - static const ::GrpcService_GoogleGrpc_CallCredentials_StsService& sts_service(const GrpcService_GoogleGrpc_CallCredentials* msg); + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials, _impl_._oneof_case_); }; -const PROTOBUF_NAMESPACE_ID::Empty& -GrpcService_GoogleGrpc_CallCredentials::_Internal::google_compute_engine(const GrpcService_GoogleGrpc_CallCredentials* msg) { - return *msg->credential_specifier_.google_compute_engine_; -} -const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& -GrpcService_GoogleGrpc_CallCredentials::_Internal::service_account_jwt_access(const GrpcService_GoogleGrpc_CallCredentials* msg) { - return *msg->credential_specifier_.service_account_jwt_access_; -} -const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& -GrpcService_GoogleGrpc_CallCredentials::_Internal::google_iam(const GrpcService_GoogleGrpc_CallCredentials* msg) { - return *msg->credential_specifier_.google_iam_; -} -const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& -GrpcService_GoogleGrpc_CallCredentials::_Internal::from_plugin(const GrpcService_GoogleGrpc_CallCredentials* msg) { - return *msg->credential_specifier_.from_plugin_; -} -const ::GrpcService_GoogleGrpc_CallCredentials_StsService& -GrpcService_GoogleGrpc_CallCredentials::_Internal::sts_service(const GrpcService_GoogleGrpc_CallCredentials* msg) { - return *msg->credential_specifier_.sts_service_; -} -void GrpcService_GoogleGrpc_CallCredentials::set_allocated_google_compute_engine(PROTOBUF_NAMESPACE_ID::Empty* google_compute_engine) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); +void GrpcService_GoogleGrpc_CallCredentials::set_allocated_google_compute_engine(::google::protobuf::Empty* google_compute_engine) { + ::google::protobuf::Arena* message_arena = GetArena(); clear_credential_specifier(); if (google_compute_engine) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(google_compute_engine)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(google_compute_engine)->GetArena(); if (message_arena != submessage_arena) { - google_compute_engine = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, google_compute_engine, submessage_arena); + google_compute_engine = ::google::protobuf::internal::GetOwnedMessage(message_arena, google_compute_engine, submessage_arena); } set_has_google_compute_engine(); - credential_specifier_.google_compute_engine_ = google_compute_engine; + _impl_.credential_specifier_.google_compute_engine_ = google_compute_engine; } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) } void GrpcService_GoogleGrpc_CallCredentials::clear_google_compute_engine() { - if (has_google_compute_engine()) { - delete credential_specifier_.google_compute_engine_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() == kGoogleComputeEngine) { + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.google_compute_engine_; + } clear_has_credential_specifier(); } } void GrpcService_GoogleGrpc_CallCredentials::set_allocated_service_account_jwt_access(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* service_account_jwt_access) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_credential_specifier(); if (service_account_jwt_access) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = service_account_jwt_access->GetArena(); if (message_arena != submessage_arena) { - service_account_jwt_access = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, service_account_jwt_access, submessage_arena); + service_account_jwt_access = ::google::protobuf::internal::GetOwnedMessage(message_arena, service_account_jwt_access, submessage_arena); } set_has_service_account_jwt_access(); - credential_specifier_.service_account_jwt_access_ = service_account_jwt_access; + _impl_.credential_specifier_.service_account_jwt_access_ = service_account_jwt_access; } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) } void GrpcService_GoogleGrpc_CallCredentials::set_allocated_google_iam(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* google_iam) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_credential_specifier(); if (google_iam) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = google_iam->GetArena(); if (message_arena != submessage_arena) { - google_iam = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, google_iam, submessage_arena); + google_iam = ::google::protobuf::internal::GetOwnedMessage(message_arena, google_iam, submessage_arena); } set_has_google_iam(); - credential_specifier_.google_iam_ = google_iam; + _impl_.credential_specifier_.google_iam_ = google_iam; } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.google_iam) } void GrpcService_GoogleGrpc_CallCredentials::set_allocated_from_plugin(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* from_plugin) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_credential_specifier(); if (from_plugin) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = from_plugin->GetArena(); if (message_arena != submessage_arena) { - from_plugin = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, from_plugin, submessage_arena); + from_plugin = ::google::protobuf::internal::GetOwnedMessage(message_arena, from_plugin, submessage_arena); } set_has_from_plugin(); - credential_specifier_.from_plugin_ = from_plugin; + _impl_.credential_specifier_.from_plugin_ = from_plugin; } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.from_plugin) } void GrpcService_GoogleGrpc_CallCredentials::set_allocated_sts_service(::GrpcService_GoogleGrpc_CallCredentials_StsService* sts_service) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_credential_specifier(); if (sts_service) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = sts_service->GetArena(); if (message_arena != submessage_arena) { - sts_service = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, sts_service, submessage_arena); + sts_service = ::google::protobuf::internal::GetOwnedMessage(message_arena, sts_service, submessage_arena); } set_has_sts_service(); - credential_specifier_.sts_service_ = sts_service; + _impl_.credential_specifier_.sts_service_ = sts_service; } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.sts_service) } -GrpcService_GoogleGrpc_CallCredentials::GrpcService_GoogleGrpc_CallCredentials() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.GoogleGrpc.CallCredentials) -} -GrpcService_GoogleGrpc_CallCredentials::GrpcService_GoogleGrpc_CallCredentials(const GrpcService_GoogleGrpc_CallCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_credential_specifier(); - switch (from.credential_specifier_case()) { - case kAccessToken: { - set_access_token(from.access_token()); - break; - } - case kGoogleComputeEngine: { - mutable_google_compute_engine()->PROTOBUF_NAMESPACE_ID::Empty::MergeFrom(from.google_compute_engine()); - break; - } - case kGoogleRefreshToken: { - set_google_refresh_token(from.google_refresh_token()); - break; - } - case kServiceAccountJwtAccess: { - mutable_service_account_jwt_access()->::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::MergeFrom(from.service_account_jwt_access()); - break; - } - case kGoogleIam: { - mutable_google_iam()->::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::MergeFrom(from.google_iam()); - break; - } - case kFromPlugin: { - mutable_from_plugin()->::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::MergeFrom(from.from_plugin()); - break; - } - case kStsService: { - mutable_sts_service()->::GrpcService_GoogleGrpc_CallCredentials_StsService::MergeFrom(from.sts_service()); - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { +GrpcService_GoogleGrpc_CallCredentials::GrpcService_GoogleGrpc_CallCredentials(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.CallCredentials) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : credential_specifier_{}, + _cached_size_{0}, + _oneof_case_{from._oneof_case_[0]} {} + +GrpcService_GoogleGrpc_CallCredentials::GrpcService_GoogleGrpc_CallCredentials( + ::google::protobuf::Arena* arena, + const GrpcService_GoogleGrpc_CallCredentials& from) + : ::google::protobuf::Message(arena) { + GrpcService_GoogleGrpc_CallCredentials* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + switch (credential_specifier_case()) { + case CREDENTIAL_SPECIFIER_NOT_SET: break; - } + case kAccessToken: + new (&_impl_.credential_specifier_.access_token_) decltype(_impl_.credential_specifier_.access_token_){arena, from._impl_.credential_specifier_.access_token_}; + break; + case kGoogleComputeEngine: + _impl_.credential_specifier_.google_compute_engine_ = ::google::protobuf::Message::CopyConstruct<::google::protobuf::Empty>(arena, *from._impl_.credential_specifier_.google_compute_engine_); + break; + case kGoogleRefreshToken: + new (&_impl_.credential_specifier_.google_refresh_token_) decltype(_impl_.credential_specifier_.google_refresh_token_){arena, from._impl_.credential_specifier_.google_refresh_token_}; + break; + case kServiceAccountJwtAccess: + _impl_.credential_specifier_.service_account_jwt_access_ = ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>(arena, *from._impl_.credential_specifier_.service_account_jwt_access_); + break; + case kGoogleIam: + _impl_.credential_specifier_.google_iam_ = ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>(arena, *from._impl_.credential_specifier_.google_iam_); + break; + case kFromPlugin: + _impl_.credential_specifier_.from_plugin_ = ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>(arena, *from._impl_.credential_specifier_.from_plugin_); + break; + case kStsService: + _impl_.credential_specifier_.sts_service_ = ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_StsService>(arena, *from._impl_.credential_specifier_.sts_service_); + break; } + // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials) } +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : credential_specifier_{}, + _cached_size_{0}, + _oneof_case_{} {} -void GrpcService_GoogleGrpc_CallCredentials::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_2eproto.base); - clear_has_credential_specifier(); +inline void GrpcService_GoogleGrpc_CallCredentials::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - GrpcService_GoogleGrpc_CallCredentials::~GrpcService_GoogleGrpc_CallCredentials() { // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - -void GrpcService_GoogleGrpc_CallCredentials::SharedDtor() { +inline void GrpcService_GoogleGrpc_CallCredentials::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); if (has_credential_specifier()) { clear_credential_specifier(); } + _impl_.~Impl_(); } -void GrpcService_GoogleGrpc_CallCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_GoogleGrpc_CallCredentials& GrpcService_GoogleGrpc_CallCredentials::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_2eproto.base); - return *internal_default_instance(); -} - - void GrpcService_GoogleGrpc_CallCredentials::clear_credential_specifier() { // @@protoc_insertion_point(one_of_clear_start:GrpcService.GoogleGrpc.CallCredentials) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (credential_specifier_case()) { case kAccessToken: { - credential_specifier_.access_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.credential_specifier_.access_token_.Destroy(); break; } case kGoogleComputeEngine: { - delete credential_specifier_.google_compute_engine_; + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.google_compute_engine_; + } break; } case kGoogleRefreshToken: { - credential_specifier_.google_refresh_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.credential_specifier_.google_refresh_token_.Destroy(); break; } case kServiceAccountJwtAccess: { - delete credential_specifier_.service_account_jwt_access_; + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.service_account_jwt_access_; + } break; } case kGoogleIam: { - delete credential_specifier_.google_iam_; + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.google_iam_; + } break; } case kFromPlugin: { - delete credential_specifier_.from_plugin_; + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.from_plugin_; + } break; } case kStsService: { - delete credential_specifier_.sts_service_; + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.sts_service_; + } break; } case CREDENTIAL_SPECIFIER_NOT_SET: { break; } } - _oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; + _impl_._oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; } -void GrpcService_GoogleGrpc_CallCredentials::Clear() { +const ::google::protobuf::MessageLite::ClassData* +GrpcService_GoogleGrpc_CallCredentials::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_._cached_size_), + false, + }, + &GrpcService_GoogleGrpc_CallCredentials::MergeImpl, + &GrpcService_GoogleGrpc_CallCredentials::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_CallCredentials::Clear() { // @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; clear_credential_specifier(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_GoogleGrpc_CallCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string access_token = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_access_token(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.access_token"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .google.protobuf.Empty google_compute_engine = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(mutable_google_compute_engine(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string google_refresh_token = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_google_refresh_token(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.google_refresh_token"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ctx->ParseMessage(mutable_service_account_jwt_access(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr = ctx->ParseMessage(mutable_google_iam(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr = ctx->ParseMessage(mutable_from_plugin(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { - ptr = ctx->ParseMessage(mutable_sts_service(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_GoogleGrpc_CallCredentials::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:GrpcService.GoogleGrpc.CallCredentials) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string access_token = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_access_token())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->access_token().data(), static_cast(this->access_token().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.access_token")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Empty google_compute_engine = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_google_compute_engine())); - } else { - goto handle_unusual; - } - break; - } - - // string google_refresh_token = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_google_refresh_token())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->google_refresh_token().data(), static_cast(this->google_refresh_token().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.google_refresh_token")); - } else { - goto handle_unusual; - } - break; - } - - // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_service_account_jwt_access())); - } else { - goto handle_unusual; - } - break; - } - - // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; - case 5: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_google_iam())); - } else { - goto handle_unusual; - } - break; - } - - // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; - case 6: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_from_plugin())); - } else { - goto handle_unusual; - } - break; - } - - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - case 7: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_sts_service())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc.CallCredentials) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.GoogleGrpc.CallCredentials) - return false; -#undef DO_ + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GrpcService_GoogleGrpc_CallCredentials::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.GoogleGrpc.CallCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string access_token = 1; - if (has_access_token()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->access_token().data(), static_cast(this->access_token().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.access_token"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->access_token(), output); - } - - // .google.protobuf.Empty google_compute_engine = 2; - if (has_google_compute_engine()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, _Internal::google_compute_engine(this), output); - } - - // string google_refresh_token = 3; - if (has_google_refresh_token()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->google_refresh_token().data(), static_cast(this->google_refresh_token().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.google_refresh_token"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->google_refresh_token(), output); - } - - // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; - if (has_service_account_jwt_access()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, _Internal::service_account_jwt_access(this), output); - } - - // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; - if (has_google_iam()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, _Internal::google_iam(this), output); - } - // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; - if (has_from_plugin()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, _Internal::from_plugin(this), output); - } - - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - if (has_sts_service()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, _Internal::sts_service(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.CallCredentials) +const char* GrpcService_GoogleGrpc_CallCredentials::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; } -::PROTOBUF_NAMESPACE_ID::uint8* GrpcService_GoogleGrpc_CallCredentials::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.CallCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string access_token = 1; - if (has_access_token()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->access_token().data(), static_cast(this->access_token().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.access_token"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->access_token(), target); - } - - // .google.protobuf.Empty google_compute_engine = 2; - if (has_google_compute_engine()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, _Internal::google_compute_engine(this), target); - } - - // string google_refresh_token = 3; - if (has_google_refresh_token()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->google_refresh_token().data(), static_cast(this->google_refresh_token().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.google_refresh_token"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 3, this->google_refresh_token(), target); - } - - // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; - if (has_service_account_jwt_access()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, _Internal::service_account_jwt_access(this), target); - } - - // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; - if (has_google_iam()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, _Internal::google_iam(this), target); - } - - // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; - if (has_from_plugin()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, _Internal::from_plugin(this), target); - } - - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - if (has_sts_service()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, _Internal::sts_service(this), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.CallCredentials) - return target; -} -size_t GrpcService_GoogleGrpc_CallCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials) - size_t total_size = 0; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 7, 5, 79, 2> GrpcService_GoogleGrpc_CallCredentials::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 7, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967168, // skipmap + offsetof(decltype(_table_), field_entries), + 7, // num_field_entries + 5, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_GrpcService_GoogleGrpc_CallCredentials_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // string access_token = 1; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.access_token_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .google.protobuf.Empty google_compute_engine = 2; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.google_compute_engine_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvDefault)}, + // string google_refresh_token = 3; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.google_refresh_token_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.service_account_jwt_access_), _Internal::kOneofCaseOffset + 0, 1, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.google_iam_), _Internal::kOneofCaseOffset + 0, 2, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.from_plugin_), _Internal::kOneofCaseOffset + 0, 3, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.sts_service_), _Internal::kOneofCaseOffset + 0, 4, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::FieldAuxDefaultMessage{}, &::google::protobuf::_Empty_default_instance_}, + {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>()}, + {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>()}, + {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>()}, + {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_StsService>()}, + }}, {{ + "\46\14\0\24\0\0\0\0" + "GrpcService.GoogleGrpc.CallCredentials" + "access_token" + "google_refresh_token" + }}, +}; - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; +::uint8_t* GrpcService_GoogleGrpc_CallCredentials::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.CallCredentials) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; switch (credential_specifier_case()) { - // string access_token = 1; case kAccessToken: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->access_token()); + const std::string& _s = this->_internal_access_token(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.access_token"); + target = stream->WriteStringMaybeAliased(1, _s, target); break; } - // .google.protobuf.Empty google_compute_engine = 2; case kGoogleComputeEngine: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *credential_specifier_.google_compute_engine_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *_impl_.credential_specifier_.google_compute_engine_, _impl_.credential_specifier_.google_compute_engine_->GetCachedSize(), target, stream); break; } - // string google_refresh_token = 3; case kGoogleRefreshToken: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->google_refresh_token()); + const std::string& _s = this->_internal_google_refresh_token(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.google_refresh_token"); + target = stream->WriteStringMaybeAliased(3, _s, target); break; } - // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; case kServiceAccountJwtAccess: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *credential_specifier_.service_account_jwt_access_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *_impl_.credential_specifier_.service_account_jwt_access_, _impl_.credential_specifier_.service_account_jwt_access_->GetCachedSize(), target, stream); break; } - // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; case kGoogleIam: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *credential_specifier_.google_iam_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, *_impl_.credential_specifier_.google_iam_, _impl_.credential_specifier_.google_iam_->GetCachedSize(), target, stream); break; } - // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; case kFromPlugin: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *credential_specifier_.from_plugin_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *_impl_.credential_specifier_.from_plugin_, _impl_.credential_specifier_.from_plugin_->GetCachedSize(), target, stream); break; } - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; case kStsService: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *credential_specifier_.sts_service_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 7, *_impl_.credential_specifier_.sts_service_, _impl_.credential_specifier_.sts_service_->GetCachedSize(), target, stream); break; } - case CREDENTIAL_SPECIFIER_NOT_SET: { + default: break; - } } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GrpcService_GoogleGrpc_CallCredentials::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:GrpcService.GoogleGrpc.CallCredentials) - GOOGLE_DCHECK_NE(&from, this); - const GrpcService_GoogleGrpc_CallCredentials* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:GrpcService.GoogleGrpc.CallCredentials) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:GrpcService.GoogleGrpc.CallCredentials) - MergeFrom(*source); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } + // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.CallCredentials) + return target; } -void GrpcService_GoogleGrpc_CallCredentials::MergeFrom(const GrpcService_GoogleGrpc_CallCredentials& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +::size_t GrpcService_GoogleGrpc_CallCredentials::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - switch (from.credential_specifier_case()) { + switch (credential_specifier_case()) { + // string access_token = 1; case kAccessToken: { - set_access_token(from.access_token()); + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_access_token()); break; } + // .google.protobuf.Empty google_compute_engine = 2; case kGoogleComputeEngine: { - mutable_google_compute_engine()->PROTOBUF_NAMESPACE_ID::Empty::MergeFrom(from.google_compute_engine()); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.google_compute_engine_); break; } + // string google_refresh_token = 3; case kGoogleRefreshToken: { - set_google_refresh_token(from.google_refresh_token()); + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_google_refresh_token()); break; } + // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; case kServiceAccountJwtAccess: { - mutable_service_account_jwt_access()->::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::MergeFrom(from.service_account_jwt_access()); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.service_account_jwt_access_); break; } + // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; case kGoogleIam: { - mutable_google_iam()->::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::MergeFrom(from.google_iam()); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.google_iam_); break; } + // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; case kFromPlugin: { - mutable_from_plugin()->::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::MergeFrom(from.from_plugin()); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.from_plugin_); break; } + // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; case kStsService: { - mutable_sts_service()->::GrpcService_GoogleGrpc_CallCredentials_StsService::MergeFrom(from.sts_service()); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.sts_service_); break; } case CREDENTIAL_SPECIFIER_NOT_SET: { break; } } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void GrpcService_GoogleGrpc_CallCredentials::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:GrpcService.GoogleGrpc.CallCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GrpcService_GoogleGrpc_CallCredentials::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.CallCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GrpcService_GoogleGrpc_CallCredentials::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_CallCredentials::InternalSwap(GrpcService_GoogleGrpc_CallCredentials* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(credential_specifier_, other->credential_specifier_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GrpcService_GoogleGrpc_CallCredentials::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void GrpcService_GoogleGrpc::InitAsDefaultInstance() { - ::_GrpcService_GoogleGrpc_default_instance_._instance.get_mutable()->channel_credentials_ = const_cast< ::GrpcService_GoogleGrpc_ChannelCredentials*>( - ::GrpcService_GoogleGrpc_ChannelCredentials::internal_default_instance()); - ::_GrpcService_GoogleGrpc_default_instance_._instance.get_mutable()->config_ = const_cast< PROTOBUF_NAMESPACE_ID::Struct*>( - PROTOBUF_NAMESPACE_ID::Struct::internal_default_instance()); -} -class GrpcService_GoogleGrpc::_Internal { - public: - static const ::GrpcService_GoogleGrpc_ChannelCredentials& channel_credentials(const GrpcService_GoogleGrpc* msg); - static const PROTOBUF_NAMESPACE_ID::Struct& config(const GrpcService_GoogleGrpc* msg); -}; - -const ::GrpcService_GoogleGrpc_ChannelCredentials& -GrpcService_GoogleGrpc::_Internal::channel_credentials(const GrpcService_GoogleGrpc* msg) { - return *msg->channel_credentials_; -} -const PROTOBUF_NAMESPACE_ID::Struct& -GrpcService_GoogleGrpc::_Internal::config(const GrpcService_GoogleGrpc* msg) { - return *msg->config_; -} -void GrpcService_GoogleGrpc::clear_config() { - if (GetArenaNoVirtual() == nullptr && config_ != nullptr) { - delete config_; - } - config_ = nullptr; -} -GrpcService_GoogleGrpc::GrpcService_GoogleGrpc() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.GoogleGrpc) -} -GrpcService_GoogleGrpc::GrpcService_GoogleGrpc(const GrpcService_GoogleGrpc& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - call_credentials_(from.call_credentials_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - target_uri_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.target_uri().empty()) { - target_uri_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.target_uri_); - } - stat_prefix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.stat_prefix().empty()) { - stat_prefix_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.stat_prefix_); - } - credentials_factory_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.credentials_factory_name().empty()) { - credentials_factory_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.credentials_factory_name_); - } - if (from.has_channel_credentials()) { - channel_credentials_ = new ::GrpcService_GoogleGrpc_ChannelCredentials(*from.channel_credentials_); - } else { - channel_credentials_ = nullptr; - } - if (from.has_config()) { - config_ = new PROTOBUF_NAMESPACE_ID::Struct(*from.config_); - } else { - config_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc) -} - -void GrpcService_GoogleGrpc::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_GoogleGrpc_proxy_5fwasm_5fintrinsics_2eproto.base); - target_uri_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - stat_prefix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - credentials_factory_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&channel_credentials_, 0, static_cast( - reinterpret_cast(&config_) - - reinterpret_cast(&channel_credentials_)) + sizeof(config_)); -} -GrpcService_GoogleGrpc::~GrpcService_GoogleGrpc() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc) - SharedDtor(); -} - -void GrpcService_GoogleGrpc::SharedDtor() { - target_uri_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - stat_prefix_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - credentials_factory_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete channel_credentials_; - if (this != internal_default_instance()) delete config_; -} - -void GrpcService_GoogleGrpc::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_GoogleGrpc& GrpcService_GoogleGrpc::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_GoogleGrpc_proxy_5fwasm_5fintrinsics_2eproto.base); - return *internal_default_instance(); -} - - -void GrpcService_GoogleGrpc::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused +void GrpcService_GoogleGrpc_CallCredentials::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - call_credentials_.Clear(); - target_uri_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - stat_prefix_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - credentials_factory_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && channel_credentials_ != nullptr) { - delete channel_credentials_; - } - channel_credentials_ = nullptr; - if (GetArenaNoVirtual() == nullptr && config_ != nullptr) { - delete config_; - } - config_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_GoogleGrpc::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string target_uri = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_target_uri(), ptr, ctx, "GrpcService.GoogleGrpc.target_uri"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(mutable_channel_credentials(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_call_credentials(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); - } else goto handle_unusual; - continue; - // string stat_prefix = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_stat_prefix(), ptr, ctx, "GrpcService.GoogleGrpc.stat_prefix"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string credentials_factory_name = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_credentials_factory_name(), ptr, ctx, "GrpcService.GoogleGrpc.credentials_factory_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .google.protobuf.Struct config = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr = ctx->ParseMessage(mutable_config(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { + const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; + const bool oneof_needs_init = oneof_to_case != oneof_from_case; + if (oneof_needs_init) { + if (oneof_to_case != 0) { + _this->clear_credential_specifier(); } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_GoogleGrpc::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:GrpcService.GoogleGrpc) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string target_uri = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_target_uri())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->target_uri().data(), static_cast(this->target_uri().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.target_uri")); - } else { - goto handle_unusual; + _this->_impl_._oneof_case_[0] = oneof_from_case; + } + + switch (oneof_from_case) { + case kAccessToken: { + if (oneof_needs_init) { + _this->_impl_.credential_specifier_.access_token_.InitDefault(); } + _this->_impl_.credential_specifier_.access_token_.Set(from._internal_access_token(), arena); break; } - - // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_channel_credentials())); + case kGoogleComputeEngine: { + if (oneof_needs_init) { + _this->_impl_.credential_specifier_.google_compute_engine_ = + ::google::protobuf::Message::CopyConstruct<::google::protobuf::Empty>(arena, *from._impl_.credential_specifier_.google_compute_engine_); } else { - goto handle_unusual; + _this->_impl_.credential_specifier_.google_compute_engine_->MergeFrom(from._internal_google_compute_engine()); } break; } - - // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_call_credentials())); - } else { - goto handle_unusual; + case kGoogleRefreshToken: { + if (oneof_needs_init) { + _this->_impl_.credential_specifier_.google_refresh_token_.InitDefault(); } + _this->_impl_.credential_specifier_.google_refresh_token_.Set(from._internal_google_refresh_token(), arena); break; } - - // string stat_prefix = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_stat_prefix())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->stat_prefix().data(), static_cast(this->stat_prefix().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.stat_prefix")); + case kServiceAccountJwtAccess: { + if (oneof_needs_init) { + _this->_impl_.credential_specifier_.service_account_jwt_access_ = + ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>(arena, *from._impl_.credential_specifier_.service_account_jwt_access_); } else { - goto handle_unusual; + _this->_impl_.credential_specifier_.service_account_jwt_access_->MergeFrom(from._internal_service_account_jwt_access()); } break; } - - // string credentials_factory_name = 5; - case 5: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_credentials_factory_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->credentials_factory_name().data(), static_cast(this->credentials_factory_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.credentials_factory_name")); + case kGoogleIam: { + if (oneof_needs_init) { + _this->_impl_.credential_specifier_.google_iam_ = + ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>(arena, *from._impl_.credential_specifier_.google_iam_); } else { - goto handle_unusual; + _this->_impl_.credential_specifier_.google_iam_->MergeFrom(from._internal_google_iam()); } break; } - - // .google.protobuf.Struct config = 6; - case 6: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_config())); + case kFromPlugin: { + if (oneof_needs_init) { + _this->_impl_.credential_specifier_.from_plugin_ = + ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>(arena, *from._impl_.credential_specifier_.from_plugin_); } else { - goto handle_unusual; + _this->_impl_.credential_specifier_.from_plugin_->MergeFrom(from._internal_from_plugin()); } break; } - - default: { - handle_unusual: - if (tag == 0) { - goto success; + case kStsService: { + if (oneof_needs_init) { + _this->_impl_.credential_specifier_.sts_service_ = + ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_StsService>(arena, *from._impl_.credential_specifier_.sts_service_); + } else { + _this->_impl_.credential_specifier_.sts_service_->MergeFrom(from._internal_sts_service()); } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); break; } + case CREDENTIAL_SPECIFIER_NOT_SET: + break; } } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc) + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void GrpcService_GoogleGrpc_CallCredentials::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.CallCredentials) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_CallCredentials::IsInitialized() const { return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.GoogleGrpc) - return false; -#undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void GrpcService_GoogleGrpc::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.GoogleGrpc) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; +void GrpcService_GoogleGrpc_CallCredentials::InternalSwap(GrpcService_GoogleGrpc_CallCredentials* PROTOBUF_RESTRICT other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.credential_specifier_, other->_impl_.credential_specifier_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} - // string target_uri = 1; - if (this->target_uri().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->target_uri().data(), static_cast(this->target_uri().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.target_uri"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->target_uri(), output); - } +::google::protobuf::Metadata GrpcService_GoogleGrpc_CallCredentials::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, + &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, + file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[10]); +} +// =================================================================== - // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - if (this->has_channel_credentials()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, _Internal::channel_credentials(this), output); - } +class GrpcService_GoogleGrpc::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_._has_bits_); +}; - // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; - for (unsigned int i = 0, - n = static_cast(this->call_credentials_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, - this->call_credentials(static_cast(i)), - output); - } +void GrpcService_GoogleGrpc::clear_config() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.config_ != nullptr) _impl_.config_->Clear(); + _impl_._has_bits_[0] &= ~0x00000002u; +} +GrpcService_GoogleGrpc::GrpcService_GoogleGrpc(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + call_credentials_{visibility, arena, from.call_credentials_}, + target_uri_(arena, from.target_uri_), + stat_prefix_(arena, from.stat_prefix_), + credentials_factory_name_(arena, from.credentials_factory_name_) {} + +GrpcService_GoogleGrpc::GrpcService_GoogleGrpc( + ::google::protobuf::Arena* arena, + const GrpcService_GoogleGrpc& from) + : ::google::protobuf::Message(arena) { + GrpcService_GoogleGrpc* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.channel_credentials_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_ChannelCredentials>( + arena, *from._impl_.channel_credentials_) + : nullptr; + _impl_.config_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::google::protobuf::Struct>( + arena, *from._impl_.config_) + : nullptr; + + // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + call_credentials_{visibility, arena}, + target_uri_(arena), + stat_prefix_(arena), + credentials_factory_name_(arena) {} + +inline void GrpcService_GoogleGrpc::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, channel_credentials_), + 0, + offsetof(Impl_, config_) - + offsetof(Impl_, channel_credentials_) + + sizeof(Impl_::config_)); +} +GrpcService_GoogleGrpc::~GrpcService_GoogleGrpc() { + // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void GrpcService_GoogleGrpc::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.target_uri_.Destroy(); + _impl_.stat_prefix_.Destroy(); + _impl_.credentials_factory_name_.Destroy(); + delete _impl_.channel_credentials_; + delete _impl_.config_; + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +GrpcService_GoogleGrpc::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_._cached_size_), + false, + }, + &GrpcService_GoogleGrpc::MergeImpl, + &GrpcService_GoogleGrpc::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void GrpcService_GoogleGrpc::Clear() { +// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; - // string stat_prefix = 4; - if (this->stat_prefix().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->stat_prefix().data(), static_cast(this->stat_prefix().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.stat_prefix"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->stat_prefix(), output); + _impl_.call_credentials_.Clear(); + _impl_.target_uri_.ClearToEmpty(); + _impl_.stat_prefix_.ClearToEmpty(); + _impl_.credentials_factory_name_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.channel_credentials_ != nullptr); + _impl_.channel_credentials_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.config_ != nullptr); + _impl_.config_->Clear(); + } } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} - // string credentials_factory_name = 5; - if (this->credentials_factory_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->credentials_factory_name().data(), static_cast(this->credentials_factory_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.credentials_factory_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->credentials_factory_name(), output); - } +const char* GrpcService_GoogleGrpc::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} - // .google.protobuf.Struct config = 6; - if (this->has_config()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, _Internal::config(this), output); - } - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc) -} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 6, 3, 76, 2> GrpcService_GoogleGrpc::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_._has_bits_), + 0, // no _extensions_ + 6, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967232, // skipmap + offsetof(decltype(_table_), field_entries), + 6, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_GrpcService_GoogleGrpc_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string target_uri = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.target_uri_)}}, + // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.channel_credentials_)}}, + // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; + {::_pbi::TcParser::FastMtR1, + {26, 63, 1, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.call_credentials_)}}, + // string stat_prefix = 4; + {::_pbi::TcParser::FastUS1, + {34, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.stat_prefix_)}}, + // string credentials_factory_name = 5; + {::_pbi::TcParser::FastUS1, + {42, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.credentials_factory_name_)}}, + // .google.protobuf.Struct config = 6; + {::_pbi::TcParser::FastMtS1, + {50, 1, 2, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.config_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // string target_uri = 1; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.target_uri_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.channel_credentials_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.call_credentials_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // string stat_prefix = 4; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.stat_prefix_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string credentials_factory_name = 5; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.credentials_factory_name_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .google.protobuf.Struct config = 6; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.config_), _Internal::kHasBitsOffset + 1, 2, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_ChannelCredentials>()}, + {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, + }}, {{ + "\26\12\0\0\13\30\0\0" + "GrpcService.GoogleGrpc" + "target_uri" + "stat_prefix" + "credentials_factory_name" + }}, +}; -::PROTOBUF_NAMESPACE_ID::uint8* GrpcService_GoogleGrpc::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::uint8_t* GrpcService_GoogleGrpc::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; // string target_uri = 1; - if (this->target_uri().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->target_uri().data(), static_cast(this->target_uri().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.target_uri"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->target_uri(), target); + if (!this->_internal_target_uri().empty()) { + const std::string& _s = this->_internal_target_uri(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.target_uri"); + target = stream->WriteStringMaybeAliased(1, _s, target); } + cached_has_bits = _impl_._has_bits_[0]; // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - if (this->has_channel_credentials()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, _Internal::channel_credentials(this), target); + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *_impl_.channel_credentials_, _impl_.channel_credentials_->GetCachedSize(), target, stream); } // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; - for (unsigned int i = 0, - n = static_cast(this->call_credentials_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->call_credentials(static_cast(i)), target); + for (unsigned i = 0, n = static_cast( + this->_internal_call_credentials_size()); + i < n; i++) { + const auto& repfield = this->_internal_call_credentials().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, repfield, repfield.GetCachedSize(), + target, stream); } // string stat_prefix = 4; - if (this->stat_prefix().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->stat_prefix().data(), static_cast(this->stat_prefix().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.stat_prefix"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 4, this->stat_prefix(), target); + if (!this->_internal_stat_prefix().empty()) { + const std::string& _s = this->_internal_stat_prefix(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.stat_prefix"); + target = stream->WriteStringMaybeAliased(4, _s, target); } // string credentials_factory_name = 5; - if (this->credentials_factory_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->credentials_factory_name().data(), static_cast(this->credentials_factory_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.credentials_factory_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 5, this->credentials_factory_name(), target); + if (!this->_internal_credentials_factory_name().empty()) { + const std::string& _s = this->_internal_credentials_factory_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.credentials_factory_name"); + target = stream->WriteStringMaybeAliased(5, _s, target); } // .google.protobuf.Struct config = 6; - if (this->has_config()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, _Internal::config(this), target); + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *_impl_.config_, _impl_.config_->GetCachedSize(), target, stream); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc) return target; } -size_t GrpcService_GoogleGrpc::ByteSizeLong() const { +::size_t GrpcService_GoogleGrpc::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc) - size_t total_size = 0; + ::size_t total_size = 0; - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; - { - unsigned int count = static_cast(this->call_credentials_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->call_credentials(static_cast(i))); - } + total_size += 1UL * this->_internal_call_credentials_size(); + for (const auto& msg : this->_internal_call_credentials()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } - // string target_uri = 1; - if (this->target_uri().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->target_uri()); + if (!this->_internal_target_uri().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_target_uri()); } // string stat_prefix = 4; - if (this->stat_prefix().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->stat_prefix()); + if (!this->_internal_stat_prefix().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_stat_prefix()); } // string credentials_factory_name = 5; - if (this->credentials_factory_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->credentials_factory_name()); - } - - // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - if (this->has_channel_credentials()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *channel_credentials_); + if (!this->_internal_credentials_factory_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_credentials_factory_name()); } - // .google.protobuf.Struct config = 6; - if (this->has_config()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *config_); - } + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; + if (cached_has_bits & 0x00000001u) { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.channel_credentials_); + } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} + // .google.protobuf.Struct config = 6; + if (cached_has_bits & 0x00000002u) { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.config_); + } -void GrpcService_GoogleGrpc::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:GrpcService.GoogleGrpc) - GOOGLE_DCHECK_NE(&from, this); - const GrpcService_GoogleGrpc* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:GrpcService.GoogleGrpc) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:GrpcService.GoogleGrpc) - MergeFrom(*source); } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void GrpcService_GoogleGrpc::MergeFrom(const GrpcService_GoogleGrpc& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - call_credentials_.MergeFrom(from.call_credentials_); - if (from.target_uri().size() > 0) { - - target_uri_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.target_uri_); - } - if (from.stat_prefix().size() > 0) { - stat_prefix_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.stat_prefix_); - } - if (from.credentials_factory_name().size() > 0) { +void GrpcService_GoogleGrpc::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; - credentials_factory_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.credentials_factory_name_); - } - if (from.has_channel_credentials()) { - mutable_channel_credentials()->::GrpcService_GoogleGrpc_ChannelCredentials::MergeFrom(from.channel_credentials()); - } - if (from.has_config()) { - mutable_config()->PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from.config()); + _this->_internal_mutable_call_credentials()->MergeFrom( + from._internal_call_credentials()); + if (!from._internal_target_uri().empty()) { + _this->_internal_set_target_uri(from._internal_target_uri()); + } + if (!from._internal_stat_prefix().empty()) { + _this->_internal_set_stat_prefix(from._internal_stat_prefix()); + } + if (!from._internal_credentials_factory_name().empty()) { + _this->_internal_set_credentials_factory_name(from._internal_credentials_factory_name()); + } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.channel_credentials_ != nullptr); + if (_this->_impl_.channel_credentials_ == nullptr) { + _this->_impl_.channel_credentials_ = + ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_ChannelCredentials>(arena, *from._impl_.channel_credentials_); + } else { + _this->_impl_.channel_credentials_->MergeFrom(*from._impl_.channel_credentials_); + } + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(from._impl_.config_ != nullptr); + if (_this->_impl_.config_ == nullptr) { + _this->_impl_.config_ = + ::google::protobuf::Message::CopyConstruct<::google::protobuf::Struct>(arena, *from._impl_.config_); + } else { + _this->_impl_.config_->MergeFrom(*from._impl_.config_); + } + } } -} - -void GrpcService_GoogleGrpc::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:GrpcService.GoogleGrpc) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GrpcService_GoogleGrpc::CopyFrom(const GrpcService_GoogleGrpc& from) { @@ -5756,334 +4239,232 @@ void GrpcService_GoogleGrpc::CopyFrom(const GrpcService_GoogleGrpc& from) { MergeFrom(from); } -bool GrpcService_GoogleGrpc::IsInitialized() const { +PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc::IsInitialized() const { return true; } -void GrpcService_GoogleGrpc::InternalSwap(GrpcService_GoogleGrpc* other) { +void GrpcService_GoogleGrpc::InternalSwap(GrpcService_GoogleGrpc* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&call_credentials_)->InternalSwap(CastToBase(&other->call_credentials_)); - target_uri_.Swap(&other->target_uri_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - stat_prefix_.Swap(&other->stat_prefix_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - credentials_factory_name_.Swap(&other->credentials_factory_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(channel_credentials_, other->channel_credentials_); - swap(config_, other->config_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GrpcService_GoogleGrpc::GetMetadata() const { - return GetMetadataStatic(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.call_credentials_.InternalSwap(&other->_impl_.call_credentials_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.target_uri_, &other->_impl_.target_uri_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.stat_prefix_, &other->_impl_.stat_prefix_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.credentials_factory_name_, &other->_impl_.credentials_factory_name_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.config_) + + sizeof(GrpcService_GoogleGrpc::_impl_.config_) + - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.channel_credentials_)>( + reinterpret_cast(&_impl_.channel_credentials_), + reinterpret_cast(&other->_impl_.channel_credentials_)); +} + +::google::protobuf::Metadata GrpcService_GoogleGrpc::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, + &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, + file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[11]); } - - // =================================================================== -void GrpcService_HeaderValue::InitAsDefaultInstance() { -} class GrpcService_HeaderValue::_Internal { public: }; -GrpcService_HeaderValue::GrpcService_HeaderValue() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.HeaderValue) -} -GrpcService_HeaderValue::GrpcService_HeaderValue(const GrpcService_HeaderValue& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.key().empty()) { - key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_); - } - value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.value().empty()) { - value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); - } +GrpcService_HeaderValue::GrpcService_HeaderValue(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService.HeaderValue) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService_HeaderValue::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : key_(arena, from.key_), + value_(arena, from.value_), + _cached_size_{0} {} + +GrpcService_HeaderValue::GrpcService_HeaderValue( + ::google::protobuf::Arena* arena, + const GrpcService_HeaderValue& from) + : ::google::protobuf::Message(arena) { + GrpcService_HeaderValue* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + // @@protoc_insertion_point(copy_constructor:GrpcService.HeaderValue) } +inline PROTOBUF_NDEBUG_INLINE GrpcService_HeaderValue::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : key_(arena), + value_(arena), + _cached_size_{0} {} -void GrpcService_HeaderValue::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_HeaderValue_proxy_5fwasm_5fintrinsics_2eproto.base); - key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void GrpcService_HeaderValue::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - GrpcService_HeaderValue::~GrpcService_HeaderValue() { // @@protoc_insertion_point(destructor:GrpcService.HeaderValue) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - -void GrpcService_HeaderValue::SharedDtor() { - key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void GrpcService_HeaderValue::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_HeaderValue& GrpcService_HeaderValue::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_HeaderValue_proxy_5fwasm_5fintrinsics_2eproto.base); - return *internal_default_instance(); -} - - -void GrpcService_HeaderValue::Clear() { +inline void GrpcService_HeaderValue::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.key_.Destroy(); + _impl_.value_.Destroy(); + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +GrpcService_HeaderValue::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService_HeaderValue, _impl_._cached_size_), + false, + }, + &GrpcService_HeaderValue::MergeImpl, + &GrpcService_HeaderValue::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void GrpcService_HeaderValue::Clear() { // @@protoc_insertion_point(message_clear_start:GrpcService.HeaderValue) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_HeaderValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string key = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_key(), ptr, ctx, "GrpcService.HeaderValue.key"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string value = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_value(), ptr, ctx, "GrpcService.HeaderValue.value"); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_HeaderValue::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:GrpcService.HeaderValue) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string key = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_key())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.HeaderValue.key")); - } else { - goto handle_unusual; - } - break; - } - - // string value = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_value())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.HeaderValue.value")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.HeaderValue) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.HeaderValue) - return false; -#undef DO_ + _impl_.key_.ClearToEmpty(); + _impl_.value_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GrpcService_HeaderValue::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.HeaderValue) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - // string key = 1; - if (this->key().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.HeaderValue.key"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->key(), output); - } +const char* GrpcService_HeaderValue::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} - // string value = 2; - if (this->value().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.HeaderValue.value"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->value(), output); - } - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:GrpcService.HeaderValue) -} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 40, 2> GrpcService_HeaderValue::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GrpcService_HeaderValue_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService_HeaderValue>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string value = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_HeaderValue, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_HeaderValue, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(GrpcService_HeaderValue, _impl_.key_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string value = 2; + {PROTOBUF_FIELD_OFFSET(GrpcService_HeaderValue, _impl_.value_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\27\3\5\0\0\0\0\0" + "GrpcService.HeaderValue" + "key" + "value" + }}, +}; -::PROTOBUF_NAMESPACE_ID::uint8* GrpcService_HeaderValue::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::uint8_t* GrpcService_HeaderValue::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:GrpcService.HeaderValue) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; // string key = 1; - if (this->key().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.HeaderValue.key"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->key(), target); + if (!this->_internal_key().empty()) { + const std::string& _s = this->_internal_key(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.HeaderValue.key"); + target = stream->WriteStringMaybeAliased(1, _s, target); } // string value = 2; - if (this->value().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.HeaderValue.value"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->value(), target); + if (!this->_internal_value().empty()) { + const std::string& _s = this->_internal_value(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.HeaderValue.value"); + target = stream->WriteStringMaybeAliased(2, _s, target); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:GrpcService.HeaderValue) return target; } -size_t GrpcService_HeaderValue::ByteSizeLong() const { +::size_t GrpcService_HeaderValue::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GrpcService.HeaderValue) - size_t total_size = 0; + ::size_t total_size = 0; - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string key = 1; - if (this->key().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->key()); + if (!this->_internal_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_key()); } // string value = 2; - if (this->value().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->value()); + if (!this->_internal_value().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_value()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void GrpcService_HeaderValue::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:GrpcService.HeaderValue) - GOOGLE_DCHECK_NE(&from, this); - const GrpcService_HeaderValue* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:GrpcService.HeaderValue) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:GrpcService.HeaderValue) - MergeFrom(*source); - } -} -void GrpcService_HeaderValue::MergeFrom(const GrpcService_HeaderValue& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.HeaderValue) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void GrpcService_HeaderValue::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.HeaderValue) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.key().size() > 0) { - - key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_); + if (!from._internal_key().empty()) { + _this->_internal_set_key(from._internal_key()); } - if (from.value().size() > 0) { - - value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); + if (!from._internal_value().empty()) { + _this->_internal_set_value(from._internal_value()); } -} - -void GrpcService_HeaderValue::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:GrpcService.HeaderValue) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GrpcService_HeaderValue::CopyFrom(const GrpcService_HeaderValue& from) { @@ -6093,500 +4474,390 @@ void GrpcService_HeaderValue::CopyFrom(const GrpcService_HeaderValue& from) { MergeFrom(from); } -bool GrpcService_HeaderValue::IsInitialized() const { +PROTOBUF_NOINLINE bool GrpcService_HeaderValue::IsInitialized() const { return true; } -void GrpcService_HeaderValue::InternalSwap(GrpcService_HeaderValue* other) { +void GrpcService_HeaderValue::InternalSwap(GrpcService_HeaderValue* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - key_.Swap(&other->key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - value_.Swap(&other->value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, &other->_impl_.key_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.value_, &other->_impl_.value_, arena); } -::PROTOBUF_NAMESPACE_ID::Metadata GrpcService_HeaderValue::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata GrpcService_HeaderValue::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, + &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, + file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[12]); } - - // =================================================================== -void GrpcService::InitAsDefaultInstance() { - ::_GrpcService_default_instance_.envoy_grpc_ = const_cast< ::GrpcService_EnvoyGrpc*>( - ::GrpcService_EnvoyGrpc::internal_default_instance()); - ::_GrpcService_default_instance_.google_grpc_ = const_cast< ::GrpcService_GoogleGrpc*>( - ::GrpcService_GoogleGrpc::internal_default_instance()); - ::_GrpcService_default_instance_._instance.get_mutable()->timeout_ = const_cast< PROTOBUF_NAMESPACE_ID::Duration*>( - PROTOBUF_NAMESPACE_ID::Duration::internal_default_instance()); -} class GrpcService::_Internal { public: - static const ::GrpcService_EnvoyGrpc& envoy_grpc(const GrpcService* msg); - static const ::GrpcService_GoogleGrpc& google_grpc(const GrpcService* msg); - static const PROTOBUF_NAMESPACE_ID::Duration& timeout(const GrpcService* msg); + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GrpcService, _impl_._has_bits_); + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::GrpcService, _impl_._oneof_case_); }; -const ::GrpcService_EnvoyGrpc& -GrpcService::_Internal::envoy_grpc(const GrpcService* msg) { - return *msg->target_specifier_.envoy_grpc_; -} -const ::GrpcService_GoogleGrpc& -GrpcService::_Internal::google_grpc(const GrpcService* msg) { - return *msg->target_specifier_.google_grpc_; -} -const PROTOBUF_NAMESPACE_ID::Duration& -GrpcService::_Internal::timeout(const GrpcService* msg) { - return *msg->timeout_; -} void GrpcService::set_allocated_envoy_grpc(::GrpcService_EnvoyGrpc* envoy_grpc) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_target_specifier(); if (envoy_grpc) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = envoy_grpc->GetArena(); if (message_arena != submessage_arena) { - envoy_grpc = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, envoy_grpc, submessage_arena); + envoy_grpc = ::google::protobuf::internal::GetOwnedMessage(message_arena, envoy_grpc, submessage_arena); } set_has_envoy_grpc(); - target_specifier_.envoy_grpc_ = envoy_grpc; + _impl_.target_specifier_.envoy_grpc_ = envoy_grpc; } // @@protoc_insertion_point(field_set_allocated:GrpcService.envoy_grpc) } void GrpcService::set_allocated_google_grpc(::GrpcService_GoogleGrpc* google_grpc) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_target_specifier(); if (google_grpc) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = google_grpc->GetArena(); if (message_arena != submessage_arena) { - google_grpc = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, google_grpc, submessage_arena); + google_grpc = ::google::protobuf::internal::GetOwnedMessage(message_arena, google_grpc, submessage_arena); } set_has_google_grpc(); - target_specifier_.google_grpc_ = google_grpc; + _impl_.target_specifier_.google_grpc_ = google_grpc; } // @@protoc_insertion_point(field_set_allocated:GrpcService.google_grpc) } void GrpcService::clear_timeout() { - if (GetArenaNoVirtual() == nullptr && timeout_ != nullptr) { - delete timeout_; - } - timeout_ = nullptr; -} -GrpcService::GrpcService() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService) -} -GrpcService::GrpcService(const GrpcService& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - initial_metadata_(from.initial_metadata_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_timeout()) { - timeout_ = new PROTOBUF_NAMESPACE_ID::Duration(*from.timeout_); - } else { - timeout_ = nullptr; - } - clear_has_target_specifier(); - switch (from.target_specifier_case()) { - case kEnvoyGrpc: { - mutable_envoy_grpc()->::GrpcService_EnvoyGrpc::MergeFrom(from.envoy_grpc()); - break; - } - case kGoogleGrpc: { - mutable_google_grpc()->::GrpcService_GoogleGrpc::MergeFrom(from.google_grpc()); - break; - } - case TARGET_SPECIFIER_NOT_SET: { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.timeout_ != nullptr) _impl_.timeout_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +GrpcService::GrpcService(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + initial_metadata_{visibility, arena, from.initial_metadata_}, + target_specifier_{}, + _oneof_case_{from._oneof_case_[0]} {} + +GrpcService::GrpcService( + ::google::protobuf::Arena* arena, + const GrpcService& from) + : ::google::protobuf::Message(arena) { + GrpcService* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.timeout_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::google::protobuf::Duration>( + arena, *from._impl_.timeout_) + : nullptr; + switch (target_specifier_case()) { + case TARGET_SPECIFIER_NOT_SET: break; - } + case kEnvoyGrpc: + _impl_.target_specifier_.envoy_grpc_ = ::google::protobuf::Message::CopyConstruct<::GrpcService_EnvoyGrpc>(arena, *from._impl_.target_specifier_.envoy_grpc_); + break; + case kGoogleGrpc: + _impl_.target_specifier_.google_grpc_ = ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc>(arena, *from._impl_.target_specifier_.google_grpc_); + break; } + // @@protoc_insertion_point(copy_constructor:GrpcService) } +inline PROTOBUF_NDEBUG_INLINE GrpcService::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + initial_metadata_{visibility, arena}, + target_specifier_{}, + _oneof_case_{} {} -void GrpcService::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_proxy_5fwasm_5fintrinsics_2eproto.base); - timeout_ = nullptr; - clear_has_target_specifier(); +inline void GrpcService::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.timeout_ = {}; } - GrpcService::~GrpcService() { // @@protoc_insertion_point(destructor:GrpcService) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - -void GrpcService::SharedDtor() { - if (this != internal_default_instance()) delete timeout_; +inline void GrpcService::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.timeout_; if (has_target_specifier()) { clear_target_specifier(); } + _impl_.~Impl_(); } -void GrpcService::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService& GrpcService::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_proxy_5fwasm_5fintrinsics_2eproto.base); - return *internal_default_instance(); -} - - void GrpcService::clear_target_specifier() { // @@protoc_insertion_point(one_of_clear_start:GrpcService) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (target_specifier_case()) { case kEnvoyGrpc: { - delete target_specifier_.envoy_grpc_; + if (GetArena() == nullptr) { + delete _impl_.target_specifier_.envoy_grpc_; + } break; } case kGoogleGrpc: { - delete target_specifier_.google_grpc_; + if (GetArena() == nullptr) { + delete _impl_.target_specifier_.google_grpc_; + } break; } case TARGET_SPECIFIER_NOT_SET: { break; } } - _oneof_case_[0] = TARGET_SPECIFIER_NOT_SET; + _impl_._oneof_case_[0] = TARGET_SPECIFIER_NOT_SET; } -void GrpcService::Clear() { +const ::google::protobuf::MessageLite::ClassData* +GrpcService::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService, _impl_._cached_size_), + false, + }, + &GrpcService::MergeImpl, + &GrpcService::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void GrpcService::Clear() { // @@protoc_insertion_point(message_clear_start:GrpcService) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - initial_metadata_.Clear(); - if (GetArenaNoVirtual() == nullptr && timeout_ != nullptr) { - delete timeout_; + _impl_.initial_metadata_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.timeout_ != nullptr); + _impl_.timeout_->Clear(); } - timeout_ = nullptr; clear_target_specifier(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .GrpcService.EnvoyGrpc envoy_grpc = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_envoy_grpc(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .GrpcService.GoogleGrpc google_grpc = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(mutable_google_grpc(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .google.protobuf.Duration timeout = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ctx->ParseMessage(mutable_timeout(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .GrpcService.HeaderValue initial_metadata = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_initial_metadata(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 42); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:GrpcService) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .GrpcService.EnvoyGrpc envoy_grpc = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_envoy_grpc())); - } else { - goto handle_unusual; - } - break; - } - - // .GrpcService.GoogleGrpc google_grpc = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_google_grpc())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Duration timeout = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_timeout())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .GrpcService.HeaderValue initial_metadata = 5; - case 5: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_initial_metadata())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GrpcService) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService) - return false; -#undef DO_ + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GrpcService::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .GrpcService.EnvoyGrpc envoy_grpc = 1; - if (has_envoy_grpc()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::envoy_grpc(this), output); - } - // .GrpcService.GoogleGrpc google_grpc = 2; - if (has_google_grpc()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, _Internal::google_grpc(this), output); - } - - // .google.protobuf.Duration timeout = 3; - if (this->has_timeout()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, _Internal::timeout(this), output); - } +const char* GrpcService::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} - // repeated .GrpcService.HeaderValue initial_metadata = 5; - for (unsigned int i = 0, - n = static_cast(this->initial_metadata_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, - this->initial_metadata(static_cast(i)), - output); - } - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:GrpcService) -} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 4, 0, 2> GrpcService::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GrpcService, _impl_._has_bits_), + 0, // no _extensions_ + 5, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967272, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 4, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_GrpcService_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // repeated .GrpcService.HeaderValue initial_metadata = 5; + {::_pbi::TcParser::FastMtR1, + {42, 63, 3, PROTOBUF_FIELD_OFFSET(GrpcService, _impl_.initial_metadata_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // .google.protobuf.Duration timeout = 3; + {::_pbi::TcParser::FastMtS1, + {26, 0, 2, PROTOBUF_FIELD_OFFSET(GrpcService, _impl_.timeout_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .GrpcService.EnvoyGrpc envoy_grpc = 1; + {PROTOBUF_FIELD_OFFSET(GrpcService, _impl_.target_specifier_.envoy_grpc_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .GrpcService.GoogleGrpc google_grpc = 2; + {PROTOBUF_FIELD_OFFSET(GrpcService, _impl_.target_specifier_.google_grpc_), _Internal::kOneofCaseOffset + 0, 1, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .google.protobuf.Duration timeout = 3; + {PROTOBUF_FIELD_OFFSET(GrpcService, _impl_.timeout_), _Internal::kHasBitsOffset + 0, 2, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .GrpcService.HeaderValue initial_metadata = 5; + {PROTOBUF_FIELD_OFFSET(GrpcService, _impl_.initial_metadata_), -1, 3, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::GrpcService_EnvoyGrpc>()}, + {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, + {::_pbi::TcParser::GetTable<::GrpcService_HeaderValue>()}, + }}, {{ + }}, +}; -::PROTOBUF_NAMESPACE_ID::uint8* GrpcService::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::uint8_t* GrpcService::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:GrpcService) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .GrpcService.EnvoyGrpc envoy_grpc = 1; - if (has_envoy_grpc()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::envoy_grpc(this), target); - } + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - // .GrpcService.GoogleGrpc google_grpc = 2; - if (has_google_grpc()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, _Internal::google_grpc(this), target); + switch (target_specifier_case()) { + case kEnvoyGrpc: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *_impl_.target_specifier_.envoy_grpc_, _impl_.target_specifier_.envoy_grpc_->GetCachedSize(), target, stream); + break; + } + case kGoogleGrpc: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *_impl_.target_specifier_.google_grpc_, _impl_.target_specifier_.google_grpc_->GetCachedSize(), target, stream); + break; + } + default: + break; } - + cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Duration timeout = 3; - if (this->has_timeout()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, _Internal::timeout(this), target); + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *_impl_.timeout_, _impl_.timeout_->GetCachedSize(), target, stream); } // repeated .GrpcService.HeaderValue initial_metadata = 5; - for (unsigned int i = 0, - n = static_cast(this->initial_metadata_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, this->initial_metadata(static_cast(i)), target); + for (unsigned i = 0, n = static_cast( + this->_internal_initial_metadata_size()); + i < n; i++) { + const auto& repfield = this->_internal_initial_metadata().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, repfield, repfield.GetCachedSize(), + target, stream); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:GrpcService) return target; } -size_t GrpcService::ByteSizeLong() const { +::size_t GrpcService::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GrpcService) - size_t total_size = 0; + ::size_t total_size = 0; - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .GrpcService.HeaderValue initial_metadata = 5; - { - unsigned int count = static_cast(this->initial_metadata_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->initial_metadata(static_cast(i))); - } + total_size += 1UL * this->_internal_initial_metadata_size(); + for (const auto& msg : this->_internal_initial_metadata()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } - // .google.protobuf.Duration timeout = 3; - if (this->has_timeout()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *timeout_); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.timeout_); } switch (target_specifier_case()) { // .GrpcService.EnvoyGrpc envoy_grpc = 1; case kEnvoyGrpc: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *target_specifier_.envoy_grpc_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.target_specifier_.envoy_grpc_); break; } // .GrpcService.GoogleGrpc google_grpc = 2; case kGoogleGrpc: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *target_specifier_.google_grpc_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.target_specifier_.google_grpc_); break; } case TARGET_SPECIFIER_NOT_SET: { break; } } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void GrpcService::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:GrpcService) - GOOGLE_DCHECK_NE(&from, this); - const GrpcService* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:GrpcService) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:GrpcService) - MergeFrom(*source); - } -} -void GrpcService::MergeFrom(const GrpcService& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void GrpcService::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - initial_metadata_.MergeFrom(from.initial_metadata_); - if (from.has_timeout()) { - mutable_timeout()->PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from.timeout()); - } - switch (from.target_specifier_case()) { - case kEnvoyGrpc: { - mutable_envoy_grpc()->::GrpcService_EnvoyGrpc::MergeFrom(from.envoy_grpc()); - break; + _this->_internal_mutable_initial_metadata()->MergeFrom( + from._internal_initial_metadata()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.timeout_ != nullptr); + if (_this->_impl_.timeout_ == nullptr) { + _this->_impl_.timeout_ = + ::google::protobuf::Message::CopyConstruct<::google::protobuf::Duration>(arena, *from._impl_.timeout_); + } else { + _this->_impl_.timeout_->MergeFrom(*from._impl_.timeout_); } - case kGoogleGrpc: { - mutable_google_grpc()->::GrpcService_GoogleGrpc::MergeFrom(from.google_grpc()); - break; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { + const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; + const bool oneof_needs_init = oneof_to_case != oneof_from_case; + if (oneof_needs_init) { + if (oneof_to_case != 0) { + _this->clear_target_specifier(); + } + _this->_impl_._oneof_case_[0] = oneof_from_case; } - case TARGET_SPECIFIER_NOT_SET: { - break; + + switch (oneof_from_case) { + case kEnvoyGrpc: { + if (oneof_needs_init) { + _this->_impl_.target_specifier_.envoy_grpc_ = + ::google::protobuf::Message::CopyConstruct<::GrpcService_EnvoyGrpc>(arena, *from._impl_.target_specifier_.envoy_grpc_); + } else { + _this->_impl_.target_specifier_.envoy_grpc_->MergeFrom(from._internal_envoy_grpc()); + } + break; + } + case kGoogleGrpc: { + if (oneof_needs_init) { + _this->_impl_.target_specifier_.google_grpc_ = + ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc>(arena, *from._impl_.target_specifier_.google_grpc_); + } else { + _this->_impl_.target_specifier_.google_grpc_->MergeFrom(from._internal_google_grpc()); + } + break; + } + case TARGET_SPECIFIER_NOT_SET: + break; } } -} - -void GrpcService::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:GrpcService) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GrpcService::CopyFrom(const GrpcService& from) { @@ -6596,69 +4867,33 @@ void GrpcService::CopyFrom(const GrpcService& from) { MergeFrom(from); } -bool GrpcService::IsInitialized() const { +PROTOBUF_NOINLINE bool GrpcService::IsInitialized() const { return true; } -void GrpcService::InternalSwap(GrpcService* other) { +void GrpcService::InternalSwap(GrpcService* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&initial_metadata_)->InternalSwap(CastToBase(&other->initial_metadata_)); - swap(timeout_, other->timeout_); - swap(target_specifier_, other->target_specifier_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.initial_metadata_.InternalSwap(&other->_impl_.initial_metadata_); + swap(_impl_.timeout_, other->_impl_.timeout_); + swap(_impl_.target_specifier_, other->_impl_.target_specifier_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } -::PROTOBUF_NAMESPACE_ID::Metadata GrpcService::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata GrpcService::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, + &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, + file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[13]); } - - // @@protoc_insertion_point(namespace_scope) -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::WKT* Arena::CreateMaybeMessage< ::WKT >(Arena* arena) { - return Arena::CreateInternal< ::WKT >(arena); -} -template<> PROTOBUF_NOINLINE ::DataSource* Arena::CreateMaybeMessage< ::DataSource >(Arena* arena) { - return Arena::CreateInternal< ::DataSource >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService_EnvoyGrpc* Arena::CreateMaybeMessage< ::GrpcService_EnvoyGrpc >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_EnvoyGrpc >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_SslCredentials* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc_SslCredentials >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_GoogleGrpc_SslCredentials >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_GoogleLocalCredentials* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc_GoogleLocalCredentials >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_GoogleGrpc_GoogleLocalCredentials >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_ChannelCredentials* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc_ChannelCredentials >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_GoogleGrpc_ChannelCredentials >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_CallCredentials_StsService* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_StsService >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_GoogleGrpc_CallCredentials_StsService >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_CallCredentials* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_GoogleGrpc_CallCredentials >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_GoogleGrpc >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService_HeaderValue* Arena::CreateMaybeMessage< ::GrpcService_HeaderValue >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_HeaderValue >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService* Arena::CreateMaybeMessage< ::GrpcService >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::std::false_type _static_init_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/proxy_wasm_intrinsics.pb.h b/proxy_wasm_intrinsics.pb.h index 3a6d6e8..b9e7062 100644 --- a/proxy_wasm_intrinsics.pb.h +++ b/proxy_wasm_intrinsics.pb.h @@ -1,1498 +1,2110 @@ -/* - * Copyright 2016-2019 Envoy Project Authors - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2016-2019 Envoy Project Authors +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. // Generated by the protocol buffer compiler. DO NOT EDIT! // source: proxy_wasm_intrinsics.proto +// Protobuf C++ Version: 5.26.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_proxy_5fwasm_5fintrinsics_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_proxy_5fwasm_5fintrinsics_2eproto +#ifndef GOOGLE_PROTOBUF_INCLUDED_proxy_5fwasm_5fintrinsics_2eproto_2epb_2eh +#define GOOGLE_PROTOBUF_INCLUDED_proxy_5fwasm_5fintrinsics_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3009000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3009001 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. +#include +#include + +#include "google/protobuf/port_def.inc" +#if PROTOBUF_VERSION != 5026001 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include -#include +#include "google/protobuf/port_undef.inc" +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_bases.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/unknown_field_set.h" +#include "google/protobuf/any.pb.h" +#include "google/protobuf/duration.pb.h" +#include "google/protobuf/empty.pb.h" +#include "google/protobuf/struct.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { class AnyMetadata; } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_proxy_5fwasm_5fintrinsics_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[14] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; + static const ::uint32_t offsets[]; }; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_proxy_5fwasm_5fintrinsics_2eproto; +extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_proxy_5fwasm_5fintrinsics_2eproto; class DataSource; -class DataSourceDefaultTypeInternal; +struct DataSourceDefaultTypeInternal; extern DataSourceDefaultTypeInternal _DataSource_default_instance_; class GrpcService; -class GrpcServiceDefaultTypeInternal; +struct GrpcServiceDefaultTypeInternal; extern GrpcServiceDefaultTypeInternal _GrpcService_default_instance_; class GrpcService_EnvoyGrpc; -class GrpcService_EnvoyGrpcDefaultTypeInternal; +struct GrpcService_EnvoyGrpcDefaultTypeInternal; extern GrpcService_EnvoyGrpcDefaultTypeInternal _GrpcService_EnvoyGrpc_default_instance_; class GrpcService_GoogleGrpc; -class GrpcService_GoogleGrpcDefaultTypeInternal; +struct GrpcService_GoogleGrpcDefaultTypeInternal; extern GrpcService_GoogleGrpcDefaultTypeInternal _GrpcService_GoogleGrpc_default_instance_; class GrpcService_GoogleGrpc_CallCredentials; -class GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal; +struct GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal; extern GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_default_instance_; class GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials; -class GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal; +struct GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal; extern GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_; class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin; -class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal; +struct GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal; extern GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_; class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials; -class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal; +struct GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal; extern GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_; class GrpcService_GoogleGrpc_CallCredentials_StsService; -class GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal; +struct GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal; extern GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_; class GrpcService_GoogleGrpc_ChannelCredentials; -class GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal; +struct GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal; extern GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_ChannelCredentials_default_instance_; class GrpcService_GoogleGrpc_GoogleLocalCredentials; -class GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal; +struct GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal; extern GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_; class GrpcService_GoogleGrpc_SslCredentials; -class GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal; +struct GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal; extern GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_SslCredentials_default_instance_; class GrpcService_HeaderValue; -class GrpcService_HeaderValueDefaultTypeInternal; +struct GrpcService_HeaderValueDefaultTypeInternal; extern GrpcService_HeaderValueDefaultTypeInternal _GrpcService_HeaderValue_default_instance_; class WKT; -class WKTDefaultTypeInternal; +struct WKTDefaultTypeInternal; extern WKTDefaultTypeInternal _WKT_default_instance_; -PROTOBUF_NAMESPACE_OPEN -template<> ::DataSource* Arena::CreateMaybeMessage<::DataSource>(Arena*); -template<> ::GrpcService* Arena::CreateMaybeMessage<::GrpcService>(Arena*); -template<> ::GrpcService_EnvoyGrpc* Arena::CreateMaybeMessage<::GrpcService_EnvoyGrpc>(Arena*); -template<> ::GrpcService_GoogleGrpc* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc>(Arena*); -template<> ::GrpcService_GoogleGrpc_CallCredentials* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_CallCredentials>(Arena*); -template<> ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>(Arena*); -template<> ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>(Arena*); -template<> ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>(Arena*); -template<> ::GrpcService_GoogleGrpc_CallCredentials_StsService* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_CallCredentials_StsService>(Arena*); -template<> ::GrpcService_GoogleGrpc_ChannelCredentials* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_ChannelCredentials>(Arena*); -template<> ::GrpcService_GoogleGrpc_GoogleLocalCredentials* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_GoogleLocalCredentials>(Arena*); -template<> ::GrpcService_GoogleGrpc_SslCredentials* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_SslCredentials>(Arena*); -template<> ::GrpcService_HeaderValue* Arena::CreateMaybeMessage<::GrpcService_HeaderValue>(Arena*); -template<> ::WKT* Arena::CreateMaybeMessage<::WKT>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + // =================================================================== -class WKT : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:WKT) */ { - public: - WKT(); - virtual ~WKT(); - WKT(const WKT& from); - WKT(WKT&& from) noexcept - : WKT() { - *this = ::std::move(from); - } +// ------------------------------------------------------------------- - inline WKT& operator=(const WKT& from) { +class GrpcService_HeaderValue final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:GrpcService.HeaderValue) */ { + public: + inline GrpcService_HeaderValue() : GrpcService_HeaderValue(nullptr) {} + ~GrpcService_HeaderValue() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService_HeaderValue( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService_HeaderValue(const GrpcService_HeaderValue& from) : GrpcService_HeaderValue(nullptr, from) {} + inline GrpcService_HeaderValue(GrpcService_HeaderValue&& from) noexcept + : GrpcService_HeaderValue(nullptr, std::move(from)) {} + inline GrpcService_HeaderValue& operator=(const GrpcService_HeaderValue& from) { CopyFrom(from); return *this; } - inline WKT& operator=(WKT&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + inline GrpcService_HeaderValue& operator=(GrpcService_HeaderValue&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; } - static const WKT& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WKT* internal_default_instance() { - return reinterpret_cast( - &_WKT_default_instance_); + static const GrpcService_HeaderValue& default_instance() { + return *internal_default_instance(); } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(WKT& a, WKT& b) { - a.Swap(&b); + static inline const GrpcService_HeaderValue* internal_default_instance() { + return reinterpret_cast( + &_GrpcService_HeaderValue_default_instance_); } - inline void Swap(WKT* other) { + static constexpr int kIndexInFileMessages = 12; + friend void swap(GrpcService_HeaderValue& a, GrpcService_HeaderValue& b) { a.Swap(&b); } + inline void Swap(GrpcService_HeaderValue* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService_HeaderValue* other) { if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline WKT* New() const final { - return CreateMaybeMessage(nullptr); - } - - WKT* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + GrpcService_HeaderValue* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const WKT& from); - void MergeFrom(const WKT& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GrpcService_HeaderValue& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GrpcService_HeaderValue& from) { GrpcService_HeaderValue::MergeImpl(*this, from); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(WKT* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "WKT"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto); - return ::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto.file_level_metadata[kIndexInFileMessages]; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GrpcService_HeaderValue* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService.HeaderValue"; } + + protected: + explicit GrpcService_HeaderValue(::google::protobuf::Arena* arena); + GrpcService_HeaderValue(::google::protobuf::Arena* arena, const GrpcService_HeaderValue& from); + GrpcService_HeaderValue(::google::protobuf::Arena* arena, GrpcService_HeaderValue&& from) noexcept + : GrpcService_HeaderValue(arena) { + *this = ::std::move(from); } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; - public: - + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kStructFieldNumber = 1, + kKeyFieldNumber = 1, + kValueFieldNumber = 2, }; - // .google.protobuf.Struct struct = 1; - bool has_struct_() const; - void clear_struct_(); - const PROTOBUF_NAMESPACE_ID::Struct& struct_() const; - PROTOBUF_NAMESPACE_ID::Struct* release_struct_(); - PROTOBUF_NAMESPACE_ID::Struct* mutable_struct_(); - void set_allocated_struct_(PROTOBUF_NAMESPACE_ID::Struct* struct_); + // string key = 1; + void clear_key() ; + const std::string& key() const; + template + void set_key(Arg_&& arg, Args_... args); + std::string* mutable_key(); + PROTOBUF_NODISCARD std::string* release_key(); + void set_allocated_key(std::string* value); - // @@protoc_insertion_point(class_scope:WKT) + private: + const std::string& _internal_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_key( + const std::string& value); + std::string* _internal_mutable_key(); + + public: + // string value = 2; + void clear_value() ; + const std::string& value() const; + template + void set_value(Arg_&& arg, Args_... args); + std::string* mutable_value(); + PROTOBUF_NODISCARD std::string* release_value(); + void set_allocated_value(std::string* value); + + private: + const std::string& _internal_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_value( + const std::string& value); + std::string* _internal_mutable_value(); + + public: + // @@protoc_insertion_point(class_scope:GrpcService.HeaderValue) private: class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - PROTOBUF_NAMESPACE_ID::Struct* struct__; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 40, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr key_; + ::google::protobuf::internal::ArenaStringPtr value_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; }; // ------------------------------------------------------------------- -class DataSource : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:DataSource) */ { +class GrpcService_GoogleGrpc_GoogleLocalCredentials final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.GoogleLocalCredentials) */ { public: - DataSource(); - virtual ~DataSource(); - - DataSource(const DataSource& from); - DataSource(DataSource&& from) noexcept - : DataSource() { - *this = ::std::move(from); - } - - inline DataSource& operator=(const DataSource& from) { + inline GrpcService_GoogleGrpc_GoogleLocalCredentials() : GrpcService_GoogleGrpc_GoogleLocalCredentials(nullptr) {} + template + explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_GoogleLocalCredentials( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService_GoogleGrpc_GoogleLocalCredentials(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) : GrpcService_GoogleGrpc_GoogleLocalCredentials(nullptr, from) {} + inline GrpcService_GoogleGrpc_GoogleLocalCredentials(GrpcService_GoogleGrpc_GoogleLocalCredentials&& from) noexcept + : GrpcService_GoogleGrpc_GoogleLocalCredentials(nullptr, std::move(from)) {} + inline GrpcService_GoogleGrpc_GoogleLocalCredentials& operator=(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) { CopyFrom(from); return *this; } - inline DataSource& operator=(DataSource&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + inline GrpcService_GoogleGrpc_GoogleLocalCredentials& operator=(GrpcService_GoogleGrpc_GoogleLocalCredentials&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; } - static const DataSource& default_instance(); - - enum SpecifierCase { - kFilename = 1, - kInlineBytes = 2, - kInlineString = 3, - SPECIFIER_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DataSource* internal_default_instance() { - return reinterpret_cast( - &_DataSource_default_instance_); + static const GrpcService_GoogleGrpc_GoogleLocalCredentials& default_instance() { + return *internal_default_instance(); } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(DataSource& a, DataSource& b) { - a.Swap(&b); + static inline const GrpcService_GoogleGrpc_GoogleLocalCredentials* internal_default_instance() { + return reinterpret_cast( + &_GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_); } - inline void Swap(DataSource* other) { + static constexpr int kIndexInFileMessages = 4; + friend void swap(GrpcService_GoogleGrpc_GoogleLocalCredentials& a, GrpcService_GoogleGrpc_GoogleLocalCredentials& b) { a.Swap(&b); } + inline void Swap(GrpcService_GoogleGrpc_GoogleLocalCredentials* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService_GoogleGrpc_GoogleLocalCredentials* other) { if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline DataSource* New() const final { - return CreateMaybeMessage(nullptr); - } - - DataSource* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const DataSource& from); - void MergeFrom(const DataSource& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DataSource* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "DataSource"; + GrpcService_GoogleGrpc_GoogleLocalCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto); - return ::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto.file_level_metadata[kIndexInFileMessages]; + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.GoogleLocalCredentials"; } + + protected: + explicit GrpcService_GoogleGrpc_GoogleLocalCredentials(::google::protobuf::Arena* arena); + GrpcService_GoogleGrpc_GoogleLocalCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_GoogleLocalCredentials& from); + GrpcService_GoogleGrpc_GoogleLocalCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_GoogleLocalCredentials&& from) noexcept + : GrpcService_GoogleGrpc_GoogleLocalCredentials(arena) { + *this = ::std::move(from); + } + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - - enum : int { - kFilenameFieldNumber = 1, - kInlineBytesFieldNumber = 2, - kInlineStringFieldNumber = 3, - }; - // string filename = 1; - private: - bool has_filename() const; - public: - void clear_filename(); - const std::string& filename() const; - void set_filename(const std::string& value); - void set_filename(std::string&& value); - void set_filename(const char* value); - void set_filename(const char* value, size_t size); - std::string* mutable_filename(); - std::string* release_filename(); - void set_allocated_filename(std::string* filename); - - // bytes inline_bytes = 2; - private: - bool has_inline_bytes() const; - public: - void clear_inline_bytes(); - const std::string& inline_bytes() const; - void set_inline_bytes(const std::string& value); - void set_inline_bytes(std::string&& value); - void set_inline_bytes(const char* value); - void set_inline_bytes(const void* value, size_t size); - std::string* mutable_inline_bytes(); - std::string* release_inline_bytes(); - void set_allocated_inline_bytes(std::string* inline_bytes); - - // string inline_string = 3; - private: - bool has_inline_string() const; - public: - void clear_inline_string(); - const std::string& inline_string() const; - void set_inline_string(const std::string& value); - void set_inline_string(std::string&& value); - void set_inline_string(const char* value); - void set_inline_string(const char* value, size_t size); - std::string* mutable_inline_string(); - std::string* release_inline_string(); - void set_allocated_inline_string(std::string* inline_string); - - void clear_specifier(); - SpecifierCase specifier_case() const; - // @@protoc_insertion_point(class_scope:DataSource) + // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.GoogleLocalCredentials) private: class _Internal; - void set_has_filename(); - void set_has_inline_bytes(); - void set_has_inline_string(); - - inline bool has_specifier() const; - inline void clear_has_specifier(); - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - union SpecifierUnion { - SpecifierUnion() {} - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr filename_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr inline_bytes_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr inline_string_; - } specifier_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + PROTOBUF_TSAN_DECLARE_MEMBER + }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; }; // ------------------------------------------------------------------- -class GrpcService_EnvoyGrpc : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:GrpcService.EnvoyGrpc) */ { +class GrpcService_GoogleGrpc_CallCredentials_StsService final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.StsService) */ { public: - GrpcService_EnvoyGrpc(); - virtual ~GrpcService_EnvoyGrpc(); - - GrpcService_EnvoyGrpc(const GrpcService_EnvoyGrpc& from); - GrpcService_EnvoyGrpc(GrpcService_EnvoyGrpc&& from) noexcept - : GrpcService_EnvoyGrpc() { - *this = ::std::move(from); - } - - inline GrpcService_EnvoyGrpc& operator=(const GrpcService_EnvoyGrpc& from) { + inline GrpcService_GoogleGrpc_CallCredentials_StsService() : GrpcService_GoogleGrpc_CallCredentials_StsService(nullptr) {} + ~GrpcService_GoogleGrpc_CallCredentials_StsService() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_StsService( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService_GoogleGrpc_CallCredentials_StsService(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) : GrpcService_GoogleGrpc_CallCredentials_StsService(nullptr, from) {} + inline GrpcService_GoogleGrpc_CallCredentials_StsService(GrpcService_GoogleGrpc_CallCredentials_StsService&& from) noexcept + : GrpcService_GoogleGrpc_CallCredentials_StsService(nullptr, std::move(from)) {} + inline GrpcService_GoogleGrpc_CallCredentials_StsService& operator=(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) { CopyFrom(from); return *this; } - inline GrpcService_EnvoyGrpc& operator=(GrpcService_EnvoyGrpc&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + inline GrpcService_GoogleGrpc_CallCredentials_StsService& operator=(GrpcService_GoogleGrpc_CallCredentials_StsService&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; } - static const GrpcService_EnvoyGrpc& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GrpcService_EnvoyGrpc* internal_default_instance() { - return reinterpret_cast( - &_GrpcService_EnvoyGrpc_default_instance_); + static const GrpcService_GoogleGrpc_CallCredentials_StsService& default_instance() { + return *internal_default_instance(); } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(GrpcService_EnvoyGrpc& a, GrpcService_EnvoyGrpc& b) { - a.Swap(&b); + static inline const GrpcService_GoogleGrpc_CallCredentials_StsService* internal_default_instance() { + return reinterpret_cast( + &_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_); } - inline void Swap(GrpcService_EnvoyGrpc* other) { + static constexpr int kIndexInFileMessages = 9; + friend void swap(GrpcService_GoogleGrpc_CallCredentials_StsService& a, GrpcService_GoogleGrpc_CallCredentials_StsService& b) { a.Swap(&b); } + inline void Swap(GrpcService_GoogleGrpc_CallCredentials_StsService* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService_GoogleGrpc_CallCredentials_StsService* other) { if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GrpcService_EnvoyGrpc* New() const final { - return CreateMaybeMessage(nullptr); - } - - GrpcService_EnvoyGrpc* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + GrpcService_GoogleGrpc_CallCredentials_StsService* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GrpcService_EnvoyGrpc& from); - void MergeFrom(const GrpcService_EnvoyGrpc& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) { GrpcService_GoogleGrpc_CallCredentials_StsService::MergeImpl(*this, from); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GrpcService_EnvoyGrpc* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.EnvoyGrpc"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto); - return ::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto.file_level_metadata[kIndexInFileMessages]; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_StsService* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.CallCredentials.StsService"; } + + protected: + explicit GrpcService_GoogleGrpc_CallCredentials_StsService(::google::protobuf::Arena* arena); + GrpcService_GoogleGrpc_CallCredentials_StsService(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_CallCredentials_StsService& from); + GrpcService_GoogleGrpc_CallCredentials_StsService(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_CallCredentials_StsService&& from) noexcept + : GrpcService_GoogleGrpc_CallCredentials_StsService(arena) { + *this = ::std::move(from); } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; - public: - + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kClusterNameFieldNumber = 1, + kTokenExchangeServiceUriFieldNumber = 1, + kResourceFieldNumber = 2, + kAudienceFieldNumber = 3, + kScopeFieldNumber = 4, + kRequestedTokenTypeFieldNumber = 5, + kSubjectTokenPathFieldNumber = 6, + kSubjectTokenTypeFieldNumber = 7, + kActorTokenPathFieldNumber = 8, + kActorTokenTypeFieldNumber = 9, }; - // string cluster_name = 1; - void clear_cluster_name(); - const std::string& cluster_name() const; - void set_cluster_name(const std::string& value); - void set_cluster_name(std::string&& value); - void set_cluster_name(const char* value); - void set_cluster_name(const char* value, size_t size); - std::string* mutable_cluster_name(); - std::string* release_cluster_name(); - void set_allocated_cluster_name(std::string* cluster_name); + // string token_exchange_service_uri = 1; + void clear_token_exchange_service_uri() ; + const std::string& token_exchange_service_uri() const; + template + void set_token_exchange_service_uri(Arg_&& arg, Args_... args); + std::string* mutable_token_exchange_service_uri(); + PROTOBUF_NODISCARD std::string* release_token_exchange_service_uri(); + void set_allocated_token_exchange_service_uri(std::string* value); - // @@protoc_insertion_point(class_scope:GrpcService.EnvoyGrpc) - private: - class _Internal; + private: + const std::string& _internal_token_exchange_service_uri() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_token_exchange_service_uri( + const std::string& value); + std::string* _internal_mutable_token_exchange_service_uri(); - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cluster_name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// ------------------------------------------------------------------- + public: + // string resource = 2; + void clear_resource() ; + const std::string& resource() const; + template + void set_resource(Arg_&& arg, Args_... args); + std::string* mutable_resource(); + PROTOBUF_NODISCARD std::string* release_resource(); + void set_allocated_resource(std::string* value); -class GrpcService_GoogleGrpc_SslCredentials : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.SslCredentials) */ { - public: - GrpcService_GoogleGrpc_SslCredentials(); - virtual ~GrpcService_GoogleGrpc_SslCredentials(); + private: + const std::string& _internal_resource() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource( + const std::string& value); + std::string* _internal_mutable_resource(); - GrpcService_GoogleGrpc_SslCredentials(const GrpcService_GoogleGrpc_SslCredentials& from); - GrpcService_GoogleGrpc_SslCredentials(GrpcService_GoogleGrpc_SslCredentials&& from) noexcept - : GrpcService_GoogleGrpc_SslCredentials() { - *this = ::std::move(from); - } + public: + // string audience = 3; + void clear_audience() ; + const std::string& audience() const; + template + void set_audience(Arg_&& arg, Args_... args); + std::string* mutable_audience(); + PROTOBUF_NODISCARD std::string* release_audience(); + void set_allocated_audience(std::string* value); - inline GrpcService_GoogleGrpc_SslCredentials& operator=(const GrpcService_GoogleGrpc_SslCredentials& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc_SslCredentials& operator=(GrpcService_GoogleGrpc_SslCredentials&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } + private: + const std::string& _internal_audience() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_audience( + const std::string& value); + std::string* _internal_mutable_audience(); + + public: + // string scope = 4; + void clear_scope() ; + const std::string& scope() const; + template + void set_scope(Arg_&& arg, Args_... args); + std::string* mutable_scope(); + PROTOBUF_NODISCARD std::string* release_scope(); + void set_allocated_scope(std::string* value); + + private: + const std::string& _internal_scope() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_scope( + const std::string& value); + std::string* _internal_mutable_scope(); + + public: + // string requested_token_type = 5; + void clear_requested_token_type() ; + const std::string& requested_token_type() const; + template + void set_requested_token_type(Arg_&& arg, Args_... args); + std::string* mutable_requested_token_type(); + PROTOBUF_NODISCARD std::string* release_requested_token_type(); + void set_allocated_requested_token_type(std::string* value); + + private: + const std::string& _internal_requested_token_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_requested_token_type( + const std::string& value); + std::string* _internal_mutable_requested_token_type(); + + public: + // string subject_token_path = 6; + void clear_subject_token_path() ; + const std::string& subject_token_path() const; + template + void set_subject_token_path(Arg_&& arg, Args_... args); + std::string* mutable_subject_token_path(); + PROTOBUF_NODISCARD std::string* release_subject_token_path(); + void set_allocated_subject_token_path(std::string* value); + + private: + const std::string& _internal_subject_token_path() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_subject_token_path( + const std::string& value); + std::string* _internal_mutable_subject_token_path(); + + public: + // string subject_token_type = 7; + void clear_subject_token_type() ; + const std::string& subject_token_type() const; + template + void set_subject_token_type(Arg_&& arg, Args_... args); + std::string* mutable_subject_token_type(); + PROTOBUF_NODISCARD std::string* release_subject_token_type(); + void set_allocated_subject_token_type(std::string* value); + + private: + const std::string& _internal_subject_token_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_subject_token_type( + const std::string& value); + std::string* _internal_mutable_subject_token_type(); + + public: + // string actor_token_path = 8; + void clear_actor_token_path() ; + const std::string& actor_token_path() const; + template + void set_actor_token_path(Arg_&& arg, Args_... args); + std::string* mutable_actor_token_path(); + PROTOBUF_NODISCARD std::string* release_actor_token_path(); + void set_allocated_actor_token_path(std::string* value); + + private: + const std::string& _internal_actor_token_path() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_actor_token_path( + const std::string& value); + std::string* _internal_mutable_actor_token_path(); + + public: + // string actor_token_type = 9; + void clear_actor_token_type() ; + const std::string& actor_token_type() const; + template + void set_actor_token_type(Arg_&& arg, Args_... args); + std::string* mutable_actor_token_type(); + PROTOBUF_NODISCARD std::string* release_actor_token_type(); + void set_allocated_actor_token_type(std::string* value); + + private: + const std::string& _internal_actor_token_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_actor_token_type( + const std::string& value); + std::string* _internal_mutable_actor_token_type(); + + public: + // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.StsService) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 4, 9, 0, + 201, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr token_exchange_service_uri_; + ::google::protobuf::internal::ArenaStringPtr resource_; + ::google::protobuf::internal::ArenaStringPtr audience_; + ::google::protobuf::internal::ArenaStringPtr scope_; + ::google::protobuf::internal::ArenaStringPtr requested_token_type_; + ::google::protobuf::internal::ArenaStringPtr subject_token_path_; + ::google::protobuf::internal::ArenaStringPtr subject_token_type_; + ::google::protobuf::internal::ArenaStringPtr actor_token_path_; + ::google::protobuf::internal::ArenaStringPtr actor_token_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; +}; +// ------------------------------------------------------------------- + +class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) */ { + public: + inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials() : GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(nullptr) {} + ~GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) : GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(nullptr, from) {} + inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials&& from) noexcept + : GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(nullptr, std::move(from)) {} + inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& operator=(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) { + CopyFrom(from); + return *this; + } + inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& operator=(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; } - static const GrpcService_GoogleGrpc_SslCredentials& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GrpcService_GoogleGrpc_SslCredentials* internal_default_instance() { - return reinterpret_cast( - &_GrpcService_GoogleGrpc_SslCredentials_default_instance_); + static const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& default_instance() { + return *internal_default_instance(); } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(GrpcService_GoogleGrpc_SslCredentials& a, GrpcService_GoogleGrpc_SslCredentials& b) { - a.Swap(&b); + static inline const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* internal_default_instance() { + return reinterpret_cast( + &_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_); } - inline void Swap(GrpcService_GoogleGrpc_SslCredentials* other) { + static constexpr int kIndexInFileMessages = 6; + friend void swap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& a, GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& b) { a.Swap(&b); } + inline void Swap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* other) { if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GrpcService_GoogleGrpc_SslCredentials* New() const final { - return CreateMaybeMessage(nullptr); - } - - GrpcService_GoogleGrpc_SslCredentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GrpcService_GoogleGrpc_SslCredentials& from); - void MergeFrom(const GrpcService_GoogleGrpc_SslCredentials& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) { GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::MergeImpl(*this, from); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GrpcService_GoogleGrpc_SslCredentials* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.GoogleGrpc.SslCredentials"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto); - return ::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto.file_level_metadata[kIndexInFileMessages]; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials"; } + + protected: + explicit GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(::google::protobuf::Arena* arena); + GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from); + GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials&& from) noexcept + : GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(arena) { + *this = ::std::move(from); } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; - public: - + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kRootCertsFieldNumber = 1, - kPrivateKeyFieldNumber = 2, - kCertChainFieldNumber = 3, + kJsonKeyFieldNumber = 1, + kTokenLifetimeSecondsFieldNumber = 2, }; - // .DataSource root_certs = 1; - bool has_root_certs() const; - void clear_root_certs(); - const ::DataSource& root_certs() const; - ::DataSource* release_root_certs(); - ::DataSource* mutable_root_certs(); - void set_allocated_root_certs(::DataSource* root_certs); + // string json_key = 1; + void clear_json_key() ; + const std::string& json_key() const; + template + void set_json_key(Arg_&& arg, Args_... args); + std::string* mutable_json_key(); + PROTOBUF_NODISCARD std::string* release_json_key(); + void set_allocated_json_key(std::string* value); - // .DataSource private_key = 2; - bool has_private_key() const; - void clear_private_key(); - const ::DataSource& private_key() const; - ::DataSource* release_private_key(); - ::DataSource* mutable_private_key(); - void set_allocated_private_key(::DataSource* private_key); + private: + const std::string& _internal_json_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_json_key( + const std::string& value); + std::string* _internal_mutable_json_key(); - // .DataSource cert_chain = 3; - bool has_cert_chain() const; - void clear_cert_chain(); - const ::DataSource& cert_chain() const; - ::DataSource* release_cert_chain(); - ::DataSource* mutable_cert_chain(); - void set_allocated_cert_chain(::DataSource* cert_chain); + public: + // uint64 token_lifetime_seconds = 2; + void clear_token_lifetime_seconds() ; + ::uint64_t token_lifetime_seconds() const; + void set_token_lifetime_seconds(::uint64_t value); - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.SslCredentials) + private: + ::uint64_t _internal_token_lifetime_seconds() const; + void _internal_set_token_lifetime_seconds(::uint64_t value); + + public: + // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) private: class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::DataSource* root_certs_; - ::DataSource* private_key_; - ::DataSource* cert_chain_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 90, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr json_key_; + ::uint64_t token_lifetime_seconds_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; }; // ------------------------------------------------------------------- -class GrpcService_GoogleGrpc_GoogleLocalCredentials : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.GoogleLocalCredentials) */ { +class GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) */ { public: - GrpcService_GoogleGrpc_GoogleLocalCredentials(); - virtual ~GrpcService_GoogleGrpc_GoogleLocalCredentials(); - - GrpcService_GoogleGrpc_GoogleLocalCredentials(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from); - GrpcService_GoogleGrpc_GoogleLocalCredentials(GrpcService_GoogleGrpc_GoogleLocalCredentials&& from) noexcept - : GrpcService_GoogleGrpc_GoogleLocalCredentials() { - *this = ::std::move(from); - } - - inline GrpcService_GoogleGrpc_GoogleLocalCredentials& operator=(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) { + inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials() : GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(nullptr) {} + ~GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) : GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(nullptr, from) {} + inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials&& from) noexcept + : GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(nullptr, std::move(from)) {} + inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& operator=(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) { CopyFrom(from); return *this; } - inline GrpcService_GoogleGrpc_GoogleLocalCredentials& operator=(GrpcService_GoogleGrpc_GoogleLocalCredentials&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& operator=(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; } - static const GrpcService_GoogleGrpc_GoogleLocalCredentials& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GrpcService_GoogleGrpc_GoogleLocalCredentials* internal_default_instance() { - return reinterpret_cast( - &_GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_); + static const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& default_instance() { + return *internal_default_instance(); } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(GrpcService_GoogleGrpc_GoogleLocalCredentials& a, GrpcService_GoogleGrpc_GoogleLocalCredentials& b) { - a.Swap(&b); + static inline const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* internal_default_instance() { + return reinterpret_cast( + &_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_); } - inline void Swap(GrpcService_GoogleGrpc_GoogleLocalCredentials* other) { + static constexpr int kIndexInFileMessages = 7; + friend void swap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& a, GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& b) { a.Swap(&b); } + inline void Swap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* other) { if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GrpcService_GoogleGrpc_GoogleLocalCredentials* New() const final { - return CreateMaybeMessage(nullptr); + GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) { GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::MergeImpl(*this, from); } - GrpcService_GoogleGrpc_GoogleLocalCredentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from); - void MergeFrom(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GrpcService_GoogleGrpc_GoogleLocalCredentials* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.GoogleGrpc.GoogleLocalCredentials"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials"; } + + protected: + explicit GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(::google::protobuf::Arena* arena); + GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from); + GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials&& from) noexcept + : GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(arena) { + *this = ::std::move(from); } - public: + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + + public: + ::google::protobuf::Metadata GetMetadata() const final; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kAuthorizationTokenFieldNumber = 1, + kAuthoritySelectorFieldNumber = 2, + }; + // string authorization_token = 1; + void clear_authorization_token() ; + const std::string& authorization_token() const; + template + void set_authorization_token(Arg_&& arg, Args_... args); + std::string* mutable_authorization_token(); + PROTOBUF_NODISCARD std::string* release_authorization_token(); + void set_allocated_authorization_token(std::string* value); - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto); - return ::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto.file_level_metadata[kIndexInFileMessages]; - } + const std::string& _internal_authorization_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_authorization_token( + const std::string& value); + std::string* _internal_mutable_authorization_token(); public: + // string authority_selector = 2; + void clear_authority_selector() ; + const std::string& authority_selector() const; + template + void set_authority_selector(Arg_&& arg, Args_... args); + std::string* mutable_authority_selector(); + PROTOBUF_NODISCARD std::string* release_authority_selector(); + void set_allocated_authority_selector(std::string* value); - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- + private: + const std::string& _internal_authority_selector() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_authority_selector( + const std::string& value); + std::string* _internal_mutable_authority_selector(); - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.GoogleLocalCredentials) + public: + // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) private: class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 105, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr authorization_token_; + ::google::protobuf::internal::ArenaStringPtr authority_selector_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; }; // ------------------------------------------------------------------- -class GrpcService_GoogleGrpc_ChannelCredentials : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.ChannelCredentials) */ { +class GrpcService_EnvoyGrpc final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:GrpcService.EnvoyGrpc) */ { public: - GrpcService_GoogleGrpc_ChannelCredentials(); - virtual ~GrpcService_GoogleGrpc_ChannelCredentials(); - - GrpcService_GoogleGrpc_ChannelCredentials(const GrpcService_GoogleGrpc_ChannelCredentials& from); - GrpcService_GoogleGrpc_ChannelCredentials(GrpcService_GoogleGrpc_ChannelCredentials&& from) noexcept - : GrpcService_GoogleGrpc_ChannelCredentials() { - *this = ::std::move(from); - } - - inline GrpcService_GoogleGrpc_ChannelCredentials& operator=(const GrpcService_GoogleGrpc_ChannelCredentials& from) { + inline GrpcService_EnvoyGrpc() : GrpcService_EnvoyGrpc(nullptr) {} + ~GrpcService_EnvoyGrpc() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService_EnvoyGrpc( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService_EnvoyGrpc(const GrpcService_EnvoyGrpc& from) : GrpcService_EnvoyGrpc(nullptr, from) {} + inline GrpcService_EnvoyGrpc(GrpcService_EnvoyGrpc&& from) noexcept + : GrpcService_EnvoyGrpc(nullptr, std::move(from)) {} + inline GrpcService_EnvoyGrpc& operator=(const GrpcService_EnvoyGrpc& from) { CopyFrom(from); return *this; } - inline GrpcService_GoogleGrpc_ChannelCredentials& operator=(GrpcService_GoogleGrpc_ChannelCredentials&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + inline GrpcService_EnvoyGrpc& operator=(GrpcService_EnvoyGrpc&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; } - static const GrpcService_GoogleGrpc_ChannelCredentials& default_instance(); - - enum CredentialSpecifierCase { - kSslCredentials = 1, - kGoogleDefault = 2, - kLocalCredentials = 3, - CREDENTIAL_SPECIFIER_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GrpcService_GoogleGrpc_ChannelCredentials* internal_default_instance() { - return reinterpret_cast( - &_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_); + static const GrpcService_EnvoyGrpc& default_instance() { + return *internal_default_instance(); } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(GrpcService_GoogleGrpc_ChannelCredentials& a, GrpcService_GoogleGrpc_ChannelCredentials& b) { - a.Swap(&b); + static inline const GrpcService_EnvoyGrpc* internal_default_instance() { + return reinterpret_cast( + &_GrpcService_EnvoyGrpc_default_instance_); } - inline void Swap(GrpcService_GoogleGrpc_ChannelCredentials* other) { + static constexpr int kIndexInFileMessages = 2; + friend void swap(GrpcService_EnvoyGrpc& a, GrpcService_EnvoyGrpc& b) { a.Swap(&b); } + inline void Swap(GrpcService_EnvoyGrpc* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService_EnvoyGrpc* other) { if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GrpcService_GoogleGrpc_ChannelCredentials* New() const final { - return CreateMaybeMessage(nullptr); + GrpcService_EnvoyGrpc* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GrpcService_EnvoyGrpc& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GrpcService_EnvoyGrpc& from) { GrpcService_EnvoyGrpc::MergeImpl(*this, from); } - GrpcService_GoogleGrpc_ChannelCredentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GrpcService_GoogleGrpc_ChannelCredentials& from); - void MergeFrom(const GrpcService_GoogleGrpc_ChannelCredentials& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GrpcService_GoogleGrpc_ChannelCredentials* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.GoogleGrpc.ChannelCredentials"; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GrpcService_EnvoyGrpc* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService.EnvoyGrpc"; } + + protected: + explicit GrpcService_EnvoyGrpc(::google::protobuf::Arena* arena); + GrpcService_EnvoyGrpc(::google::protobuf::Arena* arena, const GrpcService_EnvoyGrpc& from); + GrpcService_EnvoyGrpc(::google::protobuf::Arena* arena, GrpcService_EnvoyGrpc&& from) noexcept + : GrpcService_EnvoyGrpc(arena) { + *this = ::std::move(from); } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + + public: + ::google::protobuf::Metadata GetMetadata() const final; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kClusterNameFieldNumber = 1, + }; + // string cluster_name = 1; + void clear_cluster_name() ; + const std::string& cluster_name() const; + template + void set_cluster_name(Arg_&& arg, Args_... args); + std::string* mutable_cluster_name(); + PROTOBUF_NODISCARD std::string* release_cluster_name(); + void set_allocated_cluster_name(std::string* value); + private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + const std::string& _internal_cluster_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_cluster_name( + const std::string& value); + std::string* _internal_mutable_cluster_name(); + + public: + // @@protoc_insertion_point(class_scope:GrpcService.EnvoyGrpc) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 1, 0, + 42, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr cluster_name_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; +}; +// ------------------------------------------------------------------- + +class DataSource final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:DataSource) */ { + public: + inline DataSource() : DataSource(nullptr) {} + ~DataSource() override; + template + explicit PROTOBUF_CONSTEXPR DataSource( + ::google::protobuf::internal::ConstantInitialized); + + inline DataSource(const DataSource& from) : DataSource(nullptr, from) {} + inline DataSource(DataSource&& from) noexcept + : DataSource(nullptr, std::move(from)) {} + inline DataSource& operator=(const DataSource& from) { + CopyFrom(from); + return *this; } - inline void* MaybeArenaPtr() const { - return nullptr; + inline DataSource& operator=(DataSource&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; } - public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto); - return ::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto.file_level_metadata[kIndexInFileMessages]; + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const DataSource& default_instance() { + return *internal_default_instance(); + } + enum SpecifierCase { + kFilename = 1, + kInlineBytes = 2, + kInlineString = 3, + SPECIFIER_NOT_SET = 0, + }; + static inline const DataSource* internal_default_instance() { + return reinterpret_cast( + &_DataSource_default_instance_); + } + static constexpr int kIndexInFileMessages = 1; + friend void swap(DataSource& a, DataSource& b) { a.Swap(&b); } + inline void Swap(DataSource* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DataSource* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); } + // implements Message ---------------------------------------------- + + DataSource* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const DataSource& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const DataSource& from) { DataSource::MergeImpl(*this, from); } + + private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(DataSource* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "DataSource"; } + + protected: + explicit DataSource(::google::protobuf::Arena* arena); + DataSource(::google::protobuf::Arena* arena, const DataSource& from); + DataSource(::google::protobuf::Arena* arena, DataSource&& from) noexcept + : DataSource(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kSslCredentialsFieldNumber = 1, - kGoogleDefaultFieldNumber = 2, - kLocalCredentialsFieldNumber = 3, + kFilenameFieldNumber = 1, + kInlineBytesFieldNumber = 2, + kInlineStringFieldNumber = 3, }; - // .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; - bool has_ssl_credentials() const; - void clear_ssl_credentials(); - const ::GrpcService_GoogleGrpc_SslCredentials& ssl_credentials() const; - ::GrpcService_GoogleGrpc_SslCredentials* release_ssl_credentials(); - ::GrpcService_GoogleGrpc_SslCredentials* mutable_ssl_credentials(); - void set_allocated_ssl_credentials(::GrpcService_GoogleGrpc_SslCredentials* ssl_credentials); + // string filename = 1; + bool has_filename() const; + void clear_filename() ; + const std::string& filename() const; + template + void set_filename(Arg_&& arg, Args_... args); + std::string* mutable_filename(); + PROTOBUF_NODISCARD std::string* release_filename(); + void set_allocated_filename(std::string* value); - // .google.protobuf.Empty google_default = 2; - bool has_google_default() const; - void clear_google_default(); - const PROTOBUF_NAMESPACE_ID::Empty& google_default() const; - PROTOBUF_NAMESPACE_ID::Empty* release_google_default(); - PROTOBUF_NAMESPACE_ID::Empty* mutable_google_default(); - void set_allocated_google_default(PROTOBUF_NAMESPACE_ID::Empty* google_default); + private: + const std::string& _internal_filename() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_filename( + const std::string& value); + std::string* _internal_mutable_filename(); - // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; - bool has_local_credentials() const; - void clear_local_credentials(); - const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& local_credentials() const; - ::GrpcService_GoogleGrpc_GoogleLocalCredentials* release_local_credentials(); - ::GrpcService_GoogleGrpc_GoogleLocalCredentials* mutable_local_credentials(); - void set_allocated_local_credentials(::GrpcService_GoogleGrpc_GoogleLocalCredentials* local_credentials); + public: + // bytes inline_bytes = 2; + bool has_inline_bytes() const; + void clear_inline_bytes() ; + const std::string& inline_bytes() const; + template + void set_inline_bytes(Arg_&& arg, Args_... args); + std::string* mutable_inline_bytes(); + PROTOBUF_NODISCARD std::string* release_inline_bytes(); + void set_allocated_inline_bytes(std::string* value); - void clear_credential_specifier(); - CredentialSpecifierCase credential_specifier_case() const; - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.ChannelCredentials) - private: - class _Internal; - void set_has_ssl_credentials(); - void set_has_google_default(); - void set_has_local_credentials(); + private: + const std::string& _internal_inline_bytes() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_inline_bytes( + const std::string& value); + std::string* _internal_mutable_inline_bytes(); - inline bool has_credential_specifier() const; - inline void clear_has_credential_specifier(); + public: + // string inline_string = 3; + bool has_inline_string() const; + void clear_inline_string() ; + const std::string& inline_string() const; + template + void set_inline_string(Arg_&& arg, Args_... args); + std::string* mutable_inline_string(); + PROTOBUF_NODISCARD std::string* release_inline_string(); + void set_allocated_inline_string(std::string* value); - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - union CredentialSpecifierUnion { - CredentialSpecifierUnion() {} - ::GrpcService_GoogleGrpc_SslCredentials* ssl_credentials_; - PROTOBUF_NAMESPACE_ID::Empty* google_default_; - ::GrpcService_GoogleGrpc_GoogleLocalCredentials* local_credentials_; - } credential_specifier_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + private: + const std::string& _internal_inline_string() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_inline_string( + const std::string& value); + std::string* _internal_mutable_inline_string(); + public: + void clear_specifier(); + SpecifierCase specifier_case() const; + // @@protoc_insertion_point(class_scope:DataSource) + private: + class _Internal; + void set_has_filename(); + void set_has_inline_bytes(); + void set_has_inline_string(); + inline bool has_specifier() const; + inline void clear_has_specifier(); + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 3, 0, + 40, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + union SpecifierUnion { + constexpr SpecifierUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + ::google::protobuf::internal::ArenaStringPtr filename_; + ::google::protobuf::internal::ArenaStringPtr inline_bytes_; + ::google::protobuf::internal::ArenaStringPtr inline_string_; + } specifier_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; }; // ------------------------------------------------------------------- -class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) */ { +class WKT final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:WKT) */ { public: - GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(); - virtual ~GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(); - - GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from); - GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials() { - *this = ::std::move(from); - } - - inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& operator=(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) { + inline WKT() : WKT(nullptr) {} + ~WKT() override; + template + explicit PROTOBUF_CONSTEXPR WKT( + ::google::protobuf::internal::ConstantInitialized); + + inline WKT(const WKT& from) : WKT(nullptr, from) {} + inline WKT(WKT&& from) noexcept + : WKT(nullptr, std::move(from)) {} + inline WKT& operator=(const WKT& from) { CopyFrom(from); return *this; } - inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& operator=(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + inline WKT& operator=(WKT&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; } - static const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* internal_default_instance() { - return reinterpret_cast( - &_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_); + static const WKT& default_instance() { + return *internal_default_instance(); } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& a, GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& b) { - a.Swap(&b); + static inline const WKT* internal_default_instance() { + return reinterpret_cast( + &_WKT_default_instance_); } - inline void Swap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* other) { + static constexpr int kIndexInFileMessages = 0; + friend void swap(WKT& a, WKT& b) { a.Swap(&b); } + inline void Swap(WKT* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(WKT* other) { if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* New() const final { - return CreateMaybeMessage(nullptr); - } - - GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + WKT* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from); - void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const WKT& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const WKT& from) { WKT::MergeImpl(*this, from); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto); - return ::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto.file_level_metadata[kIndexInFileMessages]; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(WKT* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "WKT"; } + + protected: + explicit WKT(::google::protobuf::Arena* arena); + WKT(::google::protobuf::Arena* arena, const WKT& from); + WKT(::google::protobuf::Arena* arena, WKT&& from) noexcept + : WKT(arena) { + *this = ::std::move(from); } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; - public: - + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kJsonKeyFieldNumber = 1, - kTokenLifetimeSecondsFieldNumber = 2, + kStructFieldNumber = 1, }; - // string json_key = 1; - void clear_json_key(); - const std::string& json_key() const; - void set_json_key(const std::string& value); - void set_json_key(std::string&& value); - void set_json_key(const char* value); - void set_json_key(const char* value, size_t size); - std::string* mutable_json_key(); - std::string* release_json_key(); - void set_allocated_json_key(std::string* json_key); + // .google.protobuf.Struct struct = 1; + bool has_struct_() const; + void clear_struct_() ; + const ::google::protobuf::Struct& struct_() const; + PROTOBUF_NODISCARD ::google::protobuf::Struct* release_struct_(); + ::google::protobuf::Struct* mutable_struct_(); + void set_allocated_struct_(::google::protobuf::Struct* value); + void unsafe_arena_set_allocated_struct_(::google::protobuf::Struct* value); + ::google::protobuf::Struct* unsafe_arena_release_struct_(); - // uint64 token_lifetime_seconds = 2; - void clear_token_lifetime_seconds(); - ::PROTOBUF_NAMESPACE_ID::uint64 token_lifetime_seconds() const; - void set_token_lifetime_seconds(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + const ::google::protobuf::Struct& _internal_struct_() const; + ::google::protobuf::Struct* _internal_mutable_struct_(); - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) + public: + // @@protoc_insertion_point(class_scope:WKT) private: class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr json_key_; - ::PROTOBUF_NAMESPACE_ID::uint64 token_lifetime_seconds_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 1, 1, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::Struct* struct__; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; }; // ------------------------------------------------------------------- -class GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) */ { +class GrpcService_GoogleGrpc_SslCredentials final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.SslCredentials) */ { public: - GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(); - virtual ~GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(); - - GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from); - GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials() { - *this = ::std::move(from); - } - - inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& operator=(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) { + inline GrpcService_GoogleGrpc_SslCredentials() : GrpcService_GoogleGrpc_SslCredentials(nullptr) {} + ~GrpcService_GoogleGrpc_SslCredentials() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_SslCredentials( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService_GoogleGrpc_SslCredentials(const GrpcService_GoogleGrpc_SslCredentials& from) : GrpcService_GoogleGrpc_SslCredentials(nullptr, from) {} + inline GrpcService_GoogleGrpc_SslCredentials(GrpcService_GoogleGrpc_SslCredentials&& from) noexcept + : GrpcService_GoogleGrpc_SslCredentials(nullptr, std::move(from)) {} + inline GrpcService_GoogleGrpc_SslCredentials& operator=(const GrpcService_GoogleGrpc_SslCredentials& from) { CopyFrom(from); return *this; } - inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& operator=(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + inline GrpcService_GoogleGrpc_SslCredentials& operator=(GrpcService_GoogleGrpc_SslCredentials&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; } - static const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* internal_default_instance() { - return reinterpret_cast( - &_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_); + static const GrpcService_GoogleGrpc_SslCredentials& default_instance() { + return *internal_default_instance(); } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& a, GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& b) { - a.Swap(&b); + static inline const GrpcService_GoogleGrpc_SslCredentials* internal_default_instance() { + return reinterpret_cast( + &_GrpcService_GoogleGrpc_SslCredentials_default_instance_); } - inline void Swap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* other) { + static constexpr int kIndexInFileMessages = 3; + friend void swap(GrpcService_GoogleGrpc_SslCredentials& a, GrpcService_GoogleGrpc_SslCredentials& b) { a.Swap(&b); } + inline void Swap(GrpcService_GoogleGrpc_SslCredentials* other) { if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService_GoogleGrpc_SslCredentials* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* New() const final { - return CreateMaybeMessage(nullptr); - } - - GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from); - void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials"; + GrpcService_GoogleGrpc_SslCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GrpcService_GoogleGrpc_SslCredentials& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GrpcService_GoogleGrpc_SslCredentials& from) { GrpcService_GoogleGrpc_SslCredentials::MergeImpl(*this, from); } + private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto); - return ::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto.file_level_metadata[kIndexInFileMessages]; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GrpcService_GoogleGrpc_SslCredentials* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.SslCredentials"; } + + protected: + explicit GrpcService_GoogleGrpc_SslCredentials(::google::protobuf::Arena* arena); + GrpcService_GoogleGrpc_SslCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_SslCredentials& from); + GrpcService_GoogleGrpc_SslCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_SslCredentials&& from) noexcept + : GrpcService_GoogleGrpc_SslCredentials(arena) { + *this = ::std::move(from); } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; - public: - + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kAuthorizationTokenFieldNumber = 1, - kAuthoritySelectorFieldNumber = 2, + kRootCertsFieldNumber = 1, + kPrivateKeyFieldNumber = 2, + kCertChainFieldNumber = 3, }; - // string authorization_token = 1; - void clear_authorization_token(); - const std::string& authorization_token() const; - void set_authorization_token(const std::string& value); - void set_authorization_token(std::string&& value); - void set_authorization_token(const char* value); - void set_authorization_token(const char* value, size_t size); - std::string* mutable_authorization_token(); - std::string* release_authorization_token(); - void set_allocated_authorization_token(std::string* authorization_token); + // .DataSource root_certs = 1; + bool has_root_certs() const; + void clear_root_certs() ; + const ::DataSource& root_certs() const; + PROTOBUF_NODISCARD ::DataSource* release_root_certs(); + ::DataSource* mutable_root_certs(); + void set_allocated_root_certs(::DataSource* value); + void unsafe_arena_set_allocated_root_certs(::DataSource* value); + ::DataSource* unsafe_arena_release_root_certs(); - // string authority_selector = 2; - void clear_authority_selector(); - const std::string& authority_selector() const; - void set_authority_selector(const std::string& value); - void set_authority_selector(std::string&& value); - void set_authority_selector(const char* value); - void set_authority_selector(const char* value, size_t size); - std::string* mutable_authority_selector(); - std::string* release_authority_selector(); - void set_allocated_authority_selector(std::string* authority_selector); + private: + const ::DataSource& _internal_root_certs() const; + ::DataSource* _internal_mutable_root_certs(); - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) + public: + // .DataSource private_key = 2; + bool has_private_key() const; + void clear_private_key() ; + const ::DataSource& private_key() const; + PROTOBUF_NODISCARD ::DataSource* release_private_key(); + ::DataSource* mutable_private_key(); + void set_allocated_private_key(::DataSource* value); + void unsafe_arena_set_allocated_private_key(::DataSource* value); + ::DataSource* unsafe_arena_release_private_key(); + + private: + const ::DataSource& _internal_private_key() const; + ::DataSource* _internal_mutable_private_key(); + + public: + // .DataSource cert_chain = 3; + bool has_cert_chain() const; + void clear_cert_chain() ; + const ::DataSource& cert_chain() const; + PROTOBUF_NODISCARD ::DataSource* release_cert_chain(); + ::DataSource* mutable_cert_chain(); + void set_allocated_cert_chain(::DataSource* value); + void unsafe_arena_set_allocated_cert_chain(::DataSource* value); + ::DataSource* unsafe_arena_release_cert_chain(); + + private: + const ::DataSource& _internal_cert_chain() const; + ::DataSource* _internal_mutable_cert_chain(); + + public: + // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.SslCredentials) private: class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr authorization_token_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr authority_selector_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 2, 3, 3, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::DataSource* root_certs_; + ::DataSource* private_key_; + ::DataSource* cert_chain_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; }; // ------------------------------------------------------------------- -class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) */ { +class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) */ { public: - GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(); - virtual ~GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(); - - GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from); - GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin() { - *this = ::std::move(from); - } - + inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin() : GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(nullptr) {} + ~GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) : GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(nullptr, from) {} + inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin&& from) noexcept + : GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(nullptr, std::move(from)) {} inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& operator=(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) { CopyFrom(from); return *this; } inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& operator=(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& default_instance() { + return *internal_default_instance(); } - static const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& default_instance(); - enum ConfigTypeCase { kConfig = 2, kTypedConfig = 3, CONFIG_TYPE_NOT_SET = 0, }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* internal_default_instance() { return reinterpret_cast( - &_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& a, GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& b) { - a.Swap(&b); + &_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_); } + static constexpr int kIndexInFileMessages = 8; + friend void swap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& a, GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& b) { a.Swap(&b); } inline void Swap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* other) { if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* New() const final { - return CreateMaybeMessage(nullptr); - } - - GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from); - void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) { GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::MergeImpl(*this, from); } - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto); - return ::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto.file_level_metadata[kIndexInFileMessages]; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin"; } + + protected: + explicit GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(::google::protobuf::Arena* arena); + GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from); + GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin&& from) noexcept + : GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(arena) { + *this = ::std::move(from); } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; - public: - + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kNameFieldNumber = 1, kConfigFieldNumber = 2, kTypedConfigFieldNumber = 3, }; // string name = 1; - void clear_name(); + void clear_name() ; const std::string& name() const; - void set_name(const std::string& value); - void set_name(std::string&& value); - void set_name(const char* value); - void set_name(const char* value, size_t size); + template + void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); - std::string* release_name(); - void set_allocated_name(std::string* name); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* value); + + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); + std::string* _internal_mutable_name(); + public: // .google.protobuf.Struct config = 2 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_config() const; - PROTOBUF_DEPRECATED void clear_config(); - PROTOBUF_DEPRECATED const PROTOBUF_NAMESPACE_ID::Struct& config() const; - PROTOBUF_DEPRECATED PROTOBUF_NAMESPACE_ID::Struct* release_config(); - PROTOBUF_DEPRECATED PROTOBUF_NAMESPACE_ID::Struct* mutable_config(); - PROTOBUF_DEPRECATED void set_allocated_config(PROTOBUF_NAMESPACE_ID::Struct* config); + [[deprecated]] bool has_config() const; + private: + bool _internal_has_config() const; + + public: + [[deprecated]] void clear_config() ; + [[deprecated]] const ::google::protobuf::Struct& config() const; + [[deprecated]] PROTOBUF_NODISCARD ::google::protobuf::Struct* release_config(); + [[deprecated]] ::google::protobuf::Struct* mutable_config(); + [[deprecated]] void set_allocated_config(::google::protobuf::Struct* value); + [[deprecated]] void unsafe_arena_set_allocated_config(::google::protobuf::Struct* value); + [[deprecated]] ::google::protobuf::Struct* unsafe_arena_release_config(); + private: + const ::google::protobuf::Struct& _internal_config() const; + ::google::protobuf::Struct* _internal_mutable_config(); + + public: // .google.protobuf.Any typed_config = 3; bool has_typed_config() const; - void clear_typed_config(); - const PROTOBUF_NAMESPACE_ID::Any& typed_config() const; - PROTOBUF_NAMESPACE_ID::Any* release_typed_config(); - PROTOBUF_NAMESPACE_ID::Any* mutable_typed_config(); - void set_allocated_typed_config(PROTOBUF_NAMESPACE_ID::Any* typed_config); + private: + bool _internal_has_typed_config() const; + + public: + void clear_typed_config() ; + const ::google::protobuf::Any& typed_config() const; + PROTOBUF_NODISCARD ::google::protobuf::Any* release_typed_config(); + ::google::protobuf::Any* mutable_typed_config(); + void set_allocated_typed_config(::google::protobuf::Any* value); + void unsafe_arena_set_allocated_typed_config(::google::protobuf::Any* value); + ::google::protobuf::Any* unsafe_arena_release_typed_config(); + + private: + const ::google::protobuf::Any& _internal_typed_config() const; + ::google::protobuf::Any* _internal_mutable_typed_config(); + public: void clear_config_type(); ConfigTypeCase config_type_case() const; // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) @@ -1500,301 +2112,329 @@ class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin : class _Internal; void set_has_config(); void set_has_typed_config(); - inline bool has_config_type() const; inline void clear_has_config_type(); - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - union ConfigTypeUnion { - ConfigTypeUnion() {} - PROTOBUF_NAMESPACE_ID::Struct* config_; - PROTOBUF_NAMESPACE_ID::Any* typed_config_; - } config_type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 3, 2, + 81, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr name_; + union ConfigTypeUnion { + constexpr ConfigTypeUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + ::google::protobuf::Struct* config_; + ::google::protobuf::Any* typed_config_; + } config_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; }; // ------------------------------------------------------------------- -class GrpcService_GoogleGrpc_CallCredentials_StsService : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.StsService) */ { +class GrpcService_GoogleGrpc_ChannelCredentials final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.ChannelCredentials) */ { public: - GrpcService_GoogleGrpc_CallCredentials_StsService(); - virtual ~GrpcService_GoogleGrpc_CallCredentials_StsService(); - - GrpcService_GoogleGrpc_CallCredentials_StsService(const GrpcService_GoogleGrpc_CallCredentials_StsService& from); - GrpcService_GoogleGrpc_CallCredentials_StsService(GrpcService_GoogleGrpc_CallCredentials_StsService&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_StsService() { - *this = ::std::move(from); - } - - inline GrpcService_GoogleGrpc_CallCredentials_StsService& operator=(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) { + inline GrpcService_GoogleGrpc_ChannelCredentials() : GrpcService_GoogleGrpc_ChannelCredentials(nullptr) {} + ~GrpcService_GoogleGrpc_ChannelCredentials() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_ChannelCredentials( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService_GoogleGrpc_ChannelCredentials(const GrpcService_GoogleGrpc_ChannelCredentials& from) : GrpcService_GoogleGrpc_ChannelCredentials(nullptr, from) {} + inline GrpcService_GoogleGrpc_ChannelCredentials(GrpcService_GoogleGrpc_ChannelCredentials&& from) noexcept + : GrpcService_GoogleGrpc_ChannelCredentials(nullptr, std::move(from)) {} + inline GrpcService_GoogleGrpc_ChannelCredentials& operator=(const GrpcService_GoogleGrpc_ChannelCredentials& from) { CopyFrom(from); return *this; } - inline GrpcService_GoogleGrpc_CallCredentials_StsService& operator=(GrpcService_GoogleGrpc_CallCredentials_StsService&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + inline GrpcService_GoogleGrpc_ChannelCredentials& operator=(GrpcService_GoogleGrpc_ChannelCredentials&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; } - static const GrpcService_GoogleGrpc_CallCredentials_StsService& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GrpcService_GoogleGrpc_CallCredentials_StsService* internal_default_instance() { - return reinterpret_cast( - &_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_); + static const GrpcService_GoogleGrpc_ChannelCredentials& default_instance() { + return *internal_default_instance(); } - static constexpr int kIndexInFileMessages = - 9; - - friend void swap(GrpcService_GoogleGrpc_CallCredentials_StsService& a, GrpcService_GoogleGrpc_CallCredentials_StsService& b) { - a.Swap(&b); + enum CredentialSpecifierCase { + kSslCredentials = 1, + kGoogleDefault = 2, + kLocalCredentials = 3, + CREDENTIAL_SPECIFIER_NOT_SET = 0, + }; + static inline const GrpcService_GoogleGrpc_ChannelCredentials* internal_default_instance() { + return reinterpret_cast( + &_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_); } - inline void Swap(GrpcService_GoogleGrpc_CallCredentials_StsService* other) { + static constexpr int kIndexInFileMessages = 5; + friend void swap(GrpcService_GoogleGrpc_ChannelCredentials& a, GrpcService_GoogleGrpc_ChannelCredentials& b) { a.Swap(&b); } + inline void Swap(GrpcService_GoogleGrpc_ChannelCredentials* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService_GoogleGrpc_ChannelCredentials* other) { if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GrpcService_GoogleGrpc_CallCredentials_StsService* New() const final { - return CreateMaybeMessage(nullptr); - } - - GrpcService_GoogleGrpc_CallCredentials_StsService* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + GrpcService_GoogleGrpc_ChannelCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from); - void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GrpcService_GoogleGrpc_ChannelCredentials& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GrpcService_GoogleGrpc_ChannelCredentials& from) { GrpcService_GoogleGrpc_ChannelCredentials::MergeImpl(*this, from); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_StsService* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.GoogleGrpc.CallCredentials.StsService"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto); - return ::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto.file_level_metadata[kIndexInFileMessages]; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GrpcService_GoogleGrpc_ChannelCredentials* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.ChannelCredentials"; } + + protected: + explicit GrpcService_GoogleGrpc_ChannelCredentials(::google::protobuf::Arena* arena); + GrpcService_GoogleGrpc_ChannelCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_ChannelCredentials& from); + GrpcService_GoogleGrpc_ChannelCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_ChannelCredentials&& from) noexcept + : GrpcService_GoogleGrpc_ChannelCredentials(arena) { + *this = ::std::move(from); } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; - public: - + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kTokenExchangeServiceUriFieldNumber = 1, - kResourceFieldNumber = 2, - kAudienceFieldNumber = 3, - kScopeFieldNumber = 4, - kRequestedTokenTypeFieldNumber = 5, - kSubjectTokenPathFieldNumber = 6, - kSubjectTokenTypeFieldNumber = 7, - kActorTokenPathFieldNumber = 8, - kActorTokenTypeFieldNumber = 9, + kSslCredentialsFieldNumber = 1, + kGoogleDefaultFieldNumber = 2, + kLocalCredentialsFieldNumber = 3, }; - // string token_exchange_service_uri = 1; - void clear_token_exchange_service_uri(); - const std::string& token_exchange_service_uri() const; - void set_token_exchange_service_uri(const std::string& value); - void set_token_exchange_service_uri(std::string&& value); - void set_token_exchange_service_uri(const char* value); - void set_token_exchange_service_uri(const char* value, size_t size); - std::string* mutable_token_exchange_service_uri(); - std::string* release_token_exchange_service_uri(); - void set_allocated_token_exchange_service_uri(std::string* token_exchange_service_uri); + // .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; + bool has_ssl_credentials() const; + private: + bool _internal_has_ssl_credentials() const; - // string resource = 2; - void clear_resource(); - const std::string& resource() const; - void set_resource(const std::string& value); - void set_resource(std::string&& value); - void set_resource(const char* value); - void set_resource(const char* value, size_t size); - std::string* mutable_resource(); - std::string* release_resource(); - void set_allocated_resource(std::string* resource); + public: + void clear_ssl_credentials() ; + const ::GrpcService_GoogleGrpc_SslCredentials& ssl_credentials() const; + PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_SslCredentials* release_ssl_credentials(); + ::GrpcService_GoogleGrpc_SslCredentials* mutable_ssl_credentials(); + void set_allocated_ssl_credentials(::GrpcService_GoogleGrpc_SslCredentials* value); + void unsafe_arena_set_allocated_ssl_credentials(::GrpcService_GoogleGrpc_SslCredentials* value); + ::GrpcService_GoogleGrpc_SslCredentials* unsafe_arena_release_ssl_credentials(); - // string audience = 3; - void clear_audience(); - const std::string& audience() const; - void set_audience(const std::string& value); - void set_audience(std::string&& value); - void set_audience(const char* value); - void set_audience(const char* value, size_t size); - std::string* mutable_audience(); - std::string* release_audience(); - void set_allocated_audience(std::string* audience); + private: + const ::GrpcService_GoogleGrpc_SslCredentials& _internal_ssl_credentials() const; + ::GrpcService_GoogleGrpc_SslCredentials* _internal_mutable_ssl_credentials(); - // string scope = 4; - void clear_scope(); - const std::string& scope() const; - void set_scope(const std::string& value); - void set_scope(std::string&& value); - void set_scope(const char* value); - void set_scope(const char* value, size_t size); - std::string* mutable_scope(); - std::string* release_scope(); - void set_allocated_scope(std::string* scope); + public: + // .google.protobuf.Empty google_default = 2; + bool has_google_default() const; + private: + bool _internal_has_google_default() const; - // string requested_token_type = 5; - void clear_requested_token_type(); - const std::string& requested_token_type() const; - void set_requested_token_type(const std::string& value); - void set_requested_token_type(std::string&& value); - void set_requested_token_type(const char* value); - void set_requested_token_type(const char* value, size_t size); - std::string* mutable_requested_token_type(); - std::string* release_requested_token_type(); - void set_allocated_requested_token_type(std::string* requested_token_type); + public: + void clear_google_default() ; + const ::google::protobuf::Empty& google_default() const; + PROTOBUF_NODISCARD ::google::protobuf::Empty* release_google_default(); + ::google::protobuf::Empty* mutable_google_default(); + void set_allocated_google_default(::google::protobuf::Empty* value); + void unsafe_arena_set_allocated_google_default(::google::protobuf::Empty* value); + ::google::protobuf::Empty* unsafe_arena_release_google_default(); - // string subject_token_path = 6; - void clear_subject_token_path(); - const std::string& subject_token_path() const; - void set_subject_token_path(const std::string& value); - void set_subject_token_path(std::string&& value); - void set_subject_token_path(const char* value); - void set_subject_token_path(const char* value, size_t size); - std::string* mutable_subject_token_path(); - std::string* release_subject_token_path(); - void set_allocated_subject_token_path(std::string* subject_token_path); + private: + const ::google::protobuf::Empty& _internal_google_default() const; + ::google::protobuf::Empty* _internal_mutable_google_default(); - // string subject_token_type = 7; - void clear_subject_token_type(); - const std::string& subject_token_type() const; - void set_subject_token_type(const std::string& value); - void set_subject_token_type(std::string&& value); - void set_subject_token_type(const char* value); - void set_subject_token_type(const char* value, size_t size); - std::string* mutable_subject_token_type(); - std::string* release_subject_token_type(); - void set_allocated_subject_token_type(std::string* subject_token_type); + public: + // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; + bool has_local_credentials() const; + private: + bool _internal_has_local_credentials() const; - // string actor_token_path = 8; - void clear_actor_token_path(); - const std::string& actor_token_path() const; - void set_actor_token_path(const std::string& value); - void set_actor_token_path(std::string&& value); - void set_actor_token_path(const char* value); - void set_actor_token_path(const char* value, size_t size); - std::string* mutable_actor_token_path(); - std::string* release_actor_token_path(); - void set_allocated_actor_token_path(std::string* actor_token_path); + public: + void clear_local_credentials() ; + const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& local_credentials() const; + PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_GoogleLocalCredentials* release_local_credentials(); + ::GrpcService_GoogleGrpc_GoogleLocalCredentials* mutable_local_credentials(); + void set_allocated_local_credentials(::GrpcService_GoogleGrpc_GoogleLocalCredentials* value); + void unsafe_arena_set_allocated_local_credentials(::GrpcService_GoogleGrpc_GoogleLocalCredentials* value); + ::GrpcService_GoogleGrpc_GoogleLocalCredentials* unsafe_arena_release_local_credentials(); - // string actor_token_type = 9; - void clear_actor_token_type(); - const std::string& actor_token_type() const; - void set_actor_token_type(const std::string& value); - void set_actor_token_type(std::string&& value); - void set_actor_token_type(const char* value); - void set_actor_token_type(const char* value, size_t size); - std::string* mutable_actor_token_type(); - std::string* release_actor_token_type(); - void set_allocated_actor_token_type(std::string* actor_token_type); + private: + const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& _internal_local_credentials() const; + ::GrpcService_GoogleGrpc_GoogleLocalCredentials* _internal_mutable_local_credentials(); - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.StsService) + public: + void clear_credential_specifier(); + CredentialSpecifierCase credential_specifier_case() const; + // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.ChannelCredentials) private: class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr token_exchange_service_uri_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resource_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr audience_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr scope_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr requested_token_type_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr subject_token_path_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr subject_token_type_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr actor_token_path_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr actor_token_type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + void set_has_ssl_credentials(); + void set_has_google_default(); + void set_has_local_credentials(); + inline bool has_credential_specifier() const; + inline void clear_has_credential_specifier(); + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 3, 3, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + union CredentialSpecifierUnion { + constexpr CredentialSpecifierUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + ::GrpcService_GoogleGrpc_SslCredentials* ssl_credentials_; + ::google::protobuf::Empty* google_default_; + ::GrpcService_GoogleGrpc_GoogleLocalCredentials* local_credentials_; + } credential_specifier_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; }; // ------------------------------------------------------------------- -class GrpcService_GoogleGrpc_CallCredentials : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials) */ { +class GrpcService_GoogleGrpc_CallCredentials final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials) */ { public: - GrpcService_GoogleGrpc_CallCredentials(); - virtual ~GrpcService_GoogleGrpc_CallCredentials(); - - GrpcService_GoogleGrpc_CallCredentials(const GrpcService_GoogleGrpc_CallCredentials& from); - GrpcService_GoogleGrpc_CallCredentials(GrpcService_GoogleGrpc_CallCredentials&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials() { - *this = ::std::move(from); - } - + inline GrpcService_GoogleGrpc_CallCredentials() : GrpcService_GoogleGrpc_CallCredentials(nullptr) {} + ~GrpcService_GoogleGrpc_CallCredentials() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService_GoogleGrpc_CallCredentials(const GrpcService_GoogleGrpc_CallCredentials& from) : GrpcService_GoogleGrpc_CallCredentials(nullptr, from) {} + inline GrpcService_GoogleGrpc_CallCredentials(GrpcService_GoogleGrpc_CallCredentials&& from) noexcept + : GrpcService_GoogleGrpc_CallCredentials(nullptr, std::move(from)) {} inline GrpcService_GoogleGrpc_CallCredentials& operator=(const GrpcService_GoogleGrpc_CallCredentials& from) { CopyFrom(from); return *this; } inline GrpcService_GoogleGrpc_CallCredentials& operator=(GrpcService_GoogleGrpc_CallCredentials&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GrpcService_GoogleGrpc_CallCredentials& default_instance() { + return *internal_default_instance(); } - static const GrpcService_GoogleGrpc_CallCredentials& default_instance(); - enum CredentialSpecifierCase { kAccessToken = 1, kGoogleComputeEngine = 2, @@ -1805,88 +2445,83 @@ class GrpcService_GoogleGrpc_CallCredentials : kStsService = 7, CREDENTIAL_SPECIFIER_NOT_SET = 0, }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GrpcService_GoogleGrpc_CallCredentials* internal_default_instance() { return reinterpret_cast( - &_GrpcService_GoogleGrpc_CallCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(GrpcService_GoogleGrpc_CallCredentials& a, GrpcService_GoogleGrpc_CallCredentials& b) { - a.Swap(&b); + &_GrpcService_GoogleGrpc_CallCredentials_default_instance_); } + static constexpr int kIndexInFileMessages = 10; + friend void swap(GrpcService_GoogleGrpc_CallCredentials& a, GrpcService_GoogleGrpc_CallCredentials& b) { a.Swap(&b); } inline void Swap(GrpcService_GoogleGrpc_CallCredentials* other) { if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService_GoogleGrpc_CallCredentials* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GrpcService_GoogleGrpc_CallCredentials* New() const final { - return CreateMaybeMessage(nullptr); - } - - GrpcService_GoogleGrpc_CallCredentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials& from); - void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GrpcService_GoogleGrpc_CallCredentials* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.GoogleGrpc.CallCredentials"; + GrpcService_GoogleGrpc_CallCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials& from) { GrpcService_GoogleGrpc_CallCredentials::MergeImpl(*this, from); } + private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto); - return ::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto.file_level_metadata[kIndexInFileMessages]; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GrpcService_GoogleGrpc_CallCredentials* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.CallCredentials"; } + + protected: + explicit GrpcService_GoogleGrpc_CallCredentials(::google::protobuf::Arena* arena); + GrpcService_GoogleGrpc_CallCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_CallCredentials& from); + GrpcService_GoogleGrpc_CallCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_CallCredentials&& from) noexcept + : GrpcService_GoogleGrpc_CallCredentials(arena) { + *this = ::std::move(from); } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; - public: - + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - - typedef GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials ServiceAccountJWTAccessCredentials; - typedef GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials GoogleIAMCredentials; - typedef GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin MetadataCredentialsFromPlugin; - typedef GrpcService_GoogleGrpc_CallCredentials_StsService StsService; + using ServiceAccountJWTAccessCredentials = GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials; + using GoogleIAMCredentials = GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials; + using MetadataCredentialsFromPlugin = GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin; + using StsService = GrpcService_GoogleGrpc_CallCredentials_StsService; // accessors ------------------------------------------------------- - enum : int { kAccessTokenFieldNumber = 1, kGoogleComputeEngineFieldNumber = 2, @@ -1897,73 +2532,134 @@ class GrpcService_GoogleGrpc_CallCredentials : kStsServiceFieldNumber = 7, }; // string access_token = 1; - private: bool has_access_token() const; - public: - void clear_access_token(); + void clear_access_token() ; const std::string& access_token() const; - void set_access_token(const std::string& value); - void set_access_token(std::string&& value); - void set_access_token(const char* value); - void set_access_token(const char* value, size_t size); + template + void set_access_token(Arg_&& arg, Args_... args); std::string* mutable_access_token(); - std::string* release_access_token(); - void set_allocated_access_token(std::string* access_token); + PROTOBUF_NODISCARD std::string* release_access_token(); + void set_allocated_access_token(std::string* value); + + private: + const std::string& _internal_access_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_access_token( + const std::string& value); + std::string* _internal_mutable_access_token(); + public: // .google.protobuf.Empty google_compute_engine = 2; bool has_google_compute_engine() const; - void clear_google_compute_engine(); - const PROTOBUF_NAMESPACE_ID::Empty& google_compute_engine() const; - PROTOBUF_NAMESPACE_ID::Empty* release_google_compute_engine(); - PROTOBUF_NAMESPACE_ID::Empty* mutable_google_compute_engine(); - void set_allocated_google_compute_engine(PROTOBUF_NAMESPACE_ID::Empty* google_compute_engine); + private: + bool _internal_has_google_compute_engine() const; + + public: + void clear_google_compute_engine() ; + const ::google::protobuf::Empty& google_compute_engine() const; + PROTOBUF_NODISCARD ::google::protobuf::Empty* release_google_compute_engine(); + ::google::protobuf::Empty* mutable_google_compute_engine(); + void set_allocated_google_compute_engine(::google::protobuf::Empty* value); + void unsafe_arena_set_allocated_google_compute_engine(::google::protobuf::Empty* value); + ::google::protobuf::Empty* unsafe_arena_release_google_compute_engine(); - // string google_refresh_token = 3; private: - bool has_google_refresh_token() const; + const ::google::protobuf::Empty& _internal_google_compute_engine() const; + ::google::protobuf::Empty* _internal_mutable_google_compute_engine(); + public: - void clear_google_refresh_token(); + // string google_refresh_token = 3; + bool has_google_refresh_token() const; + void clear_google_refresh_token() ; const std::string& google_refresh_token() const; - void set_google_refresh_token(const std::string& value); - void set_google_refresh_token(std::string&& value); - void set_google_refresh_token(const char* value); - void set_google_refresh_token(const char* value, size_t size); + template + void set_google_refresh_token(Arg_&& arg, Args_... args); std::string* mutable_google_refresh_token(); - std::string* release_google_refresh_token(); - void set_allocated_google_refresh_token(std::string* google_refresh_token); + PROTOBUF_NODISCARD std::string* release_google_refresh_token(); + void set_allocated_google_refresh_token(std::string* value); + private: + const std::string& _internal_google_refresh_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_google_refresh_token( + const std::string& value); + std::string* _internal_mutable_google_refresh_token(); + + public: // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; bool has_service_account_jwt_access() const; - void clear_service_account_jwt_access(); + private: + bool _internal_has_service_account_jwt_access() const; + + public: + void clear_service_account_jwt_access() ; const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& service_account_jwt_access() const; - ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* release_service_account_jwt_access(); + PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* release_service_account_jwt_access(); ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* mutable_service_account_jwt_access(); - void set_allocated_service_account_jwt_access(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* service_account_jwt_access); + void set_allocated_service_account_jwt_access(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* value); + void unsafe_arena_set_allocated_service_account_jwt_access(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* value); + ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* unsafe_arena_release_service_account_jwt_access(); + + private: + const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& _internal_service_account_jwt_access() const; + ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* _internal_mutable_service_account_jwt_access(); + public: // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; bool has_google_iam() const; - void clear_google_iam(); + private: + bool _internal_has_google_iam() const; + + public: + void clear_google_iam() ; const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& google_iam() const; - ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* release_google_iam(); + PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* release_google_iam(); ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* mutable_google_iam(); - void set_allocated_google_iam(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* google_iam); + void set_allocated_google_iam(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* value); + void unsafe_arena_set_allocated_google_iam(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* value); + ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* unsafe_arena_release_google_iam(); + private: + const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& _internal_google_iam() const; + ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* _internal_mutable_google_iam(); + + public: // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; bool has_from_plugin() const; - void clear_from_plugin(); + private: + bool _internal_has_from_plugin() const; + + public: + void clear_from_plugin() ; const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from_plugin() const; - ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* release_from_plugin(); + PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* release_from_plugin(); ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* mutable_from_plugin(); - void set_allocated_from_plugin(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* from_plugin); + void set_allocated_from_plugin(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* value); + void unsafe_arena_set_allocated_from_plugin(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* value); + ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* unsafe_arena_release_from_plugin(); + + private: + const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& _internal_from_plugin() const; + ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* _internal_mutable_from_plugin(); + public: // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; bool has_sts_service() const; - void clear_sts_service(); + private: + bool _internal_has_sts_service() const; + + public: + void clear_sts_service() ; const ::GrpcService_GoogleGrpc_CallCredentials_StsService& sts_service() const; - ::GrpcService_GoogleGrpc_CallCredentials_StsService* release_sts_service(); + PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_CallCredentials_StsService* release_sts_service(); ::GrpcService_GoogleGrpc_CallCredentials_StsService* mutable_sts_service(); - void set_allocated_sts_service(::GrpcService_GoogleGrpc_CallCredentials_StsService* sts_service); + void set_allocated_sts_service(::GrpcService_GoogleGrpc_CallCredentials_StsService* value); + void unsafe_arena_set_allocated_sts_service(::GrpcService_GoogleGrpc_CallCredentials_StsService* value); + ::GrpcService_GoogleGrpc_CallCredentials_StsService* unsafe_arena_release_sts_service(); + private: + const ::GrpcService_GoogleGrpc_CallCredentials_StsService& _internal_sts_service() const; + ::GrpcService_GoogleGrpc_CallCredentials_StsService* _internal_mutable_sts_service(); + + public: void clear_credential_specifier(); CredentialSpecifierCase credential_specifier_case() const; // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials) @@ -1976,145 +2672,174 @@ class GrpcService_GoogleGrpc_CallCredentials : void set_has_google_iam(); void set_has_from_plugin(); void set_has_sts_service(); - inline bool has_credential_specifier() const; inline void clear_has_credential_specifier(); - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - union CredentialSpecifierUnion { - CredentialSpecifierUnion() {} - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr access_token_; - PROTOBUF_NAMESPACE_ID::Empty* google_compute_engine_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr google_refresh_token_; - ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* service_account_jwt_access_; - ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* google_iam_; - ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* from_plugin_; - ::GrpcService_GoogleGrpc_CallCredentials_StsService* sts_service_; - } credential_specifier_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 7, 5, + 79, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + union CredentialSpecifierUnion { + constexpr CredentialSpecifierUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + ::google::protobuf::internal::ArenaStringPtr access_token_; + ::google::protobuf::Empty* google_compute_engine_; + ::google::protobuf::internal::ArenaStringPtr google_refresh_token_; + ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* service_account_jwt_access_; + ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* google_iam_; + ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* from_plugin_; + ::GrpcService_GoogleGrpc_CallCredentials_StsService* sts_service_; + } credential_specifier_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; }; // ------------------------------------------------------------------- -class GrpcService_GoogleGrpc : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc) */ { +class GrpcService_GoogleGrpc final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc) */ { public: - GrpcService_GoogleGrpc(); - virtual ~GrpcService_GoogleGrpc(); - - GrpcService_GoogleGrpc(const GrpcService_GoogleGrpc& from); - GrpcService_GoogleGrpc(GrpcService_GoogleGrpc&& from) noexcept - : GrpcService_GoogleGrpc() { - *this = ::std::move(from); - } - + inline GrpcService_GoogleGrpc() : GrpcService_GoogleGrpc(nullptr) {} + ~GrpcService_GoogleGrpc() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService_GoogleGrpc(const GrpcService_GoogleGrpc& from) : GrpcService_GoogleGrpc(nullptr, from) {} + inline GrpcService_GoogleGrpc(GrpcService_GoogleGrpc&& from) noexcept + : GrpcService_GoogleGrpc(nullptr, std::move(from)) {} inline GrpcService_GoogleGrpc& operator=(const GrpcService_GoogleGrpc& from) { CopyFrom(from); return *this; } inline GrpcService_GoogleGrpc& operator=(GrpcService_GoogleGrpc&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GrpcService_GoogleGrpc& default_instance() { + return *internal_default_instance(); } - static const GrpcService_GoogleGrpc& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GrpcService_GoogleGrpc* internal_default_instance() { return reinterpret_cast( - &_GrpcService_GoogleGrpc_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(GrpcService_GoogleGrpc& a, GrpcService_GoogleGrpc& b) { - a.Swap(&b); + &_GrpcService_GoogleGrpc_default_instance_); } + static constexpr int kIndexInFileMessages = 11; + friend void swap(GrpcService_GoogleGrpc& a, GrpcService_GoogleGrpc& b) { a.Swap(&b); } inline void Swap(GrpcService_GoogleGrpc* other) { if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService_GoogleGrpc* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GrpcService_GoogleGrpc* New() const final { - return CreateMaybeMessage(nullptr); - } - - GrpcService_GoogleGrpc* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + GrpcService_GoogleGrpc* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GrpcService_GoogleGrpc& from); - void MergeFrom(const GrpcService_GoogleGrpc& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GrpcService_GoogleGrpc& from) { GrpcService_GoogleGrpc::MergeImpl(*this, from); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GrpcService_GoogleGrpc* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.GoogleGrpc"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto); - return ::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto.file_level_metadata[kIndexInFileMessages]; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GrpcService_GoogleGrpc* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc"; } + + protected: + explicit GrpcService_GoogleGrpc(::google::protobuf::Arena* arena); + GrpcService_GoogleGrpc(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc& from); + GrpcService_GoogleGrpc(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc&& from) noexcept + : GrpcService_GoogleGrpc(arena) { + *this = ::std::move(from); } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; - public: - + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - - typedef GrpcService_GoogleGrpc_SslCredentials SslCredentials; - typedef GrpcService_GoogleGrpc_GoogleLocalCredentials GoogleLocalCredentials; - typedef GrpcService_GoogleGrpc_ChannelCredentials ChannelCredentials; - typedef GrpcService_GoogleGrpc_CallCredentials CallCredentials; + using SslCredentials = GrpcService_GoogleGrpc_SslCredentials; + using GoogleLocalCredentials = GrpcService_GoogleGrpc_GoogleLocalCredentials; + using ChannelCredentials = GrpcService_GoogleGrpc_ChannelCredentials; + using CallCredentials = GrpcService_GoogleGrpc_CallCredentials; // accessors ------------------------------------------------------- - enum : int { kCallCredentialsFieldNumber = 3, kTargetUriFieldNumber = 1, @@ -2125,352 +2850,267 @@ class GrpcService_GoogleGrpc : }; // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; int call_credentials_size() const; - void clear_call_credentials(); + private: + int _internal_call_credentials_size() const; + + public: + void clear_call_credentials() ; ::GrpcService_GoogleGrpc_CallCredentials* mutable_call_credentials(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_GoogleGrpc_CallCredentials >* - mutable_call_credentials(); + ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>* mutable_call_credentials(); + + private: + const ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>& _internal_call_credentials() const; + ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>* _internal_mutable_call_credentials(); + public: const ::GrpcService_GoogleGrpc_CallCredentials& call_credentials(int index) const; ::GrpcService_GoogleGrpc_CallCredentials* add_call_credentials(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_GoogleGrpc_CallCredentials >& - call_credentials() const; - + const ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>& call_credentials() const; // string target_uri = 1; - void clear_target_uri(); + void clear_target_uri() ; const std::string& target_uri() const; - void set_target_uri(const std::string& value); - void set_target_uri(std::string&& value); - void set_target_uri(const char* value); - void set_target_uri(const char* value, size_t size); + template + void set_target_uri(Arg_&& arg, Args_... args); std::string* mutable_target_uri(); - std::string* release_target_uri(); - void set_allocated_target_uri(std::string* target_uri); + PROTOBUF_NODISCARD std::string* release_target_uri(); + void set_allocated_target_uri(std::string* value); + + private: + const std::string& _internal_target_uri() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_target_uri( + const std::string& value); + std::string* _internal_mutable_target_uri(); + public: // string stat_prefix = 4; - void clear_stat_prefix(); + void clear_stat_prefix() ; const std::string& stat_prefix() const; - void set_stat_prefix(const std::string& value); - void set_stat_prefix(std::string&& value); - void set_stat_prefix(const char* value); - void set_stat_prefix(const char* value, size_t size); + template + void set_stat_prefix(Arg_&& arg, Args_... args); std::string* mutable_stat_prefix(); - std::string* release_stat_prefix(); - void set_allocated_stat_prefix(std::string* stat_prefix); + PROTOBUF_NODISCARD std::string* release_stat_prefix(); + void set_allocated_stat_prefix(std::string* value); + + private: + const std::string& _internal_stat_prefix() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_stat_prefix( + const std::string& value); + std::string* _internal_mutable_stat_prefix(); + public: // string credentials_factory_name = 5; - void clear_credentials_factory_name(); + void clear_credentials_factory_name() ; const std::string& credentials_factory_name() const; - void set_credentials_factory_name(const std::string& value); - void set_credentials_factory_name(std::string&& value); - void set_credentials_factory_name(const char* value); - void set_credentials_factory_name(const char* value, size_t size); + template + void set_credentials_factory_name(Arg_&& arg, Args_... args); std::string* mutable_credentials_factory_name(); - std::string* release_credentials_factory_name(); - void set_allocated_credentials_factory_name(std::string* credentials_factory_name); + PROTOBUF_NODISCARD std::string* release_credentials_factory_name(); + void set_allocated_credentials_factory_name(std::string* value); + + private: + const std::string& _internal_credentials_factory_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_credentials_factory_name( + const std::string& value); + std::string* _internal_mutable_credentials_factory_name(); + public: // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; bool has_channel_credentials() const; - void clear_channel_credentials(); + void clear_channel_credentials() ; const ::GrpcService_GoogleGrpc_ChannelCredentials& channel_credentials() const; - ::GrpcService_GoogleGrpc_ChannelCredentials* release_channel_credentials(); + PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_ChannelCredentials* release_channel_credentials(); ::GrpcService_GoogleGrpc_ChannelCredentials* mutable_channel_credentials(); - void set_allocated_channel_credentials(::GrpcService_GoogleGrpc_ChannelCredentials* channel_credentials); - - // .google.protobuf.Struct config = 6; - bool has_config() const; - void clear_config(); - const PROTOBUF_NAMESPACE_ID::Struct& config() const; - PROTOBUF_NAMESPACE_ID::Struct* release_config(); - PROTOBUF_NAMESPACE_ID::Struct* mutable_config(); - void set_allocated_config(PROTOBUF_NAMESPACE_ID::Struct* config); - - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_GoogleGrpc_CallCredentials > call_credentials_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr target_uri_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stat_prefix_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr credentials_factory_name_; - ::GrpcService_GoogleGrpc_ChannelCredentials* channel_credentials_; - PROTOBUF_NAMESPACE_ID::Struct* config_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_HeaderValue : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:GrpcService.HeaderValue) */ { - public: - GrpcService_HeaderValue(); - virtual ~GrpcService_HeaderValue(); - - GrpcService_HeaderValue(const GrpcService_HeaderValue& from); - GrpcService_HeaderValue(GrpcService_HeaderValue&& from) noexcept - : GrpcService_HeaderValue() { - *this = ::std::move(from); - } - - inline GrpcService_HeaderValue& operator=(const GrpcService_HeaderValue& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_HeaderValue& operator=(GrpcService_HeaderValue&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GrpcService_HeaderValue& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GrpcService_HeaderValue* internal_default_instance() { - return reinterpret_cast( - &_GrpcService_HeaderValue_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(GrpcService_HeaderValue& a, GrpcService_HeaderValue& b) { - a.Swap(&b); - } - inline void Swap(GrpcService_HeaderValue* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- + void set_allocated_channel_credentials(::GrpcService_GoogleGrpc_ChannelCredentials* value); + void unsafe_arena_set_allocated_channel_credentials(::GrpcService_GoogleGrpc_ChannelCredentials* value); + ::GrpcService_GoogleGrpc_ChannelCredentials* unsafe_arena_release_channel_credentials(); - inline GrpcService_HeaderValue* New() const final { - return CreateMaybeMessage(nullptr); - } - - GrpcService_HeaderValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GrpcService_HeaderValue& from); - void MergeFrom(const GrpcService_HeaderValue& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GrpcService_HeaderValue* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.HeaderValue"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } + const ::GrpcService_GoogleGrpc_ChannelCredentials& _internal_channel_credentials() const; + ::GrpcService_GoogleGrpc_ChannelCredentials* _internal_mutable_channel_credentials(); + public: + // .google.protobuf.Struct config = 6; + bool has_config() const; + void clear_config() ; + const ::google::protobuf::Struct& config() const; + PROTOBUF_NODISCARD ::google::protobuf::Struct* release_config(); + ::google::protobuf::Struct* mutable_config(); + void set_allocated_config(::google::protobuf::Struct* value); + void unsafe_arena_set_allocated_config(::google::protobuf::Struct* value); + ::google::protobuf::Struct* unsafe_arena_release_config(); - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto); - return ::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto.file_level_metadata[kIndexInFileMessages]; - } + const ::google::protobuf::Struct& _internal_config() const; + ::google::protobuf::Struct* _internal_mutable_config(); public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kKeyFieldNumber = 1, - kValueFieldNumber = 2, - }; - // string key = 1; - void clear_key(); - const std::string& key() const; - void set_key(const std::string& value); - void set_key(std::string&& value); - void set_key(const char* value); - void set_key(const char* value, size_t size); - std::string* mutable_key(); - std::string* release_key(); - void set_allocated_key(std::string* key); - - // string value = 2; - void clear_value(); - const std::string& value() const; - void set_value(const std::string& value); - void set_value(std::string&& value); - void set_value(const char* value); - void set_value(const char* value, size_t size); - std::string* mutable_value(); - std::string* release_value(); - void set_allocated_value(std::string* value); - - // @@protoc_insertion_point(class_scope:GrpcService.HeaderValue) + // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc) private: class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 3, 6, 3, + 76, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::GrpcService_GoogleGrpc_CallCredentials > call_credentials_; + ::google::protobuf::internal::ArenaStringPtr target_uri_; + ::google::protobuf::internal::ArenaStringPtr stat_prefix_; + ::google::protobuf::internal::ArenaStringPtr credentials_factory_name_; + ::GrpcService_GoogleGrpc_ChannelCredentials* channel_credentials_; + ::google::protobuf::Struct* config_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; }; // ------------------------------------------------------------------- -class GrpcService : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:GrpcService) */ { +class GrpcService final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:GrpcService) */ { public: - GrpcService(); - virtual ~GrpcService(); - - GrpcService(const GrpcService& from); - GrpcService(GrpcService&& from) noexcept - : GrpcService() { - *this = ::std::move(from); - } - + inline GrpcService() : GrpcService(nullptr) {} + ~GrpcService() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService(const GrpcService& from) : GrpcService(nullptr, from) {} + inline GrpcService(GrpcService&& from) noexcept + : GrpcService(nullptr, std::move(from)) {} inline GrpcService& operator=(const GrpcService& from) { CopyFrom(from); return *this; } inline GrpcService& operator=(GrpcService&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GrpcService& default_instance() { + return *internal_default_instance(); } - static const GrpcService& default_instance(); - enum TargetSpecifierCase { kEnvoyGrpc = 1, kGoogleGrpc = 2, TARGET_SPECIFIER_NOT_SET = 0, }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GrpcService* internal_default_instance() { return reinterpret_cast( - &_GrpcService_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - friend void swap(GrpcService& a, GrpcService& b) { - a.Swap(&b); + &_GrpcService_default_instance_); } + static constexpr int kIndexInFileMessages = 13; + friend void swap(GrpcService& a, GrpcService& b) { a.Swap(&b); } inline void Swap(GrpcService* other) { if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GrpcService* New() const final { - return CreateMaybeMessage(nullptr); + GrpcService* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } - - GrpcService* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GrpcService& from); - void MergeFrom(const GrpcService& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GrpcService& from) { GrpcService::MergeImpl(*this, from); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GrpcService* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto); - return ::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto.file_level_metadata[kIndexInFileMessages]; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GrpcService* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService"; } + + protected: + explicit GrpcService(::google::protobuf::Arena* arena); + GrpcService(::google::protobuf::Arena* arena, const GrpcService& from); + GrpcService(::google::protobuf::Arena* arena, GrpcService&& from) noexcept + : GrpcService(arena) { + *this = ::std::move(from); } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; - public: - + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - - typedef GrpcService_EnvoyGrpc EnvoyGrpc; - typedef GrpcService_GoogleGrpc GoogleGrpc; - typedef GrpcService_HeaderValue HeaderValue; + using EnvoyGrpc = GrpcService_EnvoyGrpc; + using GoogleGrpc = GrpcService_GoogleGrpc; + using HeaderValue = GrpcService_HeaderValue; // accessors ------------------------------------------------------- - enum : int { kInitialMetadataFieldNumber = 5, kTimeoutFieldNumber = 3, @@ -2479,39 +3119,74 @@ class GrpcService : }; // repeated .GrpcService.HeaderValue initial_metadata = 5; int initial_metadata_size() const; - void clear_initial_metadata(); + private: + int _internal_initial_metadata_size() const; + + public: + void clear_initial_metadata() ; ::GrpcService_HeaderValue* mutable_initial_metadata(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_HeaderValue >* - mutable_initial_metadata(); + ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>* mutable_initial_metadata(); + + private: + const ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>& _internal_initial_metadata() const; + ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>* _internal_mutable_initial_metadata(); + public: const ::GrpcService_HeaderValue& initial_metadata(int index) const; ::GrpcService_HeaderValue* add_initial_metadata(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_HeaderValue >& - initial_metadata() const; - + const ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>& initial_metadata() const; // .google.protobuf.Duration timeout = 3; bool has_timeout() const; - void clear_timeout(); - const PROTOBUF_NAMESPACE_ID::Duration& timeout() const; - PROTOBUF_NAMESPACE_ID::Duration* release_timeout(); - PROTOBUF_NAMESPACE_ID::Duration* mutable_timeout(); - void set_allocated_timeout(PROTOBUF_NAMESPACE_ID::Duration* timeout); + void clear_timeout() ; + const ::google::protobuf::Duration& timeout() const; + PROTOBUF_NODISCARD ::google::protobuf::Duration* release_timeout(); + ::google::protobuf::Duration* mutable_timeout(); + void set_allocated_timeout(::google::protobuf::Duration* value); + void unsafe_arena_set_allocated_timeout(::google::protobuf::Duration* value); + ::google::protobuf::Duration* unsafe_arena_release_timeout(); + + private: + const ::google::protobuf::Duration& _internal_timeout() const; + ::google::protobuf::Duration* _internal_mutable_timeout(); + public: // .GrpcService.EnvoyGrpc envoy_grpc = 1; bool has_envoy_grpc() const; - void clear_envoy_grpc(); + private: + bool _internal_has_envoy_grpc() const; + + public: + void clear_envoy_grpc() ; const ::GrpcService_EnvoyGrpc& envoy_grpc() const; - ::GrpcService_EnvoyGrpc* release_envoy_grpc(); + PROTOBUF_NODISCARD ::GrpcService_EnvoyGrpc* release_envoy_grpc(); ::GrpcService_EnvoyGrpc* mutable_envoy_grpc(); - void set_allocated_envoy_grpc(::GrpcService_EnvoyGrpc* envoy_grpc); + void set_allocated_envoy_grpc(::GrpcService_EnvoyGrpc* value); + void unsafe_arena_set_allocated_envoy_grpc(::GrpcService_EnvoyGrpc* value); + ::GrpcService_EnvoyGrpc* unsafe_arena_release_envoy_grpc(); + + private: + const ::GrpcService_EnvoyGrpc& _internal_envoy_grpc() const; + ::GrpcService_EnvoyGrpc* _internal_mutable_envoy_grpc(); + public: // .GrpcService.GoogleGrpc google_grpc = 2; bool has_google_grpc() const; - void clear_google_grpc(); + private: + bool _internal_has_google_grpc() const; + + public: + void clear_google_grpc() ; const ::GrpcService_GoogleGrpc& google_grpc() const; - ::GrpcService_GoogleGrpc* release_google_grpc(); + PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc* release_google_grpc(); ::GrpcService_GoogleGrpc* mutable_google_grpc(); - void set_allocated_google_grpc(::GrpcService_GoogleGrpc* google_grpc); + void set_allocated_google_grpc(::GrpcService_GoogleGrpc* value); + void unsafe_arena_set_allocated_google_grpc(::GrpcService_GoogleGrpc* value); + ::GrpcService_GoogleGrpc* unsafe_arena_release_google_grpc(); + + private: + const ::GrpcService_GoogleGrpc& _internal_google_grpc() const; + ::GrpcService_GoogleGrpc* _internal_mutable_google_grpc(); + public: void clear_target_specifier(); TargetSpecifierCase target_specifier_case() const; // @@protoc_insertion_point(class_scope:GrpcService) @@ -2519,77 +3194,147 @@ class GrpcService : class _Internal; void set_has_envoy_grpc(); void set_has_google_grpc(); - inline bool has_target_specifier() const; inline void clear_has_target_specifier(); - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_HeaderValue > initial_metadata_; - PROTOBUF_NAMESPACE_ID::Duration* timeout_; - union TargetSpecifierUnion { - TargetSpecifierUnion() {} - ::GrpcService_EnvoyGrpc* envoy_grpc_; - ::GrpcService_GoogleGrpc* google_grpc_; - } target_specifier_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 2, 4, 4, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::GrpcService_HeaderValue > initial_metadata_; + ::google::protobuf::Duration* timeout_; + union TargetSpecifierUnion { + constexpr TargetSpecifierUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + ::GrpcService_EnvoyGrpc* envoy_grpc_; + ::GrpcService_GoogleGrpc* google_grpc_; + } target_specifier_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // WKT // .google.protobuf.Struct struct = 1; inline bool WKT::has_struct_() const { - return this != internal_default_instance() && struct__ != nullptr; + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.struct__ != nullptr); + return value; } -inline const PROTOBUF_NAMESPACE_ID::Struct& WKT::struct_() const { - const PROTOBUF_NAMESPACE_ID::Struct* p = struct__; +inline const ::google::protobuf::Struct& WKT::_internal_struct_() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::google::protobuf::Struct* p = _impl_.struct__; + return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +} +inline const ::google::protobuf::Struct& WKT::struct_() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:WKT.struct) - return p != nullptr ? *p : *reinterpret_cast( - &PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); + return _internal_struct_(); +} +inline void WKT::unsafe_arena_set_allocated_struct_(::google::protobuf::Struct* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.struct__); + } + _impl_.struct__ = reinterpret_cast<::google::protobuf::Struct*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:WKT.struct) +} +inline ::google::protobuf::Struct* WKT::release_struct_() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::google::protobuf::Struct* released = _impl_.struct__; + _impl_.struct__ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; } -inline PROTOBUF_NAMESPACE_ID::Struct* WKT::release_struct_() { +inline ::google::protobuf::Struct* WKT::unsafe_arena_release_struct_() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:WKT.struct) - - PROTOBUF_NAMESPACE_ID::Struct* temp = struct__; - struct__ = nullptr; + + _impl_._has_bits_[0] &= ~0x00000001u; + ::google::protobuf::Struct* temp = _impl_.struct__; + _impl_.struct__ = nullptr; return temp; } -inline PROTOBUF_NAMESPACE_ID::Struct* WKT::mutable_struct_() { - - if (struct__ == nullptr) { - auto* p = CreateMaybeMessage(GetArenaNoVirtual()); - struct__ = p; +inline ::google::protobuf::Struct* WKT::_internal_mutable_struct_() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.struct__ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Struct>(GetArena()); + _impl_.struct__ = reinterpret_cast<::google::protobuf::Struct*>(p); } + return _impl_.struct__; +} +inline ::google::protobuf::Struct* WKT::mutable_struct_() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::Struct* _msg = _internal_mutable_struct_(); // @@protoc_insertion_point(field_mutable:WKT.struct) - return struct__; + return _msg; } -inline void WKT::set_allocated_struct_(PROTOBUF_NAMESPACE_ID::Struct* struct_) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); +inline void WKT::set_allocated_struct_(::google::protobuf::Struct* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(struct__); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.struct__); } - if (struct_) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(struct_)->GetArena(); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - struct_ = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, struct_, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - struct__ = struct_; + + _impl_.struct__ = reinterpret_cast<::google::protobuf::Struct*>(value); // @@protoc_insertion_point(field_set_allocated:WKT.struct) } @@ -2602,87 +3347,82 @@ inline bool DataSource::has_filename() const { return specifier_case() == kFilename; } inline void DataSource::set_has_filename() { - _oneof_case_[0] = kFilename; + _impl_._oneof_case_[0] = kFilename; } inline void DataSource::clear_filename() { - if (has_filename()) { - specifier_.filename_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() == kFilename) { + _impl_.specifier_.filename_.Destroy(); clear_has_specifier(); } } -inline const std::string& DataSource::filename() const { +inline const std::string& DataSource::filename() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:DataSource.filename) - if (has_filename()) { - return specifier_.filename_.GetNoArena(); - } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return _internal_filename(); } -inline void DataSource::set_filename(const std::string& value) { - // @@protoc_insertion_point(field_set:DataSource.filename) - if (!has_filename()) { +template +inline PROTOBUF_ALWAYS_INLINE void DataSource::set_filename(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() != kFilename) { clear_specifier(); + set_has_filename(); - specifier_.filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.filename_.InitDefault(); } - specifier_.filename_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + _impl_.specifier_.filename_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:DataSource.filename) } -inline void DataSource::set_filename(std::string&& value) { - // @@protoc_insertion_point(field_set:DataSource.filename) - if (!has_filename()) { - clear_specifier(); - set_has_filename(); - specifier_.filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - specifier_.filename_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:DataSource.filename) +inline std::string* DataSource::mutable_filename() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_filename(); + // @@protoc_insertion_point(field_mutable:DataSource.filename) + return _s; } -inline void DataSource::set_filename(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_filename()) { - clear_specifier(); - set_has_filename(); - specifier_.filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline const std::string& DataSource::_internal_filename() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + if (specifier_case() != kFilename) { + return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); } - specifier_.filename_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:DataSource.filename) + return _impl_.specifier_.filename_.Get(); } -inline void DataSource::set_filename(const char* value, size_t size) { - if (!has_filename()) { +inline void DataSource::_internal_set_filename(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() != kFilename) { clear_specifier(); + set_has_filename(); - specifier_.filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.filename_.InitDefault(); } - specifier_.filename_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:DataSource.filename) + _impl_.specifier_.filename_.Set(value, GetArena()); } -inline std::string* DataSource::mutable_filename() { - if (!has_filename()) { +inline std::string* DataSource::_internal_mutable_filename() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() != kFilename) { clear_specifier(); + set_has_filename(); - specifier_.filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.filename_.InitDefault(); } - // @@protoc_insertion_point(field_mutable:DataSource.filename) - return specifier_.filename_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _impl_.specifier_.filename_.Mutable( GetArena()); } inline std::string* DataSource::release_filename() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:DataSource.filename) - if (has_filename()) { - clear_has_specifier(); - return specifier_.filename_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } else { + if (specifier_case() != kFilename) { return nullptr; } + clear_has_specifier(); + return _impl_.specifier_.filename_.Release(); } -inline void DataSource::set_allocated_filename(std::string* filename) { +inline void DataSource::set_allocated_filename(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (has_specifier()) { clear_specifier(); } - if (filename != nullptr) { + if (value != nullptr) { set_has_filename(); - specifier_.filename_.UnsafeSetDefault(filename); + _impl_.specifier_.filename_.InitAllocated(value, GetArena()); } // @@protoc_insertion_point(field_set_allocated:DataSource.filename) } @@ -2692,87 +3432,82 @@ inline bool DataSource::has_inline_bytes() const { return specifier_case() == kInlineBytes; } inline void DataSource::set_has_inline_bytes() { - _oneof_case_[0] = kInlineBytes; + _impl_._oneof_case_[0] = kInlineBytes; } inline void DataSource::clear_inline_bytes() { - if (has_inline_bytes()) { - specifier_.inline_bytes_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() == kInlineBytes) { + _impl_.specifier_.inline_bytes_.Destroy(); clear_has_specifier(); } } -inline const std::string& DataSource::inline_bytes() const { +inline const std::string& DataSource::inline_bytes() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:DataSource.inline_bytes) - if (has_inline_bytes()) { - return specifier_.inline_bytes_.GetNoArena(); - } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return _internal_inline_bytes(); } -inline void DataSource::set_inline_bytes(const std::string& value) { - // @@protoc_insertion_point(field_set:DataSource.inline_bytes) - if (!has_inline_bytes()) { +template +inline PROTOBUF_ALWAYS_INLINE void DataSource::set_inline_bytes(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() != kInlineBytes) { clear_specifier(); + set_has_inline_bytes(); - specifier_.inline_bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.inline_bytes_.InitDefault(); } - specifier_.inline_bytes_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + _impl_.specifier_.inline_bytes_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:DataSource.inline_bytes) } -inline void DataSource::set_inline_bytes(std::string&& value) { - // @@protoc_insertion_point(field_set:DataSource.inline_bytes) - if (!has_inline_bytes()) { - clear_specifier(); - set_has_inline_bytes(); - specifier_.inline_bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - specifier_.inline_bytes_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:DataSource.inline_bytes) +inline std::string* DataSource::mutable_inline_bytes() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_inline_bytes(); + // @@protoc_insertion_point(field_mutable:DataSource.inline_bytes) + return _s; } -inline void DataSource::set_inline_bytes(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_inline_bytes()) { - clear_specifier(); - set_has_inline_bytes(); - specifier_.inline_bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline const std::string& DataSource::_internal_inline_bytes() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + if (specifier_case() != kInlineBytes) { + return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); } - specifier_.inline_bytes_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:DataSource.inline_bytes) + return _impl_.specifier_.inline_bytes_.Get(); } -inline void DataSource::set_inline_bytes(const void* value, size_t size) { - if (!has_inline_bytes()) { +inline void DataSource::_internal_set_inline_bytes(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() != kInlineBytes) { clear_specifier(); + set_has_inline_bytes(); - specifier_.inline_bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.inline_bytes_.InitDefault(); } - specifier_.inline_bytes_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:DataSource.inline_bytes) + _impl_.specifier_.inline_bytes_.Set(value, GetArena()); } -inline std::string* DataSource::mutable_inline_bytes() { - if (!has_inline_bytes()) { +inline std::string* DataSource::_internal_mutable_inline_bytes() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() != kInlineBytes) { clear_specifier(); + set_has_inline_bytes(); - specifier_.inline_bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.inline_bytes_.InitDefault(); } - // @@protoc_insertion_point(field_mutable:DataSource.inline_bytes) - return specifier_.inline_bytes_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _impl_.specifier_.inline_bytes_.Mutable( GetArena()); } inline std::string* DataSource::release_inline_bytes() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:DataSource.inline_bytes) - if (has_inline_bytes()) { - clear_has_specifier(); - return specifier_.inline_bytes_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } else { + if (specifier_case() != kInlineBytes) { return nullptr; } + clear_has_specifier(); + return _impl_.specifier_.inline_bytes_.Release(); } -inline void DataSource::set_allocated_inline_bytes(std::string* inline_bytes) { +inline void DataSource::set_allocated_inline_bytes(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (has_specifier()) { clear_specifier(); } - if (inline_bytes != nullptr) { + if (value != nullptr) { set_has_inline_bytes(); - specifier_.inline_bytes_.UnsafeSetDefault(inline_bytes); + _impl_.specifier_.inline_bytes_.InitAllocated(value, GetArena()); } // @@protoc_insertion_point(field_set_allocated:DataSource.inline_bytes) } @@ -2782,87 +3517,82 @@ inline bool DataSource::has_inline_string() const { return specifier_case() == kInlineString; } inline void DataSource::set_has_inline_string() { - _oneof_case_[0] = kInlineString; + _impl_._oneof_case_[0] = kInlineString; } inline void DataSource::clear_inline_string() { - if (has_inline_string()) { - specifier_.inline_string_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() == kInlineString) { + _impl_.specifier_.inline_string_.Destroy(); clear_has_specifier(); } } -inline const std::string& DataSource::inline_string() const { +inline const std::string& DataSource::inline_string() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:DataSource.inline_string) - if (has_inline_string()) { - return specifier_.inline_string_.GetNoArena(); - } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return _internal_inline_string(); } -inline void DataSource::set_inline_string(const std::string& value) { - // @@protoc_insertion_point(field_set:DataSource.inline_string) - if (!has_inline_string()) { +template +inline PROTOBUF_ALWAYS_INLINE void DataSource::set_inline_string(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() != kInlineString) { clear_specifier(); + set_has_inline_string(); - specifier_.inline_string_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.inline_string_.InitDefault(); } - specifier_.inline_string_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + _impl_.specifier_.inline_string_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:DataSource.inline_string) } -inline void DataSource::set_inline_string(std::string&& value) { - // @@protoc_insertion_point(field_set:DataSource.inline_string) - if (!has_inline_string()) { - clear_specifier(); - set_has_inline_string(); - specifier_.inline_string_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - specifier_.inline_string_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:DataSource.inline_string) +inline std::string* DataSource::mutable_inline_string() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_inline_string(); + // @@protoc_insertion_point(field_mutable:DataSource.inline_string) + return _s; } -inline void DataSource::set_inline_string(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_inline_string()) { - clear_specifier(); - set_has_inline_string(); - specifier_.inline_string_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline const std::string& DataSource::_internal_inline_string() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + if (specifier_case() != kInlineString) { + return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); } - specifier_.inline_string_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:DataSource.inline_string) + return _impl_.specifier_.inline_string_.Get(); } -inline void DataSource::set_inline_string(const char* value, size_t size) { - if (!has_inline_string()) { +inline void DataSource::_internal_set_inline_string(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() != kInlineString) { clear_specifier(); + set_has_inline_string(); - specifier_.inline_string_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.inline_string_.InitDefault(); } - specifier_.inline_string_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:DataSource.inline_string) + _impl_.specifier_.inline_string_.Set(value, GetArena()); } -inline std::string* DataSource::mutable_inline_string() { - if (!has_inline_string()) { +inline std::string* DataSource::_internal_mutable_inline_string() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() != kInlineString) { clear_specifier(); + set_has_inline_string(); - specifier_.inline_string_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.inline_string_.InitDefault(); } - // @@protoc_insertion_point(field_mutable:DataSource.inline_string) - return specifier_.inline_string_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _impl_.specifier_.inline_string_.Mutable( GetArena()); } inline std::string* DataSource::release_inline_string() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:DataSource.inline_string) - if (has_inline_string()) { - clear_has_specifier(); - return specifier_.inline_string_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } else { + if (specifier_case() != kInlineString) { return nullptr; } + clear_has_specifier(); + return _impl_.specifier_.inline_string_.Release(); } -inline void DataSource::set_allocated_inline_string(std::string* inline_string) { +inline void DataSource::set_allocated_inline_string(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (has_specifier()) { clear_specifier(); } - if (inline_string != nullptr) { + if (value != nullptr) { set_has_inline_string(); - specifier_.inline_string_.UnsafeSetDefault(inline_string); + _impl_.specifier_.inline_string_.InitAllocated(value, GetArena()); } // @@protoc_insertion_point(field_set_allocated:DataSource.inline_string) } @@ -2871,10 +3601,10 @@ inline bool DataSource::has_specifier() const { return specifier_case() != SPECIFIER_NOT_SET; } inline void DataSource::clear_has_specifier() { - _oneof_case_[0] = SPECIFIER_NOT_SET; + _impl_._oneof_case_[0] = SPECIFIER_NOT_SET; } inline DataSource::SpecifierCase DataSource::specifier_case() const { - return DataSource::SpecifierCase(_oneof_case_[0]); + return DataSource::SpecifierCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- @@ -2882,52 +3612,51 @@ inline DataSource::SpecifierCase DataSource::specifier_case() const { // string cluster_name = 1; inline void GrpcService_EnvoyGrpc::clear_cluster_name() { - cluster_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.cluster_name_.ClearToEmpty(); } -inline const std::string& GrpcService_EnvoyGrpc::cluster_name() const { +inline const std::string& GrpcService_EnvoyGrpc::cluster_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.EnvoyGrpc.cluster_name) - return cluster_name_.GetNoArena(); + return _internal_cluster_name(); } -inline void GrpcService_EnvoyGrpc::set_cluster_name(const std::string& value) { - - cluster_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_EnvoyGrpc::set_cluster_name(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.cluster_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.EnvoyGrpc.cluster_name) } -inline void GrpcService_EnvoyGrpc::set_cluster_name(std::string&& value) { - - cluster_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.EnvoyGrpc.cluster_name) -} -inline void GrpcService_EnvoyGrpc::set_cluster_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - cluster_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.EnvoyGrpc.cluster_name) -} -inline void GrpcService_EnvoyGrpc::set_cluster_name(const char* value, size_t size) { - - cluster_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.EnvoyGrpc.cluster_name) -} -inline std::string* GrpcService_EnvoyGrpc::mutable_cluster_name() { - +inline std::string* GrpcService_EnvoyGrpc::mutable_cluster_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_cluster_name(); // @@protoc_insertion_point(field_mutable:GrpcService.EnvoyGrpc.cluster_name) - return cluster_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_EnvoyGrpc::_internal_cluster_name() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.cluster_name_.Get(); +} +inline void GrpcService_EnvoyGrpc::_internal_set_cluster_name(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.cluster_name_.Set(value, GetArena()); +} +inline std::string* GrpcService_EnvoyGrpc::_internal_mutable_cluster_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.cluster_name_.Mutable( GetArena()); } inline std::string* GrpcService_EnvoyGrpc::release_cluster_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.EnvoyGrpc.cluster_name) - - return cluster_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_EnvoyGrpc::set_allocated_cluster_name(std::string* cluster_name) { - if (cluster_name != nullptr) { - - } else { - - } - cluster_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), cluster_name); + return _impl_.cluster_name_.Release(); +} +inline void GrpcService_EnvoyGrpc::set_allocated_cluster_name(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.cluster_name_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.cluster_name_.IsDefault()) { + _impl_.cluster_name_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.EnvoyGrpc.cluster_name) } @@ -2937,154 +3666,289 @@ inline void GrpcService_EnvoyGrpc::set_allocated_cluster_name(std::string* clust // .DataSource root_certs = 1; inline bool GrpcService_GoogleGrpc_SslCredentials::has_root_certs() const { - return this != internal_default_instance() && root_certs_ != nullptr; + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.root_certs_ != nullptr); + return value; } inline void GrpcService_GoogleGrpc_SslCredentials::clear_root_certs() { - if (GetArenaNoVirtual() == nullptr && root_certs_ != nullptr) { - delete root_certs_; - } - root_certs_ = nullptr; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.root_certs_ != nullptr) _impl_.root_certs_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::root_certs() const { - const ::DataSource* p = root_certs_; +inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::_internal_root_certs() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::DataSource* p = _impl_.root_certs_; + return p != nullptr ? *p : reinterpret_cast(::_DataSource_default_instance_); +} +inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::root_certs() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.SslCredentials.root_certs) - return p != nullptr ? *p : *reinterpret_cast( - &::_DataSource_default_instance_); + return _internal_root_certs(); +} +inline void GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_set_allocated_root_certs(::DataSource* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.root_certs_); + } + _impl_.root_certs_ = reinterpret_cast<::DataSource*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.SslCredentials.root_certs) } inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::release_root_certs() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::DataSource* released = _impl_.root_certs_; + _impl_.root_certs_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_release_root_certs() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.SslCredentials.root_certs) - - ::DataSource* temp = root_certs_; - root_certs_ = nullptr; + + _impl_._has_bits_[0] &= ~0x00000001u; + ::DataSource* temp = _impl_.root_certs_; + _impl_.root_certs_ = nullptr; return temp; } -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::mutable_root_certs() { - - if (root_certs_ == nullptr) { - auto* p = CreateMaybeMessage<::DataSource>(GetArenaNoVirtual()); - root_certs_ = p; +inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::_internal_mutable_root_certs() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.root_certs_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct<::DataSource>(GetArena()); + _impl_.root_certs_ = reinterpret_cast<::DataSource*>(p); } + return _impl_.root_certs_; +} +inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::mutable_root_certs() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; + ::DataSource* _msg = _internal_mutable_root_certs(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.SslCredentials.root_certs) - return root_certs_; + return _msg; } -inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_root_certs(::DataSource* root_certs) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); +inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_root_certs(::DataSource* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete root_certs_; + delete (_impl_.root_certs_); } - if (root_certs) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - root_certs = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, root_certs, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - root_certs_ = root_certs; + + _impl_.root_certs_ = reinterpret_cast<::DataSource*>(value); // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.SslCredentials.root_certs) } // .DataSource private_key = 2; inline bool GrpcService_GoogleGrpc_SslCredentials::has_private_key() const { - return this != internal_default_instance() && private_key_ != nullptr; + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.private_key_ != nullptr); + return value; } inline void GrpcService_GoogleGrpc_SslCredentials::clear_private_key() { - if (GetArenaNoVirtual() == nullptr && private_key_ != nullptr) { - delete private_key_; - } - private_key_ = nullptr; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.private_key_ != nullptr) _impl_.private_key_->Clear(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::private_key() const { - const ::DataSource* p = private_key_; +inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::_internal_private_key() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::DataSource* p = _impl_.private_key_; + return p != nullptr ? *p : reinterpret_cast(::_DataSource_default_instance_); +} +inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::private_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.SslCredentials.private_key) - return p != nullptr ? *p : *reinterpret_cast( - &::_DataSource_default_instance_); + return _internal_private_key(); +} +inline void GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_set_allocated_private_key(::DataSource* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.private_key_); + } + _impl_.private_key_ = reinterpret_cast<::DataSource*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.SslCredentials.private_key) } inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::release_private_key() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000002u; + ::DataSource* released = _impl_.private_key_; + _impl_.private_key_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_release_private_key() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.SslCredentials.private_key) - - ::DataSource* temp = private_key_; - private_key_ = nullptr; + + _impl_._has_bits_[0] &= ~0x00000002u; + ::DataSource* temp = _impl_.private_key_; + _impl_.private_key_ = nullptr; return temp; } -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::mutable_private_key() { - - if (private_key_ == nullptr) { - auto* p = CreateMaybeMessage<::DataSource>(GetArenaNoVirtual()); - private_key_ = p; +inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::_internal_mutable_private_key() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.private_key_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct<::DataSource>(GetArena()); + _impl_.private_key_ = reinterpret_cast<::DataSource*>(p); } + return _impl_.private_key_; +} +inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::mutable_private_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; + ::DataSource* _msg = _internal_mutable_private_key(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.SslCredentials.private_key) - return private_key_; + return _msg; } -inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_private_key(::DataSource* private_key) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); +inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_private_key(::DataSource* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete private_key_; + delete (_impl_.private_key_); } - if (private_key) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - private_key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, private_key, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000002u; } else { - + _impl_._has_bits_[0] &= ~0x00000002u; } - private_key_ = private_key; + + _impl_.private_key_ = reinterpret_cast<::DataSource*>(value); // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.SslCredentials.private_key) } // .DataSource cert_chain = 3; inline bool GrpcService_GoogleGrpc_SslCredentials::has_cert_chain() const { - return this != internal_default_instance() && cert_chain_ != nullptr; + bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || _impl_.cert_chain_ != nullptr); + return value; } inline void GrpcService_GoogleGrpc_SslCredentials::clear_cert_chain() { - if (GetArenaNoVirtual() == nullptr && cert_chain_ != nullptr) { - delete cert_chain_; - } - cert_chain_ = nullptr; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.cert_chain_ != nullptr) _impl_.cert_chain_->Clear(); + _impl_._has_bits_[0] &= ~0x00000004u; } -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::cert_chain() const { - const ::DataSource* p = cert_chain_; +inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::_internal_cert_chain() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::DataSource* p = _impl_.cert_chain_; + return p != nullptr ? *p : reinterpret_cast(::_DataSource_default_instance_); +} +inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::cert_chain() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.SslCredentials.cert_chain) - return p != nullptr ? *p : *reinterpret_cast( - &::_DataSource_default_instance_); + return _internal_cert_chain(); +} +inline void GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_set_allocated_cert_chain(::DataSource* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cert_chain_); + } + _impl_.cert_chain_ = reinterpret_cast<::DataSource*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.SslCredentials.cert_chain) } inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::release_cert_chain() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000004u; + ::DataSource* released = _impl_.cert_chain_; + _impl_.cert_chain_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_release_cert_chain() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.SslCredentials.cert_chain) - - ::DataSource* temp = cert_chain_; - cert_chain_ = nullptr; + + _impl_._has_bits_[0] &= ~0x00000004u; + ::DataSource* temp = _impl_.cert_chain_; + _impl_.cert_chain_ = nullptr; return temp; } -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::mutable_cert_chain() { - - if (cert_chain_ == nullptr) { - auto* p = CreateMaybeMessage<::DataSource>(GetArenaNoVirtual()); - cert_chain_ = p; +inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::_internal_mutable_cert_chain() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.cert_chain_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct<::DataSource>(GetArena()); + _impl_.cert_chain_ = reinterpret_cast<::DataSource*>(p); } + return _impl_.cert_chain_; +} +inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::mutable_cert_chain() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000004u; + ::DataSource* _msg = _internal_mutable_cert_chain(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.SslCredentials.cert_chain) - return cert_chain_; + return _msg; } -inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_cert_chain(::DataSource* cert_chain) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); +inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_cert_chain(::DataSource* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete cert_chain_; + delete (_impl_.cert_chain_); } - if (cert_chain) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - cert_chain = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, cert_chain, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000004u; } else { - + _impl_._has_bits_[0] &= ~0x00000004u; } - cert_chain_ = cert_chain; + + _impl_.cert_chain_ = reinterpret_cast<::DataSource*>(value); // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.SslCredentials.cert_chain) } @@ -3100,127 +3964,232 @@ inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_cert_chain(::Da inline bool GrpcService_GoogleGrpc_ChannelCredentials::has_ssl_credentials() const { return credential_specifier_case() == kSslCredentials; } +inline bool GrpcService_GoogleGrpc_ChannelCredentials::_internal_has_ssl_credentials() const { + return credential_specifier_case() == kSslCredentials; +} inline void GrpcService_GoogleGrpc_ChannelCredentials::set_has_ssl_credentials() { - _oneof_case_[0] = kSslCredentials; + _impl_._oneof_case_[0] = kSslCredentials; } inline void GrpcService_GoogleGrpc_ChannelCredentials::clear_ssl_credentials() { - if (has_ssl_credentials()) { - delete credential_specifier_.ssl_credentials_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() == kSslCredentials) { + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.ssl_credentials_; + } clear_has_credential_specifier(); } } inline ::GrpcService_GoogleGrpc_SslCredentials* GrpcService_GoogleGrpc_ChannelCredentials::release_ssl_credentials() { // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) - if (has_ssl_credentials()) { + if (credential_specifier_case() == kSslCredentials) { clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_SslCredentials* temp = credential_specifier_.ssl_credentials_; - credential_specifier_.ssl_credentials_ = nullptr; + auto* temp = _impl_.credential_specifier_.ssl_credentials_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.credential_specifier_.ssl_credentials_ = nullptr; return temp; } else { return nullptr; } } -inline const ::GrpcService_GoogleGrpc_SslCredentials& GrpcService_GoogleGrpc_ChannelCredentials::ssl_credentials() const { +inline const ::GrpcService_GoogleGrpc_SslCredentials& GrpcService_GoogleGrpc_ChannelCredentials::_internal_ssl_credentials() const { + return credential_specifier_case() == kSslCredentials ? *_impl_.credential_specifier_.ssl_credentials_ : reinterpret_cast<::GrpcService_GoogleGrpc_SslCredentials&>(::_GrpcService_GoogleGrpc_SslCredentials_default_instance_); +} +inline const ::GrpcService_GoogleGrpc_SslCredentials& GrpcService_GoogleGrpc_ChannelCredentials::ssl_credentials() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) - return has_ssl_credentials() - ? *credential_specifier_.ssl_credentials_ - : *reinterpret_cast< ::GrpcService_GoogleGrpc_SslCredentials*>(&::_GrpcService_GoogleGrpc_SslCredentials_default_instance_); + return _internal_ssl_credentials(); +} +inline ::GrpcService_GoogleGrpc_SslCredentials* GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_release_ssl_credentials() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) + if (credential_specifier_case() == kSslCredentials) { + clear_has_credential_specifier(); + auto* temp = _impl_.credential_specifier_.ssl_credentials_; + _impl_.credential_specifier_.ssl_credentials_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_set_allocated_ssl_credentials(::GrpcService_GoogleGrpc_SslCredentials* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_credential_specifier(); + if (value) { + set_has_ssl_credentials(); + _impl_.credential_specifier_.ssl_credentials_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) } -inline ::GrpcService_GoogleGrpc_SslCredentials* GrpcService_GoogleGrpc_ChannelCredentials::mutable_ssl_credentials() { - if (!has_ssl_credentials()) { +inline ::GrpcService_GoogleGrpc_SslCredentials* GrpcService_GoogleGrpc_ChannelCredentials::_internal_mutable_ssl_credentials() { + if (credential_specifier_case() != kSslCredentials) { clear_credential_specifier(); set_has_ssl_credentials(); - credential_specifier_.ssl_credentials_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_SslCredentials >( - GetArenaNoVirtual()); + _impl_.credential_specifier_.ssl_credentials_ = + ::google::protobuf::Message::DefaultConstruct<::GrpcService_GoogleGrpc_SslCredentials>(GetArena()); } + return _impl_.credential_specifier_.ssl_credentials_; +} +inline ::GrpcService_GoogleGrpc_SslCredentials* GrpcService_GoogleGrpc_ChannelCredentials::mutable_ssl_credentials() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::GrpcService_GoogleGrpc_SslCredentials* _msg = _internal_mutable_ssl_credentials(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) - return credential_specifier_.ssl_credentials_; + return _msg; } // .google.protobuf.Empty google_default = 2; inline bool GrpcService_GoogleGrpc_ChannelCredentials::has_google_default() const { return credential_specifier_case() == kGoogleDefault; } +inline bool GrpcService_GoogleGrpc_ChannelCredentials::_internal_has_google_default() const { + return credential_specifier_case() == kGoogleDefault; +} inline void GrpcService_GoogleGrpc_ChannelCredentials::set_has_google_default() { - _oneof_case_[0] = kGoogleDefault; + _impl_._oneof_case_[0] = kGoogleDefault; } -inline PROTOBUF_NAMESPACE_ID::Empty* GrpcService_GoogleGrpc_ChannelCredentials::release_google_default() { +inline ::google::protobuf::Empty* GrpcService_GoogleGrpc_ChannelCredentials::release_google_default() { // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.ChannelCredentials.google_default) - if (has_google_default()) { + if (credential_specifier_case() == kGoogleDefault) { clear_has_credential_specifier(); - PROTOBUF_NAMESPACE_ID::Empty* temp = credential_specifier_.google_default_; - credential_specifier_.google_default_ = nullptr; + auto* temp = _impl_.credential_specifier_.google_default_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.credential_specifier_.google_default_ = nullptr; return temp; } else { return nullptr; } } -inline const PROTOBUF_NAMESPACE_ID::Empty& GrpcService_GoogleGrpc_ChannelCredentials::google_default() const { +inline const ::google::protobuf::Empty& GrpcService_GoogleGrpc_ChannelCredentials::_internal_google_default() const { + return credential_specifier_case() == kGoogleDefault ? *_impl_.credential_specifier_.google_default_ : reinterpret_cast<::google::protobuf::Empty&>(::google::protobuf::_Empty_default_instance_); +} +inline const ::google::protobuf::Empty& GrpcService_GoogleGrpc_ChannelCredentials::google_default() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.ChannelCredentials.google_default) - return has_google_default() - ? *credential_specifier_.google_default_ - : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Empty*>(&PROTOBUF_NAMESPACE_ID::_Empty_default_instance_); + return _internal_google_default(); +} +inline ::google::protobuf::Empty* GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_release_google_default() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.ChannelCredentials.google_default) + if (credential_specifier_case() == kGoogleDefault) { + clear_has_credential_specifier(); + auto* temp = _impl_.credential_specifier_.google_default_; + _impl_.credential_specifier_.google_default_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline PROTOBUF_NAMESPACE_ID::Empty* GrpcService_GoogleGrpc_ChannelCredentials::mutable_google_default() { - if (!has_google_default()) { +inline void GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_set_allocated_google_default(::google::protobuf::Empty* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_credential_specifier(); + if (value) { + set_has_google_default(); + _impl_.credential_specifier_.google_default_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.google_default) +} +inline ::google::protobuf::Empty* GrpcService_GoogleGrpc_ChannelCredentials::_internal_mutable_google_default() { + if (credential_specifier_case() != kGoogleDefault) { clear_credential_specifier(); set_has_google_default(); - credential_specifier_.google_default_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Empty >( - GetArenaNoVirtual()); + _impl_.credential_specifier_.google_default_ = + ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Empty>(GetArena()); } + return _impl_.credential_specifier_.google_default_; +} +inline ::google::protobuf::Empty* GrpcService_GoogleGrpc_ChannelCredentials::mutable_google_default() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::Empty* _msg = _internal_mutable_google_default(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.ChannelCredentials.google_default) - return credential_specifier_.google_default_; + return _msg; } // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; inline bool GrpcService_GoogleGrpc_ChannelCredentials::has_local_credentials() const { return credential_specifier_case() == kLocalCredentials; } +inline bool GrpcService_GoogleGrpc_ChannelCredentials::_internal_has_local_credentials() const { + return credential_specifier_case() == kLocalCredentials; +} inline void GrpcService_GoogleGrpc_ChannelCredentials::set_has_local_credentials() { - _oneof_case_[0] = kLocalCredentials; + _impl_._oneof_case_[0] = kLocalCredentials; } inline void GrpcService_GoogleGrpc_ChannelCredentials::clear_local_credentials() { - if (has_local_credentials()) { - delete credential_specifier_.local_credentials_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() == kLocalCredentials) { + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.local_credentials_; + } clear_has_credential_specifier(); } } inline ::GrpcService_GoogleGrpc_GoogleLocalCredentials* GrpcService_GoogleGrpc_ChannelCredentials::release_local_credentials() { // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) - if (has_local_credentials()) { + if (credential_specifier_case() == kLocalCredentials) { clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_GoogleLocalCredentials* temp = credential_specifier_.local_credentials_; - credential_specifier_.local_credentials_ = nullptr; + auto* temp = _impl_.credential_specifier_.local_credentials_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.credential_specifier_.local_credentials_ = nullptr; return temp; } else { return nullptr; } } -inline const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& GrpcService_GoogleGrpc_ChannelCredentials::local_credentials() const { +inline const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& GrpcService_GoogleGrpc_ChannelCredentials::_internal_local_credentials() const { + return credential_specifier_case() == kLocalCredentials ? *_impl_.credential_specifier_.local_credentials_ : reinterpret_cast<::GrpcService_GoogleGrpc_GoogleLocalCredentials&>(::_GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_); +} +inline const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& GrpcService_GoogleGrpc_ChannelCredentials::local_credentials() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) - return has_local_credentials() - ? *credential_specifier_.local_credentials_ - : *reinterpret_cast< ::GrpcService_GoogleGrpc_GoogleLocalCredentials*>(&::_GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_); + return _internal_local_credentials(); +} +inline ::GrpcService_GoogleGrpc_GoogleLocalCredentials* GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_release_local_credentials() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) + if (credential_specifier_case() == kLocalCredentials) { + clear_has_credential_specifier(); + auto* temp = _impl_.credential_specifier_.local_credentials_; + _impl_.credential_specifier_.local_credentials_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_set_allocated_local_credentials(::GrpcService_GoogleGrpc_GoogleLocalCredentials* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_credential_specifier(); + if (value) { + set_has_local_credentials(); + _impl_.credential_specifier_.local_credentials_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) } -inline ::GrpcService_GoogleGrpc_GoogleLocalCredentials* GrpcService_GoogleGrpc_ChannelCredentials::mutable_local_credentials() { - if (!has_local_credentials()) { +inline ::GrpcService_GoogleGrpc_GoogleLocalCredentials* GrpcService_GoogleGrpc_ChannelCredentials::_internal_mutable_local_credentials() { + if (credential_specifier_case() != kLocalCredentials) { clear_credential_specifier(); set_has_local_credentials(); - credential_specifier_.local_credentials_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_GoogleLocalCredentials >( - GetArenaNoVirtual()); + _impl_.credential_specifier_.local_credentials_ = + ::google::protobuf::Message::DefaultConstruct<::GrpcService_GoogleGrpc_GoogleLocalCredentials>(GetArena()); } + return _impl_.credential_specifier_.local_credentials_; +} +inline ::GrpcService_GoogleGrpc_GoogleLocalCredentials* GrpcService_GoogleGrpc_ChannelCredentials::mutable_local_credentials() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::GrpcService_GoogleGrpc_GoogleLocalCredentials* _msg = _internal_mutable_local_credentials(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) - return credential_specifier_.local_credentials_; + return _msg; } inline bool GrpcService_GoogleGrpc_ChannelCredentials::has_credential_specifier() const { return credential_specifier_case() != CREDENTIAL_SPECIFIER_NOT_SET; } inline void GrpcService_GoogleGrpc_ChannelCredentials::clear_has_credential_specifier() { - _oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; + _impl_._oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; } inline GrpcService_GoogleGrpc_ChannelCredentials::CredentialSpecifierCase GrpcService_GoogleGrpc_ChannelCredentials::credential_specifier_case() const { - return GrpcService_GoogleGrpc_ChannelCredentials::CredentialSpecifierCase(_oneof_case_[0]); + return GrpcService_GoogleGrpc_ChannelCredentials::CredentialSpecifierCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- @@ -3228,68 +4197,75 @@ inline GrpcService_GoogleGrpc_ChannelCredentials::CredentialSpecifierCase GrpcSe // string json_key = 1; inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::clear_json_key() { - json_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.json_key_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::json_key() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::json_key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) - return json_key_.GetNoArena(); + return _internal_json_key(); } -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_json_key(const std::string& value) { - - json_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_json_key(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.json_key_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) } -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_json_key(std::string&& value) { - - json_key_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) -} -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_json_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - json_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) -} -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_json_key(const char* value, size_t size) { - - json_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::mutable_json_key() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::mutable_json_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_json_key(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) - return json_key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_internal_json_key() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.json_key_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_internal_set_json_key(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.json_key_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_internal_mutable_json_key() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.json_key_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::release_json_key() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) - - return json_key_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_allocated_json_key(std::string* json_key) { - if (json_key != nullptr) { - - } else { - - } - json_key_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), json_key); + return _impl_.json_key_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_allocated_json_key(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.json_key_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.json_key_.IsDefault()) { + _impl_.json_key_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) } // uint64 token_lifetime_seconds = 2; inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::clear_token_lifetime_seconds() { - token_lifetime_seconds_ = PROTOBUF_ULONGLONG(0); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.token_lifetime_seconds_ = ::uint64_t{0u}; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::token_lifetime_seconds() const { +inline ::uint64_t GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::token_lifetime_seconds() const { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.token_lifetime_seconds) - return token_lifetime_seconds_; + return _internal_token_lifetime_seconds(); } -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_token_lifetime_seconds(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - token_lifetime_seconds_ = value; +inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_token_lifetime_seconds(::uint64_t value) { + _internal_set_token_lifetime_seconds(value); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.token_lifetime_seconds) } +inline ::uint64_t GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_internal_token_lifetime_seconds() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.token_lifetime_seconds_; +} +inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_internal_set_token_lifetime_seconds(::uint64_t value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.token_lifetime_seconds_ = value; +} // ------------------------------------------------------------------- @@ -3297,103 +4273,101 @@ inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCreden // string authorization_token = 1; inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::clear_authorization_token() { - authorization_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.authorization_token_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::authorization_token() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::authorization_token() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) - return authorization_token_.GetNoArena(); + return _internal_authorization_token(); } -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authorization_token(const std::string& value) { - - authorization_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authorization_token(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.authorization_token_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) } -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authorization_token(std::string&& value) { - - authorization_token_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authorization_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - authorization_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authorization_token(const char* value, size_t size) { - - authorization_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::mutable_authorization_token() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::mutable_authorization_token() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_authorization_token(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) - return authorization_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_authorization_token() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.authorization_token_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_set_authorization_token(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.authorization_token_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_mutable_authorization_token() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.authorization_token_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::release_authorization_token() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) - - return authorization_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_allocated_authorization_token(std::string* authorization_token) { - if (authorization_token != nullptr) { - - } else { - - } - authorization_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), authorization_token); + return _impl_.authorization_token_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_allocated_authorization_token(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.authorization_token_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.authorization_token_.IsDefault()) { + _impl_.authorization_token_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) } // string authority_selector = 2; inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::clear_authority_selector() { - authority_selector_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.authority_selector_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::authority_selector() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::authority_selector() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) - return authority_selector_.GetNoArena(); + return _internal_authority_selector(); } -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authority_selector(const std::string& value) { - - authority_selector_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authority_selector(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.authority_selector_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) } -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authority_selector(std::string&& value) { - - authority_selector_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authority_selector(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - authority_selector_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authority_selector(const char* value, size_t size) { - - authority_selector_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::mutable_authority_selector() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::mutable_authority_selector() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_authority_selector(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) - return authority_selector_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_authority_selector() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.authority_selector_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_set_authority_selector(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.authority_selector_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_mutable_authority_selector() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.authority_selector_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::release_authority_selector() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) - - return authority_selector_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_allocated_authority_selector(std::string* authority_selector) { - if (authority_selector != nullptr) { - - } else { - - } - authority_selector_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), authority_selector); + return _impl_.authority_selector_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_allocated_authority_selector(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.authority_selector_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.authority_selector_.IsDefault()) { + _impl_.authority_selector_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) } @@ -3403,52 +4377,51 @@ inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_all // string name = 1; inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::clear_name() { - name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::name() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) - return name_.GetNoArena(); + return _internal_name(); } -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_name(const std::string& value) { - - name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_name(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) } -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_name(std::string&& value) { - - name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::mutable_name() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) - return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_name() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.name_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_set_name(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_mutable_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.name_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::release_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) - - return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name); + return _impl_.name_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_allocated_name(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) } @@ -3456,80 +4429,146 @@ inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::has_config() const { return config_type_case() == kConfig; } +inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_has_config() const { + return config_type_case() == kConfig; +} inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_has_config() { - _oneof_case_[0] = kConfig; + _impl_._oneof_case_[0] = kConfig; } -inline PROTOBUF_NAMESPACE_ID::Struct* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::release_config() { +inline ::google::protobuf::Struct* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::release_config() { // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) - if (has_config()) { + if (config_type_case() == kConfig) { clear_has_config_type(); - PROTOBUF_NAMESPACE_ID::Struct* temp = config_type_.config_; - config_type_.config_ = nullptr; + auto* temp = _impl_.config_type_.config_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.config_type_.config_ = nullptr; return temp; } else { return nullptr; } } -inline const PROTOBUF_NAMESPACE_ID::Struct& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::config() const { +inline const ::google::protobuf::Struct& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_config() const { + return config_type_case() == kConfig ? *_impl_.config_type_.config_ : reinterpret_cast<::google::protobuf::Struct&>(::google::protobuf::_Struct_default_instance_); +} +inline const ::google::protobuf::Struct& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) - return has_config() - ? *config_type_.config_ - : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Struct*>(&PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); + return _internal_config(); +} +inline ::google::protobuf::Struct* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::unsafe_arena_release_config() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) + if (config_type_case() == kConfig) { + clear_has_config_type(); + auto* temp = _impl_.config_type_.config_; + _impl_.config_type_.config_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::unsafe_arena_set_allocated_config(::google::protobuf::Struct* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_config_type(); + if (value) { + set_has_config(); + _impl_.config_type_.config_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) } -inline PROTOBUF_NAMESPACE_ID::Struct* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::mutable_config() { - if (!has_config()) { +inline ::google::protobuf::Struct* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_mutable_config() { + if (config_type_case() != kConfig) { clear_config_type(); set_has_config(); - config_type_.config_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Struct >( - GetArenaNoVirtual()); + _impl_.config_type_.config_ = + ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Struct>(GetArena()); } + return _impl_.config_type_.config_; +} +inline ::google::protobuf::Struct* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::mutable_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::Struct* _msg = _internal_mutable_config(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) - return config_type_.config_; + return _msg; } // .google.protobuf.Any typed_config = 3; inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::has_typed_config() const { return config_type_case() == kTypedConfig; } +inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_has_typed_config() const { + return config_type_case() == kTypedConfig; +} inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_has_typed_config() { - _oneof_case_[0] = kTypedConfig; + _impl_._oneof_case_[0] = kTypedConfig; } -inline PROTOBUF_NAMESPACE_ID::Any* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::release_typed_config() { +inline ::google::protobuf::Any* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::release_typed_config() { // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) - if (has_typed_config()) { + if (config_type_case() == kTypedConfig) { clear_has_config_type(); - PROTOBUF_NAMESPACE_ID::Any* temp = config_type_.typed_config_; - config_type_.typed_config_ = nullptr; + auto* temp = _impl_.config_type_.typed_config_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.config_type_.typed_config_ = nullptr; return temp; } else { return nullptr; } } -inline const PROTOBUF_NAMESPACE_ID::Any& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::typed_config() const { +inline const ::google::protobuf::Any& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_typed_config() const { + return config_type_case() == kTypedConfig ? *_impl_.config_type_.typed_config_ : reinterpret_cast<::google::protobuf::Any&>(::google::protobuf::_Any_default_instance_); +} +inline const ::google::protobuf::Any& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::typed_config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) - return has_typed_config() - ? *config_type_.typed_config_ - : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Any*>(&PROTOBUF_NAMESPACE_ID::_Any_default_instance_); + return _internal_typed_config(); +} +inline ::google::protobuf::Any* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::unsafe_arena_release_typed_config() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) + if (config_type_case() == kTypedConfig) { + clear_has_config_type(); + auto* temp = _impl_.config_type_.typed_config_; + _impl_.config_type_.typed_config_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::unsafe_arena_set_allocated_typed_config(::google::protobuf::Any* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_config_type(); + if (value) { + set_has_typed_config(); + _impl_.config_type_.typed_config_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) } -inline PROTOBUF_NAMESPACE_ID::Any* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::mutable_typed_config() { - if (!has_typed_config()) { +inline ::google::protobuf::Any* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_mutable_typed_config() { + if (config_type_case() != kTypedConfig) { clear_config_type(); set_has_typed_config(); - config_type_.typed_config_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Any >( - GetArenaNoVirtual()); + _impl_.config_type_.typed_config_ = + ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Any>(GetArena()); } + return _impl_.config_type_.typed_config_; +} +inline ::google::protobuf::Any* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::mutable_typed_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::Any* _msg = _internal_mutable_typed_config(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) - return config_type_.typed_config_; + return _msg; } inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::has_config_type() const { return config_type_case() != CONFIG_TYPE_NOT_SET; } inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::clear_has_config_type() { - _oneof_case_[0] = CONFIG_TYPE_NOT_SET; + _impl_._oneof_case_[0] = CONFIG_TYPE_NOT_SET; } inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::ConfigTypeCase GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::config_type_case() const { - return GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::ConfigTypeCase(_oneof_case_[0]); + return GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::ConfigTypeCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- @@ -3537,460 +4576,451 @@ inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Con // string token_exchange_service_uri = 1; inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_token_exchange_service_uri() { - token_exchange_service_uri_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.token_exchange_service_uri_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::token_exchange_service_uri() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::token_exchange_service_uri() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) - return token_exchange_service_uri_.GetNoArena(); + return _internal_token_exchange_service_uri(); } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_token_exchange_service_uri(const std::string& value) { - - token_exchange_service_uri_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_token_exchange_service_uri(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.token_exchange_service_uri_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_token_exchange_service_uri(std::string&& value) { - - token_exchange_service_uri_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_token_exchange_service_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_exchange_service_uri_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_token_exchange_service_uri(const char* value, size_t size) { - - token_exchange_service_uri_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_token_exchange_service_uri() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_token_exchange_service_uri() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_token_exchange_service_uri(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) - return token_exchange_service_uri_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_token_exchange_service_uri() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.token_exchange_service_uri_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_token_exchange_service_uri(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.token_exchange_service_uri_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_token_exchange_service_uri() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.token_exchange_service_uri_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_token_exchange_service_uri() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) - - return token_exchange_service_uri_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_token_exchange_service_uri(std::string* token_exchange_service_uri) { - if (token_exchange_service_uri != nullptr) { - - } else { - - } - token_exchange_service_uri_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), token_exchange_service_uri); + return _impl_.token_exchange_service_uri_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_token_exchange_service_uri(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.token_exchange_service_uri_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.token_exchange_service_uri_.IsDefault()) { + _impl_.token_exchange_service_uri_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) } // string resource = 2; inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_resource() { - resource_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.resource_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::resource() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::resource() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) - return resource_.GetNoArena(); + return _internal_resource(); } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_resource(const std::string& value) { - - resource_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_resource(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.resource_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_resource(std::string&& value) { - - resource_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_resource(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - resource_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_resource(const char* value, size_t size) { - - resource_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_resource() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_resource() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_resource(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) - return resource_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_resource() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.resource_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_resource(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.resource_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_resource() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.resource_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_resource() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) - - return resource_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_resource(std::string* resource) { - if (resource != nullptr) { - - } else { - - } - resource_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), resource); + return _impl_.resource_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_resource(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.resource_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.resource_.IsDefault()) { + _impl_.resource_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) } // string audience = 3; inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_audience() { - audience_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.audience_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::audience() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::audience() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) - return audience_.GetNoArena(); + return _internal_audience(); } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_audience(const std::string& value) { - - audience_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_audience(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.audience_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_audience(std::string&& value) { - - audience_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_audience(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - audience_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_audience(const char* value, size_t size) { - - audience_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_audience() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_audience() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_audience(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) - return audience_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_audience() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.audience_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_audience(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.audience_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_audience() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.audience_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_audience() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) - - return audience_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_audience(std::string* audience) { - if (audience != nullptr) { - - } else { - - } - audience_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), audience); + return _impl_.audience_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_audience(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.audience_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.audience_.IsDefault()) { + _impl_.audience_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) } // string scope = 4; inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_scope() { - scope_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.scope_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::scope() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::scope() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) - return scope_.GetNoArena(); + return _internal_scope(); } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_scope(const std::string& value) { - - scope_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_scope(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.scope_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_scope(std::string&& value) { - - scope_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_scope(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - scope_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_scope(const char* value, size_t size) { - - scope_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_scope() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_scope() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_scope(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) - return scope_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_scope() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.scope_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_scope(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.scope_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_scope() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.scope_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_scope() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) - - return scope_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_scope(std::string* scope) { - if (scope != nullptr) { - - } else { - - } - scope_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), scope); + return _impl_.scope_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_scope(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.scope_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.scope_.IsDefault()) { + _impl_.scope_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) } // string requested_token_type = 5; inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_requested_token_type() { - requested_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.requested_token_type_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::requested_token_type() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::requested_token_type() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) - return requested_token_type_.GetNoArena(); + return _internal_requested_token_type(); } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_requested_token_type(const std::string& value) { - - requested_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_requested_token_type(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.requested_token_type_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_requested_token_type(std::string&& value) { - - requested_token_type_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_requested_token_type(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - requested_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_requested_token_type(const char* value, size_t size) { - - requested_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_requested_token_type() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_requested_token_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_requested_token_type(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) - return requested_token_type_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_requested_token_type() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.requested_token_type_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_requested_token_type(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.requested_token_type_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_requested_token_type() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.requested_token_type_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_requested_token_type() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) - - return requested_token_type_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_requested_token_type(std::string* requested_token_type) { - if (requested_token_type != nullptr) { - - } else { - - } - requested_token_type_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), requested_token_type); + return _impl_.requested_token_type_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_requested_token_type(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.requested_token_type_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.requested_token_type_.IsDefault()) { + _impl_.requested_token_type_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) } // string subject_token_path = 6; inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_subject_token_path() { - subject_token_path_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.subject_token_path_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::subject_token_path() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::subject_token_path() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) - return subject_token_path_.GetNoArena(); + return _internal_subject_token_path(); } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_path(const std::string& value) { - - subject_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_path(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.subject_token_path_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_path(std::string&& value) { - - subject_token_path_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_path(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - subject_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_path(const char* value, size_t size) { - - subject_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_subject_token_path() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_subject_token_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_subject_token_path(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) - return subject_token_path_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_subject_token_path() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.subject_token_path_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_subject_token_path(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.subject_token_path_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_subject_token_path() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.subject_token_path_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_subject_token_path() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) - - return subject_token_path_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_subject_token_path(std::string* subject_token_path) { - if (subject_token_path != nullptr) { - - } else { - - } - subject_token_path_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), subject_token_path); + return _impl_.subject_token_path_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_subject_token_path(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.subject_token_path_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.subject_token_path_.IsDefault()) { + _impl_.subject_token_path_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) } // string subject_token_type = 7; inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_subject_token_type() { - subject_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.subject_token_type_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::subject_token_type() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::subject_token_type() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) - return subject_token_type_.GetNoArena(); + return _internal_subject_token_type(); } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_type(const std::string& value) { - - subject_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_type(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.subject_token_type_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_type(std::string&& value) { - - subject_token_type_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_type(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - subject_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_type(const char* value, size_t size) { - - subject_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_subject_token_type() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_subject_token_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_subject_token_type(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) - return subject_token_type_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_subject_token_type() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.subject_token_type_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_subject_token_type(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.subject_token_type_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_subject_token_type() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.subject_token_type_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_subject_token_type() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) - - return subject_token_type_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_subject_token_type(std::string* subject_token_type) { - if (subject_token_type != nullptr) { - - } else { - - } - subject_token_type_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), subject_token_type); + return _impl_.subject_token_type_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_subject_token_type(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.subject_token_type_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.subject_token_type_.IsDefault()) { + _impl_.subject_token_type_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) } // string actor_token_path = 8; inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_actor_token_path() { - actor_token_path_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.actor_token_path_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::actor_token_path() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::actor_token_path() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) - return actor_token_path_.GetNoArena(); + return _internal_actor_token_path(); } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_path(const std::string& value) { - - actor_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_path(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.actor_token_path_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_path(std::string&& value) { - - actor_token_path_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_path(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - actor_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_path(const char* value, size_t size) { - - actor_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_actor_token_path() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_actor_token_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_actor_token_path(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) - return actor_token_path_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_actor_token_path() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.actor_token_path_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_actor_token_path(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.actor_token_path_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_actor_token_path() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.actor_token_path_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_actor_token_path() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) - - return actor_token_path_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_actor_token_path(std::string* actor_token_path) { - if (actor_token_path != nullptr) { - - } else { - - } - actor_token_path_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), actor_token_path); + return _impl_.actor_token_path_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_actor_token_path(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.actor_token_path_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.actor_token_path_.IsDefault()) { + _impl_.actor_token_path_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) } // string actor_token_type = 9; inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_actor_token_type() { - actor_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.actor_token_type_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::actor_token_type() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::actor_token_type() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) - return actor_token_type_.GetNoArena(); + return _internal_actor_token_type(); } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_type(const std::string& value) { - - actor_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_type(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.actor_token_type_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_type(std::string&& value) { - - actor_token_type_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_type(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - actor_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_type(const char* value, size_t size) { - - actor_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_actor_token_type() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_actor_token_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_actor_token_type(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) - return actor_token_type_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_actor_token_type() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.actor_token_type_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_actor_token_type(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.actor_token_type_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_actor_token_type() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.actor_token_type_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_actor_token_type() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) - - return actor_token_type_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_actor_token_type(std::string* actor_token_type) { - if (actor_token_type != nullptr) { - - } else { - - } - actor_token_type_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), actor_token_type); + return _impl_.actor_token_type_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_actor_token_type(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.actor_token_type_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.actor_token_type_.IsDefault()) { + _impl_.actor_token_type_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) } @@ -4003,87 +5033,82 @@ inline bool GrpcService_GoogleGrpc_CallCredentials::has_access_token() const { return credential_specifier_case() == kAccessToken; } inline void GrpcService_GoogleGrpc_CallCredentials::set_has_access_token() { - _oneof_case_[0] = kAccessToken; + _impl_._oneof_case_[0] = kAccessToken; } inline void GrpcService_GoogleGrpc_CallCredentials::clear_access_token() { - if (has_access_token()) { - credential_specifier_.access_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() == kAccessToken) { + _impl_.credential_specifier_.access_token_.Destroy(); clear_has_credential_specifier(); } } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials::access_token() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials::access_token() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.access_token) - if (has_access_token()) { - return credential_specifier_.access_token_.GetNoArena(); - } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return _internal_access_token(); } -inline void GrpcService_GoogleGrpc_CallCredentials::set_access_token(const std::string& value) { - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.access_token) - if (!has_access_token()) { +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials::set_access_token(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() != kAccessToken) { clear_credential_specifier(); + set_has_access_token(); - credential_specifier_.access_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.credential_specifier_.access_token_.InitDefault(); } - credential_specifier_.access_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + _impl_.credential_specifier_.access_token_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.access_token) } -inline void GrpcService_GoogleGrpc_CallCredentials::set_access_token(std::string&& value) { - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.access_token) - if (!has_access_token()) { - clear_credential_specifier(); - set_has_access_token(); - credential_specifier_.access_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - credential_specifier_.access_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.access_token) +inline std::string* GrpcService_GoogleGrpc_CallCredentials::mutable_access_token() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_access_token(); + // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.access_token) + return _s; } -inline void GrpcService_GoogleGrpc_CallCredentials::set_access_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_access_token()) { - clear_credential_specifier(); - set_has_access_token(); - credential_specifier_.access_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline const std::string& GrpcService_GoogleGrpc_CallCredentials::_internal_access_token() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + if (credential_specifier_case() != kAccessToken) { + return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); } - credential_specifier_.access_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.access_token) + return _impl_.credential_specifier_.access_token_.Get(); } -inline void GrpcService_GoogleGrpc_CallCredentials::set_access_token(const char* value, size_t size) { - if (!has_access_token()) { +inline void GrpcService_GoogleGrpc_CallCredentials::_internal_set_access_token(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() != kAccessToken) { clear_credential_specifier(); + set_has_access_token(); - credential_specifier_.access_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.credential_specifier_.access_token_.InitDefault(); } - credential_specifier_.access_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.access_token) + _impl_.credential_specifier_.access_token_.Set(value, GetArena()); } -inline std::string* GrpcService_GoogleGrpc_CallCredentials::mutable_access_token() { - if (!has_access_token()) { +inline std::string* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_access_token() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() != kAccessToken) { clear_credential_specifier(); + set_has_access_token(); - credential_specifier_.access_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.credential_specifier_.access_token_.InitDefault(); } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.access_token) - return credential_specifier_.access_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _impl_.credential_specifier_.access_token_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials::release_access_token() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.access_token) - if (has_access_token()) { - clear_has_credential_specifier(); - return credential_specifier_.access_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } else { + if (credential_specifier_case() != kAccessToken) { return nullptr; } + clear_has_credential_specifier(); + return _impl_.credential_specifier_.access_token_.Release(); } -inline void GrpcService_GoogleGrpc_CallCredentials::set_allocated_access_token(std::string* access_token) { +inline void GrpcService_GoogleGrpc_CallCredentials::set_allocated_access_token(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (has_credential_specifier()) { clear_credential_specifier(); } - if (access_token != nullptr) { + if (value != nullptr) { set_has_access_token(); - credential_specifier_.access_token_.UnsafeSetDefault(access_token); + _impl_.credential_specifier_.access_token_.InitAllocated(value, GetArena()); } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.access_token) } @@ -4092,35 +5117,68 @@ inline void GrpcService_GoogleGrpc_CallCredentials::set_allocated_access_token(s inline bool GrpcService_GoogleGrpc_CallCredentials::has_google_compute_engine() const { return credential_specifier_case() == kGoogleComputeEngine; } +inline bool GrpcService_GoogleGrpc_CallCredentials::_internal_has_google_compute_engine() const { + return credential_specifier_case() == kGoogleComputeEngine; +} inline void GrpcService_GoogleGrpc_CallCredentials::set_has_google_compute_engine() { - _oneof_case_[0] = kGoogleComputeEngine; + _impl_._oneof_case_[0] = kGoogleComputeEngine; } -inline PROTOBUF_NAMESPACE_ID::Empty* GrpcService_GoogleGrpc_CallCredentials::release_google_compute_engine() { +inline ::google::protobuf::Empty* GrpcService_GoogleGrpc_CallCredentials::release_google_compute_engine() { // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) - if (has_google_compute_engine()) { + if (credential_specifier_case() == kGoogleComputeEngine) { clear_has_credential_specifier(); - PROTOBUF_NAMESPACE_ID::Empty* temp = credential_specifier_.google_compute_engine_; - credential_specifier_.google_compute_engine_ = nullptr; + auto* temp = _impl_.credential_specifier_.google_compute_engine_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.credential_specifier_.google_compute_engine_ = nullptr; return temp; } else { return nullptr; } } -inline const PROTOBUF_NAMESPACE_ID::Empty& GrpcService_GoogleGrpc_CallCredentials::google_compute_engine() const { +inline const ::google::protobuf::Empty& GrpcService_GoogleGrpc_CallCredentials::_internal_google_compute_engine() const { + return credential_specifier_case() == kGoogleComputeEngine ? *_impl_.credential_specifier_.google_compute_engine_ : reinterpret_cast<::google::protobuf::Empty&>(::google::protobuf::_Empty_default_instance_); +} +inline const ::google::protobuf::Empty& GrpcService_GoogleGrpc_CallCredentials::google_compute_engine() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) - return has_google_compute_engine() - ? *credential_specifier_.google_compute_engine_ - : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Empty*>(&PROTOBUF_NAMESPACE_ID::_Empty_default_instance_); + return _internal_google_compute_engine(); +} +inline ::google::protobuf::Empty* GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_release_google_compute_engine() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) + if (credential_specifier_case() == kGoogleComputeEngine) { + clear_has_credential_specifier(); + auto* temp = _impl_.credential_specifier_.google_compute_engine_; + _impl_.credential_specifier_.google_compute_engine_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_set_allocated_google_compute_engine(::google::protobuf::Empty* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_credential_specifier(); + if (value) { + set_has_google_compute_engine(); + _impl_.credential_specifier_.google_compute_engine_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) } -inline PROTOBUF_NAMESPACE_ID::Empty* GrpcService_GoogleGrpc_CallCredentials::mutable_google_compute_engine() { - if (!has_google_compute_engine()) { +inline ::google::protobuf::Empty* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_google_compute_engine() { + if (credential_specifier_case() != kGoogleComputeEngine) { clear_credential_specifier(); set_has_google_compute_engine(); - credential_specifier_.google_compute_engine_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Empty >( - GetArenaNoVirtual()); + _impl_.credential_specifier_.google_compute_engine_ = + ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Empty>(GetArena()); } + return _impl_.credential_specifier_.google_compute_engine_; +} +inline ::google::protobuf::Empty* GrpcService_GoogleGrpc_CallCredentials::mutable_google_compute_engine() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::Empty* _msg = _internal_mutable_google_compute_engine(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) - return credential_specifier_.google_compute_engine_; + return _msg; } // string google_refresh_token = 3; @@ -4128,87 +5186,82 @@ inline bool GrpcService_GoogleGrpc_CallCredentials::has_google_refresh_token() c return credential_specifier_case() == kGoogleRefreshToken; } inline void GrpcService_GoogleGrpc_CallCredentials::set_has_google_refresh_token() { - _oneof_case_[0] = kGoogleRefreshToken; + _impl_._oneof_case_[0] = kGoogleRefreshToken; } inline void GrpcService_GoogleGrpc_CallCredentials::clear_google_refresh_token() { - if (has_google_refresh_token()) { - credential_specifier_.google_refresh_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() == kGoogleRefreshToken) { + _impl_.credential_specifier_.google_refresh_token_.Destroy(); clear_has_credential_specifier(); } } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials::google_refresh_token() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials::google_refresh_token() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) - if (has_google_refresh_token()) { - return credential_specifier_.google_refresh_token_.GetNoArena(); - } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return _internal_google_refresh_token(); } -inline void GrpcService_GoogleGrpc_CallCredentials::set_google_refresh_token(const std::string& value) { - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) - if (!has_google_refresh_token()) { +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials::set_google_refresh_token(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() != kGoogleRefreshToken) { clear_credential_specifier(); + set_has_google_refresh_token(); - credential_specifier_.google_refresh_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.credential_specifier_.google_refresh_token_.InitDefault(); } - credential_specifier_.google_refresh_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + _impl_.credential_specifier_.google_refresh_token_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) } -inline void GrpcService_GoogleGrpc_CallCredentials::set_google_refresh_token(std::string&& value) { - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) - if (!has_google_refresh_token()) { - clear_credential_specifier(); - set_has_google_refresh_token(); - credential_specifier_.google_refresh_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - credential_specifier_.google_refresh_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) +inline std::string* GrpcService_GoogleGrpc_CallCredentials::mutable_google_refresh_token() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_google_refresh_token(); + // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) + return _s; } -inline void GrpcService_GoogleGrpc_CallCredentials::set_google_refresh_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_google_refresh_token()) { - clear_credential_specifier(); - set_has_google_refresh_token(); - credential_specifier_.google_refresh_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline const std::string& GrpcService_GoogleGrpc_CallCredentials::_internal_google_refresh_token() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + if (credential_specifier_case() != kGoogleRefreshToken) { + return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); } - credential_specifier_.google_refresh_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) + return _impl_.credential_specifier_.google_refresh_token_.Get(); } -inline void GrpcService_GoogleGrpc_CallCredentials::set_google_refresh_token(const char* value, size_t size) { - if (!has_google_refresh_token()) { +inline void GrpcService_GoogleGrpc_CallCredentials::_internal_set_google_refresh_token(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() != kGoogleRefreshToken) { clear_credential_specifier(); + set_has_google_refresh_token(); - credential_specifier_.google_refresh_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.credential_specifier_.google_refresh_token_.InitDefault(); } - credential_specifier_.google_refresh_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) + _impl_.credential_specifier_.google_refresh_token_.Set(value, GetArena()); } -inline std::string* GrpcService_GoogleGrpc_CallCredentials::mutable_google_refresh_token() { - if (!has_google_refresh_token()) { +inline std::string* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_google_refresh_token() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() != kGoogleRefreshToken) { clear_credential_specifier(); + set_has_google_refresh_token(); - credential_specifier_.google_refresh_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.credential_specifier_.google_refresh_token_.InitDefault(); } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) - return credential_specifier_.google_refresh_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _impl_.credential_specifier_.google_refresh_token_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials::release_google_refresh_token() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) - if (has_google_refresh_token()) { - clear_has_credential_specifier(); - return credential_specifier_.google_refresh_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } else { + if (credential_specifier_case() != kGoogleRefreshToken) { return nullptr; } + clear_has_credential_specifier(); + return _impl_.credential_specifier_.google_refresh_token_.Release(); } -inline void GrpcService_GoogleGrpc_CallCredentials::set_allocated_google_refresh_token(std::string* google_refresh_token) { +inline void GrpcService_GoogleGrpc_CallCredentials::set_allocated_google_refresh_token(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (has_credential_specifier()) { clear_credential_specifier(); } - if (google_refresh_token != nullptr) { + if (value != nullptr) { set_has_google_refresh_token(); - credential_specifier_.google_refresh_token_.UnsafeSetDefault(google_refresh_token); + _impl_.credential_specifier_.google_refresh_token_.InitAllocated(value, GetArena()); } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) } @@ -4217,174 +5270,318 @@ inline void GrpcService_GoogleGrpc_CallCredentials::set_allocated_google_refresh inline bool GrpcService_GoogleGrpc_CallCredentials::has_service_account_jwt_access() const { return credential_specifier_case() == kServiceAccountJwtAccess; } +inline bool GrpcService_GoogleGrpc_CallCredentials::_internal_has_service_account_jwt_access() const { + return credential_specifier_case() == kServiceAccountJwtAccess; +} inline void GrpcService_GoogleGrpc_CallCredentials::set_has_service_account_jwt_access() { - _oneof_case_[0] = kServiceAccountJwtAccess; + _impl_._oneof_case_[0] = kServiceAccountJwtAccess; } inline void GrpcService_GoogleGrpc_CallCredentials::clear_service_account_jwt_access() { - if (has_service_account_jwt_access()) { - delete credential_specifier_.service_account_jwt_access_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() == kServiceAccountJwtAccess) { + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.service_account_jwt_access_; + } clear_has_credential_specifier(); } } inline ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* GrpcService_GoogleGrpc_CallCredentials::release_service_account_jwt_access() { // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) - if (has_service_account_jwt_access()) { + if (credential_specifier_case() == kServiceAccountJwtAccess) { clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* temp = credential_specifier_.service_account_jwt_access_; - credential_specifier_.service_account_jwt_access_ = nullptr; + auto* temp = _impl_.credential_specifier_.service_account_jwt_access_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.credential_specifier_.service_account_jwt_access_ = nullptr; return temp; } else { return nullptr; } } -inline const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& GrpcService_GoogleGrpc_CallCredentials::service_account_jwt_access() const { +inline const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& GrpcService_GoogleGrpc_CallCredentials::_internal_service_account_jwt_access() const { + return credential_specifier_case() == kServiceAccountJwtAccess ? *_impl_.credential_specifier_.service_account_jwt_access_ : reinterpret_cast<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials&>(::_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_); +} +inline const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& GrpcService_GoogleGrpc_CallCredentials::service_account_jwt_access() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) - return has_service_account_jwt_access() - ? *credential_specifier_.service_account_jwt_access_ - : *reinterpret_cast< ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials*>(&::_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_); + return _internal_service_account_jwt_access(); +} +inline ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_release_service_account_jwt_access() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) + if (credential_specifier_case() == kServiceAccountJwtAccess) { + clear_has_credential_specifier(); + auto* temp = _impl_.credential_specifier_.service_account_jwt_access_; + _impl_.credential_specifier_.service_account_jwt_access_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* GrpcService_GoogleGrpc_CallCredentials::mutable_service_account_jwt_access() { - if (!has_service_account_jwt_access()) { +inline void GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_set_allocated_service_account_jwt_access(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_credential_specifier(); + if (value) { + set_has_service_account_jwt_access(); + _impl_.credential_specifier_.service_account_jwt_access_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) +} +inline ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_service_account_jwt_access() { + if (credential_specifier_case() != kServiceAccountJwtAccess) { clear_credential_specifier(); set_has_service_account_jwt_access(); - credential_specifier_.service_account_jwt_access_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials >( - GetArenaNoVirtual()); + _impl_.credential_specifier_.service_account_jwt_access_ = + ::google::protobuf::Message::DefaultConstruct<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>(GetArena()); } + return _impl_.credential_specifier_.service_account_jwt_access_; +} +inline ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* GrpcService_GoogleGrpc_CallCredentials::mutable_service_account_jwt_access() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* _msg = _internal_mutable_service_account_jwt_access(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) - return credential_specifier_.service_account_jwt_access_; + return _msg; } // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; inline bool GrpcService_GoogleGrpc_CallCredentials::has_google_iam() const { return credential_specifier_case() == kGoogleIam; } +inline bool GrpcService_GoogleGrpc_CallCredentials::_internal_has_google_iam() const { + return credential_specifier_case() == kGoogleIam; +} inline void GrpcService_GoogleGrpc_CallCredentials::set_has_google_iam() { - _oneof_case_[0] = kGoogleIam; + _impl_._oneof_case_[0] = kGoogleIam; } inline void GrpcService_GoogleGrpc_CallCredentials::clear_google_iam() { - if (has_google_iam()) { - delete credential_specifier_.google_iam_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() == kGoogleIam) { + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.google_iam_; + } clear_has_credential_specifier(); } } inline ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* GrpcService_GoogleGrpc_CallCredentials::release_google_iam() { // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.google_iam) - if (has_google_iam()) { + if (credential_specifier_case() == kGoogleIam) { clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* temp = credential_specifier_.google_iam_; - credential_specifier_.google_iam_ = nullptr; + auto* temp = _impl_.credential_specifier_.google_iam_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.credential_specifier_.google_iam_ = nullptr; return temp; } else { return nullptr; } } -inline const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& GrpcService_GoogleGrpc_CallCredentials::google_iam() const { +inline const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& GrpcService_GoogleGrpc_CallCredentials::_internal_google_iam() const { + return credential_specifier_case() == kGoogleIam ? *_impl_.credential_specifier_.google_iam_ : reinterpret_cast<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials&>(::_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_); +} +inline const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& GrpcService_GoogleGrpc_CallCredentials::google_iam() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.google_iam) - return has_google_iam() - ? *credential_specifier_.google_iam_ - : *reinterpret_cast< ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials*>(&::_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_); + return _internal_google_iam(); +} +inline ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_release_google_iam() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.google_iam) + if (credential_specifier_case() == kGoogleIam) { + clear_has_credential_specifier(); + auto* temp = _impl_.credential_specifier_.google_iam_; + _impl_.credential_specifier_.google_iam_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_set_allocated_google_iam(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_credential_specifier(); + if (value) { + set_has_google_iam(); + _impl_.credential_specifier_.google_iam_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.google_iam) } -inline ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* GrpcService_GoogleGrpc_CallCredentials::mutable_google_iam() { - if (!has_google_iam()) { +inline ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_google_iam() { + if (credential_specifier_case() != kGoogleIam) { clear_credential_specifier(); set_has_google_iam(); - credential_specifier_.google_iam_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials >( - GetArenaNoVirtual()); + _impl_.credential_specifier_.google_iam_ = + ::google::protobuf::Message::DefaultConstruct<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>(GetArena()); } + return _impl_.credential_specifier_.google_iam_; +} +inline ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* GrpcService_GoogleGrpc_CallCredentials::mutable_google_iam() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* _msg = _internal_mutable_google_iam(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.google_iam) - return credential_specifier_.google_iam_; + return _msg; } // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; inline bool GrpcService_GoogleGrpc_CallCredentials::has_from_plugin() const { return credential_specifier_case() == kFromPlugin; } +inline bool GrpcService_GoogleGrpc_CallCredentials::_internal_has_from_plugin() const { + return credential_specifier_case() == kFromPlugin; +} inline void GrpcService_GoogleGrpc_CallCredentials::set_has_from_plugin() { - _oneof_case_[0] = kFromPlugin; + _impl_._oneof_case_[0] = kFromPlugin; } inline void GrpcService_GoogleGrpc_CallCredentials::clear_from_plugin() { - if (has_from_plugin()) { - delete credential_specifier_.from_plugin_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() == kFromPlugin) { + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.from_plugin_; + } clear_has_credential_specifier(); } } inline ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* GrpcService_GoogleGrpc_CallCredentials::release_from_plugin() { // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.from_plugin) - if (has_from_plugin()) { + if (credential_specifier_case() == kFromPlugin) { clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* temp = credential_specifier_.from_plugin_; - credential_specifier_.from_plugin_ = nullptr; + auto* temp = _impl_.credential_specifier_.from_plugin_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.credential_specifier_.from_plugin_ = nullptr; return temp; } else { return nullptr; } } -inline const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& GrpcService_GoogleGrpc_CallCredentials::from_plugin() const { +inline const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& GrpcService_GoogleGrpc_CallCredentials::_internal_from_plugin() const { + return credential_specifier_case() == kFromPlugin ? *_impl_.credential_specifier_.from_plugin_ : reinterpret_cast<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin&>(::_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_); +} +inline const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& GrpcService_GoogleGrpc_CallCredentials::from_plugin() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.from_plugin) - return has_from_plugin() - ? *credential_specifier_.from_plugin_ - : *reinterpret_cast< ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin*>(&::_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_); + return _internal_from_plugin(); } -inline ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* GrpcService_GoogleGrpc_CallCredentials::mutable_from_plugin() { - if (!has_from_plugin()) { +inline ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_release_from_plugin() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.from_plugin) + if (credential_specifier_case() == kFromPlugin) { + clear_has_credential_specifier(); + auto* temp = _impl_.credential_specifier_.from_plugin_; + _impl_.credential_specifier_.from_plugin_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_set_allocated_from_plugin(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_credential_specifier(); + if (value) { + set_has_from_plugin(); + _impl_.credential_specifier_.from_plugin_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.from_plugin) +} +inline ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_from_plugin() { + if (credential_specifier_case() != kFromPlugin) { clear_credential_specifier(); set_has_from_plugin(); - credential_specifier_.from_plugin_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin >( - GetArenaNoVirtual()); + _impl_.credential_specifier_.from_plugin_ = + ::google::protobuf::Message::DefaultConstruct<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>(GetArena()); } + return _impl_.credential_specifier_.from_plugin_; +} +inline ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* GrpcService_GoogleGrpc_CallCredentials::mutable_from_plugin() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* _msg = _internal_mutable_from_plugin(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.from_plugin) - return credential_specifier_.from_plugin_; + return _msg; } // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; inline bool GrpcService_GoogleGrpc_CallCredentials::has_sts_service() const { return credential_specifier_case() == kStsService; } +inline bool GrpcService_GoogleGrpc_CallCredentials::_internal_has_sts_service() const { + return credential_specifier_case() == kStsService; +} inline void GrpcService_GoogleGrpc_CallCredentials::set_has_sts_service() { - _oneof_case_[0] = kStsService; + _impl_._oneof_case_[0] = kStsService; } inline void GrpcService_GoogleGrpc_CallCredentials::clear_sts_service() { - if (has_sts_service()) { - delete credential_specifier_.sts_service_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() == kStsService) { + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.sts_service_; + } clear_has_credential_specifier(); } } inline ::GrpcService_GoogleGrpc_CallCredentials_StsService* GrpcService_GoogleGrpc_CallCredentials::release_sts_service() { // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.sts_service) - if (has_sts_service()) { + if (credential_specifier_case() == kStsService) { clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_CallCredentials_StsService* temp = credential_specifier_.sts_service_; - credential_specifier_.sts_service_ = nullptr; + auto* temp = _impl_.credential_specifier_.sts_service_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.credential_specifier_.sts_service_ = nullptr; return temp; } else { return nullptr; } } -inline const ::GrpcService_GoogleGrpc_CallCredentials_StsService& GrpcService_GoogleGrpc_CallCredentials::sts_service() const { +inline const ::GrpcService_GoogleGrpc_CallCredentials_StsService& GrpcService_GoogleGrpc_CallCredentials::_internal_sts_service() const { + return credential_specifier_case() == kStsService ? *_impl_.credential_specifier_.sts_service_ : reinterpret_cast<::GrpcService_GoogleGrpc_CallCredentials_StsService&>(::_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_); +} +inline const ::GrpcService_GoogleGrpc_CallCredentials_StsService& GrpcService_GoogleGrpc_CallCredentials::sts_service() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.sts_service) - return has_sts_service() - ? *credential_specifier_.sts_service_ - : *reinterpret_cast< ::GrpcService_GoogleGrpc_CallCredentials_StsService*>(&::_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_); + return _internal_sts_service(); +} +inline ::GrpcService_GoogleGrpc_CallCredentials_StsService* GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_release_sts_service() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.sts_service) + if (credential_specifier_case() == kStsService) { + clear_has_credential_specifier(); + auto* temp = _impl_.credential_specifier_.sts_service_; + _impl_.credential_specifier_.sts_service_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_set_allocated_sts_service(::GrpcService_GoogleGrpc_CallCredentials_StsService* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_credential_specifier(); + if (value) { + set_has_sts_service(); + _impl_.credential_specifier_.sts_service_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.sts_service) } -inline ::GrpcService_GoogleGrpc_CallCredentials_StsService* GrpcService_GoogleGrpc_CallCredentials::mutable_sts_service() { - if (!has_sts_service()) { +inline ::GrpcService_GoogleGrpc_CallCredentials_StsService* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_sts_service() { + if (credential_specifier_case() != kStsService) { clear_credential_specifier(); set_has_sts_service(); - credential_specifier_.sts_service_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_StsService >( - GetArenaNoVirtual()); + _impl_.credential_specifier_.sts_service_ = + ::google::protobuf::Message::DefaultConstruct<::GrpcService_GoogleGrpc_CallCredentials_StsService>(GetArena()); } + return _impl_.credential_specifier_.sts_service_; +} +inline ::GrpcService_GoogleGrpc_CallCredentials_StsService* GrpcService_GoogleGrpc_CallCredentials::mutable_sts_service() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::GrpcService_GoogleGrpc_CallCredentials_StsService* _msg = _internal_mutable_sts_service(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.sts_service) - return credential_specifier_.sts_service_; + return _msg; } inline bool GrpcService_GoogleGrpc_CallCredentials::has_credential_specifier() const { return credential_specifier_case() != CREDENTIAL_SPECIFIER_NOT_SET; } inline void GrpcService_GoogleGrpc_CallCredentials::clear_has_credential_specifier() { - _oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; + _impl_._oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; } inline GrpcService_GoogleGrpc_CallCredentials::CredentialSpecifierCase GrpcService_GoogleGrpc_CallCredentials::credential_specifier_case() const { - return GrpcService_GoogleGrpc_CallCredentials::CredentialSpecifierCase(_oneof_case_[0]); + return GrpcService_GoogleGrpc_CallCredentials::CredentialSpecifierCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- @@ -4392,281 +5589,387 @@ inline GrpcService_GoogleGrpc_CallCredentials::CredentialSpecifierCase GrpcServi // string target_uri = 1; inline void GrpcService_GoogleGrpc::clear_target_uri() { - target_uri_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.target_uri_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc::target_uri() const { +inline const std::string& GrpcService_GoogleGrpc::target_uri() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.target_uri) - return target_uri_.GetNoArena(); + return _internal_target_uri(); } -inline void GrpcService_GoogleGrpc::set_target_uri(const std::string& value) { - - target_uri_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc::set_target_uri(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.target_uri_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.target_uri) } -inline void GrpcService_GoogleGrpc::set_target_uri(std::string&& value) { - - target_uri_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.target_uri) -} -inline void GrpcService_GoogleGrpc::set_target_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - target_uri_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.target_uri) -} -inline void GrpcService_GoogleGrpc::set_target_uri(const char* value, size_t size) { - - target_uri_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.target_uri) -} -inline std::string* GrpcService_GoogleGrpc::mutable_target_uri() { - +inline std::string* GrpcService_GoogleGrpc::mutable_target_uri() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_target_uri(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.target_uri) - return target_uri_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc::_internal_target_uri() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.target_uri_.Get(); +} +inline void GrpcService_GoogleGrpc::_internal_set_target_uri(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.target_uri_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc::_internal_mutable_target_uri() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.target_uri_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc::release_target_uri() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.target_uri) - - return target_uri_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc::set_allocated_target_uri(std::string* target_uri) { - if (target_uri != nullptr) { - - } else { - - } - target_uri_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), target_uri); + return _impl_.target_uri_.Release(); +} +inline void GrpcService_GoogleGrpc::set_allocated_target_uri(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.target_uri_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.target_uri_.IsDefault()) { + _impl_.target_uri_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.target_uri) } // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; inline bool GrpcService_GoogleGrpc::has_channel_credentials() const { - return this != internal_default_instance() && channel_credentials_ != nullptr; + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.channel_credentials_ != nullptr); + return value; } inline void GrpcService_GoogleGrpc::clear_channel_credentials() { - if (GetArenaNoVirtual() == nullptr && channel_credentials_ != nullptr) { - delete channel_credentials_; - } - channel_credentials_ = nullptr; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.channel_credentials_ != nullptr) _impl_.channel_credentials_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const ::GrpcService_GoogleGrpc_ChannelCredentials& GrpcService_GoogleGrpc::channel_credentials() const { - const ::GrpcService_GoogleGrpc_ChannelCredentials* p = channel_credentials_; +inline const ::GrpcService_GoogleGrpc_ChannelCredentials& GrpcService_GoogleGrpc::_internal_channel_credentials() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::GrpcService_GoogleGrpc_ChannelCredentials* p = _impl_.channel_credentials_; + return p != nullptr ? *p : reinterpret_cast(::_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_); +} +inline const ::GrpcService_GoogleGrpc_ChannelCredentials& GrpcService_GoogleGrpc::channel_credentials() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.channel_credentials) - return p != nullptr ? *p : *reinterpret_cast( - &::_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_); + return _internal_channel_credentials(); +} +inline void GrpcService_GoogleGrpc::unsafe_arena_set_allocated_channel_credentials(::GrpcService_GoogleGrpc_ChannelCredentials* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.channel_credentials_); + } + _impl_.channel_credentials_ = reinterpret_cast<::GrpcService_GoogleGrpc_ChannelCredentials*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.channel_credentials) } inline ::GrpcService_GoogleGrpc_ChannelCredentials* GrpcService_GoogleGrpc::release_channel_credentials() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::GrpcService_GoogleGrpc_ChannelCredentials* released = _impl_.channel_credentials_; + _impl_.channel_credentials_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::GrpcService_GoogleGrpc_ChannelCredentials* GrpcService_GoogleGrpc::unsafe_arena_release_channel_credentials() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.channel_credentials) - - ::GrpcService_GoogleGrpc_ChannelCredentials* temp = channel_credentials_; - channel_credentials_ = nullptr; + + _impl_._has_bits_[0] &= ~0x00000001u; + ::GrpcService_GoogleGrpc_ChannelCredentials* temp = _impl_.channel_credentials_; + _impl_.channel_credentials_ = nullptr; return temp; } -inline ::GrpcService_GoogleGrpc_ChannelCredentials* GrpcService_GoogleGrpc::mutable_channel_credentials() { - - if (channel_credentials_ == nullptr) { - auto* p = CreateMaybeMessage<::GrpcService_GoogleGrpc_ChannelCredentials>(GetArenaNoVirtual()); - channel_credentials_ = p; +inline ::GrpcService_GoogleGrpc_ChannelCredentials* GrpcService_GoogleGrpc::_internal_mutable_channel_credentials() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.channel_credentials_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct<::GrpcService_GoogleGrpc_ChannelCredentials>(GetArena()); + _impl_.channel_credentials_ = reinterpret_cast<::GrpcService_GoogleGrpc_ChannelCredentials*>(p); } + return _impl_.channel_credentials_; +} +inline ::GrpcService_GoogleGrpc_ChannelCredentials* GrpcService_GoogleGrpc::mutable_channel_credentials() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; + ::GrpcService_GoogleGrpc_ChannelCredentials* _msg = _internal_mutable_channel_credentials(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.channel_credentials) - return channel_credentials_; + return _msg; } -inline void GrpcService_GoogleGrpc::set_allocated_channel_credentials(::GrpcService_GoogleGrpc_ChannelCredentials* channel_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); +inline void GrpcService_GoogleGrpc::set_allocated_channel_credentials(::GrpcService_GoogleGrpc_ChannelCredentials* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete channel_credentials_; + delete (_impl_.channel_credentials_); } - if (channel_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - channel_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, channel_credentials, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - channel_credentials_ = channel_credentials; + + _impl_.channel_credentials_ = reinterpret_cast<::GrpcService_GoogleGrpc_ChannelCredentials*>(value); // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.channel_credentials) } // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; +inline int GrpcService_GoogleGrpc::_internal_call_credentials_size() const { + return _internal_call_credentials().size(); +} inline int GrpcService_GoogleGrpc::call_credentials_size() const { - return call_credentials_.size(); + return _internal_call_credentials_size(); } inline void GrpcService_GoogleGrpc::clear_call_credentials() { - call_credentials_.Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.call_credentials_.Clear(); } -inline ::GrpcService_GoogleGrpc_CallCredentials* GrpcService_GoogleGrpc::mutable_call_credentials(int index) { +inline ::GrpcService_GoogleGrpc_CallCredentials* GrpcService_GoogleGrpc::mutable_call_credentials(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.call_credentials) - return call_credentials_.Mutable(index); + return _internal_mutable_call_credentials()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_GoogleGrpc_CallCredentials >* -GrpcService_GoogleGrpc::mutable_call_credentials() { +inline ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>* GrpcService_GoogleGrpc::mutable_call_credentials() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:GrpcService.GoogleGrpc.call_credentials) - return &call_credentials_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_call_credentials(); } -inline const ::GrpcService_GoogleGrpc_CallCredentials& GrpcService_GoogleGrpc::call_credentials(int index) const { +inline const ::GrpcService_GoogleGrpc_CallCredentials& GrpcService_GoogleGrpc::call_credentials(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.call_credentials) - return call_credentials_.Get(index); + return _internal_call_credentials().Get(index); } -inline ::GrpcService_GoogleGrpc_CallCredentials* GrpcService_GoogleGrpc::add_call_credentials() { +inline ::GrpcService_GoogleGrpc_CallCredentials* GrpcService_GoogleGrpc::add_call_credentials() ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::GrpcService_GoogleGrpc_CallCredentials* _add = _internal_mutable_call_credentials()->Add(); // @@protoc_insertion_point(field_add:GrpcService.GoogleGrpc.call_credentials) - return call_credentials_.Add(); + return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_GoogleGrpc_CallCredentials >& -GrpcService_GoogleGrpc::call_credentials() const { +inline const ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>& GrpcService_GoogleGrpc::call_credentials() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:GrpcService.GoogleGrpc.call_credentials) - return call_credentials_; + return _internal_call_credentials(); +} +inline const ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>& +GrpcService_GoogleGrpc::_internal_call_credentials() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.call_credentials_; +} +inline ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>* +GrpcService_GoogleGrpc::_internal_mutable_call_credentials() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.call_credentials_; } // string stat_prefix = 4; inline void GrpcService_GoogleGrpc::clear_stat_prefix() { - stat_prefix_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.stat_prefix_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc::stat_prefix() const { +inline const std::string& GrpcService_GoogleGrpc::stat_prefix() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.stat_prefix) - return stat_prefix_.GetNoArena(); + return _internal_stat_prefix(); } -inline void GrpcService_GoogleGrpc::set_stat_prefix(const std::string& value) { - - stat_prefix_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc::set_stat_prefix(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.stat_prefix_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.stat_prefix) } -inline void GrpcService_GoogleGrpc::set_stat_prefix(std::string&& value) { - - stat_prefix_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.stat_prefix) -} -inline void GrpcService_GoogleGrpc::set_stat_prefix(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - stat_prefix_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.stat_prefix) -} -inline void GrpcService_GoogleGrpc::set_stat_prefix(const char* value, size_t size) { - - stat_prefix_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.stat_prefix) -} -inline std::string* GrpcService_GoogleGrpc::mutable_stat_prefix() { - +inline std::string* GrpcService_GoogleGrpc::mutable_stat_prefix() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_stat_prefix(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.stat_prefix) - return stat_prefix_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc::_internal_stat_prefix() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.stat_prefix_.Get(); +} +inline void GrpcService_GoogleGrpc::_internal_set_stat_prefix(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.stat_prefix_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc::_internal_mutable_stat_prefix() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.stat_prefix_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc::release_stat_prefix() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.stat_prefix) - - return stat_prefix_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc::set_allocated_stat_prefix(std::string* stat_prefix) { - if (stat_prefix != nullptr) { - - } else { - - } - stat_prefix_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stat_prefix); + return _impl_.stat_prefix_.Release(); +} +inline void GrpcService_GoogleGrpc::set_allocated_stat_prefix(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.stat_prefix_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.stat_prefix_.IsDefault()) { + _impl_.stat_prefix_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.stat_prefix) } // string credentials_factory_name = 5; inline void GrpcService_GoogleGrpc::clear_credentials_factory_name() { - credentials_factory_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.credentials_factory_name_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc::credentials_factory_name() const { +inline const std::string& GrpcService_GoogleGrpc::credentials_factory_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.credentials_factory_name) - return credentials_factory_name_.GetNoArena(); + return _internal_credentials_factory_name(); } -inline void GrpcService_GoogleGrpc::set_credentials_factory_name(const std::string& value) { - - credentials_factory_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc::set_credentials_factory_name(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.credentials_factory_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.credentials_factory_name) } -inline void GrpcService_GoogleGrpc::set_credentials_factory_name(std::string&& value) { - - credentials_factory_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.credentials_factory_name) -} -inline void GrpcService_GoogleGrpc::set_credentials_factory_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - credentials_factory_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.credentials_factory_name) -} -inline void GrpcService_GoogleGrpc::set_credentials_factory_name(const char* value, size_t size) { - - credentials_factory_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.credentials_factory_name) -} -inline std::string* GrpcService_GoogleGrpc::mutable_credentials_factory_name() { - +inline std::string* GrpcService_GoogleGrpc::mutable_credentials_factory_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_credentials_factory_name(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.credentials_factory_name) - return credentials_factory_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc::_internal_credentials_factory_name() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.credentials_factory_name_.Get(); +} +inline void GrpcService_GoogleGrpc::_internal_set_credentials_factory_name(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.credentials_factory_name_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc::_internal_mutable_credentials_factory_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.credentials_factory_name_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc::release_credentials_factory_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.credentials_factory_name) - - return credentials_factory_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc::set_allocated_credentials_factory_name(std::string* credentials_factory_name) { - if (credentials_factory_name != nullptr) { - - } else { - - } - credentials_factory_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), credentials_factory_name); + return _impl_.credentials_factory_name_.Release(); +} +inline void GrpcService_GoogleGrpc::set_allocated_credentials_factory_name(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.credentials_factory_name_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.credentials_factory_name_.IsDefault()) { + _impl_.credentials_factory_name_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.credentials_factory_name) } // .google.protobuf.Struct config = 6; inline bool GrpcService_GoogleGrpc::has_config() const { - return this != internal_default_instance() && config_ != nullptr; + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.config_ != nullptr); + return value; } -inline const PROTOBUF_NAMESPACE_ID::Struct& GrpcService_GoogleGrpc::config() const { - const PROTOBUF_NAMESPACE_ID::Struct* p = config_; +inline const ::google::protobuf::Struct& GrpcService_GoogleGrpc::_internal_config() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::google::protobuf::Struct* p = _impl_.config_; + return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +} +inline const ::google::protobuf::Struct& GrpcService_GoogleGrpc::config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.config) - return p != nullptr ? *p : *reinterpret_cast( - &PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); + return _internal_config(); +} +inline void GrpcService_GoogleGrpc::unsafe_arena_set_allocated_config(::google::protobuf::Struct* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); + } + _impl_.config_ = reinterpret_cast<::google::protobuf::Struct*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.config) } -inline PROTOBUF_NAMESPACE_ID::Struct* GrpcService_GoogleGrpc::release_config() { +inline ::google::protobuf::Struct* GrpcService_GoogleGrpc::release_config() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000002u; + ::google::protobuf::Struct* released = _impl_.config_; + _impl_.config_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::google::protobuf::Struct* GrpcService_GoogleGrpc::unsafe_arena_release_config() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.config) - - PROTOBUF_NAMESPACE_ID::Struct* temp = config_; - config_ = nullptr; + + _impl_._has_bits_[0] &= ~0x00000002u; + ::google::protobuf::Struct* temp = _impl_.config_; + _impl_.config_ = nullptr; return temp; } -inline PROTOBUF_NAMESPACE_ID::Struct* GrpcService_GoogleGrpc::mutable_config() { - - if (config_ == nullptr) { - auto* p = CreateMaybeMessage(GetArenaNoVirtual()); - config_ = p; +inline ::google::protobuf::Struct* GrpcService_GoogleGrpc::_internal_mutable_config() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.config_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Struct>(GetArena()); + _impl_.config_ = reinterpret_cast<::google::protobuf::Struct*>(p); } + return _impl_.config_; +} +inline ::google::protobuf::Struct* GrpcService_GoogleGrpc::mutable_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; + ::google::protobuf::Struct* _msg = _internal_mutable_config(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.config) - return config_; + return _msg; } -inline void GrpcService_GoogleGrpc::set_allocated_config(PROTOBUF_NAMESPACE_ID::Struct* config) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); +inline void GrpcService_GoogleGrpc::set_allocated_config(::google::protobuf::Struct* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(config_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); } - if (config) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config)->GetArena(); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, config, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000002u; } else { - + _impl_._has_bits_[0] &= ~0x00000002u; } - config_ = config; + + _impl_.config_ = reinterpret_cast<::google::protobuf::Struct*>(value); // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.config) } @@ -4676,103 +5979,101 @@ inline void GrpcService_GoogleGrpc::set_allocated_config(PROTOBUF_NAMESPACE_ID:: // string key = 1; inline void GrpcService_HeaderValue::clear_key() { - key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.key_.ClearToEmpty(); } -inline const std::string& GrpcService_HeaderValue::key() const { +inline const std::string& GrpcService_HeaderValue::key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.HeaderValue.key) - return key_.GetNoArena(); + return _internal_key(); } -inline void GrpcService_HeaderValue::set_key(const std::string& value) { - - key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_HeaderValue::set_key(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.key_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.HeaderValue.key) } -inline void GrpcService_HeaderValue::set_key(std::string&& value) { - - key_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.HeaderValue.key) -} -inline void GrpcService_HeaderValue::set_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.HeaderValue.key) -} -inline void GrpcService_HeaderValue::set_key(const char* value, size_t size) { - - key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.HeaderValue.key) -} -inline std::string* GrpcService_HeaderValue::mutable_key() { - +inline std::string* GrpcService_HeaderValue::mutable_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_key(); // @@protoc_insertion_point(field_mutable:GrpcService.HeaderValue.key) - return key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_HeaderValue::_internal_key() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.key_.Get(); +} +inline void GrpcService_HeaderValue::_internal_set_key(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.key_.Set(value, GetArena()); +} +inline std::string* GrpcService_HeaderValue::_internal_mutable_key() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.key_.Mutable( GetArena()); } inline std::string* GrpcService_HeaderValue::release_key() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.HeaderValue.key) - - return key_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_HeaderValue::set_allocated_key(std::string* key) { - if (key != nullptr) { - - } else { - - } - key_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key); + return _impl_.key_.Release(); +} +inline void GrpcService_HeaderValue::set_allocated_key(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.key_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.key_.IsDefault()) { + _impl_.key_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.HeaderValue.key) } // string value = 2; inline void GrpcService_HeaderValue::clear_value() { - value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.value_.ClearToEmpty(); } -inline const std::string& GrpcService_HeaderValue::value() const { +inline const std::string& GrpcService_HeaderValue::value() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.HeaderValue.value) - return value_.GetNoArena(); + return _internal_value(); } -inline void GrpcService_HeaderValue::set_value(const std::string& value) { - - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_HeaderValue::set_value(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.value_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.HeaderValue.value) } -inline void GrpcService_HeaderValue::set_value(std::string&& value) { - - value_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.HeaderValue.value) -} -inline void GrpcService_HeaderValue::set_value(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.HeaderValue.value) -} -inline void GrpcService_HeaderValue::set_value(const char* value, size_t size) { - - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.HeaderValue.value) -} -inline std::string* GrpcService_HeaderValue::mutable_value() { - +inline std::string* GrpcService_HeaderValue::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_value(); // @@protoc_insertion_point(field_mutable:GrpcService.HeaderValue.value) - return value_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_HeaderValue::_internal_value() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.value_.Get(); +} +inline void GrpcService_HeaderValue::_internal_set_value(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.value_.Set(value, GetArena()); +} +inline std::string* GrpcService_HeaderValue::_internal_mutable_value() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.value_.Mutable( GetArena()); } inline std::string* GrpcService_HeaderValue::release_value() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.HeaderValue.value) - - return value_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _impl_.value_.Release(); } inline void GrpcService_HeaderValue::set_allocated_value(std::string* value) { - if (value != nullptr) { - - } else { - - } - value_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.value_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.value_.IsDefault()) { + _impl_.value_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.HeaderValue.value) } @@ -4784,203 +6085,314 @@ inline void GrpcService_HeaderValue::set_allocated_value(std::string* value) { inline bool GrpcService::has_envoy_grpc() const { return target_specifier_case() == kEnvoyGrpc; } +inline bool GrpcService::_internal_has_envoy_grpc() const { + return target_specifier_case() == kEnvoyGrpc; +} inline void GrpcService::set_has_envoy_grpc() { - _oneof_case_[0] = kEnvoyGrpc; + _impl_._oneof_case_[0] = kEnvoyGrpc; } inline void GrpcService::clear_envoy_grpc() { - if (has_envoy_grpc()) { - delete target_specifier_.envoy_grpc_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (target_specifier_case() == kEnvoyGrpc) { + if (GetArena() == nullptr) { + delete _impl_.target_specifier_.envoy_grpc_; + } clear_has_target_specifier(); } } inline ::GrpcService_EnvoyGrpc* GrpcService::release_envoy_grpc() { // @@protoc_insertion_point(field_release:GrpcService.envoy_grpc) - if (has_envoy_grpc()) { + if (target_specifier_case() == kEnvoyGrpc) { clear_has_target_specifier(); - ::GrpcService_EnvoyGrpc* temp = target_specifier_.envoy_grpc_; - target_specifier_.envoy_grpc_ = nullptr; + auto* temp = _impl_.target_specifier_.envoy_grpc_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.target_specifier_.envoy_grpc_ = nullptr; return temp; } else { return nullptr; } } -inline const ::GrpcService_EnvoyGrpc& GrpcService::envoy_grpc() const { +inline const ::GrpcService_EnvoyGrpc& GrpcService::_internal_envoy_grpc() const { + return target_specifier_case() == kEnvoyGrpc ? *_impl_.target_specifier_.envoy_grpc_ : reinterpret_cast<::GrpcService_EnvoyGrpc&>(::_GrpcService_EnvoyGrpc_default_instance_); +} +inline const ::GrpcService_EnvoyGrpc& GrpcService::envoy_grpc() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.envoy_grpc) - return has_envoy_grpc() - ? *target_specifier_.envoy_grpc_ - : *reinterpret_cast< ::GrpcService_EnvoyGrpc*>(&::_GrpcService_EnvoyGrpc_default_instance_); + return _internal_envoy_grpc(); +} +inline ::GrpcService_EnvoyGrpc* GrpcService::unsafe_arena_release_envoy_grpc() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.envoy_grpc) + if (target_specifier_case() == kEnvoyGrpc) { + clear_has_target_specifier(); + auto* temp = _impl_.target_specifier_.envoy_grpc_; + _impl_.target_specifier_.envoy_grpc_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline ::GrpcService_EnvoyGrpc* GrpcService::mutable_envoy_grpc() { - if (!has_envoy_grpc()) { +inline void GrpcService::unsafe_arena_set_allocated_envoy_grpc(::GrpcService_EnvoyGrpc* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_target_specifier(); + if (value) { + set_has_envoy_grpc(); + _impl_.target_specifier_.envoy_grpc_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.envoy_grpc) +} +inline ::GrpcService_EnvoyGrpc* GrpcService::_internal_mutable_envoy_grpc() { + if (target_specifier_case() != kEnvoyGrpc) { clear_target_specifier(); set_has_envoy_grpc(); - target_specifier_.envoy_grpc_ = CreateMaybeMessage< ::GrpcService_EnvoyGrpc >( - GetArenaNoVirtual()); + _impl_.target_specifier_.envoy_grpc_ = + ::google::protobuf::Message::DefaultConstruct<::GrpcService_EnvoyGrpc>(GetArena()); } + return _impl_.target_specifier_.envoy_grpc_; +} +inline ::GrpcService_EnvoyGrpc* GrpcService::mutable_envoy_grpc() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::GrpcService_EnvoyGrpc* _msg = _internal_mutable_envoy_grpc(); // @@protoc_insertion_point(field_mutable:GrpcService.envoy_grpc) - return target_specifier_.envoy_grpc_; + return _msg; } // .GrpcService.GoogleGrpc google_grpc = 2; inline bool GrpcService::has_google_grpc() const { return target_specifier_case() == kGoogleGrpc; } +inline bool GrpcService::_internal_has_google_grpc() const { + return target_specifier_case() == kGoogleGrpc; +} inline void GrpcService::set_has_google_grpc() { - _oneof_case_[0] = kGoogleGrpc; + _impl_._oneof_case_[0] = kGoogleGrpc; } inline void GrpcService::clear_google_grpc() { - if (has_google_grpc()) { - delete target_specifier_.google_grpc_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (target_specifier_case() == kGoogleGrpc) { + if (GetArena() == nullptr) { + delete _impl_.target_specifier_.google_grpc_; + } clear_has_target_specifier(); } } inline ::GrpcService_GoogleGrpc* GrpcService::release_google_grpc() { // @@protoc_insertion_point(field_release:GrpcService.google_grpc) - if (has_google_grpc()) { + if (target_specifier_case() == kGoogleGrpc) { clear_has_target_specifier(); - ::GrpcService_GoogleGrpc* temp = target_specifier_.google_grpc_; - target_specifier_.google_grpc_ = nullptr; + auto* temp = _impl_.target_specifier_.google_grpc_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.target_specifier_.google_grpc_ = nullptr; return temp; } else { return nullptr; } } -inline const ::GrpcService_GoogleGrpc& GrpcService::google_grpc() const { +inline const ::GrpcService_GoogleGrpc& GrpcService::_internal_google_grpc() const { + return target_specifier_case() == kGoogleGrpc ? *_impl_.target_specifier_.google_grpc_ : reinterpret_cast<::GrpcService_GoogleGrpc&>(::_GrpcService_GoogleGrpc_default_instance_); +} +inline const ::GrpcService_GoogleGrpc& GrpcService::google_grpc() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.google_grpc) - return has_google_grpc() - ? *target_specifier_.google_grpc_ - : *reinterpret_cast< ::GrpcService_GoogleGrpc*>(&::_GrpcService_GoogleGrpc_default_instance_); + return _internal_google_grpc(); +} +inline ::GrpcService_GoogleGrpc* GrpcService::unsafe_arena_release_google_grpc() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.google_grpc) + if (target_specifier_case() == kGoogleGrpc) { + clear_has_target_specifier(); + auto* temp = _impl_.target_specifier_.google_grpc_; + _impl_.target_specifier_.google_grpc_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void GrpcService::unsafe_arena_set_allocated_google_grpc(::GrpcService_GoogleGrpc* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_target_specifier(); + if (value) { + set_has_google_grpc(); + _impl_.target_specifier_.google_grpc_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.google_grpc) } -inline ::GrpcService_GoogleGrpc* GrpcService::mutable_google_grpc() { - if (!has_google_grpc()) { +inline ::GrpcService_GoogleGrpc* GrpcService::_internal_mutable_google_grpc() { + if (target_specifier_case() != kGoogleGrpc) { clear_target_specifier(); set_has_google_grpc(); - target_specifier_.google_grpc_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc >( - GetArenaNoVirtual()); + _impl_.target_specifier_.google_grpc_ = + ::google::protobuf::Message::DefaultConstruct<::GrpcService_GoogleGrpc>(GetArena()); } + return _impl_.target_specifier_.google_grpc_; +} +inline ::GrpcService_GoogleGrpc* GrpcService::mutable_google_grpc() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::GrpcService_GoogleGrpc* _msg = _internal_mutable_google_grpc(); // @@protoc_insertion_point(field_mutable:GrpcService.google_grpc) - return target_specifier_.google_grpc_; + return _msg; } // .google.protobuf.Duration timeout = 3; inline bool GrpcService::has_timeout() const { - return this != internal_default_instance() && timeout_ != nullptr; + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.timeout_ != nullptr); + return value; +} +inline const ::google::protobuf::Duration& GrpcService::_internal_timeout() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::google::protobuf::Duration* p = _impl_.timeout_; + return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Duration_default_instance_); } -inline const PROTOBUF_NAMESPACE_ID::Duration& GrpcService::timeout() const { - const PROTOBUF_NAMESPACE_ID::Duration* p = timeout_; +inline const ::google::protobuf::Duration& GrpcService::timeout() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.timeout) - return p != nullptr ? *p : *reinterpret_cast( - &PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); + return _internal_timeout(); +} +inline void GrpcService::unsafe_arena_set_allocated_timeout(::google::protobuf::Duration* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.timeout_); + } + _impl_.timeout_ = reinterpret_cast<::google::protobuf::Duration*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.timeout) +} +inline ::google::protobuf::Duration* GrpcService::release_timeout() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::google::protobuf::Duration* released = _impl_.timeout_; + _impl_.timeout_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; } -inline PROTOBUF_NAMESPACE_ID::Duration* GrpcService::release_timeout() { +inline ::google::protobuf::Duration* GrpcService::unsafe_arena_release_timeout() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.timeout) - - PROTOBUF_NAMESPACE_ID::Duration* temp = timeout_; - timeout_ = nullptr; + + _impl_._has_bits_[0] &= ~0x00000001u; + ::google::protobuf::Duration* temp = _impl_.timeout_; + _impl_.timeout_ = nullptr; return temp; } -inline PROTOBUF_NAMESPACE_ID::Duration* GrpcService::mutable_timeout() { - - if (timeout_ == nullptr) { - auto* p = CreateMaybeMessage(GetArenaNoVirtual()); - timeout_ = p; +inline ::google::protobuf::Duration* GrpcService::_internal_mutable_timeout() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.timeout_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Duration>(GetArena()); + _impl_.timeout_ = reinterpret_cast<::google::protobuf::Duration*>(p); } + return _impl_.timeout_; +} +inline ::google::protobuf::Duration* GrpcService::mutable_timeout() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::Duration* _msg = _internal_mutable_timeout(); // @@protoc_insertion_point(field_mutable:GrpcService.timeout) - return timeout_; + return _msg; } -inline void GrpcService::set_allocated_timeout(PROTOBUF_NAMESPACE_ID::Duration* timeout) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); +inline void GrpcService::set_allocated_timeout(::google::protobuf::Duration* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(timeout_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.timeout_); } - if (timeout) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(timeout)->GetArena(); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - timeout = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, timeout, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - timeout_ = timeout; + + _impl_.timeout_ = reinterpret_cast<::google::protobuf::Duration*>(value); // @@protoc_insertion_point(field_set_allocated:GrpcService.timeout) } // repeated .GrpcService.HeaderValue initial_metadata = 5; +inline int GrpcService::_internal_initial_metadata_size() const { + return _internal_initial_metadata().size(); +} inline int GrpcService::initial_metadata_size() const { - return initial_metadata_.size(); + return _internal_initial_metadata_size(); } inline void GrpcService::clear_initial_metadata() { - initial_metadata_.Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.initial_metadata_.Clear(); } -inline ::GrpcService_HeaderValue* GrpcService::mutable_initial_metadata(int index) { +inline ::GrpcService_HeaderValue* GrpcService::mutable_initial_metadata(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:GrpcService.initial_metadata) - return initial_metadata_.Mutable(index); + return _internal_mutable_initial_metadata()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_HeaderValue >* -GrpcService::mutable_initial_metadata() { +inline ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>* GrpcService::mutable_initial_metadata() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:GrpcService.initial_metadata) - return &initial_metadata_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_initial_metadata(); } -inline const ::GrpcService_HeaderValue& GrpcService::initial_metadata(int index) const { +inline const ::GrpcService_HeaderValue& GrpcService::initial_metadata(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.initial_metadata) - return initial_metadata_.Get(index); + return _internal_initial_metadata().Get(index); } -inline ::GrpcService_HeaderValue* GrpcService::add_initial_metadata() { +inline ::GrpcService_HeaderValue* GrpcService::add_initial_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::GrpcService_HeaderValue* _add = _internal_mutable_initial_metadata()->Add(); // @@protoc_insertion_point(field_add:GrpcService.initial_metadata) - return initial_metadata_.Add(); + return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_HeaderValue >& -GrpcService::initial_metadata() const { +inline const ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>& GrpcService::initial_metadata() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:GrpcService.initial_metadata) - return initial_metadata_; + return _internal_initial_metadata(); +} +inline const ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>& +GrpcService::_internal_initial_metadata() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.initial_metadata_; +} +inline ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>* +GrpcService::_internal_mutable_initial_metadata() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.initial_metadata_; } inline bool GrpcService::has_target_specifier() const { return target_specifier_case() != TARGET_SPECIFIER_NOT_SET; } inline void GrpcService::clear_has_target_specifier() { - _oneof_case_[0] = TARGET_SPECIFIER_NOT_SET; + _impl_._oneof_case_[0] = TARGET_SPECIFIER_NOT_SET; } inline GrpcService::TargetSpecifierCase GrpcService::target_specifier_case() const { - return GrpcService::TargetSpecifierCase(_oneof_case_[0]); + return GrpcService::TargetSpecifierCase(_impl_._oneof_case_[0]); } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proxy_5fwasm_5fintrinsics_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // GOOGLE_PROTOBUF_INCLUDED_proxy_5fwasm_5fintrinsics_2eproto_2epb_2eh diff --git a/proxy_wasm_intrinsics_lite.pb.cc b/proxy_wasm_intrinsics_lite.pb.cc index e882c5f..d8250b0 100644 --- a/proxy_wasm_intrinsics_lite.pb.cc +++ b/proxy_wasm_intrinsics_lite.pb.cc @@ -15,569 +15,600 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: proxy_wasm_intrinsics_lite.proto +// Protobuf C++ Version: 5.26.1 #include "proxy_wasm_intrinsics_lite.pb.h" #include - -#include -#include -#include -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/wire_format_lite.h" +#include "google/protobuf/io/zero_copy_stream_impl_lite.h" +#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Any_proxy_5fwasm_5fintrinsics_5flite_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DataSource_proxy_5fwasm_5fintrinsics_5flite_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_EnvoyGrpc_proxy_5fwasm_5fintrinsics_5flite_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_GrpcService_GoogleGrpc_proxy_5fwasm_5fintrinsics_5flite_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_proxy_5fwasm_5fintrinsics_5flite_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_5flite_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_GrpcService_GoogleGrpc_ChannelCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_Empty_proxy_5fwasm_5fintrinsics_5flite_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_GoogleLocalCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GrpcService_GoogleGrpc_SslCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_HeaderValue_proxy_5fwasm_5fintrinsics_5flite_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_struct_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ListValue_struct_5flite_2eproto; -class WKTDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _WKT_default_instance_; -class DataSourceDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr filename_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr inline_bytes_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr inline_string_; -} _DataSource_default_instance_; -class AnyDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Any_default_instance_; -class GrpcService_EnvoyGrpcDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GrpcService_EnvoyGrpc_default_instance_; -class GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GrpcService_GoogleGrpc_SslCredentials_default_instance_; -class GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_; -class GrpcService_GoogleGrpc_EmptyDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GrpcService_GoogleGrpc_Empty_default_instance_; -class GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; - const ::GrpcService_GoogleGrpc_SslCredentials* ssl_credentials_; - const ::GrpcService_GoogleGrpc_Empty* google_default_; - const ::GrpcService_GoogleGrpc_GoogleLocalCredentials* local_credentials_; -} _GrpcService_GoogleGrpc_ChannelCredentials_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; - const ::google::protobuf::Struct* config_; - const ::Any* typed_config_; -} _GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_; -class GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr access_token_; - const ::GrpcService_GoogleGrpc_Empty* google_compute_engine_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr google_refresh_token_; - const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* service_account_jwt_access_; - const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* google_iam_; - const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* from_plugin_; - const ::GrpcService_GoogleGrpc_CallCredentials_StsService* sts_service_; -} _GrpcService_GoogleGrpc_CallCredentials_default_instance_; -class GrpcService_GoogleGrpcDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GrpcService_GoogleGrpc_default_instance_; -class GrpcService_HeaderValueDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GrpcService_HeaderValue_default_instance_; -class GrpcServiceDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; - const ::GrpcService_EnvoyGrpc* envoy_grpc_; - const ::GrpcService_GoogleGrpc* google_grpc_; -} _GrpcService_default_instance_; -static void InitDefaultsscc_info_Any_proxy_5fwasm_5fintrinsics_5flite_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_Any_default_instance_; - new (ptr) ::Any(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Any::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Any_proxy_5fwasm_5fintrinsics_5flite_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_Any_proxy_5fwasm_5fintrinsics_5flite_2eproto}, {}}; - -static void InitDefaultsscc_info_DataSource_proxy_5fwasm_5fintrinsics_5flite_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_DataSource_default_instance_; - new (ptr) ::DataSource(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::DataSource::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DataSource_proxy_5fwasm_5fintrinsics_5flite_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_DataSource_proxy_5fwasm_5fintrinsics_5flite_2eproto}, {}}; - -static void InitDefaultsscc_info_GrpcService_proxy_5fwasm_5fintrinsics_5flite_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_default_instance_; - new (ptr) ::GrpcService(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_GrpcService_proxy_5fwasm_5fintrinsics_5flite_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_GrpcService_proxy_5fwasm_5fintrinsics_5flite_2eproto}, { - &scc_info_GrpcService_EnvoyGrpc_proxy_5fwasm_5fintrinsics_5flite_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_proxy_5fwasm_5fintrinsics_5flite_2eproto.base, - &scc_info_GrpcService_HeaderValue_proxy_5fwasm_5fintrinsics_5flite_2eproto.base,}}; - -static void InitDefaultsscc_info_GrpcService_EnvoyGrpc_proxy_5fwasm_5fintrinsics_5flite_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_EnvoyGrpc_default_instance_; - new (ptr) ::GrpcService_EnvoyGrpc(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_EnvoyGrpc::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_EnvoyGrpc_proxy_5fwasm_5fintrinsics_5flite_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GrpcService_EnvoyGrpc_proxy_5fwasm_5fintrinsics_5flite_2eproto}, {}}; - -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_proxy_5fwasm_5fintrinsics_5flite_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_GoogleGrpc_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_GrpcService_GoogleGrpc_proxy_5fwasm_5fintrinsics_5flite_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_GrpcService_GoogleGrpc_proxy_5fwasm_5fintrinsics_5flite_2eproto}, { - &scc_info_GrpcService_GoogleGrpc_ChannelCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto.base, - &scc_info_ListValue_struct_5flite_2eproto.base,}}; - -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_GoogleGrpc_CallCredentials_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_CallCredentials(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_CallCredentials::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 5, InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto}, { - &scc_info_GrpcService_GoogleGrpc_Empty_proxy_5fwasm_5fintrinsics_5flite_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_proxy_5fwasm_5fintrinsics_5flite_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_5flite_2eproto.base,}}; - -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto}, {}}; - -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_proxy_5fwasm_5fintrinsics_5flite_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_proxy_5fwasm_5fintrinsics_5flite_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_proxy_5fwasm_5fintrinsics_5flite_2eproto}, { - &scc_info_ListValue_struct_5flite_2eproto.base, - &scc_info_Any_proxy_5fwasm_5fintrinsics_5flite_2eproto.base,}}; - -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto}, {}}; - -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_5flite_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_CallCredentials_StsService(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_CallCredentials_StsService::InitAsDefaultInstance(); -} -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_5flite_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_5flite_2eproto}, {}}; - -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_ChannelCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_ChannelCredentials(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_ChannelCredentials::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_GrpcService_GoogleGrpc_ChannelCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_GrpcService_GoogleGrpc_ChannelCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto}, { - &scc_info_GrpcService_GoogleGrpc_SslCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_Empty_proxy_5fwasm_5fintrinsics_5flite_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_GoogleLocalCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto.base,}}; - -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_Empty_proxy_5fwasm_5fintrinsics_5flite_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; +// Must be included last. +#include "google/protobuf/port_def.inc" +PROTOBUF_PRAGMA_INIT_SEG +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; + +inline constexpr GrpcService_HeaderValue::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + value_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR GrpcService_HeaderValue::GrpcService_HeaderValue(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcService_HeaderValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcService_HeaderValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcService_HeaderValueDefaultTypeInternal() {} + union { + GrpcService_HeaderValue _instance; + }; +}; - { - void* ptr = &::_GrpcService_GoogleGrpc_Empty_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_Empty(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_Empty::InitAsDefaultInstance(); -} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_HeaderValueDefaultTypeInternal _GrpcService_HeaderValue_default_instance_; + +inline constexpr GrpcService_GoogleGrpc_GoogleLocalCredentials::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_GoogleLocalCredentials::GrpcService_GoogleGrpc_GoogleLocalCredentials(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal() {} + union { + GrpcService_GoogleGrpc_GoogleLocalCredentials _instance; + }; +}; -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_Empty_proxy_5fwasm_5fintrinsics_5flite_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GrpcService_GoogleGrpc_Empty_proxy_5fwasm_5fintrinsics_5flite_2eproto}, {}}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_; + +inline constexpr GrpcService_GoogleGrpc_Empty::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_Empty::GrpcService_GoogleGrpc_Empty(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcService_GoogleGrpc_EmptyDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_EmptyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcService_GoogleGrpc_EmptyDefaultTypeInternal() {} + union { + GrpcService_GoogleGrpc_Empty _instance; + }; +}; -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_GoogleLocalCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_EmptyDefaultTypeInternal _GrpcService_GoogleGrpc_Empty_default_instance_; + +inline constexpr GrpcService_GoogleGrpc_CallCredentials_StsService::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : token_exchange_service_uri_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + resource_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + audience_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + scope_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + requested_token_type_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + subject_token_path_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + subject_token_type_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + actor_token_path_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + actor_token_type_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_StsService::GrpcService_GoogleGrpc_CallCredentials_StsService(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal() {} + union { + GrpcService_GoogleGrpc_CallCredentials_StsService _instance; + }; +}; - { - void* ptr = &::_GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_GoogleLocalCredentials(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_GoogleLocalCredentials::InitAsDefaultInstance(); -} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_; + +inline constexpr GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : json_key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + token_lifetime_seconds_{::uint64_t{0u}}, + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal() {} + union { + GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials _instance; + }; +}; -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_GoogleLocalCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GrpcService_GoogleGrpc_GoogleLocalCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto}, {}}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_; + +inline constexpr GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : authorization_token_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + authority_selector_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal() {} + union { + GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials _instance; + }; +}; -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_SslCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_; + +inline constexpr GrpcService_EnvoyGrpc::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : cluster_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR GrpcService_EnvoyGrpc::GrpcService_EnvoyGrpc(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcService_EnvoyGrpcDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcService_EnvoyGrpcDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcService_EnvoyGrpcDefaultTypeInternal() {} + union { + GrpcService_EnvoyGrpc _instance; + }; +}; - { - void* ptr = &::_GrpcService_GoogleGrpc_SslCredentials_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_SslCredentials(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_SslCredentials::InitAsDefaultInstance(); -} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_EnvoyGrpcDefaultTypeInternal _GrpcService_EnvoyGrpc_default_instance_; + +inline constexpr DataSource::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : specifier_{}, + _cached_size_{0}, + _oneof_case_{} {} + +template +PROTOBUF_CONSTEXPR DataSource::DataSource(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct DataSourceDefaultTypeInternal { + PROTOBUF_CONSTEXPR DataSourceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DataSourceDefaultTypeInternal() {} + union { + DataSource _instance; + }; +}; -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GrpcService_GoogleGrpc_SslCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_GrpcService_GoogleGrpc_SslCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto}, { - &scc_info_DataSource_proxy_5fwasm_5fintrinsics_5flite_2eproto.base,}}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DataSourceDefaultTypeInternal _DataSource_default_instance_; + +inline constexpr Any::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : type_url_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + value_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR Any::Any(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct AnyDefaultTypeInternal { + PROTOBUF_CONSTEXPR AnyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~AnyDefaultTypeInternal() {} + union { + Any _instance; + }; +}; -static void InitDefaultsscc_info_GrpcService_HeaderValue_proxy_5fwasm_5fintrinsics_5flite_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnyDefaultTypeInternal _Any_default_instance_; + +inline constexpr WKT::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + struct__{nullptr} {} + +template +PROTOBUF_CONSTEXPR WKT::WKT(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct WKTDefaultTypeInternal { + PROTOBUF_CONSTEXPR WKTDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~WKTDefaultTypeInternal() {} + union { + WKT _instance; + }; +}; - { - void* ptr = &::_GrpcService_HeaderValue_default_instance_; - new (ptr) ::GrpcService_HeaderValue(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_HeaderValue::InitAsDefaultInstance(); -} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WKTDefaultTypeInternal _WKT_default_instance_; + +inline constexpr GrpcService_GoogleGrpc_SslCredentials::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + root_certs_{nullptr}, + private_key_{nullptr}, + cert_chain_{nullptr} {} + +template +PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_SslCredentials::GrpcService_GoogleGrpc_SslCredentials(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal() {} + union { + GrpcService_GoogleGrpc_SslCredentials _instance; + }; +}; -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_HeaderValue_proxy_5fwasm_5fintrinsics_5flite_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GrpcService_HeaderValue_proxy_5fwasm_5fintrinsics_5flite_2eproto}, {}}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_SslCredentials_default_instance_; + +inline constexpr GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + config_type_{}, + _cached_size_{0}, + _oneof_case_{} {} + +template +PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal() {} + union { + GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin _instance; + }; +}; -static void InitDefaultsscc_info_WKT_proxy_5fwasm_5fintrinsics_5flite_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_; + +inline constexpr GrpcService_GoogleGrpc_ChannelCredentials::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : credential_specifier_{}, + _cached_size_{0}, + _oneof_case_{} {} + +template +PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_ChannelCredentials::GrpcService_GoogleGrpc_ChannelCredentials(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal() {} + union { + GrpcService_GoogleGrpc_ChannelCredentials _instance; + }; +}; - { - void* ptr = &::_WKT_default_instance_; - new (ptr) ::WKT(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::WKT::InitAsDefaultInstance(); -} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_ChannelCredentials_default_instance_; + +inline constexpr GrpcService_GoogleGrpc_CallCredentials::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : credential_specifier_{}, + _cached_size_{0}, + _oneof_case_{} {} + +template +PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials::GrpcService_GoogleGrpc_CallCredentials(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal() {} + union { + GrpcService_GoogleGrpc_CallCredentials _instance; + }; +}; -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_WKT_proxy_5fwasm_5fintrinsics_5flite_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_WKT_proxy_5fwasm_5fintrinsics_5flite_2eproto}, { - &scc_info_ListValue_struct_5flite_2eproto.base,}}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_default_instance_; + +inline constexpr GrpcService_GoogleGrpc::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + call_credentials_{}, + target_uri_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + stat_prefix_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + credentials_factory_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + channel_credentials_{nullptr}, + config_{nullptr} {} + +template +PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc::GrpcService_GoogleGrpc(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcService_GoogleGrpcDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcService_GoogleGrpcDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcService_GoogleGrpcDefaultTypeInternal() {} + union { + GrpcService_GoogleGrpc _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpcDefaultTypeInternal _GrpcService_GoogleGrpc_default_instance_; + +inline constexpr GrpcService::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : initial_metadata_{}, + target_specifier_{}, + _cached_size_{0}, + _oneof_case_{} {} + +template +PROTOBUF_CONSTEXPR GrpcService::GrpcService(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GrpcServiceDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrpcServiceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GrpcServiceDefaultTypeInternal() {} + union { + GrpcService _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcServiceDefaultTypeInternal _GrpcService_default_instance_; // =================================================================== -void WKT::InitAsDefaultInstance() { - ::_WKT_default_instance_._instance.get_mutable()->struct__ = const_cast< ::google::protobuf::Struct*>( - ::google::protobuf::Struct::internal_default_instance()); -} class WKT::_Internal { public: - static const ::google::protobuf::Struct& struct_(const WKT* msg); + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(WKT, _impl_._has_bits_); }; -const ::google::protobuf::Struct& -WKT::_Internal::struct_(const WKT* msg) { - return *msg->struct__; -} void WKT::clear_struct_() { - if (GetArenaNoVirtual() == nullptr && struct__ != nullptr) { - delete struct__; - } - struct__ = nullptr; -} -WKT::WKT() - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:WKT) -} -WKT::WKT(const WKT& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_struct_()) { - struct__ = new ::google::protobuf::Struct(*from.struct__); - } else { - struct__ = nullptr; - } + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.struct__ != nullptr) _impl_.struct__->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +WKT::WKT(::google::protobuf::Arena* arena) + : ::google::protobuf::MessageLite(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:WKT) +} +inline PROTOBUF_NDEBUG_INLINE WKT::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +WKT::WKT( + ::google::protobuf::Arena* arena, + const WKT& from) + : ::google::protobuf::MessageLite(arena) { + WKT* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.struct__ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::MessageLite::CopyConstruct<::google::protobuf::Struct>( + arena, *from._impl_.struct__) + : nullptr; + // @@protoc_insertion_point(copy_constructor:WKT) } +inline PROTOBUF_NDEBUG_INLINE WKT::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} -void WKT::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_WKT_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - struct__ = nullptr; +inline void WKT::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.struct__ = {}; } - WKT::~WKT() { // @@protoc_insertion_point(destructor:WKT) + _internal_metadata_.Delete(); SharedDtor(); } - -void WKT::SharedDtor() { - if (this != internal_default_instance()) delete struct__; +inline void WKT::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.struct__; + _impl_.~Impl_(); } -void WKT::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WKT& WKT::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_WKT_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - return *internal_default_instance(); -} +const ::google::protobuf::MessageLite::ClassData* +WKT::GetClassData() const { + struct ClassData_ { + ::google::protobuf::MessageLite::ClassData header; + char type_name[4]; + }; + PROTOBUF_CONSTINIT static const ClassData_ _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(WKT, _impl_._cached_size_), + true, + }, + "WKT", + }; -void WKT::Clear() { + return &_data_.header; +} +PROTOBUF_NOINLINE void WKT::Clear() { // @@protoc_insertion_point(message_clear_start:WKT) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaNoVirtual() == nullptr && struct__ != nullptr) { - delete struct__; - } - struct__ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WKT::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .google.protobuf.Struct struct = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_struct_(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool WKT::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:WKT) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .google.protobuf.Struct struct = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_struct_())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.struct__ != nullptr); + _impl_.struct__->Clear(); } -success: - // @@protoc_insertion_point(parse_success:WKT) - return true; -failure: - // @@protoc_insertion_point(parse_failure:WKT) - return false; -#undef DO_ + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear(); } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void WKT::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:WKT) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; +const char* WKT::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> WKT::_table_ = { + { + PROTOBUF_FIELD_OFFSET(WKT, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_WKT_default_instance_._instance, + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::WKT>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .google.protobuf.Struct struct = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(WKT, _impl_.struct__)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .google.protobuf.Struct struct = 1; + {PROTOBUF_FIELD_OFFSET(WKT, _impl_.struct__), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, + }}, {{ + }}, +}; +::uint8_t* WKT::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:WKT) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct struct = 1; - if (this->has_struct_()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 1, _Internal::struct_(this), output); + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *_impl_.struct__, _impl_.struct__->GetCachedSize(), target, stream); } - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:WKT) + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:WKT) + return target; } -size_t WKT::ByteSizeLong() const { +::size_t WKT::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:WKT) - size_t total_size = 0; + ::size_t total_size = 0; - total_size += _internal_metadata_.unknown_fields().size(); - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .google.protobuf.Struct struct = 1; - if (this->has_struct_()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *struct__); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.struct__); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size(); + } + _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void WKT::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::_pbi::DownCast( &from)); } void WKT::MergeFrom(const WKT& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:WKT) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + WKT* const _this = this; + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:WKT) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.has_struct_()) { - mutable_struct_()->::google::protobuf::Struct::MergeFrom(from.struct_()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.struct__ != nullptr); + if (_this->_impl_.struct__ == nullptr) { + _this->_impl_.struct__ = + ::google::protobuf::MessageLite::CopyConstruct<::google::protobuf::Struct>(arena, *from._impl_.struct__); + } else { + _this->_impl_.struct__->MergeFrom(*from._impl_.struct__); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom(from._internal_metadata_); } void WKT::CopyFrom(const WKT& from) { @@ -587,352 +618,314 @@ void WKT::CopyFrom(const WKT& from) { MergeFrom(from); } -bool WKT::IsInitialized() const { +PROTOBUF_NOINLINE bool WKT::IsInitialized() const { return true; } -void WKT::InternalSwap(WKT* other) { +void WKT::InternalSwap(WKT* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(struct__, other->struct__); -} - -std::string WKT::GetTypeName() const { - return "WKT"; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.struct__, other->_impl_.struct__); } - // =================================================================== -void DataSource::InitAsDefaultInstance() { -} class DataSource::_Internal { public: + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::DataSource, _impl_._oneof_case_); }; -DataSource::DataSource() - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:DataSource) -} -DataSource::DataSource(const DataSource& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_specifier(); - switch (from.specifier_case()) { - case kFilename: { - set_filename(from.filename()); - break; - } - case kInlineBytes: { - set_inline_bytes(from.inline_bytes()); - break; - } - case kInlineString: { - set_inline_string(from.inline_string()); - break; - } - case SPECIFIER_NOT_SET: { +DataSource::DataSource(::google::protobuf::Arena* arena) + : ::google::protobuf::MessageLite(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:DataSource) +} +inline PROTOBUF_NDEBUG_INLINE DataSource::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : specifier_{}, + _cached_size_{0}, + _oneof_case_{from._oneof_case_[0]} {} + +DataSource::DataSource( + ::google::protobuf::Arena* arena, + const DataSource& from) + : ::google::protobuf::MessageLite(arena) { + DataSource* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + switch (specifier_case()) { + case SPECIFIER_NOT_SET: break; - } + case kFilename: + new (&_impl_.specifier_.filename_) decltype(_impl_.specifier_.filename_){arena, from._impl_.specifier_.filename_}; + break; + case kInlineBytes: + new (&_impl_.specifier_.inline_bytes_) decltype(_impl_.specifier_.inline_bytes_){arena, from._impl_.specifier_.inline_bytes_}; + break; + case kInlineString: + new (&_impl_.specifier_.inline_string_) decltype(_impl_.specifier_.inline_string_){arena, from._impl_.specifier_.inline_string_}; + break; } + // @@protoc_insertion_point(copy_constructor:DataSource) } +inline PROTOBUF_NDEBUG_INLINE DataSource::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : specifier_{}, + _cached_size_{0}, + _oneof_case_{} {} -void DataSource::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DataSource_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - clear_has_specifier(); +inline void DataSource::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - DataSource::~DataSource() { // @@protoc_insertion_point(destructor:DataSource) + _internal_metadata_.Delete(); SharedDtor(); } - -void DataSource::SharedDtor() { +inline void DataSource::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); if (has_specifier()) { clear_specifier(); } + _impl_.~Impl_(); } -void DataSource::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DataSource& DataSource::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DataSource_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - return *internal_default_instance(); -} - - void DataSource::clear_specifier() { // @@protoc_insertion_point(one_of_clear_start:DataSource) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (specifier_case()) { case kFilename: { - specifier_.filename_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.filename_.Destroy(); break; } case kInlineBytes: { - specifier_.inline_bytes_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.inline_bytes_.Destroy(); break; } case kInlineString: { - specifier_.inline_string_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.inline_string_.Destroy(); break; } case SPECIFIER_NOT_SET: { break; } } - _oneof_case_[0] = SPECIFIER_NOT_SET; + _impl_._oneof_case_[0] = SPECIFIER_NOT_SET; } -void DataSource::Clear() { +const ::google::protobuf::MessageLite::ClassData* +DataSource::GetClassData() const { + struct ClassData_ { + ::google::protobuf::MessageLite::ClassData header; + char type_name[11]; + }; + + PROTOBUF_CONSTINIT static const ClassData_ _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(DataSource, _impl_._cached_size_), + true, + }, + "DataSource", + }; + + return &_data_.header; +} +PROTOBUF_NOINLINE void DataSource::Clear() { // @@protoc_insertion_point(message_clear_start:DataSource) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; clear_specifier(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DataSource::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string filename = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_filename(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bytes inline_bytes = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_inline_bytes(), ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string inline_string = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_inline_string(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DataSource::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:DataSource) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string filename = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_filename())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->filename().data(), static_cast(this->filename().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "DataSource.filename")); - } else { - goto handle_unusual; - } - break; - } - - // bytes inline_bytes = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( - input, this->mutable_inline_bytes())); - } else { - goto handle_unusual; - } - break; - } - - // string inline_string = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_inline_string())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->inline_string().data(), static_cast(this->inline_string().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "DataSource.inline_string")); - } else { - goto handle_unusual; - } - break; - } + _internal_metadata_.Clear(); +} - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:DataSource) - return true; -failure: - // @@protoc_insertion_point(parse_failure:DataSource) - return false; -#undef DO_ +const char* DataSource::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void DataSource::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:DataSource) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - // string filename = 1; - if (has_filename()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->filename().data(), static_cast(this->filename().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "DataSource.filename"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->filename(), output); - } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 3, 0, 40, 2> DataSource::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 3, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_DataSource_default_instance_._instance, + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::DataSource>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // string filename = 1; + {PROTOBUF_FIELD_OFFSET(DataSource, _impl_.specifier_.filename_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // bytes inline_bytes = 2; + {PROTOBUF_FIELD_OFFSET(DataSource, _impl_.specifier_.inline_bytes_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)}, + // string inline_string = 3; + {PROTOBUF_FIELD_OFFSET(DataSource, _impl_.specifier_.inline_string_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\12\10\0\15\0\0\0\0" + "DataSource" + "filename" + "inline_string" + }}, +}; - // bytes inline_bytes = 2; - if (has_inline_bytes()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased( - 2, this->inline_bytes(), output); - } +::uint8_t* DataSource::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:DataSource) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - // string inline_string = 3; - if (has_inline_string()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->inline_string().data(), static_cast(this->inline_string().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "DataSource.inline_string"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->inline_string(), output); + switch (specifier_case()) { + case kFilename: { + const std::string& _s = this->_internal_filename(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "DataSource.filename"); + target = stream->WriteStringMaybeAliased(1, _s, target); + break; + } + case kInlineBytes: { + const std::string& _s = this->_internal_inline_bytes(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + break; + } + case kInlineString: { + const std::string& _s = this->_internal_inline_string(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "DataSource.inline_string"); + target = stream->WriteStringMaybeAliased(3, _s, target); + break; + } + default: + break; } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:DataSource) + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:DataSource) + return target; } -size_t DataSource::ByteSizeLong() const { +::size_t DataSource::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:DataSource) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; switch (specifier_case()) { // string filename = 1; case kFilename: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->filename()); + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_filename()); break; } // bytes inline_bytes = 2; case kInlineBytes: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->inline_bytes()); + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->_internal_inline_bytes()); break; } // string inline_string = 3; case kInlineString: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->inline_string()); + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_inline_string()); break; } case SPECIFIER_NOT_SET: { break; } } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size(); + } + _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void DataSource::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::_pbi::DownCast( &from)); } void DataSource::MergeFrom(const DataSource& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:DataSource) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + DataSource* const _this = this; + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:DataSource) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - switch (from.specifier_case()) { - case kFilename: { - set_filename(from.filename()); - break; - } - case kInlineBytes: { - set_inline_bytes(from.inline_bytes()); - break; - } - case kInlineString: { - set_inline_string(from.inline_string()); - break; + if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { + const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; + const bool oneof_needs_init = oneof_to_case != oneof_from_case; + if (oneof_needs_init) { + if (oneof_to_case != 0) { + _this->clear_specifier(); + } + _this->_impl_._oneof_case_[0] = oneof_from_case; } - case SPECIFIER_NOT_SET: { - break; + + switch (oneof_from_case) { + case kFilename: { + if (oneof_needs_init) { + _this->_impl_.specifier_.filename_.InitDefault(); + } + _this->_impl_.specifier_.filename_.Set(from._internal_filename(), arena); + break; + } + case kInlineBytes: { + if (oneof_needs_init) { + _this->_impl_.specifier_.inline_bytes_.InitDefault(); + } + _this->_impl_.specifier_.inline_bytes_.Set(from._internal_inline_bytes(), arena); + break; + } + case kInlineString: { + if (oneof_needs_init) { + _this->_impl_.specifier_.inline_string_.InitDefault(); + } + _this->_impl_.specifier_.inline_string_.Set(from._internal_inline_string(), arena); + break; + } + case SPECIFIER_NOT_SET: + break; } } + _this->_internal_metadata_.MergeFrom(from._internal_metadata_); } void DataSource::CopyFrom(const DataSource& from) { @@ -942,268 +935,225 @@ void DataSource::CopyFrom(const DataSource& from) { MergeFrom(from); } -bool DataSource::IsInitialized() const { +PROTOBUF_NOINLINE bool DataSource::IsInitialized() const { return true; } -void DataSource::InternalSwap(DataSource* other) { +void DataSource::InternalSwap(DataSource* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(specifier_, other->specifier_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -std::string DataSource::GetTypeName() const { - return "DataSource"; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.specifier_, other->_impl_.specifier_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } - // =================================================================== -void Any::InitAsDefaultInstance() { -} class Any::_Internal { public: }; -Any::Any() - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:Any) -} -Any::Any(const Any& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - type_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.type_url().empty()) { - type_url_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.type_url_); - } - value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.value().empty()) { - value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); - } +Any::Any(::google::protobuf::Arena* arena) + : ::google::protobuf::MessageLite(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:Any) +} +inline PROTOBUF_NDEBUG_INLINE Any::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : type_url_(arena, from.type_url_), + value_(arena, from.value_), + _cached_size_{0} {} + +Any::Any( + ::google::protobuf::Arena* arena, + const Any& from) + : ::google::protobuf::MessageLite(arena) { + Any* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + // @@protoc_insertion_point(copy_constructor:Any) } +inline PROTOBUF_NDEBUG_INLINE Any::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : type_url_(arena), + value_(arena), + _cached_size_{0} {} -void Any::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Any_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - type_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void Any::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - Any::~Any() { // @@protoc_insertion_point(destructor:Any) + _internal_metadata_.Delete(); SharedDtor(); } - -void Any::SharedDtor() { - type_url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void Any::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.type_url_.Destroy(); + _impl_.value_.Destroy(); + _impl_.~Impl_(); } -void Any::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Any& Any::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Any_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - return *internal_default_instance(); -} +const ::google::protobuf::MessageLite::ClassData* +Any::GetClassData() const { + struct ClassData_ { + ::google::protobuf::MessageLite::ClassData header; + char type_name[4]; + }; + PROTOBUF_CONSTINIT static const ClassData_ _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(Any, _impl_._cached_size_), + true, + }, + "Any", + }; -void Any::Clear() { + return &_data_.header; +} +PROTOBUF_NOINLINE void Any::Clear() { // @@protoc_insertion_point(message_clear_start:Any) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - type_url_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Any::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string type_url = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_type_url(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bytes value = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_value(), ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: + _impl_.type_url_.ClearToEmpty(); + _impl_.value_.ClearToEmpty(); + _internal_metadata_.Clear(); +} + +const char* Any::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Any::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:Any) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string type_url = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_type_url())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->type_url().data(), static_cast(this->type_url().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "Any.type_url")); - } else { - goto handle_unusual; - } - break; - } +} - // bytes value = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( - input, this->mutable_value())); - } else { - goto handle_unusual; - } - break; - } - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:Any) - return true; -failure: - // @@protoc_insertion_point(parse_failure:Any) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 20, 2> Any::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_Any_default_instance_._instance, + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Any>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // bytes value = 2; + {::_pbi::TcParser::FastBS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(Any, _impl_.value_)}}, + // string type_url = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(Any, _impl_.type_url_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string type_url = 1; + {PROTOBUF_FIELD_OFFSET(Any, _impl_.type_url_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // bytes value = 2; + {PROTOBUF_FIELD_OFFSET(Any, _impl_.value_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\3\10\0\0\0\0\0\0" + "Any" + "type_url" + }}, +}; -void Any::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:Any) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; +::uint8_t* Any::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:Any) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; // string type_url = 1; - if (this->type_url().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->type_url().data(), static_cast(this->type_url().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Any.type_url"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->type_url(), output); + if (!this->_internal_type_url().empty()) { + const std::string& _s = this->_internal_type_url(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Any.type_url"); + target = stream->WriteStringMaybeAliased(1, _s, target); } // bytes value = 2; - if (this->value().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased( - 2, this->value(), output); + if (!this->_internal_value().empty()) { + const std::string& _s = this->_internal_value(); + target = stream->WriteBytesMaybeAliased(2, _s, target); } - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:Any) + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:Any) + return target; } -size_t Any::ByteSizeLong() const { +::size_t Any::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Any) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string type_url = 1; - if (this->type_url().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->type_url()); + if (!this->_internal_type_url().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_type_url()); } // bytes value = 2; - if (this->value().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->value()); + if (!this->_internal_value().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->_internal_value()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size(); + } + _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void Any::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::_pbi::DownCast( &from)); } void Any::MergeFrom(const Any& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:Any) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + Any* const _this = this; + // @@protoc_insertion_point(class_specific_merge_from_start:Any) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.type_url().size() > 0) { - - type_url_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.type_url_); + if (!from._internal_type_url().empty()) { + _this->_internal_set_type_url(from._internal_type_url()); } - if (from.value().size() > 0) { - - value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); + if (!from._internal_value().empty()) { + _this->_internal_set_value(from._internal_value()); } + _this->_internal_metadata_.MergeFrom(from._internal_metadata_); } void Any::CopyFrom(const Any& from) { @@ -1213,228 +1163,202 @@ void Any::CopyFrom(const Any& from) { MergeFrom(from); } -bool Any::IsInitialized() const { +PROTOBUF_NOINLINE bool Any::IsInitialized() const { return true; } -void Any::InternalSwap(Any* other) { +void Any::InternalSwap(Any* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - type_url_.Swap(&other->type_url_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - value_.Swap(&other->value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -std::string Any::GetTypeName() const { - return "Any"; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_url_, &other->_impl_.type_url_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.value_, &other->_impl_.value_, arena); } - // =================================================================== -void GrpcService_EnvoyGrpc::InitAsDefaultInstance() { -} class GrpcService_EnvoyGrpc::_Internal { public: }; -GrpcService_EnvoyGrpc::GrpcService_EnvoyGrpc() - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.EnvoyGrpc) -} -GrpcService_EnvoyGrpc::GrpcService_EnvoyGrpc(const GrpcService_EnvoyGrpc& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - cluster_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.cluster_name().empty()) { - cluster_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.cluster_name_); - } +GrpcService_EnvoyGrpc::GrpcService_EnvoyGrpc(::google::protobuf::Arena* arena) + : ::google::protobuf::MessageLite(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService.EnvoyGrpc) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService_EnvoyGrpc::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : cluster_name_(arena, from.cluster_name_), + _cached_size_{0} {} + +GrpcService_EnvoyGrpc::GrpcService_EnvoyGrpc( + ::google::protobuf::Arena* arena, + const GrpcService_EnvoyGrpc& from) + : ::google::protobuf::MessageLite(arena) { + GrpcService_EnvoyGrpc* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + // @@protoc_insertion_point(copy_constructor:GrpcService.EnvoyGrpc) } +inline PROTOBUF_NDEBUG_INLINE GrpcService_EnvoyGrpc::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : cluster_name_(arena), + _cached_size_{0} {} -void GrpcService_EnvoyGrpc::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_EnvoyGrpc_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - cluster_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void GrpcService_EnvoyGrpc::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - GrpcService_EnvoyGrpc::~GrpcService_EnvoyGrpc() { // @@protoc_insertion_point(destructor:GrpcService.EnvoyGrpc) + _internal_metadata_.Delete(); SharedDtor(); } - -void GrpcService_EnvoyGrpc::SharedDtor() { - cluster_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void GrpcService_EnvoyGrpc::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.cluster_name_.Destroy(); + _impl_.~Impl_(); } -void GrpcService_EnvoyGrpc::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_EnvoyGrpc& GrpcService_EnvoyGrpc::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_EnvoyGrpc_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - return *internal_default_instance(); -} +const ::google::protobuf::MessageLite::ClassData* +GrpcService_EnvoyGrpc::GetClassData() const { + struct ClassData_ { + ::google::protobuf::MessageLite::ClassData header; + char type_name[22]; + }; + PROTOBUF_CONSTINIT static const ClassData_ _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService_EnvoyGrpc, _impl_._cached_size_), + true, + }, + "GrpcService.EnvoyGrpc", + }; -void GrpcService_EnvoyGrpc::Clear() { + return &_data_.header; +} +PROTOBUF_NOINLINE void GrpcService_EnvoyGrpc::Clear() { // @@protoc_insertion_point(message_clear_start:GrpcService.EnvoyGrpc) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cluster_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_EnvoyGrpc::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string cluster_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_cluster_name(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_EnvoyGrpc::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GrpcService.EnvoyGrpc) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string cluster_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_cluster_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->cluster_name().data(), static_cast(this->cluster_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.EnvoyGrpc.cluster_name")); - } else { - goto handle_unusual; - } - break; - } + _impl_.cluster_name_.ClearToEmpty(); + _internal_metadata_.Clear(); +} - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.EnvoyGrpc) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.EnvoyGrpc) - return false; -#undef DO_ +const char* GrpcService_EnvoyGrpc::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void GrpcService_EnvoyGrpc::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.EnvoyGrpc) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 42, 2> GrpcService_EnvoyGrpc::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GrpcService_EnvoyGrpc_default_instance_._instance, + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService_EnvoyGrpc>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string cluster_name = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_EnvoyGrpc, _impl_.cluster_name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string cluster_name = 1; + {PROTOBUF_FIELD_OFFSET(GrpcService_EnvoyGrpc, _impl_.cluster_name_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\25\14\0\0\0\0\0\0" + "GrpcService.EnvoyGrpc" + "cluster_name" + }}, +}; + +::uint8_t* GrpcService_EnvoyGrpc::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GrpcService.EnvoyGrpc) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; // string cluster_name = 1; - if (this->cluster_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->cluster_name().data(), static_cast(this->cluster_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.EnvoyGrpc.cluster_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->cluster_name(), output); + if (!this->_internal_cluster_name().empty()) { + const std::string& _s = this->_internal_cluster_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.EnvoyGrpc.cluster_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); } - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService.EnvoyGrpc) + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GrpcService.EnvoyGrpc) + return target; } -size_t GrpcService_EnvoyGrpc::ByteSizeLong() const { +::size_t GrpcService_EnvoyGrpc::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GrpcService.EnvoyGrpc) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string cluster_name = 1; - if (this->cluster_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->cluster_name()); + if (!this->_internal_cluster_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_cluster_name()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size(); + } + _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void GrpcService_EnvoyGrpc::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::_pbi::DownCast( &from)); } void GrpcService_EnvoyGrpc::MergeFrom(const GrpcService_EnvoyGrpc& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.EnvoyGrpc) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + GrpcService_EnvoyGrpc* const _this = this; + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.EnvoyGrpc) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.cluster_name().size() > 0) { - - cluster_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.cluster_name_); + if (!from._internal_cluster_name().empty()) { + _this->_internal_set_cluster_name(from._internal_cluster_name()); } + _this->_internal_metadata_.MergeFrom(from._internal_metadata_); } void GrpcService_EnvoyGrpc::CopyFrom(const GrpcService_EnvoyGrpc& from) { @@ -1444,332 +1368,303 @@ void GrpcService_EnvoyGrpc::CopyFrom(const GrpcService_EnvoyGrpc& from) { MergeFrom(from); } -bool GrpcService_EnvoyGrpc::IsInitialized() const { +PROTOBUF_NOINLINE bool GrpcService_EnvoyGrpc::IsInitialized() const { return true; } -void GrpcService_EnvoyGrpc::InternalSwap(GrpcService_EnvoyGrpc* other) { +void GrpcService_EnvoyGrpc::InternalSwap(GrpcService_EnvoyGrpc* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - cluster_name_.Swap(&other->cluster_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cluster_name_, &other->_impl_.cluster_name_, arena); } -std::string GrpcService_EnvoyGrpc::GetTypeName() const { - return "GrpcService.EnvoyGrpc"; -} - - // =================================================================== -void GrpcService_GoogleGrpc_SslCredentials::InitAsDefaultInstance() { - ::_GrpcService_GoogleGrpc_SslCredentials_default_instance_._instance.get_mutable()->root_certs_ = const_cast< ::DataSource*>( - ::DataSource::internal_default_instance()); - ::_GrpcService_GoogleGrpc_SslCredentials_default_instance_._instance.get_mutable()->private_key_ = const_cast< ::DataSource*>( - ::DataSource::internal_default_instance()); - ::_GrpcService_GoogleGrpc_SslCredentials_default_instance_._instance.get_mutable()->cert_chain_ = const_cast< ::DataSource*>( - ::DataSource::internal_default_instance()); -} class GrpcService_GoogleGrpc_SslCredentials::_Internal { public: - static const ::DataSource& root_certs(const GrpcService_GoogleGrpc_SslCredentials* msg); - static const ::DataSource& private_key(const GrpcService_GoogleGrpc_SslCredentials* msg); - static const ::DataSource& cert_chain(const GrpcService_GoogleGrpc_SslCredentials* msg); + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_._has_bits_); }; -const ::DataSource& -GrpcService_GoogleGrpc_SslCredentials::_Internal::root_certs(const GrpcService_GoogleGrpc_SslCredentials* msg) { - return *msg->root_certs_; -} -const ::DataSource& -GrpcService_GoogleGrpc_SslCredentials::_Internal::private_key(const GrpcService_GoogleGrpc_SslCredentials* msg) { - return *msg->private_key_; -} -const ::DataSource& -GrpcService_GoogleGrpc_SslCredentials::_Internal::cert_chain(const GrpcService_GoogleGrpc_SslCredentials* msg) { - return *msg->cert_chain_; -} -GrpcService_GoogleGrpc_SslCredentials::GrpcService_GoogleGrpc_SslCredentials() - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.GoogleGrpc.SslCredentials) -} -GrpcService_GoogleGrpc_SslCredentials::GrpcService_GoogleGrpc_SslCredentials(const GrpcService_GoogleGrpc_SslCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_root_certs()) { - root_certs_ = new ::DataSource(*from.root_certs_); - } else { - root_certs_ = nullptr; - } - if (from.has_private_key()) { - private_key_ = new ::DataSource(*from.private_key_); - } else { - private_key_ = nullptr; - } - if (from.has_cert_chain()) { - cert_chain_ = new ::DataSource(*from.cert_chain_); - } else { - cert_chain_ = nullptr; - } +GrpcService_GoogleGrpc_SslCredentials::GrpcService_GoogleGrpc_SslCredentials(::google::protobuf::Arena* arena) + : ::google::protobuf::MessageLite(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.SslCredentials) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_SslCredentials::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +GrpcService_GoogleGrpc_SslCredentials::GrpcService_GoogleGrpc_SslCredentials( + ::google::protobuf::Arena* arena, + const GrpcService_GoogleGrpc_SslCredentials& from) + : ::google::protobuf::MessageLite(arena) { + GrpcService_GoogleGrpc_SslCredentials* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.root_certs_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::MessageLite::CopyConstruct<::DataSource>( + arena, *from._impl_.root_certs_) + : nullptr; + _impl_.private_key_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::MessageLite::CopyConstruct<::DataSource>( + arena, *from._impl_.private_key_) + : nullptr; + _impl_.cert_chain_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::MessageLite::CopyConstruct<::DataSource>( + arena, *from._impl_.cert_chain_) + : nullptr; + // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.SslCredentials) } +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_SslCredentials::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} -void GrpcService_GoogleGrpc_SslCredentials::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_GoogleGrpc_SslCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - ::memset(&root_certs_, 0, static_cast( - reinterpret_cast(&cert_chain_) - - reinterpret_cast(&root_certs_)) + sizeof(cert_chain_)); +inline void GrpcService_GoogleGrpc_SslCredentials::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, root_certs_), + 0, + offsetof(Impl_, cert_chain_) - + offsetof(Impl_, root_certs_) + + sizeof(Impl_::cert_chain_)); } - GrpcService_GoogleGrpc_SslCredentials::~GrpcService_GoogleGrpc_SslCredentials() { // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.SslCredentials) + _internal_metadata_.Delete(); SharedDtor(); } - -void GrpcService_GoogleGrpc_SslCredentials::SharedDtor() { - if (this != internal_default_instance()) delete root_certs_; - if (this != internal_default_instance()) delete private_key_; - if (this != internal_default_instance()) delete cert_chain_; -} - -void GrpcService_GoogleGrpc_SslCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_GoogleGrpc_SslCredentials& GrpcService_GoogleGrpc_SslCredentials::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_GoogleGrpc_SslCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - return *internal_default_instance(); -} - - -void GrpcService_GoogleGrpc_SslCredentials::Clear() { +inline void GrpcService_GoogleGrpc_SslCredentials::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.root_certs_; + delete _impl_.private_key_; + delete _impl_.cert_chain_; + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +GrpcService_GoogleGrpc_SslCredentials::GetClassData() const { + struct ClassData_ { + ::google::protobuf::MessageLite::ClassData header; + char type_name[38]; + }; + + PROTOBUF_CONSTINIT static const ClassData_ _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_._cached_size_), + true, + }, + "GrpcService.GoogleGrpc.SslCredentials", + }; + + return &_data_.header; +} +PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_SslCredentials::Clear() { // @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.SslCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaNoVirtual() == nullptr && root_certs_ != nullptr) { - delete root_certs_; - } - root_certs_ = nullptr; - if (GetArenaNoVirtual() == nullptr && private_key_ != nullptr) { - delete private_key_; - } - private_key_ = nullptr; - if (GetArenaNoVirtual() == nullptr && cert_chain_ != nullptr) { - delete cert_chain_; - } - cert_chain_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_GoogleGrpc_SslCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .DataSource root_certs = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_root_certs(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .DataSource private_key = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(mutable_private_key(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .DataSource cert_chain = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ctx->ParseMessage(mutable_cert_chain(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_GoogleGrpc_SslCredentials::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GrpcService.GoogleGrpc.SslCredentials) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .DataSource root_certs = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_root_certs())); - } else { - goto handle_unusual; - } - break; - } - - // .DataSource private_key = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_private_key())); - } else { - goto handle_unusual; - } - break; - } - - // .DataSource cert_chain = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_cert_chain())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.root_certs_ != nullptr); + _impl_.root_certs_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.private_key_ != nullptr); + _impl_.private_key_->Clear(); + } + if (cached_has_bits & 0x00000004u) { + ABSL_DCHECK(_impl_.cert_chain_ != nullptr); + _impl_.cert_chain_->Clear(); } } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc.SslCredentials) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.GoogleGrpc.SslCredentials) - return false; -#undef DO_ + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear(); } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void GrpcService_GoogleGrpc_SslCredentials::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.GoogleGrpc.SslCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; +const char* GrpcService_GoogleGrpc_SslCredentials::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 3, 0, 2> GrpcService_GoogleGrpc_SslCredentials::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_GrpcService_GoogleGrpc_SslCredentials_default_instance_._instance, + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_SslCredentials>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // .DataSource root_certs = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.root_certs_)}}, + // .DataSource private_key = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 1, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.private_key_)}}, + // .DataSource cert_chain = 3; + {::_pbi::TcParser::FastMtS1, + {26, 2, 2, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.cert_chain_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .DataSource root_certs = 1; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.root_certs_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .DataSource private_key = 2; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.private_key_), _Internal::kHasBitsOffset + 1, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .DataSource cert_chain = 3; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.cert_chain_), _Internal::kHasBitsOffset + 2, 2, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::DataSource>()}, + {::_pbi::TcParser::GetTable<::DataSource>()}, + {::_pbi::TcParser::GetTable<::DataSource>()}, + }}, {{ + }}, +}; + +::uint8_t* GrpcService_GoogleGrpc_SslCredentials::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.SslCredentials) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .DataSource root_certs = 1; - if (this->has_root_certs()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 1, _Internal::root_certs(this), output); + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *_impl_.root_certs_, _impl_.root_certs_->GetCachedSize(), target, stream); } // .DataSource private_key = 2; - if (this->has_private_key()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 2, _Internal::private_key(this), output); + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *_impl_.private_key_, _impl_.private_key_->GetCachedSize(), target, stream); } // .DataSource cert_chain = 3; - if (this->has_cert_chain()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 3, _Internal::cert_chain(this), output); + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *_impl_.cert_chain_, _impl_.cert_chain_->GetCachedSize(), target, stream); } - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.SslCredentials) + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.SslCredentials) + return target; } -size_t GrpcService_GoogleGrpc_SslCredentials::ByteSizeLong() const { +::size_t GrpcService_GoogleGrpc_SslCredentials::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.SslCredentials) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .DataSource root_certs = 1; - if (this->has_root_certs()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *root_certs_); - } + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + // .DataSource root_certs = 1; + if (cached_has_bits & 0x00000001u) { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.root_certs_); + } - // .DataSource private_key = 2; - if (this->has_private_key()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *private_key_); - } + // .DataSource private_key = 2; + if (cached_has_bits & 0x00000002u) { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.private_key_); + } - // .DataSource cert_chain = 3; - if (this->has_cert_chain()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *cert_chain_); - } + // .DataSource cert_chain = 3; + if (cached_has_bits & 0x00000004u) { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.cert_chain_); + } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size(); + } + _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void GrpcService_GoogleGrpc_SslCredentials::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::_pbi::DownCast( &from)); } void GrpcService_GoogleGrpc_SslCredentials::MergeFrom(const GrpcService_GoogleGrpc_SslCredentials& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.SslCredentials) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + GrpcService_GoogleGrpc_SslCredentials* const _this = this; + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.SslCredentials) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.has_root_certs()) { - mutable_root_certs()->::DataSource::MergeFrom(from.root_certs()); - } - if (from.has_private_key()) { - mutable_private_key()->::DataSource::MergeFrom(from.private_key()); - } - if (from.has_cert_chain()) { - mutable_cert_chain()->::DataSource::MergeFrom(from.cert_chain()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.root_certs_ != nullptr); + if (_this->_impl_.root_certs_ == nullptr) { + _this->_impl_.root_certs_ = + ::google::protobuf::MessageLite::CopyConstruct<::DataSource>(arena, *from._impl_.root_certs_); + } else { + _this->_impl_.root_certs_->MergeFrom(*from._impl_.root_certs_); + } + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(from._impl_.private_key_ != nullptr); + if (_this->_impl_.private_key_ == nullptr) { + _this->_impl_.private_key_ = + ::google::protobuf::MessageLite::CopyConstruct<::DataSource>(arena, *from._impl_.private_key_); + } else { + _this->_impl_.private_key_->MergeFrom(*from._impl_.private_key_); + } + } + if (cached_has_bits & 0x00000004u) { + ABSL_DCHECK(from._impl_.cert_chain_ != nullptr); + if (_this->_impl_.cert_chain_ == nullptr) { + _this->_impl_.cert_chain_ = + ::google::protobuf::MessageLite::CopyConstruct<::DataSource>(arena, *from._impl_.cert_chain_); + } else { + _this->_impl_.cert_chain_->MergeFrom(*from._impl_.cert_chain_); + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom(from._internal_metadata_); } void GrpcService_GoogleGrpc_SslCredentials::CopyFrom(const GrpcService_GoogleGrpc_SslCredentials& from) { @@ -1779,170 +1674,163 @@ void GrpcService_GoogleGrpc_SslCredentials::CopyFrom(const GrpcService_GoogleGrp MergeFrom(from); } -bool GrpcService_GoogleGrpc_SslCredentials::IsInitialized() const { +PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_SslCredentials::IsInitialized() const { return true; } -void GrpcService_GoogleGrpc_SslCredentials::InternalSwap(GrpcService_GoogleGrpc_SslCredentials* other) { +void GrpcService_GoogleGrpc_SslCredentials::InternalSwap(GrpcService_GoogleGrpc_SslCredentials* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(root_certs_, other->root_certs_); - swap(private_key_, other->private_key_); - swap(cert_chain_, other->cert_chain_); -} - -std::string GrpcService_GoogleGrpc_SslCredentials::GetTypeName() const { - return "GrpcService.GoogleGrpc.SslCredentials"; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.cert_chain_) + + sizeof(GrpcService_GoogleGrpc_SslCredentials::_impl_.cert_chain_) + - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.root_certs_)>( + reinterpret_cast(&_impl_.root_certs_), + reinterpret_cast(&other->_impl_.root_certs_)); } - // =================================================================== -void GrpcService_GoogleGrpc_GoogleLocalCredentials::InitAsDefaultInstance() { -} class GrpcService_GoogleGrpc_GoogleLocalCredentials::_Internal { public: }; -GrpcService_GoogleGrpc_GoogleLocalCredentials::GrpcService_GoogleGrpc_GoogleLocalCredentials() - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.GoogleGrpc.GoogleLocalCredentials) +GrpcService_GoogleGrpc_GoogleLocalCredentials::GrpcService_GoogleGrpc_GoogleLocalCredentials(::google::protobuf::Arena* arena) + : ::google::protobuf::MessageLite(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.GoogleLocalCredentials) } -GrpcService_GoogleGrpc_GoogleLocalCredentials::GrpcService_GoogleGrpc_GoogleLocalCredentials(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.GoogleLocalCredentials) +GrpcService_GoogleGrpc_GoogleLocalCredentials::GrpcService_GoogleGrpc_GoogleLocalCredentials( + ::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) + : GrpcService_GoogleGrpc_GoogleLocalCredentials(arena) { + MergeFrom(from); } +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_GoogleLocalCredentials::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} -void GrpcService_GoogleGrpc_GoogleLocalCredentials::SharedCtor() { +inline void GrpcService_GoogleGrpc_GoogleLocalCredentials::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - GrpcService_GoogleGrpc_GoogleLocalCredentials::~GrpcService_GoogleGrpc_GoogleLocalCredentials() { // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.GoogleLocalCredentials) + _internal_metadata_.Delete(); SharedDtor(); } - -void GrpcService_GoogleGrpc_GoogleLocalCredentials::SharedDtor() { +inline void GrpcService_GoogleGrpc_GoogleLocalCredentials::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void GrpcService_GoogleGrpc_GoogleLocalCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_GoogleGrpc_GoogleLocalCredentials& GrpcService_GoogleGrpc_GoogleLocalCredentials::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_GoogleGrpc_GoogleLocalCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - return *internal_default_instance(); -} +const ::google::protobuf::MessageLite::ClassData* +GrpcService_GoogleGrpc_GoogleLocalCredentials::GetClassData() const { + struct ClassData_ { + ::google::protobuf::MessageLite::ClassData header; + char type_name[46]; + }; + PROTOBUF_CONSTINIT static const ClassData_ _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_GoogleLocalCredentials, _impl_._cached_size_), + true, + }, + "GrpcService.GoogleGrpc.GoogleLocalCredentials", + }; -void GrpcService_GoogleGrpc_GoogleLocalCredentials::Clear() { + return &_data_.header; +} +PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_GoogleLocalCredentials::Clear() { // @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.GoogleLocalCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_GoogleGrpc_GoogleLocalCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - default: { - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: + _internal_metadata_.Clear(); +} + +const char* GrpcService_GoogleGrpc_GoogleLocalCredentials::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_GoogleGrpc_GoogleLocalCredentials::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GrpcService.GoogleGrpc.GoogleLocalCredentials) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc.GoogleLocalCredentials) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.GoogleGrpc.GoogleLocalCredentials) - return false; -#undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void GrpcService_GoogleGrpc_GoogleLocalCredentials::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.GoogleGrpc.GoogleLocalCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.GoogleLocalCredentials) +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> GrpcService_GoogleGrpc_GoogleLocalCredentials::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_._instance, + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_GoogleLocalCredentials>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; + +::uint8_t* GrpcService_GoogleGrpc_GoogleLocalCredentials::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.GoogleLocalCredentials) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.GoogleLocalCredentials) + return target; } -size_t GrpcService_GoogleGrpc_GoogleLocalCredentials::ByteSizeLong() const { +::size_t GrpcService_GoogleGrpc_GoogleLocalCredentials::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.GoogleLocalCredentials) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size(); + } + _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void GrpcService_GoogleGrpc_GoogleLocalCredentials::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::_pbi::DownCast( &from)); } void GrpcService_GoogleGrpc_GoogleLocalCredentials::MergeFrom(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.GoogleLocalCredentials) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + GrpcService_GoogleGrpc_GoogleLocalCredentials* const _this = this; + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.GoogleLocalCredentials) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + _this->_internal_metadata_.MergeFrom(from._internal_metadata_); } void GrpcService_GoogleGrpc_GoogleLocalCredentials::CopyFrom(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) { @@ -1952,167 +1840,156 @@ void GrpcService_GoogleGrpc_GoogleLocalCredentials::CopyFrom(const GrpcService_G MergeFrom(from); } -bool GrpcService_GoogleGrpc_GoogleLocalCredentials::IsInitialized() const { +PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_GoogleLocalCredentials::IsInitialized() const { return true; } -void GrpcService_GoogleGrpc_GoogleLocalCredentials::InternalSwap(GrpcService_GoogleGrpc_GoogleLocalCredentials* other) { +void GrpcService_GoogleGrpc_GoogleLocalCredentials::InternalSwap(GrpcService_GoogleGrpc_GoogleLocalCredentials* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -std::string GrpcService_GoogleGrpc_GoogleLocalCredentials::GetTypeName() const { - return "GrpcService.GoogleGrpc.GoogleLocalCredentials"; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); } - // =================================================================== -void GrpcService_GoogleGrpc_Empty::InitAsDefaultInstance() { -} class GrpcService_GoogleGrpc_Empty::_Internal { public: }; -GrpcService_GoogleGrpc_Empty::GrpcService_GoogleGrpc_Empty() - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.GoogleGrpc.Empty) +GrpcService_GoogleGrpc_Empty::GrpcService_GoogleGrpc_Empty(::google::protobuf::Arena* arena) + : ::google::protobuf::MessageLite(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.Empty) } -GrpcService_GoogleGrpc_Empty::GrpcService_GoogleGrpc_Empty(const GrpcService_GoogleGrpc_Empty& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.Empty) +GrpcService_GoogleGrpc_Empty::GrpcService_GoogleGrpc_Empty( + ::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_Empty& from) + : GrpcService_GoogleGrpc_Empty(arena) { + MergeFrom(from); } +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_Empty::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} -void GrpcService_GoogleGrpc_Empty::SharedCtor() { +inline void GrpcService_GoogleGrpc_Empty::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - GrpcService_GoogleGrpc_Empty::~GrpcService_GoogleGrpc_Empty() { // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.Empty) + _internal_metadata_.Delete(); SharedDtor(); } - -void GrpcService_GoogleGrpc_Empty::SharedDtor() { +inline void GrpcService_GoogleGrpc_Empty::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void GrpcService_GoogleGrpc_Empty::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_GoogleGrpc_Empty& GrpcService_GoogleGrpc_Empty::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_GoogleGrpc_Empty_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - return *internal_default_instance(); -} +const ::google::protobuf::MessageLite::ClassData* +GrpcService_GoogleGrpc_Empty::GetClassData() const { + struct ClassData_ { + ::google::protobuf::MessageLite::ClassData header; + char type_name[29]; + }; + PROTOBUF_CONSTINIT static const ClassData_ _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_Empty, _impl_._cached_size_), + true, + }, + "GrpcService.GoogleGrpc.Empty", + }; -void GrpcService_GoogleGrpc_Empty::Clear() { + return &_data_.header; +} +PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_Empty::Clear() { // @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.Empty) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_GoogleGrpc_Empty::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - default: { - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: + _internal_metadata_.Clear(); +} + +const char* GrpcService_GoogleGrpc_Empty::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_GoogleGrpc_Empty::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GrpcService.GoogleGrpc.Empty) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc.Empty) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.GoogleGrpc.Empty) - return false; -#undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void GrpcService_GoogleGrpc_Empty::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.GoogleGrpc.Empty) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.Empty) +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> GrpcService_GoogleGrpc_Empty::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GrpcService_GoogleGrpc_Empty_default_instance_._instance, + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_Empty>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; + +::uint8_t* GrpcService_GoogleGrpc_Empty::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.Empty) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.Empty) + return target; } -size_t GrpcService_GoogleGrpc_Empty::ByteSizeLong() const { +::size_t GrpcService_GoogleGrpc_Empty::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.Empty) - size_t total_size = 0; + ::size_t total_size = 0; - total_size += _internal_metadata_.unknown_fields().size(); - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size(); + } + _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void GrpcService_GoogleGrpc_Empty::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::_pbi::DownCast( &from)); } void GrpcService_GoogleGrpc_Empty::MergeFrom(const GrpcService_GoogleGrpc_Empty& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.Empty) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + GrpcService_GoogleGrpc_Empty* const _this = this; + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.Empty) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + _this->_internal_metadata_.MergeFrom(from._internal_metadata_); } void GrpcService_GoogleGrpc_Empty::CopyFrom(const GrpcService_GoogleGrpc_Empty& from) { @@ -2122,392 +1999,357 @@ void GrpcService_GoogleGrpc_Empty::CopyFrom(const GrpcService_GoogleGrpc_Empty& MergeFrom(from); } -bool GrpcService_GoogleGrpc_Empty::IsInitialized() const { +PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_Empty::IsInitialized() const { return true; } -void GrpcService_GoogleGrpc_Empty::InternalSwap(GrpcService_GoogleGrpc_Empty* other) { +void GrpcService_GoogleGrpc_Empty::InternalSwap(GrpcService_GoogleGrpc_Empty* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string GrpcService_GoogleGrpc_Empty::GetTypeName() const { - return "GrpcService.GoogleGrpc.Empty"; -} - - // =================================================================== -void GrpcService_GoogleGrpc_ChannelCredentials::InitAsDefaultInstance() { -} class GrpcService_GoogleGrpc_ChannelCredentials::_Internal { public: - static const ::GrpcService_GoogleGrpc_SslCredentials& ssl_credentials(const GrpcService_GoogleGrpc_ChannelCredentials* msg); - static const ::GrpcService_GoogleGrpc_Empty& google_default(const GrpcService_GoogleGrpc_ChannelCredentials* msg); - static const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& local_credentials(const GrpcService_GoogleGrpc_ChannelCredentials* msg); + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_ChannelCredentials, _impl_._oneof_case_); }; -const ::GrpcService_GoogleGrpc_SslCredentials& -GrpcService_GoogleGrpc_ChannelCredentials::_Internal::ssl_credentials(const GrpcService_GoogleGrpc_ChannelCredentials* msg) { - return *msg->credential_specifier_.ssl_credentials_; -} -const ::GrpcService_GoogleGrpc_Empty& -GrpcService_GoogleGrpc_ChannelCredentials::_Internal::google_default(const GrpcService_GoogleGrpc_ChannelCredentials* msg) { - return *msg->credential_specifier_.google_default_; -} -const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& -GrpcService_GoogleGrpc_ChannelCredentials::_Internal::local_credentials(const GrpcService_GoogleGrpc_ChannelCredentials* msg) { - return *msg->credential_specifier_.local_credentials_; -} void GrpcService_GoogleGrpc_ChannelCredentials::set_allocated_ssl_credentials(::GrpcService_GoogleGrpc_SslCredentials* ssl_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_credential_specifier(); if (ssl_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = ssl_credentials->GetArena(); if (message_arena != submessage_arena) { - ssl_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, ssl_credentials, submessage_arena); + ssl_credentials = ::google::protobuf::internal::GetOwnedMessage(message_arena, ssl_credentials, submessage_arena); } set_has_ssl_credentials(); - credential_specifier_.ssl_credentials_ = ssl_credentials; + _impl_.credential_specifier_.ssl_credentials_ = ssl_credentials; } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) } void GrpcService_GoogleGrpc_ChannelCredentials::set_allocated_google_default(::GrpcService_GoogleGrpc_Empty* google_default) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_credential_specifier(); if (google_default) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = google_default->GetArena(); if (message_arena != submessage_arena) { - google_default = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, google_default, submessage_arena); + google_default = ::google::protobuf::internal::GetOwnedMessage(message_arena, google_default, submessage_arena); } set_has_google_default(); - credential_specifier_.google_default_ = google_default; + _impl_.credential_specifier_.google_default_ = google_default; } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.google_default) } void GrpcService_GoogleGrpc_ChannelCredentials::set_allocated_local_credentials(::GrpcService_GoogleGrpc_GoogleLocalCredentials* local_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_credential_specifier(); if (local_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = local_credentials->GetArena(); if (message_arena != submessage_arena) { - local_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, local_credentials, submessage_arena); + local_credentials = ::google::protobuf::internal::GetOwnedMessage(message_arena, local_credentials, submessage_arena); } set_has_local_credentials(); - credential_specifier_.local_credentials_ = local_credentials; + _impl_.credential_specifier_.local_credentials_ = local_credentials; } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) } -GrpcService_GoogleGrpc_ChannelCredentials::GrpcService_GoogleGrpc_ChannelCredentials() - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.GoogleGrpc.ChannelCredentials) -} -GrpcService_GoogleGrpc_ChannelCredentials::GrpcService_GoogleGrpc_ChannelCredentials(const GrpcService_GoogleGrpc_ChannelCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_credential_specifier(); - switch (from.credential_specifier_case()) { - case kSslCredentials: { - mutable_ssl_credentials()->::GrpcService_GoogleGrpc_SslCredentials::MergeFrom(from.ssl_credentials()); - break; - } - case kGoogleDefault: { - mutable_google_default()->::GrpcService_GoogleGrpc_Empty::MergeFrom(from.google_default()); - break; - } - case kLocalCredentials: { - mutable_local_credentials()->::GrpcService_GoogleGrpc_GoogleLocalCredentials::MergeFrom(from.local_credentials()); - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { +GrpcService_GoogleGrpc_ChannelCredentials::GrpcService_GoogleGrpc_ChannelCredentials(::google::protobuf::Arena* arena) + : ::google::protobuf::MessageLite(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.ChannelCredentials) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_ChannelCredentials::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : credential_specifier_{}, + _cached_size_{0}, + _oneof_case_{from._oneof_case_[0]} {} + +GrpcService_GoogleGrpc_ChannelCredentials::GrpcService_GoogleGrpc_ChannelCredentials( + ::google::protobuf::Arena* arena, + const GrpcService_GoogleGrpc_ChannelCredentials& from) + : ::google::protobuf::MessageLite(arena) { + GrpcService_GoogleGrpc_ChannelCredentials* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + switch (credential_specifier_case()) { + case CREDENTIAL_SPECIFIER_NOT_SET: break; - } + case kSslCredentials: + _impl_.credential_specifier_.ssl_credentials_ = ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_SslCredentials>(arena, *from._impl_.credential_specifier_.ssl_credentials_); + break; + case kGoogleDefault: + _impl_.credential_specifier_.google_default_ = ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_Empty>(arena, *from._impl_.credential_specifier_.google_default_); + break; + case kLocalCredentials: + _impl_.credential_specifier_.local_credentials_ = ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_GoogleLocalCredentials>(arena, *from._impl_.credential_specifier_.local_credentials_); + break; } + // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.ChannelCredentials) } +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_ChannelCredentials::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : credential_specifier_{}, + _cached_size_{0}, + _oneof_case_{} {} -void GrpcService_GoogleGrpc_ChannelCredentials::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_GoogleGrpc_ChannelCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - clear_has_credential_specifier(); +inline void GrpcService_GoogleGrpc_ChannelCredentials::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - GrpcService_GoogleGrpc_ChannelCredentials::~GrpcService_GoogleGrpc_ChannelCredentials() { // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.ChannelCredentials) + _internal_metadata_.Delete(); SharedDtor(); } - -void GrpcService_GoogleGrpc_ChannelCredentials::SharedDtor() { +inline void GrpcService_GoogleGrpc_ChannelCredentials::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); if (has_credential_specifier()) { clear_credential_specifier(); } + _impl_.~Impl_(); } -void GrpcService_GoogleGrpc_ChannelCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_GoogleGrpc_ChannelCredentials& GrpcService_GoogleGrpc_ChannelCredentials::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_GoogleGrpc_ChannelCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - return *internal_default_instance(); -} - - void GrpcService_GoogleGrpc_ChannelCredentials::clear_credential_specifier() { // @@protoc_insertion_point(one_of_clear_start:GrpcService.GoogleGrpc.ChannelCredentials) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (credential_specifier_case()) { case kSslCredentials: { - delete credential_specifier_.ssl_credentials_; + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.ssl_credentials_; + } break; } case kGoogleDefault: { - delete credential_specifier_.google_default_; + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.google_default_; + } break; } case kLocalCredentials: { - delete credential_specifier_.local_credentials_; + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.local_credentials_; + } break; } case CREDENTIAL_SPECIFIER_NOT_SET: { break; } } - _oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; + _impl_._oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; } -void GrpcService_GoogleGrpc_ChannelCredentials::Clear() { +const ::google::protobuf::MessageLite::ClassData* +GrpcService_GoogleGrpc_ChannelCredentials::GetClassData() const { + struct ClassData_ { + ::google::protobuf::MessageLite::ClassData header; + char type_name[42]; + }; + + PROTOBUF_CONSTINIT static const ClassData_ _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_ChannelCredentials, _impl_._cached_size_), + true, + }, + "GrpcService.GoogleGrpc.ChannelCredentials", + }; + + return &_data_.header; +} +PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_ChannelCredentials::Clear() { // @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.ChannelCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; clear_credential_specifier(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_GoogleGrpc_ChannelCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_ssl_credentials(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .GrpcService.GoogleGrpc.Empty google_default = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(mutable_google_default(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ctx->ParseMessage(mutable_local_credentials(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_GoogleGrpc_ChannelCredentials::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GrpcService.GoogleGrpc.ChannelCredentials) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_ssl_credentials())); - } else { - goto handle_unusual; - } - break; - } - - // .GrpcService.GoogleGrpc.Empty google_default = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_google_default())); - } else { - goto handle_unusual; - } - break; - } - - // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_local_credentials())); - } else { - goto handle_unusual; - } - break; - } + _internal_metadata_.Clear(); +} - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc.ChannelCredentials) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.GoogleGrpc.ChannelCredentials) - return false; -#undef DO_ +const char* GrpcService_GoogleGrpc_ChannelCredentials::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void GrpcService_GoogleGrpc_ChannelCredentials::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.GoogleGrpc.ChannelCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - // .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; - if (has_ssl_credentials()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 1, _Internal::ssl_credentials(this), output); - } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 3, 3, 0, 2> GrpcService_GoogleGrpc_ChannelCredentials::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 3, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_._instance, + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_ChannelCredentials>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_ChannelCredentials, _impl_.credential_specifier_.ssl_credentials_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .GrpcService.GoogleGrpc.Empty google_default = 2; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_ChannelCredentials, _impl_.credential_specifier_.google_default_), _Internal::kOneofCaseOffset + 0, 1, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_ChannelCredentials, _impl_.credential_specifier_.local_credentials_), _Internal::kOneofCaseOffset + 0, 2, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_SslCredentials>()}, + {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_Empty>()}, + {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_GoogleLocalCredentials>()}, + }}, {{ + }}, +}; - // .GrpcService.GoogleGrpc.Empty google_default = 2; - if (has_google_default()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 2, _Internal::google_default(this), output); - } +::uint8_t* GrpcService_GoogleGrpc_ChannelCredentials::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.ChannelCredentials) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; - if (has_local_credentials()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 3, _Internal::local_credentials(this), output); + switch (credential_specifier_case()) { + case kSslCredentials: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *_impl_.credential_specifier_.ssl_credentials_, _impl_.credential_specifier_.ssl_credentials_->GetCachedSize(), target, stream); + break; + } + case kGoogleDefault: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *_impl_.credential_specifier_.google_default_, _impl_.credential_specifier_.google_default_->GetCachedSize(), target, stream); + break; + } + case kLocalCredentials: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *_impl_.credential_specifier_.local_credentials_, _impl_.credential_specifier_.local_credentials_->GetCachedSize(), target, stream); + break; + } + default: + break; } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.ChannelCredentials) + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.ChannelCredentials) + return target; } -size_t GrpcService_GoogleGrpc_ChannelCredentials::ByteSizeLong() const { +::size_t GrpcService_GoogleGrpc_ChannelCredentials::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.ChannelCredentials) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; switch (credential_specifier_case()) { // .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; case kSslCredentials: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *credential_specifier_.ssl_credentials_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.ssl_credentials_); break; } // .GrpcService.GoogleGrpc.Empty google_default = 2; case kGoogleDefault: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *credential_specifier_.google_default_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.google_default_); break; } // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; case kLocalCredentials: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *credential_specifier_.local_credentials_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.local_credentials_); break; } case CREDENTIAL_SPECIFIER_NOT_SET: { break; } } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size(); + } + _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void GrpcService_GoogleGrpc_ChannelCredentials::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::_pbi::DownCast( &from)); } void GrpcService_GoogleGrpc_ChannelCredentials::MergeFrom(const GrpcService_GoogleGrpc_ChannelCredentials& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.ChannelCredentials) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + GrpcService_GoogleGrpc_ChannelCredentials* const _this = this; + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.ChannelCredentials) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - switch (from.credential_specifier_case()) { - case kSslCredentials: { - mutable_ssl_credentials()->::GrpcService_GoogleGrpc_SslCredentials::MergeFrom(from.ssl_credentials()); - break; - } - case kGoogleDefault: { - mutable_google_default()->::GrpcService_GoogleGrpc_Empty::MergeFrom(from.google_default()); - break; - } - case kLocalCredentials: { - mutable_local_credentials()->::GrpcService_GoogleGrpc_GoogleLocalCredentials::MergeFrom(from.local_credentials()); - break; + if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { + const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; + const bool oneof_needs_init = oneof_to_case != oneof_from_case; + if (oneof_needs_init) { + if (oneof_to_case != 0) { + _this->clear_credential_specifier(); + } + _this->_impl_._oneof_case_[0] = oneof_from_case; } - case CREDENTIAL_SPECIFIER_NOT_SET: { - break; + + switch (oneof_from_case) { + case kSslCredentials: { + if (oneof_needs_init) { + _this->_impl_.credential_specifier_.ssl_credentials_ = + ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_SslCredentials>(arena, *from._impl_.credential_specifier_.ssl_credentials_); + } else { + _this->_impl_.credential_specifier_.ssl_credentials_->MergeFrom(from._internal_ssl_credentials()); + } + break; + } + case kGoogleDefault: { + if (oneof_needs_init) { + _this->_impl_.credential_specifier_.google_default_ = + ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_Empty>(arena, *from._impl_.credential_specifier_.google_default_); + } else { + _this->_impl_.credential_specifier_.google_default_->MergeFrom(from._internal_google_default()); + } + break; + } + case kLocalCredentials: { + if (oneof_needs_init) { + _this->_impl_.credential_specifier_.local_credentials_ = + ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_GoogleLocalCredentials>(arena, *from._impl_.credential_specifier_.local_credentials_); + } else { + _this->_impl_.credential_specifier_.local_credentials_->MergeFrom(from._internal_local_credentials()); + } + break; + } + case CREDENTIAL_SPECIFIER_NOT_SET: + break; } } + _this->_internal_metadata_.MergeFrom(from._internal_metadata_); } void GrpcService_GoogleGrpc_ChannelCredentials::CopyFrom(const GrpcService_GoogleGrpc_ChannelCredentials& from) { @@ -2517,264 +2359,225 @@ void GrpcService_GoogleGrpc_ChannelCredentials::CopyFrom(const GrpcService_Googl MergeFrom(from); } -bool GrpcService_GoogleGrpc_ChannelCredentials::IsInitialized() const { +PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_ChannelCredentials::IsInitialized() const { return true; } -void GrpcService_GoogleGrpc_ChannelCredentials::InternalSwap(GrpcService_GoogleGrpc_ChannelCredentials* other) { +void GrpcService_GoogleGrpc_ChannelCredentials::InternalSwap(GrpcService_GoogleGrpc_ChannelCredentials* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(credential_specifier_, other->credential_specifier_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -std::string GrpcService_GoogleGrpc_ChannelCredentials::GetTypeName() const { - return "GrpcService.GoogleGrpc.ChannelCredentials"; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.credential_specifier_, other->_impl_.credential_specifier_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } - // =================================================================== -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::InitAsDefaultInstance() { -} class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_Internal { public: }; -GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials() - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) -} -GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - json_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.json_key().empty()) { - json_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.json_key_); - } - token_lifetime_seconds_ = from.token_lifetime_seconds_; +GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(::google::protobuf::Arena* arena) + : ::google::protobuf::MessageLite(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : json_key_(arena, from.json_key_), + _cached_size_{0} {} + +GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials( + ::google::protobuf::Arena* arena, + const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) + : ::google::protobuf::MessageLite(arena) { + GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + _impl_.token_lifetime_seconds_ = from._impl_.token_lifetime_seconds_; + // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) } +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : json_key_(arena), + _cached_size_{0} {} -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - json_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - token_lifetime_seconds_ = PROTOBUF_ULONGLONG(0); +inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.token_lifetime_seconds_ = {}; } - GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::~GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials() { // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) + _internal_metadata_.Delete(); SharedDtor(); } - -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::SharedDtor() { - json_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.json_key_.Destroy(); + _impl_.~Impl_(); } -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - return *internal_default_instance(); -} +const ::google::protobuf::MessageLite::ClassData* +GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GetClassData() const { + struct ClassData_ { + ::google::protobuf::MessageLite::ClassData header; + char type_name[74]; + }; + PROTOBUF_CONSTINIT static const ClassData_ _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_._cached_size_), + true, + }, + "GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials", + }; -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::Clear() { + return &_data_.header; +} +PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::Clear() { // @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - json_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - token_lifetime_seconds_ = PROTOBUF_ULONGLONG(0); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string json_key = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_json_key(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 token_lifetime_seconds = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - token_lifetime_seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string json_key = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_json_key())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->json_key().data(), static_cast(this->json_key().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key")); - } else { - goto handle_unusual; - } - break; - } + _impl_.json_key_.ClearToEmpty(); + _impl_.token_lifetime_seconds_ = ::uint64_t{0u}; + _internal_metadata_.Clear(); +} - // uint64 token_lifetime_seconds = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { +const char* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64>( - input, &token_lifetime_seconds_))); - } else { - goto handle_unusual; - } - break; - } - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 90, 2> GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_._instance, + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // uint64 token_lifetime_seconds = 2; + {::_pbi::TcParser::FastV64S1, + {16, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_.token_lifetime_seconds_)}}, + // string json_key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_.json_key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string json_key = 1; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_.json_key_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // uint64 token_lifetime_seconds = 2; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_.token_lifetime_seconds_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + }}, + // no aux_entries + {{ + "\111\10\0\0\0\0\0\0" + "GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials" + "json_key" + }}, +}; -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; +::uint8_t* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; // string json_key = 1; - if (this->json_key().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->json_key().data(), static_cast(this->json_key().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->json_key(), output); + if (!this->_internal_json_key().empty()) { + const std::string& _s = this->_internal_json_key(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key"); + target = stream->WriteStringMaybeAliased(1, _s, target); } // uint64 token_lifetime_seconds = 2; - if (this->token_lifetime_seconds() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64(2, this->token_lifetime_seconds(), output); + if (this->_internal_token_lifetime_seconds() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this->_internal_token_lifetime_seconds(), target); } - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) + return target; } -size_t GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::ByteSizeLong() const { +::size_t GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - size_t total_size = 0; + ::size_t total_size = 0; - total_size += _internal_metadata_.unknown_fields().size(); - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string json_key = 1; - if (this->json_key().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->json_key()); + if (!this->_internal_json_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_json_key()); } // uint64 token_lifetime_seconds = 2; - if (this->token_lifetime_seconds() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->token_lifetime_seconds()); + if (this->_internal_token_lifetime_seconds() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this->_internal_token_lifetime_seconds()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size(); + } + _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::_pbi::DownCast( &from)); } void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* const _this = this; + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.json_key().size() > 0) { - - json_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.json_key_); + if (!from._internal_json_key().empty()) { + _this->_internal_set_json_key(from._internal_json_key()); } - if (from.token_lifetime_seconds() != 0) { - set_token_lifetime_seconds(from.token_lifetime_seconds()); + if (from._internal_token_lifetime_seconds() != 0) { + _this->_impl_.token_lifetime_seconds_ = from._impl_.token_lifetime_seconds_; } + _this->_internal_metadata_.MergeFrom(from._internal_metadata_); } void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) { @@ -2784,277 +2587,230 @@ void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials:: MergeFrom(from); } -bool GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::IsInitialized() const { +PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::IsInitialized() const { return true; } -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* other) { +void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - json_key_.Swap(&other->json_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(token_lifetime_seconds_, other->token_lifetime_seconds_); -} - -std::string GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GetTypeName() const { - return "GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials"; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.json_key_, &other->_impl_.json_key_, arena); + swap(_impl_.token_lifetime_seconds_, other->_impl_.token_lifetime_seconds_); } - // =================================================================== -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::InitAsDefaultInstance() { -} class GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_Internal { public: }; -GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials() - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) -} -GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - authorization_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.authorization_token().empty()) { - authorization_token_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.authorization_token_); - } - authority_selector_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.authority_selector().empty()) { - authority_selector_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.authority_selector_); - } +GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(::google::protobuf::Arena* arena) + : ::google::protobuf::MessageLite(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : authorization_token_(arena, from.authorization_token_), + authority_selector_(arena, from.authority_selector_), + _cached_size_{0} {} + +GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials( + ::google::protobuf::Arena* arena, + const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) + : ::google::protobuf::MessageLite(arena) { + GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) } +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : authorization_token_(arena), + authority_selector_(arena), + _cached_size_{0} {} -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - authorization_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - authority_selector_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::~GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials() { // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) + _internal_metadata_.Delete(); SharedDtor(); } - -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::SharedDtor() { - authorization_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - authority_selector_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.authorization_token_.Destroy(); + _impl_.authority_selector_.Destroy(); + _impl_.~Impl_(); } -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - return *internal_default_instance(); -} +const ::google::protobuf::MessageLite::ClassData* +GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GetClassData() const { + struct ClassData_ { + ::google::protobuf::MessageLite::ClassData header; + char type_name[60]; + }; + PROTOBUF_CONSTINIT static const ClassData_ _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_._cached_size_), + true, + }, + "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials", + }; -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::Clear() { + return &_data_.header; +} +PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::Clear() { // @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - authorization_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - authority_selector_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string authorization_token = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_authorization_token(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string authority_selector = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_authority_selector(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: + _impl_.authorization_token_.ClearToEmpty(); + _impl_.authority_selector_.ClearToEmpty(); + _internal_metadata_.Clear(); +} + +const char* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string authorization_token = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_authorization_token())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->authorization_token().data(), static_cast(this->authorization_token().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token")); - } else { - goto handle_unusual; - } - break; - } +} - // string authority_selector = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_authority_selector())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->authority_selector().data(), static_cast(this->authority_selector().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector")); - } else { - goto handle_unusual; - } - break; - } - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 105, 2> GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_._instance, + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string authority_selector = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_.authority_selector_)}}, + // string authorization_token = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_.authorization_token_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string authorization_token = 1; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_.authorization_token_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string authority_selector = 2; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_.authority_selector_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\73\23\22\0\0\0\0\0" + "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials" + "authorization_token" + "authority_selector" + }}, +}; -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; +::uint8_t* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; // string authorization_token = 1; - if (this->authorization_token().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->authorization_token().data(), static_cast(this->authorization_token().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->authorization_token(), output); + if (!this->_internal_authorization_token().empty()) { + const std::string& _s = this->_internal_authorization_token(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token"); + target = stream->WriteStringMaybeAliased(1, _s, target); } // string authority_selector = 2; - if (this->authority_selector().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->authority_selector().data(), static_cast(this->authority_selector().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->authority_selector(), output); + if (!this->_internal_authority_selector().empty()) { + const std::string& _s = this->_internal_authority_selector(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector"); + target = stream->WriteStringMaybeAliased(2, _s, target); } - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) + return target; } -size_t GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::ByteSizeLong() const { +::size_t GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - size_t total_size = 0; + ::size_t total_size = 0; - total_size += _internal_metadata_.unknown_fields().size(); - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string authorization_token = 1; - if (this->authorization_token().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->authorization_token()); + if (!this->_internal_authorization_token().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_authorization_token()); } // string authority_selector = 2; - if (this->authority_selector().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->authority_selector()); + if (!this->_internal_authority_selector().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_authority_selector()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size(); + } + _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::_pbi::DownCast( &from)); } void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* const _this = this; + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.authorization_token().size() > 0) { - - authorization_token_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.authorization_token_); + if (!from._internal_authorization_token().empty()) { + _this->_internal_set_authorization_token(from._internal_authorization_token()); } - if (from.authority_selector().size() > 0) { - - authority_selector_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.authority_selector_); + if (!from._internal_authority_selector().empty()) { + _this->_internal_set_authority_selector(from._internal_authority_selector()); } + _this->_internal_metadata_.MergeFrom(from._internal_metadata_); } void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) { @@ -3064,1022 +2820,790 @@ void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::CopyFrom(const MergeFrom(from); } -bool GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::IsInitialized() const { +PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::IsInitialized() const { return true; } -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* other) { +void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - authorization_token_.Swap(&other->authorization_token_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - authority_selector_.Swap(&other->authority_selector_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.authorization_token_, &other->_impl_.authorization_token_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.authority_selector_, &other->_impl_.authority_selector_, arena); } -std::string GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GetTypeName() const { - return "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials"; -} - - // =================================================================== -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::InitAsDefaultInstance() { -} class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_Internal { public: - static const ::google::protobuf::Struct& config(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* msg); - static const ::Any& typed_config(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* msg); + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_._oneof_case_); }; -const ::google::protobuf::Struct& -GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_Internal::config(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* msg) { - return *msg->config_type_.config_; -} -const ::Any& -GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_Internal::typed_config(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* msg) { - return *msg->config_type_.typed_config_; -} void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_allocated_config(::google::protobuf::Struct* config) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_config_type(); if (config) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(config)->GetArena(); if (message_arena != submessage_arena) { - config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, config, submessage_arena); + config = ::google::protobuf::internal::GetOwnedMessage(message_arena, config, submessage_arena); } set_has_config(); - config_type_.config_ = config; + _impl_.config_type_.config_ = config; } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) } void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::clear_config() { - if (has_config()) { - delete config_type_.config_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (config_type_case() == kConfig) { + if (GetArena() == nullptr) { + delete _impl_.config_type_.config_; + } clear_has_config_type(); } } void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_allocated_typed_config(::Any* typed_config) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_config_type(); if (typed_config) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = typed_config->GetArena(); if (message_arena != submessage_arena) { - typed_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, typed_config, submessage_arena); + typed_config = ::google::protobuf::internal::GetOwnedMessage(message_arena, typed_config, submessage_arena); } set_has_typed_config(); - config_type_.typed_config_ = typed_config; + _impl_.config_type_.typed_config_ = typed_config; } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) } -GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin() - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) -} -GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.name().empty()) { - name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); - } - clear_has_config_type(); - switch (from.config_type_case()) { - case kConfig: { - mutable_config()->::google::protobuf::Struct::MergeFrom(from.config()); - break; - } - case kTypedConfig: { - mutable_typed_config()->::Any::MergeFrom(from.typed_config()); - break; - } - case CONFIG_TYPE_NOT_SET: { +GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(::google::protobuf::Arena* arena) + : ::google::protobuf::MessageLite(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : name_(arena, from.name_), + config_type_{}, + _cached_size_{0}, + _oneof_case_{from._oneof_case_[0]} {} + +GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin( + ::google::protobuf::Arena* arena, + const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) + : ::google::protobuf::MessageLite(arena) { + GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + switch (config_type_case()) { + case CONFIG_TYPE_NOT_SET: break; - } + case kConfig: + _impl_.config_type_.config_ = ::google::protobuf::MessageLite::CopyConstruct<::google::protobuf::Struct>(arena, *from._impl_.config_type_.config_); + break; + case kTypedConfig: + _impl_.config_type_.typed_config_ = ::google::protobuf::MessageLite::CopyConstruct<::Any>(arena, *from._impl_.config_type_.typed_config_); + break; } + // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) } +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : name_(arena), + config_type_{}, + _cached_size_{0}, + _oneof_case_{} {} -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - clear_has_config_type(); +inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::~GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin() { // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) + _internal_metadata_.Delete(); SharedDtor(); } - -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::SharedDtor() { - name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.name_.Destroy(); if (has_config_type()) { clear_config_type(); } + _impl_.~Impl_(); } -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - return *internal_default_instance(); -} - - void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::clear_config_type() { // @@protoc_insertion_point(one_of_clear_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (config_type_case()) { case kConfig: { - delete config_type_.config_; + if (GetArena() == nullptr) { + delete _impl_.config_type_.config_; + } break; } case kTypedConfig: { - delete config_type_.typed_config_; + if (GetArena() == nullptr) { + delete _impl_.config_type_.typed_config_; + } break; } case CONFIG_TYPE_NOT_SET: { break; } } - _oneof_case_[0] = CONFIG_TYPE_NOT_SET; + _impl_._oneof_case_[0] = CONFIG_TYPE_NOT_SET; } -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Clear() { +const ::google::protobuf::MessageLite::ClassData* +GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GetClassData() const { + struct ClassData_ { + ::google::protobuf::MessageLite::ClassData header; + char type_name[69]; + }; + + PROTOBUF_CONSTINIT static const ClassData_ _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_._cached_size_), + true, + }, + "GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin", + }; + + return &_data_.header; +} +PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Clear() { // @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.name_.ClearToEmpty(); clear_config_type(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .google.protobuf.Struct config = 2 [deprecated = true]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(mutable_config(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .Any typed_config = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ctx->ParseMessage(mutable_typed_config(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Struct config = 2 [deprecated = true]; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_config())); - } else { - goto handle_unusual; - } - break; - } - - // .Any typed_config = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_typed_config())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - return false; -#undef DO_ + _internal_metadata_.Clear(); } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); - } - - // .google.protobuf.Struct config = 2 [deprecated = true]; - if (has_config()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 2, _Internal::config(this), output); - } - - // .Any typed_config = 3; - if (has_typed_config()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 3, _Internal::typed_config(this), output); - } - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) +const char* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; } -size_t GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - size_t total_size = 0; - total_size += _internal_metadata_.unknown_fields().size(); +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 3, 2, 81, 2> GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 3, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_._instance, + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_.name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string name = 1; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_.name_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .google.protobuf.Struct config = 2 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_.config_type_.config_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .Any typed_config = 3; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_.config_type_.typed_config_), _Internal::kOneofCaseOffset + 0, 1, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, + {::_pbi::TcParser::GetTable<::Any>()}, + }}, {{ + "\104\4\0\0\0\0\0\0" + "GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin" + "name" + }}, +}; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; +::uint8_t* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; // string name = 1; - if (this->name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->name()); + if (!this->_internal_name().empty()) { + const std::string& _s = this->_internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); } switch (config_type_case()) { - // .google.protobuf.Struct config = 2 [deprecated = true]; case kConfig: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *config_type_.config_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *_impl_.config_type_.config_, _impl_.config_type_.config_->GetCachedSize(), target, stream); break; } - // .Any typed_config = 3; case kTypedConfig: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *config_type_.typed_config_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *_impl_.config_type_.typed_config_, _impl_.config_type_.typed_config_->GetCachedSize(), target, stream); break; } - case CONFIG_TYPE_NOT_SET: { + default: break; - } } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) + return target; } -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +::size_t GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) + ::size_t total_size = 0; -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); + // string name = 1; + if (!this->_internal_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_name()); } - switch (from.config_type_case()) { + + switch (config_type_case()) { + // .google.protobuf.Struct config = 2 [deprecated = true]; case kConfig: { - mutable_config()->::google::protobuf::Struct::MergeFrom(from.config()); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.config_type_.config_); break; } + // .Any typed_config = 3; case kTypedConfig: { - mutable_typed_config()->::Any::MergeFrom(from.typed_config()); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.config_type_.typed_config_); break; } case CONFIG_TYPE_NOT_SET: { break; } } -} - -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(config_type_, other->config_type_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -std::string GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GetTypeName() const { - return "GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin"; -} - - -// =================================================================== - -void GrpcService_GoogleGrpc_CallCredentials_StsService::InitAsDefaultInstance() { -} -class GrpcService_GoogleGrpc_CallCredentials_StsService::_Internal { - public: -}; - -GrpcService_GoogleGrpc_CallCredentials_StsService::GrpcService_GoogleGrpc_CallCredentials_StsService() - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.GoogleGrpc.CallCredentials.StsService) -} -GrpcService_GoogleGrpc_CallCredentials_StsService::GrpcService_GoogleGrpc_CallCredentials_StsService(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_exchange_service_uri_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.token_exchange_service_uri().empty()) { - token_exchange_service_uri_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.token_exchange_service_uri_); - } - resource_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.resource().empty()) { - resource_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.resource_); - } - audience_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.audience().empty()) { - audience_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.audience_); - } - scope_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.scope().empty()) { - scope_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.scope_); - } - requested_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.requested_token_type().empty()) { - requested_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.requested_token_type_); - } - subject_token_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.subject_token_path().empty()) { - subject_token_path_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.subject_token_path_); - } - subject_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.subject_token_type().empty()) { - subject_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.subject_token_type_); - } - actor_token_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.actor_token_path().empty()) { - actor_token_path_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.actor_token_path_); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size(); } - actor_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.actor_token_type().empty()) { - actor_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.actor_token_type_); - } - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.StsService) -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - token_exchange_service_uri_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - resource_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - audience_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - scope_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - requested_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -GrpcService_GoogleGrpc_CallCredentials_StsService::~GrpcService_GoogleGrpc_CallCredentials_StsService() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.StsService) - SharedDtor(); -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::SharedDtor() { - token_exchange_service_uri_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - resource_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - audience_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - scope_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - requested_token_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_GoogleGrpc_CallCredentials_StsService& GrpcService_GoogleGrpc_CallCredentials_StsService::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - return *internal_default_instance(); + _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); + return total_size; } +void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::_pbi::DownCast( + &from)); +} -void GrpcService_GoogleGrpc_CallCredentials_StsService::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - token_exchange_service_uri_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - resource_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - audience_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - scope_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - requested_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_path_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_path_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_GoogleGrpc_CallCredentials_StsService::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string token_exchange_service_uri = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_token_exchange_service_uri(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string resource = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_resource(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string audience = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_audience(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string scope = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_scope(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string requested_token_type = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_requested_token_type(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string subject_token_path = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_subject_token_path(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string subject_token_type = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_subject_token_type(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string actor_token_path = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_actor_token_path(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string actor_token_type = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_actor_token_type(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_GoogleGrpc_CallCredentials_StsService::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string token_exchange_service_uri = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_token_exchange_service_uri())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->token_exchange_service_uri().data(), static_cast(this->token_exchange_service_uri().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri")); - } else { - goto handle_unusual; - } - break; - } - - // string resource = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_resource())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->resource().data(), static_cast(this->resource().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.resource")); - } else { - goto handle_unusual; - } - break; - } - - // string audience = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_audience())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->audience().data(), static_cast(this->audience().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.audience")); - } else { - goto handle_unusual; - } - break; - } - - // string scope = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_scope())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->scope().data(), static_cast(this->scope().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.scope")); - } else { - goto handle_unusual; - } - break; - } - - // string requested_token_type = 5; - case 5: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_requested_token_type())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->requested_token_type().data(), static_cast(this->requested_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type")); - } else { - goto handle_unusual; - } - break; - } - - // string subject_token_path = 6; - case 6: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_subject_token_path())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->subject_token_path().data(), static_cast(this->subject_token_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path")); - } else { - goto handle_unusual; - } - break; - } - - // string subject_token_type = 7; - case 7: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_subject_token_type())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->subject_token_type().data(), static_cast(this->subject_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type")); - } else { - goto handle_unusual; - } - break; +void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) { + GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* const _this = this; + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { + const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; + const bool oneof_needs_init = oneof_to_case != oneof_from_case; + if (oneof_needs_init) { + if (oneof_to_case != 0) { + _this->clear_config_type(); } + _this->_impl_._oneof_case_[0] = oneof_from_case; + } - // string actor_token_path = 8; - case 8: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_actor_token_path())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->actor_token_path().data(), static_cast(this->actor_token_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path")); + switch (oneof_from_case) { + case kConfig: { + if (oneof_needs_init) { + _this->_impl_.config_type_.config_ = + ::google::protobuf::MessageLite::CopyConstruct<::google::protobuf::Struct>(arena, *from._impl_.config_type_.config_); } else { - goto handle_unusual; + _this->_impl_.config_type_.config_->MergeFrom(from._internal_config()); } break; } - - // string actor_token_type = 9; - case 9: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (74 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_actor_token_type())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->actor_token_type().data(), static_cast(this->actor_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type")); + case kTypedConfig: { + if (oneof_needs_init) { + _this->_impl_.config_type_.typed_config_ = + ::google::protobuf::MessageLite::CopyConstruct<::Any>(arena, *from._impl_.config_type_.typed_config_); } else { - goto handle_unusual; + _this->_impl_.config_type_.typed_config_->MergeFrom(from._internal_typed_config()); } break; } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); + case CONFIG_TYPE_NOT_SET: break; - } } } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc.CallCredentials.StsService) + _this->_internal_metadata_.MergeFrom(from._internal_metadata_); +} + +void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::IsInitialized() const { return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.GoogleGrpc.CallCredentials.StsService) - return false; -#undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void GrpcService_GoogleGrpc_CallCredentials_StsService::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* PROTOBUF_RESTRICT other) { + using std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + swap(_impl_.config_type_, other->_impl_.config_type_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +// =================================================================== + +class GrpcService_GoogleGrpc_CallCredentials_StsService::_Internal { + public: +}; + +GrpcService_GoogleGrpc_CallCredentials_StsService::GrpcService_GoogleGrpc_CallCredentials_StsService(::google::protobuf::Arena* arena) + : ::google::protobuf::MessageLite(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.CallCredentials.StsService) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_StsService::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : token_exchange_service_uri_(arena, from.token_exchange_service_uri_), + resource_(arena, from.resource_), + audience_(arena, from.audience_), + scope_(arena, from.scope_), + requested_token_type_(arena, from.requested_token_type_), + subject_token_path_(arena, from.subject_token_path_), + subject_token_type_(arena, from.subject_token_type_), + actor_token_path_(arena, from.actor_token_path_), + actor_token_type_(arena, from.actor_token_type_), + _cached_size_{0} {} + +GrpcService_GoogleGrpc_CallCredentials_StsService::GrpcService_GoogleGrpc_CallCredentials_StsService( + ::google::protobuf::Arena* arena, + const GrpcService_GoogleGrpc_CallCredentials_StsService& from) + : ::google::protobuf::MessageLite(arena) { + GrpcService_GoogleGrpc_CallCredentials_StsService* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + + // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.StsService) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_StsService::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : token_exchange_service_uri_(arena), + resource_(arena), + audience_(arena), + scope_(arena), + requested_token_type_(arena), + subject_token_path_(arena), + subject_token_type_(arena), + actor_token_path_(arena), + actor_token_type_(arena), + _cached_size_{0} {} + +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +GrpcService_GoogleGrpc_CallCredentials_StsService::~GrpcService_GoogleGrpc_CallCredentials_StsService() { + // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.StsService) + _internal_metadata_.Delete(); + SharedDtor(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.token_exchange_service_uri_.Destroy(); + _impl_.resource_.Destroy(); + _impl_.audience_.Destroy(); + _impl_.scope_.Destroy(); + _impl_.requested_token_type_.Destroy(); + _impl_.subject_token_path_.Destroy(); + _impl_.subject_token_type_.Destroy(); + _impl_.actor_token_path_.Destroy(); + _impl_.actor_token_type_.Destroy(); + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +GrpcService_GoogleGrpc_CallCredentials_StsService::GetClassData() const { + struct ClassData_ { + ::google::protobuf::MessageLite::ClassData header; + char type_name[50]; + }; + + PROTOBUF_CONSTINIT static const ClassData_ _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_._cached_size_), + true, + }, + "GrpcService.GoogleGrpc.CallCredentials.StsService", + }; + + return &_data_.header; +} +PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::Clear() { +// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.StsService) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + _impl_.token_exchange_service_uri_.ClearToEmpty(); + _impl_.resource_.ClearToEmpty(); + _impl_.audience_.ClearToEmpty(); + _impl_.scope_.ClearToEmpty(); + _impl_.requested_token_type_.ClearToEmpty(); + _impl_.subject_token_path_.ClearToEmpty(); + _impl_.subject_token_type_.ClearToEmpty(); + _impl_.actor_token_path_.ClearToEmpty(); + _impl_.actor_token_type_.ClearToEmpty(); + _internal_metadata_.Clear(); +} + +const char* GrpcService_GoogleGrpc_CallCredentials_StsService::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 9, 0, 201, 2> GrpcService_GoogleGrpc_CallCredentials_StsService::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 9, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294966784, // skipmap + offsetof(decltype(_table_), field_entries), + 9, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_._instance, + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_StsService>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string token_exchange_service_uri = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.token_exchange_service_uri_)}}, + // string resource = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.resource_)}}, + // string audience = 3; + {::_pbi::TcParser::FastUS1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.audience_)}}, + // string scope = 4; + {::_pbi::TcParser::FastUS1, + {34, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.scope_)}}, + // string requested_token_type = 5; + {::_pbi::TcParser::FastUS1, + {42, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.requested_token_type_)}}, + // string subject_token_path = 6; + {::_pbi::TcParser::FastUS1, + {50, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.subject_token_path_)}}, + // string subject_token_type = 7; + {::_pbi::TcParser::FastUS1, + {58, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.subject_token_type_)}}, + // string actor_token_path = 8; + {::_pbi::TcParser::FastUS1, + {66, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.actor_token_path_)}}, + // string actor_token_type = 9; + {::_pbi::TcParser::FastUS1, + {74, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.actor_token_type_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // string token_exchange_service_uri = 1; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.token_exchange_service_uri_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string resource = 2; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.resource_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string audience = 3; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.audience_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string scope = 4; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.scope_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string requested_token_type = 5; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.requested_token_type_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string subject_token_path = 6; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.subject_token_path_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string subject_token_type = 7; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.subject_token_type_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string actor_token_path = 8; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.actor_token_path_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string actor_token_type = 9; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.actor_token_type_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\61\32\10\10\5\24\22\22\20\20\0\0\0\0\0\0" + "GrpcService.GoogleGrpc.CallCredentials.StsService" + "token_exchange_service_uri" + "resource" + "audience" + "scope" + "requested_token_type" + "subject_token_path" + "subject_token_type" + "actor_token_path" + "actor_token_type" + }}, +}; + +::uint8_t* GrpcService_GoogleGrpc_CallCredentials_StsService::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.CallCredentials.StsService) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + // string token_exchange_service_uri = 1; - if (this->token_exchange_service_uri().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->token_exchange_service_uri().data(), static_cast(this->token_exchange_service_uri().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->token_exchange_service_uri(), output); + if (!this->_internal_token_exchange_service_uri().empty()) { + const std::string& _s = this->_internal_token_exchange_service_uri(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri"); + target = stream->WriteStringMaybeAliased(1, _s, target); } // string resource = 2; - if (this->resource().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->resource().data(), static_cast(this->resource().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.resource"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->resource(), output); + if (!this->_internal_resource().empty()) { + const std::string& _s = this->_internal_resource(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.resource"); + target = stream->WriteStringMaybeAliased(2, _s, target); } // string audience = 3; - if (this->audience().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->audience().data(), static_cast(this->audience().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.audience"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->audience(), output); + if (!this->_internal_audience().empty()) { + const std::string& _s = this->_internal_audience(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.audience"); + target = stream->WriteStringMaybeAliased(3, _s, target); } // string scope = 4; - if (this->scope().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->scope().data(), static_cast(this->scope().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.scope"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->scope(), output); + if (!this->_internal_scope().empty()) { + const std::string& _s = this->_internal_scope(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.scope"); + target = stream->WriteStringMaybeAliased(4, _s, target); } // string requested_token_type = 5; - if (this->requested_token_type().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->requested_token_type().data(), static_cast(this->requested_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->requested_token_type(), output); + if (!this->_internal_requested_token_type().empty()) { + const std::string& _s = this->_internal_requested_token_type(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type"); + target = stream->WriteStringMaybeAliased(5, _s, target); } // string subject_token_path = 6; - if (this->subject_token_path().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->subject_token_path().data(), static_cast(this->subject_token_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 6, this->subject_token_path(), output); + if (!this->_internal_subject_token_path().empty()) { + const std::string& _s = this->_internal_subject_token_path(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path"); + target = stream->WriteStringMaybeAliased(6, _s, target); } // string subject_token_type = 7; - if (this->subject_token_type().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->subject_token_type().data(), static_cast(this->subject_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 7, this->subject_token_type(), output); + if (!this->_internal_subject_token_type().empty()) { + const std::string& _s = this->_internal_subject_token_type(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type"); + target = stream->WriteStringMaybeAliased(7, _s, target); } // string actor_token_path = 8; - if (this->actor_token_path().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->actor_token_path().data(), static_cast(this->actor_token_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 8, this->actor_token_path(), output); + if (!this->_internal_actor_token_path().empty()) { + const std::string& _s = this->_internal_actor_token_path(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path"); + target = stream->WriteStringMaybeAliased(8, _s, target); } // string actor_token_type = 9; - if (this->actor_token_type().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->actor_token_type().data(), static_cast(this->actor_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 9, this->actor_token_type(), output); + if (!this->_internal_actor_token_type().empty()) { + const std::string& _s = this->_internal_actor_token_type(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type"); + target = stream->WriteStringMaybeAliased(9, _s, target); } - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.CallCredentials.StsService) + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.CallCredentials.StsService) + return target; } -size_t GrpcService_GoogleGrpc_CallCredentials_StsService::ByteSizeLong() const { +::size_t GrpcService_GoogleGrpc_CallCredentials_StsService::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - size_t total_size = 0; + ::size_t total_size = 0; - total_size += _internal_metadata_.unknown_fields().size(); - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string token_exchange_service_uri = 1; - if (this->token_exchange_service_uri().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->token_exchange_service_uri()); + if (!this->_internal_token_exchange_service_uri().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_token_exchange_service_uri()); } // string resource = 2; - if (this->resource().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->resource()); + if (!this->_internal_resource().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_resource()); } // string audience = 3; - if (this->audience().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->audience()); + if (!this->_internal_audience().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_audience()); } // string scope = 4; - if (this->scope().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->scope()); + if (!this->_internal_scope().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_scope()); } // string requested_token_type = 5; - if (this->requested_token_type().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->requested_token_type()); + if (!this->_internal_requested_token_type().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_requested_token_type()); } // string subject_token_path = 6; - if (this->subject_token_path().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->subject_token_path()); + if (!this->_internal_subject_token_path().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_subject_token_path()); } // string subject_token_type = 7; - if (this->subject_token_type().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->subject_token_type()); + if (!this->_internal_subject_token_type().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_subject_token_type()); } // string actor_token_path = 8; - if (this->actor_token_path().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->actor_token_path()); + if (!this->_internal_actor_token_path().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_actor_token_path()); } // string actor_token_type = 9; - if (this->actor_token_type().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->actor_token_type()); + if (!this->_internal_actor_token_type().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_actor_token_type()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size(); + } + _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void GrpcService_GoogleGrpc_CallCredentials_StsService::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::_pbi::DownCast( &from)); } void GrpcService_GoogleGrpc_CallCredentials_StsService::MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + GrpcService_GoogleGrpc_CallCredentials_StsService* const _this = this; + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.StsService) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.token_exchange_service_uri().size() > 0) { - - token_exchange_service_uri_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.token_exchange_service_uri_); + if (!from._internal_token_exchange_service_uri().empty()) { + _this->_internal_set_token_exchange_service_uri(from._internal_token_exchange_service_uri()); } - if (from.resource().size() > 0) { - - resource_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.resource_); + if (!from._internal_resource().empty()) { + _this->_internal_set_resource(from._internal_resource()); } - if (from.audience().size() > 0) { - - audience_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.audience_); + if (!from._internal_audience().empty()) { + _this->_internal_set_audience(from._internal_audience()); } - if (from.scope().size() > 0) { - - scope_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.scope_); + if (!from._internal_scope().empty()) { + _this->_internal_set_scope(from._internal_scope()); } - if (from.requested_token_type().size() > 0) { - - requested_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.requested_token_type_); + if (!from._internal_requested_token_type().empty()) { + _this->_internal_set_requested_token_type(from._internal_requested_token_type()); } - if (from.subject_token_path().size() > 0) { - - subject_token_path_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.subject_token_path_); + if (!from._internal_subject_token_path().empty()) { + _this->_internal_set_subject_token_path(from._internal_subject_token_path()); } - if (from.subject_token_type().size() > 0) { - - subject_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.subject_token_type_); + if (!from._internal_subject_token_type().empty()) { + _this->_internal_set_subject_token_type(from._internal_subject_token_type()); } - if (from.actor_token_path().size() > 0) { - - actor_token_path_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.actor_token_path_); + if (!from._internal_actor_token_path().empty()) { + _this->_internal_set_actor_token_path(from._internal_actor_token_path()); } - if (from.actor_token_type().size() > 0) { - - actor_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.actor_token_type_); + if (!from._internal_actor_token_type().empty()) { + _this->_internal_set_actor_token_type(from._internal_actor_token_type()); } + _this->_internal_metadata_.MergeFrom(from._internal_metadata_); } void GrpcService_GoogleGrpc_CallCredentials_StsService::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) { @@ -4089,636 +3613,524 @@ void GrpcService_GoogleGrpc_CallCredentials_StsService::CopyFrom(const GrpcServi MergeFrom(from); } -bool GrpcService_GoogleGrpc_CallCredentials_StsService::IsInitialized() const { +PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_CallCredentials_StsService::IsInitialized() const { return true; } -void GrpcService_GoogleGrpc_CallCredentials_StsService::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_StsService* other) { +void GrpcService_GoogleGrpc_CallCredentials_StsService::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_StsService* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - token_exchange_service_uri_.Swap(&other->token_exchange_service_uri_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - resource_.Swap(&other->resource_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - audience_.Swap(&other->audience_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - scope_.Swap(&other->scope_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - requested_token_type_.Swap(&other->requested_token_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - subject_token_path_.Swap(&other->subject_token_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - subject_token_type_.Swap(&other->subject_token_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - actor_token_path_.Swap(&other->actor_token_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - actor_token_type_.Swap(&other->actor_token_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -std::string GrpcService_GoogleGrpc_CallCredentials_StsService::GetTypeName() const { - return "GrpcService.GoogleGrpc.CallCredentials.StsService"; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.token_exchange_service_uri_, &other->_impl_.token_exchange_service_uri_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.resource_, &other->_impl_.resource_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.audience_, &other->_impl_.audience_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.scope_, &other->_impl_.scope_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.requested_token_type_, &other->_impl_.requested_token_type_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.subject_token_path_, &other->_impl_.subject_token_path_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.subject_token_type_, &other->_impl_.subject_token_type_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.actor_token_path_, &other->_impl_.actor_token_path_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.actor_token_type_, &other->_impl_.actor_token_type_, arena); } - // =================================================================== -void GrpcService_GoogleGrpc_CallCredentials::InitAsDefaultInstance() { -} class GrpcService_GoogleGrpc_CallCredentials::_Internal { public: - static const ::GrpcService_GoogleGrpc_Empty& google_compute_engine(const GrpcService_GoogleGrpc_CallCredentials* msg); - static const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& service_account_jwt_access(const GrpcService_GoogleGrpc_CallCredentials* msg); - static const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& google_iam(const GrpcService_GoogleGrpc_CallCredentials* msg); - static const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from_plugin(const GrpcService_GoogleGrpc_CallCredentials* msg); - static const ::GrpcService_GoogleGrpc_CallCredentials_StsService& sts_service(const GrpcService_GoogleGrpc_CallCredentials* msg); + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials, _impl_._oneof_case_); }; -const ::GrpcService_GoogleGrpc_Empty& -GrpcService_GoogleGrpc_CallCredentials::_Internal::google_compute_engine(const GrpcService_GoogleGrpc_CallCredentials* msg) { - return *msg->credential_specifier_.google_compute_engine_; -} -const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& -GrpcService_GoogleGrpc_CallCredentials::_Internal::service_account_jwt_access(const GrpcService_GoogleGrpc_CallCredentials* msg) { - return *msg->credential_specifier_.service_account_jwt_access_; -} -const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& -GrpcService_GoogleGrpc_CallCredentials::_Internal::google_iam(const GrpcService_GoogleGrpc_CallCredentials* msg) { - return *msg->credential_specifier_.google_iam_; -} -const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& -GrpcService_GoogleGrpc_CallCredentials::_Internal::from_plugin(const GrpcService_GoogleGrpc_CallCredentials* msg) { - return *msg->credential_specifier_.from_plugin_; -} -const ::GrpcService_GoogleGrpc_CallCredentials_StsService& -GrpcService_GoogleGrpc_CallCredentials::_Internal::sts_service(const GrpcService_GoogleGrpc_CallCredentials* msg) { - return *msg->credential_specifier_.sts_service_; -} void GrpcService_GoogleGrpc_CallCredentials::set_allocated_google_compute_engine(::GrpcService_GoogleGrpc_Empty* google_compute_engine) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_credential_specifier(); if (google_compute_engine) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = google_compute_engine->GetArena(); if (message_arena != submessage_arena) { - google_compute_engine = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, google_compute_engine, submessage_arena); + google_compute_engine = ::google::protobuf::internal::GetOwnedMessage(message_arena, google_compute_engine, submessage_arena); } set_has_google_compute_engine(); - credential_specifier_.google_compute_engine_ = google_compute_engine; + _impl_.credential_specifier_.google_compute_engine_ = google_compute_engine; } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) } void GrpcService_GoogleGrpc_CallCredentials::set_allocated_service_account_jwt_access(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* service_account_jwt_access) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_credential_specifier(); if (service_account_jwt_access) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = service_account_jwt_access->GetArena(); if (message_arena != submessage_arena) { - service_account_jwt_access = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, service_account_jwt_access, submessage_arena); + service_account_jwt_access = ::google::protobuf::internal::GetOwnedMessage(message_arena, service_account_jwt_access, submessage_arena); } set_has_service_account_jwt_access(); - credential_specifier_.service_account_jwt_access_ = service_account_jwt_access; + _impl_.credential_specifier_.service_account_jwt_access_ = service_account_jwt_access; } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) } void GrpcService_GoogleGrpc_CallCredentials::set_allocated_google_iam(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* google_iam) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_credential_specifier(); if (google_iam) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = google_iam->GetArena(); if (message_arena != submessage_arena) { - google_iam = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, google_iam, submessage_arena); + google_iam = ::google::protobuf::internal::GetOwnedMessage(message_arena, google_iam, submessage_arena); } set_has_google_iam(); - credential_specifier_.google_iam_ = google_iam; + _impl_.credential_specifier_.google_iam_ = google_iam; } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.google_iam) } void GrpcService_GoogleGrpc_CallCredentials::set_allocated_from_plugin(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* from_plugin) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_credential_specifier(); if (from_plugin) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = from_plugin->GetArena(); if (message_arena != submessage_arena) { - from_plugin = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, from_plugin, submessage_arena); + from_plugin = ::google::protobuf::internal::GetOwnedMessage(message_arena, from_plugin, submessage_arena); } set_has_from_plugin(); - credential_specifier_.from_plugin_ = from_plugin; + _impl_.credential_specifier_.from_plugin_ = from_plugin; } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.from_plugin) } void GrpcService_GoogleGrpc_CallCredentials::set_allocated_sts_service(::GrpcService_GoogleGrpc_CallCredentials_StsService* sts_service) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_credential_specifier(); if (sts_service) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = sts_service->GetArena(); if (message_arena != submessage_arena) { - sts_service = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, sts_service, submessage_arena); + sts_service = ::google::protobuf::internal::GetOwnedMessage(message_arena, sts_service, submessage_arena); } set_has_sts_service(); - credential_specifier_.sts_service_ = sts_service; + _impl_.credential_specifier_.sts_service_ = sts_service; } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.sts_service) } -GrpcService_GoogleGrpc_CallCredentials::GrpcService_GoogleGrpc_CallCredentials() - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.GoogleGrpc.CallCredentials) -} -GrpcService_GoogleGrpc_CallCredentials::GrpcService_GoogleGrpc_CallCredentials(const GrpcService_GoogleGrpc_CallCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_credential_specifier(); - switch (from.credential_specifier_case()) { +GrpcService_GoogleGrpc_CallCredentials::GrpcService_GoogleGrpc_CallCredentials(::google::protobuf::Arena* arena) + : ::google::protobuf::MessageLite(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.CallCredentials) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : credential_specifier_{}, + _cached_size_{0}, + _oneof_case_{from._oneof_case_[0]} {} + +GrpcService_GoogleGrpc_CallCredentials::GrpcService_GoogleGrpc_CallCredentials( + ::google::protobuf::Arena* arena, + const GrpcService_GoogleGrpc_CallCredentials& from) + : ::google::protobuf::MessageLite(arena) { + GrpcService_GoogleGrpc_CallCredentials* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + switch (credential_specifier_case()) { + case CREDENTIAL_SPECIFIER_NOT_SET: + break; + case kAccessToken: + new (&_impl_.credential_specifier_.access_token_) decltype(_impl_.credential_specifier_.access_token_){arena, from._impl_.credential_specifier_.access_token_}; + break; + case kGoogleComputeEngine: + _impl_.credential_specifier_.google_compute_engine_ = ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_Empty>(arena, *from._impl_.credential_specifier_.google_compute_engine_); + break; + case kGoogleRefreshToken: + new (&_impl_.credential_specifier_.google_refresh_token_) decltype(_impl_.credential_specifier_.google_refresh_token_){arena, from._impl_.credential_specifier_.google_refresh_token_}; + break; + case kServiceAccountJwtAccess: + _impl_.credential_specifier_.service_account_jwt_access_ = ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>(arena, *from._impl_.credential_specifier_.service_account_jwt_access_); + break; + case kGoogleIam: + _impl_.credential_specifier_.google_iam_ = ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>(arena, *from._impl_.credential_specifier_.google_iam_); + break; + case kFromPlugin: + _impl_.credential_specifier_.from_plugin_ = ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>(arena, *from._impl_.credential_specifier_.from_plugin_); + break; + case kStsService: + _impl_.credential_specifier_.sts_service_ = ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_StsService>(arena, *from._impl_.credential_specifier_.sts_service_); + break; + } + + // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : credential_specifier_{}, + _cached_size_{0}, + _oneof_case_{} {} + +inline void GrpcService_GoogleGrpc_CallCredentials::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +GrpcService_GoogleGrpc_CallCredentials::~GrpcService_GoogleGrpc_CallCredentials() { + // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials) + _internal_metadata_.Delete(); + SharedDtor(); +} +inline void GrpcService_GoogleGrpc_CallCredentials::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + if (has_credential_specifier()) { + clear_credential_specifier(); + } + _impl_.~Impl_(); +} + +void GrpcService_GoogleGrpc_CallCredentials::clear_credential_specifier() { +// @@protoc_insertion_point(one_of_clear_start:GrpcService.GoogleGrpc.CallCredentials) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + switch (credential_specifier_case()) { case kAccessToken: { - set_access_token(from.access_token()); + _impl_.credential_specifier_.access_token_.Destroy(); break; } case kGoogleComputeEngine: { - mutable_google_compute_engine()->::GrpcService_GoogleGrpc_Empty::MergeFrom(from.google_compute_engine()); + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.google_compute_engine_; + } break; } case kGoogleRefreshToken: { - set_google_refresh_token(from.google_refresh_token()); + _impl_.credential_specifier_.google_refresh_token_.Destroy(); break; } case kServiceAccountJwtAccess: { - mutable_service_account_jwt_access()->::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::MergeFrom(from.service_account_jwt_access()); + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.service_account_jwt_access_; + } break; } case kGoogleIam: { - mutable_google_iam()->::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::MergeFrom(from.google_iam()); + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.google_iam_; + } break; } case kFromPlugin: { - mutable_from_plugin()->::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::MergeFrom(from.from_plugin()); + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.from_plugin_; + } break; } case kStsService: { - mutable_sts_service()->::GrpcService_GoogleGrpc_CallCredentials_StsService::MergeFrom(from.sts_service()); + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.sts_service_; + } break; } case CREDENTIAL_SPECIFIER_NOT_SET: { break; } } - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials) + _impl_._oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; } -void GrpcService_GoogleGrpc_CallCredentials::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - clear_has_credential_specifier(); -} -GrpcService_GoogleGrpc_CallCredentials::~GrpcService_GoogleGrpc_CallCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials) - SharedDtor(); -} +const ::google::protobuf::MessageLite::ClassData* +GrpcService_GoogleGrpc_CallCredentials::GetClassData() const { + struct ClassData_ { + ::google::protobuf::MessageLite::ClassData header; + char type_name[39]; + }; -void GrpcService_GoogleGrpc_CallCredentials::SharedDtor() { - if (has_credential_specifier()) { - clear_credential_specifier(); - } + PROTOBUF_CONSTINIT static const ClassData_ _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_._cached_size_), + true, + }, + "GrpcService.GoogleGrpc.CallCredentials", + }; + + return &_data_.header; } +PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_CallCredentials::Clear() { +// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -void GrpcService_GoogleGrpc_CallCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); + clear_credential_specifier(); + _internal_metadata_.Clear(); } -const GrpcService_GoogleGrpc_CallCredentials& GrpcService_GoogleGrpc_CallCredentials::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - return *internal_default_instance(); + +const char* GrpcService_GoogleGrpc_CallCredentials::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; } -void GrpcService_GoogleGrpc_CallCredentials::clear_credential_specifier() { -// @@protoc_insertion_point(one_of_clear_start:GrpcService.GoogleGrpc.CallCredentials) +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 7, 5, 79, 2> GrpcService_GoogleGrpc_CallCredentials::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 7, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967168, // skipmap + offsetof(decltype(_table_), field_entries), + 7, // num_field_entries + 5, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_GrpcService_GoogleGrpc_CallCredentials_default_instance_._instance, + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // string access_token = 1; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.access_token_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .GrpcService.GoogleGrpc.Empty google_compute_engine = 2; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.google_compute_engine_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // string google_refresh_token = 3; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.google_refresh_token_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.service_account_jwt_access_), _Internal::kOneofCaseOffset + 0, 1, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.google_iam_), _Internal::kOneofCaseOffset + 0, 2, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.from_plugin_), _Internal::kOneofCaseOffset + 0, 3, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.sts_service_), _Internal::kOneofCaseOffset + 0, 4, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_Empty>()}, + {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>()}, + {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>()}, + {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>()}, + {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_StsService>()}, + }}, {{ + "\46\14\0\24\0\0\0\0" + "GrpcService.GoogleGrpc.CallCredentials" + "access_token" + "google_refresh_token" + }}, +}; + +::uint8_t* GrpcService_GoogleGrpc_CallCredentials::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.CallCredentials) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + switch (credential_specifier_case()) { case kAccessToken: { - credential_specifier_.access_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + const std::string& _s = this->_internal_access_token(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.access_token"); + target = stream->WriteStringMaybeAliased(1, _s, target); break; } case kGoogleComputeEngine: { - delete credential_specifier_.google_compute_engine_; + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *_impl_.credential_specifier_.google_compute_engine_, _impl_.credential_specifier_.google_compute_engine_->GetCachedSize(), target, stream); break; } case kGoogleRefreshToken: { - credential_specifier_.google_refresh_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + const std::string& _s = this->_internal_google_refresh_token(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.google_refresh_token"); + target = stream->WriteStringMaybeAliased(3, _s, target); break; } case kServiceAccountJwtAccess: { - delete credential_specifier_.service_account_jwt_access_; + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *_impl_.credential_specifier_.service_account_jwt_access_, _impl_.credential_specifier_.service_account_jwt_access_->GetCachedSize(), target, stream); break; } case kGoogleIam: { - delete credential_specifier_.google_iam_; + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, *_impl_.credential_specifier_.google_iam_, _impl_.credential_specifier_.google_iam_->GetCachedSize(), target, stream); break; } case kFromPlugin: { - delete credential_specifier_.from_plugin_; + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *_impl_.credential_specifier_.from_plugin_, _impl_.credential_specifier_.from_plugin_->GetCachedSize(), target, stream); break; } case kStsService: { - delete credential_specifier_.sts_service_; + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 7, *_impl_.credential_specifier_.sts_service_, _impl_.credential_specifier_.sts_service_->GetCachedSize(), target, stream); break; } - case CREDENTIAL_SPECIFIER_NOT_SET: { + default: break; - } - } - _oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; -} - - -void GrpcService_GoogleGrpc_CallCredentials::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_credential_specifier(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_GoogleGrpc_CallCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string access_token = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_access_token(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .GrpcService.GoogleGrpc.Empty google_compute_engine = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(mutable_google_compute_engine(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string google_refresh_token = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_google_refresh_token(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ctx->ParseMessage(mutable_service_account_jwt_access(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr = ctx->ParseMessage(mutable_google_iam(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr = ctx->ParseMessage(mutable_from_plugin(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { - ptr = ctx->ParseMessage(mutable_sts_service(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_GoogleGrpc_CallCredentials::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GrpcService.GoogleGrpc.CallCredentials) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string access_token = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_access_token())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->access_token().data(), static_cast(this->access_token().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.access_token")); - } else { - goto handle_unusual; - } - break; - } - - // .GrpcService.GoogleGrpc.Empty google_compute_engine = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_google_compute_engine())); - } else { - goto handle_unusual; - } - break; - } - - // string google_refresh_token = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_google_refresh_token())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->google_refresh_token().data(), static_cast(this->google_refresh_token().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.google_refresh_token")); - } else { - goto handle_unusual; - } - break; - } - - // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_service_account_jwt_access())); - } else { - goto handle_unusual; - } - break; - } - - // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; - case 5: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_google_iam())); - } else { - goto handle_unusual; - } - break; - } - - // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; - case 6: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_from_plugin())); - } else { - goto handle_unusual; - } - break; - } - - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - case 7: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_sts_service())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc.CallCredentials) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.GoogleGrpc.CallCredentials) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GrpcService_GoogleGrpc_CallCredentials::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.GoogleGrpc.CallCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string access_token = 1; - if (has_access_token()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->access_token().data(), static_cast(this->access_token().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.access_token"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->access_token(), output); - } - - // .GrpcService.GoogleGrpc.Empty google_compute_engine = 2; - if (has_google_compute_engine()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 2, _Internal::google_compute_engine(this), output); - } - - // string google_refresh_token = 3; - if (has_google_refresh_token()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->google_refresh_token().data(), static_cast(this->google_refresh_token().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.google_refresh_token"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->google_refresh_token(), output); - } - - // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; - if (has_service_account_jwt_access()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 4, _Internal::service_account_jwt_access(this), output); } - - // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; - if (has_google_iam()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 5, _Internal::google_iam(this), output); - } - - // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; - if (has_from_plugin()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 6, _Internal::from_plugin(this), output); - } - - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - if (has_sts_service()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 7, _Internal::sts_service(this), output); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size()), target); } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.CallCredentials) + // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.CallCredentials) + return target; } -size_t GrpcService_GoogleGrpc_CallCredentials::ByteSizeLong() const { +::size_t GrpcService_GoogleGrpc_CallCredentials::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials) - size_t total_size = 0; + ::size_t total_size = 0; - total_size += _internal_metadata_.unknown_fields().size(); - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; switch (credential_specifier_case()) { // string access_token = 1; case kAccessToken: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->access_token()); + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_access_token()); break; } // .GrpcService.GoogleGrpc.Empty google_compute_engine = 2; case kGoogleComputeEngine: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *credential_specifier_.google_compute_engine_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.google_compute_engine_); break; } // string google_refresh_token = 3; case kGoogleRefreshToken: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->google_refresh_token()); + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_google_refresh_token()); break; } // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; case kServiceAccountJwtAccess: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *credential_specifier_.service_account_jwt_access_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.service_account_jwt_access_); break; } // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; case kGoogleIam: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *credential_specifier_.google_iam_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.google_iam_); break; } // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; case kFromPlugin: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *credential_specifier_.from_plugin_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.from_plugin_); break; } // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; case kStsService: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *credential_specifier_.sts_service_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.sts_service_); break; } case CREDENTIAL_SPECIFIER_NOT_SET: { break; } } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size(); + } + _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void GrpcService_GoogleGrpc_CallCredentials::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::_pbi::DownCast( &from)); } void GrpcService_GoogleGrpc_CallCredentials::MergeFrom(const GrpcService_GoogleGrpc_CallCredentials& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + GrpcService_GoogleGrpc_CallCredentials* const _this = this; + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - switch (from.credential_specifier_case()) { - case kAccessToken: { - set_access_token(from.access_token()); - break; - } - case kGoogleComputeEngine: { - mutable_google_compute_engine()->::GrpcService_GoogleGrpc_Empty::MergeFrom(from.google_compute_engine()); - break; - } - case kGoogleRefreshToken: { - set_google_refresh_token(from.google_refresh_token()); - break; - } - case kServiceAccountJwtAccess: { - mutable_service_account_jwt_access()->::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::MergeFrom(from.service_account_jwt_access()); - break; - } - case kGoogleIam: { - mutable_google_iam()->::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::MergeFrom(from.google_iam()); - break; - } - case kFromPlugin: { - mutable_from_plugin()->::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::MergeFrom(from.from_plugin()); - break; - } - case kStsService: { - mutable_sts_service()->::GrpcService_GoogleGrpc_CallCredentials_StsService::MergeFrom(from.sts_service()); - break; + if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { + const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; + const bool oneof_needs_init = oneof_to_case != oneof_from_case; + if (oneof_needs_init) { + if (oneof_to_case != 0) { + _this->clear_credential_specifier(); + } + _this->_impl_._oneof_case_[0] = oneof_from_case; } - case CREDENTIAL_SPECIFIER_NOT_SET: { - break; + + switch (oneof_from_case) { + case kAccessToken: { + if (oneof_needs_init) { + _this->_impl_.credential_specifier_.access_token_.InitDefault(); + } + _this->_impl_.credential_specifier_.access_token_.Set(from._internal_access_token(), arena); + break; + } + case kGoogleComputeEngine: { + if (oneof_needs_init) { + _this->_impl_.credential_specifier_.google_compute_engine_ = + ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_Empty>(arena, *from._impl_.credential_specifier_.google_compute_engine_); + } else { + _this->_impl_.credential_specifier_.google_compute_engine_->MergeFrom(from._internal_google_compute_engine()); + } + break; + } + case kGoogleRefreshToken: { + if (oneof_needs_init) { + _this->_impl_.credential_specifier_.google_refresh_token_.InitDefault(); + } + _this->_impl_.credential_specifier_.google_refresh_token_.Set(from._internal_google_refresh_token(), arena); + break; + } + case kServiceAccountJwtAccess: { + if (oneof_needs_init) { + _this->_impl_.credential_specifier_.service_account_jwt_access_ = + ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>(arena, *from._impl_.credential_specifier_.service_account_jwt_access_); + } else { + _this->_impl_.credential_specifier_.service_account_jwt_access_->MergeFrom(from._internal_service_account_jwt_access()); + } + break; + } + case kGoogleIam: { + if (oneof_needs_init) { + _this->_impl_.credential_specifier_.google_iam_ = + ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>(arena, *from._impl_.credential_specifier_.google_iam_); + } else { + _this->_impl_.credential_specifier_.google_iam_->MergeFrom(from._internal_google_iam()); + } + break; + } + case kFromPlugin: { + if (oneof_needs_init) { + _this->_impl_.credential_specifier_.from_plugin_ = + ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>(arena, *from._impl_.credential_specifier_.from_plugin_); + } else { + _this->_impl_.credential_specifier_.from_plugin_->MergeFrom(from._internal_from_plugin()); + } + break; + } + case kStsService: { + if (oneof_needs_init) { + _this->_impl_.credential_specifier_.sts_service_ = + ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_StsService>(arena, *from._impl_.credential_specifier_.sts_service_); + } else { + _this->_impl_.credential_specifier_.sts_service_->MergeFrom(from._internal_sts_service()); + } + break; + } + case CREDENTIAL_SPECIFIER_NOT_SET: + break; } } + _this->_internal_metadata_.MergeFrom(from._internal_metadata_); } void GrpcService_GoogleGrpc_CallCredentials::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials& from) { @@ -4728,483 +4140,386 @@ void GrpcService_GoogleGrpc_CallCredentials::CopyFrom(const GrpcService_GoogleGr MergeFrom(from); } -bool GrpcService_GoogleGrpc_CallCredentials::IsInitialized() const { +PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_CallCredentials::IsInitialized() const { return true; } -void GrpcService_GoogleGrpc_CallCredentials::InternalSwap(GrpcService_GoogleGrpc_CallCredentials* other) { +void GrpcService_GoogleGrpc_CallCredentials::InternalSwap(GrpcService_GoogleGrpc_CallCredentials* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(credential_specifier_, other->credential_specifier_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.credential_specifier_, other->_impl_.credential_specifier_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } -std::string GrpcService_GoogleGrpc_CallCredentials::GetTypeName() const { - return "GrpcService.GoogleGrpc.CallCredentials"; -} - - // =================================================================== -void GrpcService_GoogleGrpc::InitAsDefaultInstance() { - ::_GrpcService_GoogleGrpc_default_instance_._instance.get_mutable()->channel_credentials_ = const_cast< ::GrpcService_GoogleGrpc_ChannelCredentials*>( - ::GrpcService_GoogleGrpc_ChannelCredentials::internal_default_instance()); - ::_GrpcService_GoogleGrpc_default_instance_._instance.get_mutable()->config_ = const_cast< ::google::protobuf::Struct*>( - ::google::protobuf::Struct::internal_default_instance()); -} class GrpcService_GoogleGrpc::_Internal { public: - static const ::GrpcService_GoogleGrpc_ChannelCredentials& channel_credentials(const GrpcService_GoogleGrpc* msg); - static const ::google::protobuf::Struct& config(const GrpcService_GoogleGrpc* msg); + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_._has_bits_); }; -const ::GrpcService_GoogleGrpc_ChannelCredentials& -GrpcService_GoogleGrpc::_Internal::channel_credentials(const GrpcService_GoogleGrpc* msg) { - return *msg->channel_credentials_; -} -const ::google::protobuf::Struct& -GrpcService_GoogleGrpc::_Internal::config(const GrpcService_GoogleGrpc* msg) { - return *msg->config_; -} void GrpcService_GoogleGrpc::clear_config() { - if (GetArenaNoVirtual() == nullptr && config_ != nullptr) { - delete config_; - } - config_ = nullptr; -} -GrpcService_GoogleGrpc::GrpcService_GoogleGrpc() - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.GoogleGrpc) -} -GrpcService_GoogleGrpc::GrpcService_GoogleGrpc(const GrpcService_GoogleGrpc& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _internal_metadata_(nullptr), - call_credentials_(from.call_credentials_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - target_uri_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.target_uri().empty()) { - target_uri_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.target_uri_); - } - stat_prefix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.stat_prefix().empty()) { - stat_prefix_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.stat_prefix_); - } - credentials_factory_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.credentials_factory_name().empty()) { - credentials_factory_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.credentials_factory_name_); - } - if (from.has_channel_credentials()) { - channel_credentials_ = new ::GrpcService_GoogleGrpc_ChannelCredentials(*from.channel_credentials_); - } else { - channel_credentials_ = nullptr; - } - if (from.has_config()) { - config_ = new ::google::protobuf::Struct(*from.config_); - } else { - config_ = nullptr; - } + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.config_ != nullptr) _impl_.config_->Clear(); + _impl_._has_bits_[0] &= ~0x00000002u; +} +GrpcService_GoogleGrpc::GrpcService_GoogleGrpc(::google::protobuf::Arena* arena) + : ::google::protobuf::MessageLite(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + call_credentials_{visibility, arena, from.call_credentials_}, + target_uri_(arena, from.target_uri_), + stat_prefix_(arena, from.stat_prefix_), + credentials_factory_name_(arena, from.credentials_factory_name_) {} + +GrpcService_GoogleGrpc::GrpcService_GoogleGrpc( + ::google::protobuf::Arena* arena, + const GrpcService_GoogleGrpc& from) + : ::google::protobuf::MessageLite(arena) { + GrpcService_GoogleGrpc* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.channel_credentials_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_ChannelCredentials>( + arena, *from._impl_.channel_credentials_) + : nullptr; + _impl_.config_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::MessageLite::CopyConstruct<::google::protobuf::Struct>( + arena, *from._impl_.config_) + : nullptr; + // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc) } - -void GrpcService_GoogleGrpc::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_GoogleGrpc_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - target_uri_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - stat_prefix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - credentials_factory_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&channel_credentials_, 0, static_cast( - reinterpret_cast(&config_) - - reinterpret_cast(&channel_credentials_)) + sizeof(config_)); +inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + call_credentials_{visibility, arena}, + target_uri_(arena), + stat_prefix_(arena), + credentials_factory_name_(arena) {} + +inline void GrpcService_GoogleGrpc::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, channel_credentials_), + 0, + offsetof(Impl_, config_) - + offsetof(Impl_, channel_credentials_) + + sizeof(Impl_::config_)); } - GrpcService_GoogleGrpc::~GrpcService_GoogleGrpc() { // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc) + _internal_metadata_.Delete(); SharedDtor(); } - -void GrpcService_GoogleGrpc::SharedDtor() { - target_uri_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - stat_prefix_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - credentials_factory_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete channel_credentials_; - if (this != internal_default_instance()) delete config_; -} - -void GrpcService_GoogleGrpc::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_GoogleGrpc& GrpcService_GoogleGrpc::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_GoogleGrpc_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - return *internal_default_instance(); -} - - -void GrpcService_GoogleGrpc::Clear() { +inline void GrpcService_GoogleGrpc::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.target_uri_.Destroy(); + _impl_.stat_prefix_.Destroy(); + _impl_.credentials_factory_name_.Destroy(); + delete _impl_.channel_credentials_; + delete _impl_.config_; + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +GrpcService_GoogleGrpc::GetClassData() const { + struct ClassData_ { + ::google::protobuf::MessageLite::ClassData header; + char type_name[23]; + }; + + PROTOBUF_CONSTINIT static const ClassData_ _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_._cached_size_), + true, + }, + "GrpcService.GoogleGrpc", + }; + + return &_data_.header; +} +PROTOBUF_NOINLINE void GrpcService_GoogleGrpc::Clear() { // @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - call_credentials_.Clear(); - target_uri_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - stat_prefix_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - credentials_factory_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && channel_credentials_ != nullptr) { - delete channel_credentials_; - } - channel_credentials_ = nullptr; - if (GetArenaNoVirtual() == nullptr && config_ != nullptr) { - delete config_; - } - config_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_GoogleGrpc::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string target_uri = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_target_uri(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(mutable_channel_credentials(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_call_credentials(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); - } else goto handle_unusual; - continue; - // string stat_prefix = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_stat_prefix(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string credentials_factory_name = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_credentials_factory_name(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .google.protobuf.Struct config = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr = ctx->ParseMessage(mutable_config(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_GoogleGrpc::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GrpcService.GoogleGrpc) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string target_uri = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_target_uri())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->target_uri().data(), static_cast(this->target_uri().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.target_uri")); - } else { - goto handle_unusual; - } - break; - } - - // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_channel_credentials())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_call_credentials())); - } else { - goto handle_unusual; - } - break; - } - - // string stat_prefix = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_stat_prefix())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->stat_prefix().data(), static_cast(this->stat_prefix().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.stat_prefix")); - } else { - goto handle_unusual; - } - break; - } - - // string credentials_factory_name = 5; - case 5: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_credentials_factory_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->credentials_factory_name().data(), static_cast(this->credentials_factory_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.credentials_factory_name")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Struct config = 6; - case 6: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_config())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } + _impl_.call_credentials_.Clear(); + _impl_.target_uri_.ClearToEmpty(); + _impl_.stat_prefix_.ClearToEmpty(); + _impl_.credentials_factory_name_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.channel_credentials_ != nullptr); + _impl_.channel_credentials_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.config_ != nullptr); + _impl_.config_->Clear(); } } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.GoogleGrpc) - return false; -#undef DO_ + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear(); } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void GrpcService_GoogleGrpc::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.GoogleGrpc) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; +const char* GrpcService_GoogleGrpc::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 6, 3, 76, 2> GrpcService_GoogleGrpc::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_._has_bits_), + 0, // no _extensions_ + 6, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967232, // skipmap + offsetof(decltype(_table_), field_entries), + 6, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_GrpcService_GoogleGrpc_default_instance_._instance, + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string target_uri = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.target_uri_)}}, + // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.channel_credentials_)}}, + // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; + {::_pbi::TcParser::FastMtR1, + {26, 63, 1, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.call_credentials_)}}, + // string stat_prefix = 4; + {::_pbi::TcParser::FastUS1, + {34, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.stat_prefix_)}}, + // string credentials_factory_name = 5; + {::_pbi::TcParser::FastUS1, + {42, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.credentials_factory_name_)}}, + // .google.protobuf.Struct config = 6; + {::_pbi::TcParser::FastMtS1, + {50, 1, 2, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.config_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // string target_uri = 1; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.target_uri_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.channel_credentials_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.call_credentials_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // string stat_prefix = 4; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.stat_prefix_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string credentials_factory_name = 5; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.credentials_factory_name_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .google.protobuf.Struct config = 6; + {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.config_), _Internal::kHasBitsOffset + 1, 2, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_ChannelCredentials>()}, + {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, + }}, {{ + "\26\12\0\0\13\30\0\0" + "GrpcService.GoogleGrpc" + "target_uri" + "stat_prefix" + "credentials_factory_name" + }}, +}; + +::uint8_t* GrpcService_GoogleGrpc::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; // string target_uri = 1; - if (this->target_uri().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->target_uri().data(), static_cast(this->target_uri().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.target_uri"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->target_uri(), output); + if (!this->_internal_target_uri().empty()) { + const std::string& _s = this->_internal_target_uri(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.target_uri"); + target = stream->WriteStringMaybeAliased(1, _s, target); } + cached_has_bits = _impl_._has_bits_[0]; // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - if (this->has_channel_credentials()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 2, _Internal::channel_credentials(this), output); + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *_impl_.channel_credentials_, _impl_.channel_credentials_->GetCachedSize(), target, stream); } // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; - for (unsigned int i = 0, - n = static_cast(this->call_credentials_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 3, - this->call_credentials(static_cast(i)), - output); + for (unsigned i = 0, n = static_cast( + this->_internal_call_credentials_size()); + i < n; i++) { + const auto& repfield = this->_internal_call_credentials().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, repfield, repfield.GetCachedSize(), + target, stream); } // string stat_prefix = 4; - if (this->stat_prefix().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->stat_prefix().data(), static_cast(this->stat_prefix().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.stat_prefix"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->stat_prefix(), output); + if (!this->_internal_stat_prefix().empty()) { + const std::string& _s = this->_internal_stat_prefix(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.stat_prefix"); + target = stream->WriteStringMaybeAliased(4, _s, target); } // string credentials_factory_name = 5; - if (this->credentials_factory_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->credentials_factory_name().data(), static_cast(this->credentials_factory_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.credentials_factory_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->credentials_factory_name(), output); + if (!this->_internal_credentials_factory_name().empty()) { + const std::string& _s = this->_internal_credentials_factory_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.credentials_factory_name"); + target = stream->WriteStringMaybeAliased(5, _s, target); } // .google.protobuf.Struct config = 6; - if (this->has_config()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 6, _Internal::config(this), output); + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *_impl_.config_, _impl_.config_->GetCachedSize(), target, stream); } - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc) + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc) + return target; } -size_t GrpcService_GoogleGrpc::ByteSizeLong() const { +::size_t GrpcService_GoogleGrpc::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc) - size_t total_size = 0; + ::size_t total_size = 0; - total_size += _internal_metadata_.unknown_fields().size(); - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; - { - unsigned int count = static_cast(this->call_credentials_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->call_credentials(static_cast(i))); - } + total_size += 1UL * this->_internal_call_credentials_size(); + for (const auto& msg : this->_internal_call_credentials()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } - // string target_uri = 1; - if (this->target_uri().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->target_uri()); + if (!this->_internal_target_uri().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_target_uri()); } // string stat_prefix = 4; - if (this->stat_prefix().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->stat_prefix()); + if (!this->_internal_stat_prefix().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_stat_prefix()); } // string credentials_factory_name = 5; - if (this->credentials_factory_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->credentials_factory_name()); + if (!this->_internal_credentials_factory_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_credentials_factory_name()); } - // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - if (this->has_channel_credentials()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *channel_credentials_); - } + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; + if (cached_has_bits & 0x00000001u) { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.channel_credentials_); + } - // .google.protobuf.Struct config = 6; - if (this->has_config()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *config_); - } + // .google.protobuf.Struct config = 6; + if (cached_has_bits & 0x00000002u) { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.config_); + } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size(); + } + _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void GrpcService_GoogleGrpc::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::_pbi::DownCast( &from)); } void GrpcService_GoogleGrpc::MergeFrom(const GrpcService_GoogleGrpc& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + GrpcService_GoogleGrpc* const _this = this; + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - call_credentials_.MergeFrom(from.call_credentials_); - if (from.target_uri().size() > 0) { - - target_uri_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.target_uri_); - } - if (from.stat_prefix().size() > 0) { - - stat_prefix_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.stat_prefix_); - } - if (from.credentials_factory_name().size() > 0) { - - credentials_factory_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.credentials_factory_name_); - } - if (from.has_channel_credentials()) { - mutable_channel_credentials()->::GrpcService_GoogleGrpc_ChannelCredentials::MergeFrom(from.channel_credentials()); - } - if (from.has_config()) { - mutable_config()->::google::protobuf::Struct::MergeFrom(from.config()); + _this->_internal_mutable_call_credentials()->MergeFrom( + from._internal_call_credentials()); + if (!from._internal_target_uri().empty()) { + _this->_internal_set_target_uri(from._internal_target_uri()); + } + if (!from._internal_stat_prefix().empty()) { + _this->_internal_set_stat_prefix(from._internal_stat_prefix()); + } + if (!from._internal_credentials_factory_name().empty()) { + _this->_internal_set_credentials_factory_name(from._internal_credentials_factory_name()); + } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.channel_credentials_ != nullptr); + if (_this->_impl_.channel_credentials_ == nullptr) { + _this->_impl_.channel_credentials_ = + ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_ChannelCredentials>(arena, *from._impl_.channel_credentials_); + } else { + _this->_impl_.channel_credentials_->MergeFrom(*from._impl_.channel_credentials_); + } + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(from._impl_.config_ != nullptr); + if (_this->_impl_.config_ == nullptr) { + _this->_impl_.config_ = + ::google::protobuf::MessageLite::CopyConstruct<::google::protobuf::Struct>(arena, *from._impl_.config_); + } else { + _this->_impl_.config_->MergeFrom(*from._impl_.config_); + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom(from._internal_metadata_); } void GrpcService_GoogleGrpc::CopyFrom(const GrpcService_GoogleGrpc& from) { @@ -5214,283 +4529,239 @@ void GrpcService_GoogleGrpc::CopyFrom(const GrpcService_GoogleGrpc& from) { MergeFrom(from); } -bool GrpcService_GoogleGrpc::IsInitialized() const { +PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc::IsInitialized() const { return true; } -void GrpcService_GoogleGrpc::InternalSwap(GrpcService_GoogleGrpc* other) { +void GrpcService_GoogleGrpc::InternalSwap(GrpcService_GoogleGrpc* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&call_credentials_)->InternalSwap(CastToBase(&other->call_credentials_)); - target_uri_.Swap(&other->target_uri_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - stat_prefix_.Swap(&other->stat_prefix_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - credentials_factory_name_.Swap(&other->credentials_factory_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(channel_credentials_, other->channel_credentials_); - swap(config_, other->config_); -} - -std::string GrpcService_GoogleGrpc::GetTypeName() const { - return "GrpcService.GoogleGrpc"; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.call_credentials_.InternalSwap(&other->_impl_.call_credentials_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.target_uri_, &other->_impl_.target_uri_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.stat_prefix_, &other->_impl_.stat_prefix_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.credentials_factory_name_, &other->_impl_.credentials_factory_name_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.config_) + + sizeof(GrpcService_GoogleGrpc::_impl_.config_) + - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.channel_credentials_)>( + reinterpret_cast(&_impl_.channel_credentials_), + reinterpret_cast(&other->_impl_.channel_credentials_)); } - // =================================================================== -void GrpcService_HeaderValue::InitAsDefaultInstance() { -} class GrpcService_HeaderValue::_Internal { public: }; -GrpcService_HeaderValue::GrpcService_HeaderValue() - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.HeaderValue) -} -GrpcService_HeaderValue::GrpcService_HeaderValue(const GrpcService_HeaderValue& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.key().empty()) { - key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_); - } - value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.value().empty()) { - value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); - } +GrpcService_HeaderValue::GrpcService_HeaderValue(::google::protobuf::Arena* arena) + : ::google::protobuf::MessageLite(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService.HeaderValue) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService_HeaderValue::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : key_(arena, from.key_), + value_(arena, from.value_), + _cached_size_{0} {} + +GrpcService_HeaderValue::GrpcService_HeaderValue( + ::google::protobuf::Arena* arena, + const GrpcService_HeaderValue& from) + : ::google::protobuf::MessageLite(arena) { + GrpcService_HeaderValue* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + // @@protoc_insertion_point(copy_constructor:GrpcService.HeaderValue) } +inline PROTOBUF_NDEBUG_INLINE GrpcService_HeaderValue::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : key_(arena), + value_(arena), + _cached_size_{0} {} -void GrpcService_HeaderValue::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_HeaderValue_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void GrpcService_HeaderValue::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - GrpcService_HeaderValue::~GrpcService_HeaderValue() { // @@protoc_insertion_point(destructor:GrpcService.HeaderValue) + _internal_metadata_.Delete(); SharedDtor(); } - -void GrpcService_HeaderValue::SharedDtor() { - key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void GrpcService_HeaderValue::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.key_.Destroy(); + _impl_.value_.Destroy(); + _impl_.~Impl_(); } -void GrpcService_HeaderValue::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_HeaderValue& GrpcService_HeaderValue::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_HeaderValue_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - return *internal_default_instance(); -} +const ::google::protobuf::MessageLite::ClassData* +GrpcService_HeaderValue::GetClassData() const { + struct ClassData_ { + ::google::protobuf::MessageLite::ClassData header; + char type_name[24]; + }; + PROTOBUF_CONSTINIT static const ClassData_ _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService_HeaderValue, _impl_._cached_size_), + true, + }, + "GrpcService.HeaderValue", + }; -void GrpcService_HeaderValue::Clear() { + return &_data_.header; +} +PROTOBUF_NOINLINE void GrpcService_HeaderValue::Clear() { // @@protoc_insertion_point(message_clear_start:GrpcService.HeaderValue) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_HeaderValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string key = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_key(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string value = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_value(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: + _impl_.key_.ClearToEmpty(); + _impl_.value_.ClearToEmpty(); + _internal_metadata_.Clear(); +} + +const char* GrpcService_HeaderValue::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_HeaderValue::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GrpcService.HeaderValue) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string key = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_key())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.HeaderValue.key")); - } else { - goto handle_unusual; - } - break; - } +} - // string value = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_value())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.HeaderValue.value")); - } else { - goto handle_unusual; - } - break; - } - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.HeaderValue) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.HeaderValue) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 40, 2> GrpcService_HeaderValue::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GrpcService_HeaderValue_default_instance_._instance, + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService_HeaderValue>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string value = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_HeaderValue, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_HeaderValue, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(GrpcService_HeaderValue, _impl_.key_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string value = 2; + {PROTOBUF_FIELD_OFFSET(GrpcService_HeaderValue, _impl_.value_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\27\3\5\0\0\0\0\0" + "GrpcService.HeaderValue" + "key" + "value" + }}, +}; -void GrpcService_HeaderValue::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.HeaderValue) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; +::uint8_t* GrpcService_HeaderValue::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GrpcService.HeaderValue) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; // string key = 1; - if (this->key().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.HeaderValue.key"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->key(), output); + if (!this->_internal_key().empty()) { + const std::string& _s = this->_internal_key(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.HeaderValue.key"); + target = stream->WriteStringMaybeAliased(1, _s, target); } // string value = 2; - if (this->value().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.HeaderValue.value"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->value(), output); + if (!this->_internal_value().empty()) { + const std::string& _s = this->_internal_value(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.HeaderValue.value"); + target = stream->WriteStringMaybeAliased(2, _s, target); } - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService.HeaderValue) + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GrpcService.HeaderValue) + return target; } -size_t GrpcService_HeaderValue::ByteSizeLong() const { +::size_t GrpcService_HeaderValue::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GrpcService.HeaderValue) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string key = 1; - if (this->key().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->key()); + if (!this->_internal_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_key()); } // string value = 2; - if (this->value().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->value()); + if (!this->_internal_value().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_value()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size(); + } + _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void GrpcService_HeaderValue::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::_pbi::DownCast( &from)); } void GrpcService_HeaderValue::MergeFrom(const GrpcService_HeaderValue& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.HeaderValue) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + GrpcService_HeaderValue* const _this = this; + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.HeaderValue) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.key().size() > 0) { - - key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_); + if (!from._internal_key().empty()) { + _this->_internal_set_key(from._internal_key()); } - if (from.value().size() > 0) { - - value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); + if (!from._internal_value().empty()) { + _this->_internal_set_value(from._internal_value()); } + _this->_internal_metadata_.MergeFrom(from._internal_metadata_); } void GrpcService_HeaderValue::CopyFrom(const GrpcService_HeaderValue& from) { @@ -5500,380 +4771,342 @@ void GrpcService_HeaderValue::CopyFrom(const GrpcService_HeaderValue& from) { MergeFrom(from); } -bool GrpcService_HeaderValue::IsInitialized() const { +PROTOBUF_NOINLINE bool GrpcService_HeaderValue::IsInitialized() const { return true; } -void GrpcService_HeaderValue::InternalSwap(GrpcService_HeaderValue* other) { +void GrpcService_HeaderValue::InternalSwap(GrpcService_HeaderValue* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - key_.Swap(&other->key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - value_.Swap(&other->value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -std::string GrpcService_HeaderValue::GetTypeName() const { - return "GrpcService.HeaderValue"; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, &other->_impl_.key_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.value_, &other->_impl_.value_, arena); } - // =================================================================== -void GrpcService::InitAsDefaultInstance() { -} class GrpcService::_Internal { public: - static const ::GrpcService_EnvoyGrpc& envoy_grpc(const GrpcService* msg); - static const ::GrpcService_GoogleGrpc& google_grpc(const GrpcService* msg); + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::GrpcService, _impl_._oneof_case_); }; -const ::GrpcService_EnvoyGrpc& -GrpcService::_Internal::envoy_grpc(const GrpcService* msg) { - return *msg->target_specifier_.envoy_grpc_; -} -const ::GrpcService_GoogleGrpc& -GrpcService::_Internal::google_grpc(const GrpcService* msg) { - return *msg->target_specifier_.google_grpc_; -} void GrpcService::set_allocated_envoy_grpc(::GrpcService_EnvoyGrpc* envoy_grpc) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_target_specifier(); if (envoy_grpc) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = envoy_grpc->GetArena(); if (message_arena != submessage_arena) { - envoy_grpc = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, envoy_grpc, submessage_arena); + envoy_grpc = ::google::protobuf::internal::GetOwnedMessage(message_arena, envoy_grpc, submessage_arena); } set_has_envoy_grpc(); - target_specifier_.envoy_grpc_ = envoy_grpc; + _impl_.target_specifier_.envoy_grpc_ = envoy_grpc; } // @@protoc_insertion_point(field_set_allocated:GrpcService.envoy_grpc) } void GrpcService::set_allocated_google_grpc(::GrpcService_GoogleGrpc* google_grpc) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_target_specifier(); if (google_grpc) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = google_grpc->GetArena(); if (message_arena != submessage_arena) { - google_grpc = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, google_grpc, submessage_arena); + google_grpc = ::google::protobuf::internal::GetOwnedMessage(message_arena, google_grpc, submessage_arena); } set_has_google_grpc(); - target_specifier_.google_grpc_ = google_grpc; + _impl_.target_specifier_.google_grpc_ = google_grpc; } // @@protoc_insertion_point(field_set_allocated:GrpcService.google_grpc) } -GrpcService::GrpcService() - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService) -} -GrpcService::GrpcService(const GrpcService& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _internal_metadata_(nullptr), - initial_metadata_(from.initial_metadata_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_target_specifier(); - switch (from.target_specifier_case()) { - case kEnvoyGrpc: { - mutable_envoy_grpc()->::GrpcService_EnvoyGrpc::MergeFrom(from.envoy_grpc()); - break; - } - case kGoogleGrpc: { - mutable_google_grpc()->::GrpcService_GoogleGrpc::MergeFrom(from.google_grpc()); - break; - } - case TARGET_SPECIFIER_NOT_SET: { +GrpcService::GrpcService(::google::protobuf::Arena* arena) + : ::google::protobuf::MessageLite(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:GrpcService) +} +inline PROTOBUF_NDEBUG_INLINE GrpcService::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : initial_metadata_{visibility, arena, from.initial_metadata_}, + target_specifier_{}, + _cached_size_{0}, + _oneof_case_{from._oneof_case_[0]} {} + +GrpcService::GrpcService( + ::google::protobuf::Arena* arena, + const GrpcService& from) + : ::google::protobuf::MessageLite(arena) { + GrpcService* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + switch (target_specifier_case()) { + case TARGET_SPECIFIER_NOT_SET: break; - } + case kEnvoyGrpc: + _impl_.target_specifier_.envoy_grpc_ = ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_EnvoyGrpc>(arena, *from._impl_.target_specifier_.envoy_grpc_); + break; + case kGoogleGrpc: + _impl_.target_specifier_.google_grpc_ = ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc>(arena, *from._impl_.target_specifier_.google_grpc_); + break; } + // @@protoc_insertion_point(copy_constructor:GrpcService) } +inline PROTOBUF_NDEBUG_INLINE GrpcService::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : initial_metadata_{visibility, arena}, + target_specifier_{}, + _cached_size_{0}, + _oneof_case_{} {} -void GrpcService::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - clear_has_target_specifier(); +inline void GrpcService::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - GrpcService::~GrpcService() { // @@protoc_insertion_point(destructor:GrpcService) + _internal_metadata_.Delete(); SharedDtor(); } - -void GrpcService::SharedDtor() { +inline void GrpcService::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); if (has_target_specifier()) { clear_target_specifier(); } + _impl_.~Impl_(); } -void GrpcService::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService& GrpcService::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - return *internal_default_instance(); -} - - void GrpcService::clear_target_specifier() { // @@protoc_insertion_point(one_of_clear_start:GrpcService) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (target_specifier_case()) { case kEnvoyGrpc: { - delete target_specifier_.envoy_grpc_; + if (GetArena() == nullptr) { + delete _impl_.target_specifier_.envoy_grpc_; + } break; } case kGoogleGrpc: { - delete target_specifier_.google_grpc_; + if (GetArena() == nullptr) { + delete _impl_.target_specifier_.google_grpc_; + } break; } case TARGET_SPECIFIER_NOT_SET: { break; } } - _oneof_case_[0] = TARGET_SPECIFIER_NOT_SET; + _impl_._oneof_case_[0] = TARGET_SPECIFIER_NOT_SET; } -void GrpcService::Clear() { +const ::google::protobuf::MessageLite::ClassData* +GrpcService::GetClassData() const { + struct ClassData_ { + ::google::protobuf::MessageLite::ClassData header; + char type_name[12]; + }; + + PROTOBUF_CONSTINIT static const ClassData_ _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GrpcService, _impl_._cached_size_), + true, + }, + "GrpcService", + }; + + return &_data_.header; +} +PROTOBUF_NOINLINE void GrpcService::Clear() { // @@protoc_insertion_point(message_clear_start:GrpcService) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - initial_metadata_.Clear(); + _impl_.initial_metadata_.Clear(); clear_target_specifier(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .GrpcService.EnvoyGrpc envoy_grpc = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_envoy_grpc(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .GrpcService.GoogleGrpc google_grpc = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(mutable_google_grpc(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .GrpcService.HeaderValue initial_metadata = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_initial_metadata(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 42); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GrpcService) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .GrpcService.EnvoyGrpc envoy_grpc = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_envoy_grpc())); - } else { - goto handle_unusual; - } - break; - } - - // .GrpcService.GoogleGrpc google_grpc = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_google_grpc())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .GrpcService.HeaderValue initial_metadata = 5; - case 5: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_initial_metadata())); - } else { - goto handle_unusual; - } - break; - } + _internal_metadata_.Clear(); +} - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GrpcService) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService) - return false; -#undef DO_ +const char* GrpcService::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void GrpcService::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - // .GrpcService.EnvoyGrpc envoy_grpc = 1; - if (has_envoy_grpc()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 1, _Internal::envoy_grpc(this), output); - } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 3, 3, 0, 2> GrpcService::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 5, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967276, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_GrpcService_default_instance_._instance, + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::GrpcService>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated .GrpcService.HeaderValue initial_metadata = 5; + {::_pbi::TcParser::FastMtR1, + {42, 63, 2, PROTOBUF_FIELD_OFFSET(GrpcService, _impl_.initial_metadata_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .GrpcService.EnvoyGrpc envoy_grpc = 1; + {PROTOBUF_FIELD_OFFSET(GrpcService, _impl_.target_specifier_.envoy_grpc_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .GrpcService.GoogleGrpc google_grpc = 2; + {PROTOBUF_FIELD_OFFSET(GrpcService, _impl_.target_specifier_.google_grpc_), _Internal::kOneofCaseOffset + 0, 1, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .GrpcService.HeaderValue initial_metadata = 5; + {PROTOBUF_FIELD_OFFSET(GrpcService, _impl_.initial_metadata_), 0, 2, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::GrpcService_EnvoyGrpc>()}, + {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc>()}, + {::_pbi::TcParser::GetTable<::GrpcService_HeaderValue>()}, + }}, {{ + }}, +}; - // .GrpcService.GoogleGrpc google_grpc = 2; - if (has_google_grpc()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 2, _Internal::google_grpc(this), output); - } +::uint8_t* GrpcService::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GrpcService) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + switch (target_specifier_case()) { + case kEnvoyGrpc: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *_impl_.target_specifier_.envoy_grpc_, _impl_.target_specifier_.envoy_grpc_->GetCachedSize(), target, stream); + break; + } + case kGoogleGrpc: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *_impl_.target_specifier_.google_grpc_, _impl_.target_specifier_.google_grpc_->GetCachedSize(), target, stream); + break; + } + default: + break; + } // repeated .GrpcService.HeaderValue initial_metadata = 5; - for (unsigned int i = 0, - n = static_cast(this->initial_metadata_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 5, - this->initial_metadata(static_cast(i)), - output); + for (unsigned i = 0, n = static_cast( + this->_internal_initial_metadata_size()); + i < n; i++) { + const auto& repfield = this->_internal_initial_metadata().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, repfield, repfield.GetCachedSize(), + target, stream); } - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService) + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GrpcService) + return target; } -size_t GrpcService::ByteSizeLong() const { +::size_t GrpcService::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GrpcService) - size_t total_size = 0; + ::size_t total_size = 0; - total_size += _internal_metadata_.unknown_fields().size(); - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .GrpcService.HeaderValue initial_metadata = 5; - { - unsigned int count = static_cast(this->initial_metadata_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->initial_metadata(static_cast(i))); - } + total_size += 1UL * this->_internal_initial_metadata_size(); + for (const auto& msg : this->_internal_initial_metadata()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } - switch (target_specifier_case()) { // .GrpcService.EnvoyGrpc envoy_grpc = 1; case kEnvoyGrpc: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *target_specifier_.envoy_grpc_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.target_specifier_.envoy_grpc_); break; } // .GrpcService.GoogleGrpc google_grpc = 2; case kGoogleGrpc: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *target_specifier_.google_grpc_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.target_specifier_.google_grpc_); break; } case TARGET_SPECIFIER_NOT_SET: { break; } } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size(); + } + _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void GrpcService::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::_pbi::DownCast( &from)); } void GrpcService::MergeFrom(const GrpcService& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + GrpcService* const _this = this; + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - initial_metadata_.MergeFrom(from.initial_metadata_); - switch (from.target_specifier_case()) { - case kEnvoyGrpc: { - mutable_envoy_grpc()->::GrpcService_EnvoyGrpc::MergeFrom(from.envoy_grpc()); - break; - } - case kGoogleGrpc: { - mutable_google_grpc()->::GrpcService_GoogleGrpc::MergeFrom(from.google_grpc()); - break; + _this->_internal_mutable_initial_metadata()->MergeFrom( + from._internal_initial_metadata()); + if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { + const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; + const bool oneof_needs_init = oneof_to_case != oneof_from_case; + if (oneof_needs_init) { + if (oneof_to_case != 0) { + _this->clear_target_specifier(); + } + _this->_impl_._oneof_case_[0] = oneof_from_case; } - case TARGET_SPECIFIER_NOT_SET: { - break; + + switch (oneof_from_case) { + case kEnvoyGrpc: { + if (oneof_needs_init) { + _this->_impl_.target_specifier_.envoy_grpc_ = + ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_EnvoyGrpc>(arena, *from._impl_.target_specifier_.envoy_grpc_); + } else { + _this->_impl_.target_specifier_.envoy_grpc_->MergeFrom(from._internal_envoy_grpc()); + } + break; + } + case kGoogleGrpc: { + if (oneof_needs_init) { + _this->_impl_.target_specifier_.google_grpc_ = + ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc>(arena, *from._impl_.target_specifier_.google_grpc_); + } else { + _this->_impl_.target_specifier_.google_grpc_->MergeFrom(from._internal_google_grpc()); + } + break; + } + case TARGET_SPECIFIER_NOT_SET: + break; } } + _this->_internal_metadata_.MergeFrom(from._internal_metadata_); } void GrpcService::CopyFrom(const GrpcService& from) { @@ -5883,74 +5116,22 @@ void GrpcService::CopyFrom(const GrpcService& from) { MergeFrom(from); } -bool GrpcService::IsInitialized() const { +PROTOBUF_NOINLINE bool GrpcService::IsInitialized() const { return true; } -void GrpcService::InternalSwap(GrpcService* other) { +void GrpcService::InternalSwap(GrpcService* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&initial_metadata_)->InternalSwap(CastToBase(&other->initial_metadata_)); - swap(target_specifier_, other->target_specifier_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.initial_metadata_.InternalSwap(&other->_impl_.initial_metadata_); + swap(_impl_.target_specifier_, other->_impl_.target_specifier_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } -std::string GrpcService::GetTypeName() const { - return "GrpcService"; -} - - // @@protoc_insertion_point(namespace_scope) -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::WKT* Arena::CreateMaybeMessage< ::WKT >(Arena* arena) { - return Arena::CreateInternal< ::WKT >(arena); -} -template<> PROTOBUF_NOINLINE ::DataSource* Arena::CreateMaybeMessage< ::DataSource >(Arena* arena) { - return Arena::CreateInternal< ::DataSource >(arena); -} -template<> PROTOBUF_NOINLINE ::Any* Arena::CreateMaybeMessage< ::Any >(Arena* arena) { - return Arena::CreateInternal< ::Any >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService_EnvoyGrpc* Arena::CreateMaybeMessage< ::GrpcService_EnvoyGrpc >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_EnvoyGrpc >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_SslCredentials* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc_SslCredentials >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_GoogleGrpc_SslCredentials >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_GoogleLocalCredentials* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc_GoogleLocalCredentials >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_GoogleGrpc_GoogleLocalCredentials >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_Empty* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc_Empty >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_GoogleGrpc_Empty >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_ChannelCredentials* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc_ChannelCredentials >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_GoogleGrpc_ChannelCredentials >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_CallCredentials_StsService* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_StsService >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_GoogleGrpc_CallCredentials_StsService >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_CallCredentials* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_GoogleGrpc_CallCredentials >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_GoogleGrpc >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService_HeaderValue* Arena::CreateMaybeMessage< ::GrpcService_HeaderValue >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_HeaderValue >(arena); -} -template<> PROTOBUF_NOINLINE ::GrpcService* Arena::CreateMaybeMessage< ::GrpcService >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" diff --git a/proxy_wasm_intrinsics_lite.pb.h b/proxy_wasm_intrinsics_lite.pb.h index e83e680..1b1231a 100644 --- a/proxy_wasm_intrinsics_lite.pb.h +++ b/proxy_wasm_intrinsics_lite.pb.h @@ -1,1585 +1,2273 @@ -/* - * Copyright 2016-2019 Envoy Project Authors - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2016-2019 Envoy Project Authors +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. // Generated by the protocol buffer compiler. DO NOT EDIT! // source: proxy_wasm_intrinsics_lite.proto +// Protobuf C++ Version: 5.26.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_proxy_5fwasm_5fintrinsics_5flite_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_proxy_5fwasm_5fintrinsics_5flite_2eproto +#ifndef GOOGLE_PROTOBUF_INCLUDED_proxy_5fwasm_5fintrinsics_5flite_2eproto_2epb_2eh +#define GOOGLE_PROTOBUF_INCLUDED_proxy_5fwasm_5fintrinsics_5flite_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3009000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3009001 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. +#include +#include + +#include "google/protobuf/port_def.inc" +#if PROTOBUF_VERSION != 5026001 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export +#include "google/protobuf/port_undef.inc" +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export #include "struct_lite.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { class AnyMetadata; } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[16] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; + static const ::uint32_t offsets[]; }; class Any; -class AnyDefaultTypeInternal; +struct AnyDefaultTypeInternal; extern AnyDefaultTypeInternal _Any_default_instance_; class DataSource; -class DataSourceDefaultTypeInternal; +struct DataSourceDefaultTypeInternal; extern DataSourceDefaultTypeInternal _DataSource_default_instance_; class GrpcService; -class GrpcServiceDefaultTypeInternal; +struct GrpcServiceDefaultTypeInternal; extern GrpcServiceDefaultTypeInternal _GrpcService_default_instance_; class GrpcService_EnvoyGrpc; -class GrpcService_EnvoyGrpcDefaultTypeInternal; +struct GrpcService_EnvoyGrpcDefaultTypeInternal; extern GrpcService_EnvoyGrpcDefaultTypeInternal _GrpcService_EnvoyGrpc_default_instance_; class GrpcService_GoogleGrpc; -class GrpcService_GoogleGrpcDefaultTypeInternal; +struct GrpcService_GoogleGrpcDefaultTypeInternal; extern GrpcService_GoogleGrpcDefaultTypeInternal _GrpcService_GoogleGrpc_default_instance_; class GrpcService_GoogleGrpc_CallCredentials; -class GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal; +struct GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal; extern GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_default_instance_; class GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials; -class GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal; +struct GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal; extern GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_; class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin; -class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal; +struct GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal; extern GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_; class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials; -class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal; +struct GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal; extern GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_; class GrpcService_GoogleGrpc_CallCredentials_StsService; -class GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal; +struct GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal; extern GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_; class GrpcService_GoogleGrpc_ChannelCredentials; -class GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal; +struct GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal; extern GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_ChannelCredentials_default_instance_; class GrpcService_GoogleGrpc_Empty; -class GrpcService_GoogleGrpc_EmptyDefaultTypeInternal; +struct GrpcService_GoogleGrpc_EmptyDefaultTypeInternal; extern GrpcService_GoogleGrpc_EmptyDefaultTypeInternal _GrpcService_GoogleGrpc_Empty_default_instance_; class GrpcService_GoogleGrpc_GoogleLocalCredentials; -class GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal; +struct GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal; extern GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_; class GrpcService_GoogleGrpc_SslCredentials; -class GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal; +struct GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal; extern GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_SslCredentials_default_instance_; class GrpcService_HeaderValue; -class GrpcService_HeaderValueDefaultTypeInternal; +struct GrpcService_HeaderValueDefaultTypeInternal; extern GrpcService_HeaderValueDefaultTypeInternal _GrpcService_HeaderValue_default_instance_; class WKT; -class WKTDefaultTypeInternal; +struct WKTDefaultTypeInternal; extern WKTDefaultTypeInternal _WKT_default_instance_; -PROTOBUF_NAMESPACE_OPEN -template<> ::Any* Arena::CreateMaybeMessage<::Any>(Arena*); -template<> ::DataSource* Arena::CreateMaybeMessage<::DataSource>(Arena*); -template<> ::GrpcService* Arena::CreateMaybeMessage<::GrpcService>(Arena*); -template<> ::GrpcService_EnvoyGrpc* Arena::CreateMaybeMessage<::GrpcService_EnvoyGrpc>(Arena*); -template<> ::GrpcService_GoogleGrpc* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc>(Arena*); -template<> ::GrpcService_GoogleGrpc_CallCredentials* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_CallCredentials>(Arena*); -template<> ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>(Arena*); -template<> ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>(Arena*); -template<> ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>(Arena*); -template<> ::GrpcService_GoogleGrpc_CallCredentials_StsService* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_CallCredentials_StsService>(Arena*); -template<> ::GrpcService_GoogleGrpc_ChannelCredentials* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_ChannelCredentials>(Arena*); -template<> ::GrpcService_GoogleGrpc_Empty* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_Empty>(Arena*); -template<> ::GrpcService_GoogleGrpc_GoogleLocalCredentials* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_GoogleLocalCredentials>(Arena*); -template<> ::GrpcService_GoogleGrpc_SslCredentials* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_SslCredentials>(Arena*); -template<> ::GrpcService_HeaderValue* Arena::CreateMaybeMessage<::GrpcService_HeaderValue>(Arena*); -template<> ::WKT* Arena::CreateMaybeMessage<::WKT>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + // =================================================================== -class WKT : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:WKT) */ { - public: - WKT(); - virtual ~WKT(); - WKT(const WKT& from); - WKT(WKT&& from) noexcept - : WKT() { - *this = ::std::move(from); - } +// ------------------------------------------------------------------- - inline WKT& operator=(const WKT& from) { +class GrpcService_HeaderValue final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:GrpcService.HeaderValue) */ { + public: + inline GrpcService_HeaderValue() : GrpcService_HeaderValue(nullptr) {} + ~GrpcService_HeaderValue() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService_HeaderValue( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService_HeaderValue(const GrpcService_HeaderValue& from) : GrpcService_HeaderValue(nullptr, from) {} + inline GrpcService_HeaderValue(GrpcService_HeaderValue&& from) noexcept + : GrpcService_HeaderValue(nullptr, std::move(from)) {} + inline GrpcService_HeaderValue& operator=(const GrpcService_HeaderValue& from) { CopyFrom(from); return *this; } - inline WKT& operator=(WKT&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + inline GrpcService_HeaderValue& operator=(GrpcService_HeaderValue&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const WKT& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WKT* internal_default_instance() { - return reinterpret_cast( - &_WKT_default_instance_); + inline const std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields(); } - static constexpr int kIndexInFileMessages = - 0; - friend void swap(WKT& a, WKT& b) { - a.Swap(&b); + static const GrpcService_HeaderValue& default_instance() { + return *internal_default_instance(); } - inline void Swap(WKT* other) { + static inline const GrpcService_HeaderValue* internal_default_instance() { + return reinterpret_cast( + &_GrpcService_HeaderValue_default_instance_); + } + static constexpr int kIndexInFileMessages = 14; + friend void swap(GrpcService_HeaderValue& a, GrpcService_HeaderValue& b) { a.Swap(&b); } + inline void Swap(GrpcService_HeaderValue* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService_HeaderValue* other) { if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline WKT* New() const final { - return CreateMaybeMessage(nullptr); - } - - WKT* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + GrpcService_HeaderValue* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; - void CopyFrom(const WKT& from); - void MergeFrom(const WKT& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + void CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) final; + void CopyFrom(const GrpcService_HeaderValue& from); + void MergeFrom(const GrpcService_HeaderValue& from); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(WKT* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "WKT"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GrpcService_HeaderValue* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService.HeaderValue"; } + + protected: + explicit GrpcService_HeaderValue(::google::protobuf::Arena* arena); + GrpcService_HeaderValue(::google::protobuf::Arena* arena, const GrpcService_HeaderValue& from); + GrpcService_HeaderValue(::google::protobuf::Arena* arena, GrpcService_HeaderValue&& from) noexcept + : GrpcService_HeaderValue(arena) { + *this = ::std::move(from); } - public: - - std::string GetTypeName() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kStructFieldNumber = 1, + kKeyFieldNumber = 1, + kValueFieldNumber = 2, }; - // .google.protobuf.Struct struct = 1; - bool has_struct_() const; - void clear_struct_(); - const ::google::protobuf::Struct& struct_() const; - ::google::protobuf::Struct* release_struct_(); - ::google::protobuf::Struct* mutable_struct_(); - void set_allocated_struct_(::google::protobuf::Struct* struct_); + // string key = 1; + void clear_key() ; + const std::string& key() const; + template + void set_key(Arg_&& arg, Args_... args); + std::string* mutable_key(); + PROTOBUF_NODISCARD std::string* release_key(); + void set_allocated_key(std::string* value); - // @@protoc_insertion_point(class_scope:WKT) + private: + const std::string& _internal_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_key( + const std::string& value); + std::string* _internal_mutable_key(); + + public: + // string value = 2; + void clear_value() ; + const std::string& value() const; + template + void set_value(Arg_&& arg, Args_... args); + std::string* mutable_value(); + PROTOBUF_NODISCARD std::string* release_value(); + void set_allocated_value(std::string* value); + + private: + const std::string& _internal_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_value( + const std::string& value); + std::string* _internal_mutable_value(); + + public: + // @@protoc_insertion_point(class_scope:GrpcService.HeaderValue) private: class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::Struct* struct__; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 40, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr key_; + ::google::protobuf::internal::ArenaStringPtr value_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; }; // ------------------------------------------------------------------- -class DataSource : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:DataSource) */ { +class GrpcService_GoogleGrpc_GoogleLocalCredentials final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.GoogleLocalCredentials) */ { public: - DataSource(); - virtual ~DataSource(); - - DataSource(const DataSource& from); - DataSource(DataSource&& from) noexcept - : DataSource() { - *this = ::std::move(from); - } - - inline DataSource& operator=(const DataSource& from) { + inline GrpcService_GoogleGrpc_GoogleLocalCredentials() : GrpcService_GoogleGrpc_GoogleLocalCredentials(nullptr) {} + ~GrpcService_GoogleGrpc_GoogleLocalCredentials() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_GoogleLocalCredentials( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService_GoogleGrpc_GoogleLocalCredentials(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) : GrpcService_GoogleGrpc_GoogleLocalCredentials(nullptr, from) {} + inline GrpcService_GoogleGrpc_GoogleLocalCredentials(GrpcService_GoogleGrpc_GoogleLocalCredentials&& from) noexcept + : GrpcService_GoogleGrpc_GoogleLocalCredentials(nullptr, std::move(from)) {} + inline GrpcService_GoogleGrpc_GoogleLocalCredentials& operator=(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) { CopyFrom(from); return *this; } - inline DataSource& operator=(DataSource&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + inline GrpcService_GoogleGrpc_GoogleLocalCredentials& operator=(GrpcService_GoogleGrpc_GoogleLocalCredentials&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const DataSource& default_instance(); - - enum SpecifierCase { - kFilename = 1, - kInlineBytes = 2, - kInlineString = 3, - SPECIFIER_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DataSource* internal_default_instance() { - return reinterpret_cast( - &_DataSource_default_instance_); + inline const std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields(); } - static constexpr int kIndexInFileMessages = - 1; - friend void swap(DataSource& a, DataSource& b) { - a.Swap(&b); + static const GrpcService_GoogleGrpc_GoogleLocalCredentials& default_instance() { + return *internal_default_instance(); } - inline void Swap(DataSource* other) { + static inline const GrpcService_GoogleGrpc_GoogleLocalCredentials* internal_default_instance() { + return reinterpret_cast( + &_GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_); + } + static constexpr int kIndexInFileMessages = 5; + friend void swap(GrpcService_GoogleGrpc_GoogleLocalCredentials& a, GrpcService_GoogleGrpc_GoogleLocalCredentials& b) { a.Swap(&b); } + inline void Swap(GrpcService_GoogleGrpc_GoogleLocalCredentials* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService_GoogleGrpc_GoogleLocalCredentials* other) { if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline DataSource* New() const final { - return CreateMaybeMessage(nullptr); - } - - DataSource* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + GrpcService_GoogleGrpc_GoogleLocalCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; - void CopyFrom(const DataSource& from); - void MergeFrom(const DataSource& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + void CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) final; + void CopyFrom(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from); + void MergeFrom(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(DataSource* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "DataSource"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GrpcService_GoogleGrpc_GoogleLocalCredentials* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.GoogleLocalCredentials"; } + + protected: + explicit GrpcService_GoogleGrpc_GoogleLocalCredentials(::google::protobuf::Arena* arena); + GrpcService_GoogleGrpc_GoogleLocalCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_GoogleLocalCredentials& from); + GrpcService_GoogleGrpc_GoogleLocalCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_GoogleLocalCredentials&& from) noexcept + : GrpcService_GoogleGrpc_GoogleLocalCredentials(arena) { + *this = ::std::move(from); } - public: - - std::string GetTypeName() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - - enum : int { - kFilenameFieldNumber = 1, - kInlineBytesFieldNumber = 2, - kInlineStringFieldNumber = 3, - }; - // string filename = 1; - private: - bool has_filename() const; - public: - void clear_filename(); - const std::string& filename() const; - void set_filename(const std::string& value); - void set_filename(std::string&& value); - void set_filename(const char* value); - void set_filename(const char* value, size_t size); - std::string* mutable_filename(); - std::string* release_filename(); - void set_allocated_filename(std::string* filename); - - // bytes inline_bytes = 2; - private: - bool has_inline_bytes() const; - public: - void clear_inline_bytes(); - const std::string& inline_bytes() const; - void set_inline_bytes(const std::string& value); - void set_inline_bytes(std::string&& value); - void set_inline_bytes(const char* value); - void set_inline_bytes(const void* value, size_t size); - std::string* mutable_inline_bytes(); - std::string* release_inline_bytes(); - void set_allocated_inline_bytes(std::string* inline_bytes); - - // string inline_string = 3; - private: - bool has_inline_string() const; - public: - void clear_inline_string(); - const std::string& inline_string() const; - void set_inline_string(const std::string& value); - void set_inline_string(std::string&& value); - void set_inline_string(const char* value); - void set_inline_string(const char* value, size_t size); - std::string* mutable_inline_string(); - std::string* release_inline_string(); - void set_allocated_inline_string(std::string* inline_string); - - void clear_specifier(); - SpecifierCase specifier_case() const; - // @@protoc_insertion_point(class_scope:DataSource) + // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.GoogleLocalCredentials) private: class _Internal; - void set_has_filename(); - void set_has_inline_bytes(); - void set_has_inline_string(); - - inline bool has_specifier() const; - inline void clear_has_specifier(); - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; - union SpecifierUnion { - SpecifierUnion() {} - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr filename_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr inline_bytes_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr inline_string_; - } specifier_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; }; // ------------------------------------------------------------------- -class Any : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:Any) */ { +class GrpcService_GoogleGrpc_Empty final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.Empty) */ { public: - Any(); - virtual ~Any(); - - Any(const Any& from); - Any(Any&& from) noexcept - : Any() { - *this = ::std::move(from); - } - - inline Any& operator=(const Any& from) { + inline GrpcService_GoogleGrpc_Empty() : GrpcService_GoogleGrpc_Empty(nullptr) {} + ~GrpcService_GoogleGrpc_Empty() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_Empty( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService_GoogleGrpc_Empty(const GrpcService_GoogleGrpc_Empty& from) : GrpcService_GoogleGrpc_Empty(nullptr, from) {} + inline GrpcService_GoogleGrpc_Empty(GrpcService_GoogleGrpc_Empty&& from) noexcept + : GrpcService_GoogleGrpc_Empty(nullptr, std::move(from)) {} + inline GrpcService_GoogleGrpc_Empty& operator=(const GrpcService_GoogleGrpc_Empty& from) { CopyFrom(from); return *this; } - inline Any& operator=(Any&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + inline GrpcService_GoogleGrpc_Empty& operator=(GrpcService_GoogleGrpc_Empty&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const Any& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Any* internal_default_instance() { - return reinterpret_cast( - &_Any_default_instance_); + inline const std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields(); } - static constexpr int kIndexInFileMessages = - 2; - friend void swap(Any& a, Any& b) { - a.Swap(&b); + static const GrpcService_GoogleGrpc_Empty& default_instance() { + return *internal_default_instance(); } - inline void Swap(Any* other) { + static inline const GrpcService_GoogleGrpc_Empty* internal_default_instance() { + return reinterpret_cast( + &_GrpcService_GoogleGrpc_Empty_default_instance_); + } + static constexpr int kIndexInFileMessages = 6; + friend void swap(GrpcService_GoogleGrpc_Empty& a, GrpcService_GoogleGrpc_Empty& b) { a.Swap(&b); } + inline void Swap(GrpcService_GoogleGrpc_Empty* other) { if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService_GoogleGrpc_Empty* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline Any* New() const final { - return CreateMaybeMessage(nullptr); + GrpcService_GoogleGrpc_Empty* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - - Any* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; - void CopyFrom(const Any& from); - void MergeFrom(const Any& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + void CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) final; + void CopyFrom(const GrpcService_GoogleGrpc_Empty& from); + void MergeFrom(const GrpcService_GoogleGrpc_Empty& from); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Any* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Any"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GrpcService_GoogleGrpc_Empty* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.Empty"; } + + protected: + explicit GrpcService_GoogleGrpc_Empty(::google::protobuf::Arena* arena); + GrpcService_GoogleGrpc_Empty(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_Empty& from); + GrpcService_GoogleGrpc_Empty(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_Empty&& from) noexcept + : GrpcService_GoogleGrpc_Empty(arena) { + *this = ::std::move(from); } - public: - - std::string GetTypeName() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - - enum : int { - kTypeUrlFieldNumber = 1, - kValueFieldNumber = 2, - }; - // string type_url = 1; - void clear_type_url(); - const std::string& type_url() const; - void set_type_url(const std::string& value); - void set_type_url(std::string&& value); - void set_type_url(const char* value); - void set_type_url(const char* value, size_t size); - std::string* mutable_type_url(); - std::string* release_type_url(); - void set_allocated_type_url(std::string* type_url); - - // bytes value = 2; - void clear_value(); - const std::string& value() const; - void set_value(const std::string& value); - void set_value(std::string&& value); - void set_value(const char* value); - void set_value(const void* value, size_t size); - std::string* mutable_value(); - std::string* release_value(); - void set_allocated_value(std::string* value); - - // @@protoc_insertion_point(class_scope:Any) + // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.Empty) private: class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_url_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; }; // ------------------------------------------------------------------- -class GrpcService_EnvoyGrpc : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GrpcService.EnvoyGrpc) */ { +class GrpcService_GoogleGrpc_CallCredentials_StsService final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.StsService) */ { public: - GrpcService_EnvoyGrpc(); - virtual ~GrpcService_EnvoyGrpc(); - - GrpcService_EnvoyGrpc(const GrpcService_EnvoyGrpc& from); - GrpcService_EnvoyGrpc(GrpcService_EnvoyGrpc&& from) noexcept - : GrpcService_EnvoyGrpc() { - *this = ::std::move(from); - } - - inline GrpcService_EnvoyGrpc& operator=(const GrpcService_EnvoyGrpc& from) { + inline GrpcService_GoogleGrpc_CallCredentials_StsService() : GrpcService_GoogleGrpc_CallCredentials_StsService(nullptr) {} + ~GrpcService_GoogleGrpc_CallCredentials_StsService() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_StsService( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService_GoogleGrpc_CallCredentials_StsService(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) : GrpcService_GoogleGrpc_CallCredentials_StsService(nullptr, from) {} + inline GrpcService_GoogleGrpc_CallCredentials_StsService(GrpcService_GoogleGrpc_CallCredentials_StsService&& from) noexcept + : GrpcService_GoogleGrpc_CallCredentials_StsService(nullptr, std::move(from)) {} + inline GrpcService_GoogleGrpc_CallCredentials_StsService& operator=(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) { CopyFrom(from); return *this; } - inline GrpcService_EnvoyGrpc& operator=(GrpcService_EnvoyGrpc&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + inline GrpcService_GoogleGrpc_CallCredentials_StsService& operator=(GrpcService_GoogleGrpc_CallCredentials_StsService&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const GrpcService_EnvoyGrpc& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GrpcService_EnvoyGrpc* internal_default_instance() { - return reinterpret_cast( - &_GrpcService_EnvoyGrpc_default_instance_); + inline const std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields(); } - static constexpr int kIndexInFileMessages = - 3; - friend void swap(GrpcService_EnvoyGrpc& a, GrpcService_EnvoyGrpc& b) { - a.Swap(&b); + static const GrpcService_GoogleGrpc_CallCredentials_StsService& default_instance() { + return *internal_default_instance(); } - inline void Swap(GrpcService_EnvoyGrpc* other) { + static inline const GrpcService_GoogleGrpc_CallCredentials_StsService* internal_default_instance() { + return reinterpret_cast( + &_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_); + } + static constexpr int kIndexInFileMessages = 11; + friend void swap(GrpcService_GoogleGrpc_CallCredentials_StsService& a, GrpcService_GoogleGrpc_CallCredentials_StsService& b) { a.Swap(&b); } + inline void Swap(GrpcService_GoogleGrpc_CallCredentials_StsService* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService_GoogleGrpc_CallCredentials_StsService* other) { if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GrpcService_EnvoyGrpc* New() const final { - return CreateMaybeMessage(nullptr); - } - - GrpcService_EnvoyGrpc* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + GrpcService_GoogleGrpc_CallCredentials_StsService* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; - void CopyFrom(const GrpcService_EnvoyGrpc& from); - void MergeFrom(const GrpcService_EnvoyGrpc& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + void CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) final; + void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from); + void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(GrpcService_EnvoyGrpc* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.EnvoyGrpc"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_StsService* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.CallCredentials.StsService"; } + + protected: + explicit GrpcService_GoogleGrpc_CallCredentials_StsService(::google::protobuf::Arena* arena); + GrpcService_GoogleGrpc_CallCredentials_StsService(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_CallCredentials_StsService& from); + GrpcService_GoogleGrpc_CallCredentials_StsService(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_CallCredentials_StsService&& from) noexcept + : GrpcService_GoogleGrpc_CallCredentials_StsService(arena) { + *this = ::std::move(from); } - public: - - std::string GetTypeName() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kClusterNameFieldNumber = 1, + kTokenExchangeServiceUriFieldNumber = 1, + kResourceFieldNumber = 2, + kAudienceFieldNumber = 3, + kScopeFieldNumber = 4, + kRequestedTokenTypeFieldNumber = 5, + kSubjectTokenPathFieldNumber = 6, + kSubjectTokenTypeFieldNumber = 7, + kActorTokenPathFieldNumber = 8, + kActorTokenTypeFieldNumber = 9, }; - // string cluster_name = 1; - void clear_cluster_name(); - const std::string& cluster_name() const; - void set_cluster_name(const std::string& value); - void set_cluster_name(std::string&& value); - void set_cluster_name(const char* value); - void set_cluster_name(const char* value, size_t size); - std::string* mutable_cluster_name(); - std::string* release_cluster_name(); - void set_allocated_cluster_name(std::string* cluster_name); + // string token_exchange_service_uri = 1; + void clear_token_exchange_service_uri() ; + const std::string& token_exchange_service_uri() const; + template + void set_token_exchange_service_uri(Arg_&& arg, Args_... args); + std::string* mutable_token_exchange_service_uri(); + PROTOBUF_NODISCARD std::string* release_token_exchange_service_uri(); + void set_allocated_token_exchange_service_uri(std::string* value); - // @@protoc_insertion_point(class_scope:GrpcService.EnvoyGrpc) + private: + const std::string& _internal_token_exchange_service_uri() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_token_exchange_service_uri( + const std::string& value); + std::string* _internal_mutable_token_exchange_service_uri(); + + public: + // string resource = 2; + void clear_resource() ; + const std::string& resource() const; + template + void set_resource(Arg_&& arg, Args_... args); + std::string* mutable_resource(); + PROTOBUF_NODISCARD std::string* release_resource(); + void set_allocated_resource(std::string* value); + + private: + const std::string& _internal_resource() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource( + const std::string& value); + std::string* _internal_mutable_resource(); + + public: + // string audience = 3; + void clear_audience() ; + const std::string& audience() const; + template + void set_audience(Arg_&& arg, Args_... args); + std::string* mutable_audience(); + PROTOBUF_NODISCARD std::string* release_audience(); + void set_allocated_audience(std::string* value); + + private: + const std::string& _internal_audience() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_audience( + const std::string& value); + std::string* _internal_mutable_audience(); + + public: + // string scope = 4; + void clear_scope() ; + const std::string& scope() const; + template + void set_scope(Arg_&& arg, Args_... args); + std::string* mutable_scope(); + PROTOBUF_NODISCARD std::string* release_scope(); + void set_allocated_scope(std::string* value); + + private: + const std::string& _internal_scope() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_scope( + const std::string& value); + std::string* _internal_mutable_scope(); + + public: + // string requested_token_type = 5; + void clear_requested_token_type() ; + const std::string& requested_token_type() const; + template + void set_requested_token_type(Arg_&& arg, Args_... args); + std::string* mutable_requested_token_type(); + PROTOBUF_NODISCARD std::string* release_requested_token_type(); + void set_allocated_requested_token_type(std::string* value); + + private: + const std::string& _internal_requested_token_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_requested_token_type( + const std::string& value); + std::string* _internal_mutable_requested_token_type(); + + public: + // string subject_token_path = 6; + void clear_subject_token_path() ; + const std::string& subject_token_path() const; + template + void set_subject_token_path(Arg_&& arg, Args_... args); + std::string* mutable_subject_token_path(); + PROTOBUF_NODISCARD std::string* release_subject_token_path(); + void set_allocated_subject_token_path(std::string* value); + + private: + const std::string& _internal_subject_token_path() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_subject_token_path( + const std::string& value); + std::string* _internal_mutable_subject_token_path(); + + public: + // string subject_token_type = 7; + void clear_subject_token_type() ; + const std::string& subject_token_type() const; + template + void set_subject_token_type(Arg_&& arg, Args_... args); + std::string* mutable_subject_token_type(); + PROTOBUF_NODISCARD std::string* release_subject_token_type(); + void set_allocated_subject_token_type(std::string* value); + + private: + const std::string& _internal_subject_token_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_subject_token_type( + const std::string& value); + std::string* _internal_mutable_subject_token_type(); + + public: + // string actor_token_path = 8; + void clear_actor_token_path() ; + const std::string& actor_token_path() const; + template + void set_actor_token_path(Arg_&& arg, Args_... args); + std::string* mutable_actor_token_path(); + PROTOBUF_NODISCARD std::string* release_actor_token_path(); + void set_allocated_actor_token_path(std::string* value); + + private: + const std::string& _internal_actor_token_path() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_actor_token_path( + const std::string& value); + std::string* _internal_mutable_actor_token_path(); + + public: + // string actor_token_type = 9; + void clear_actor_token_type() ; + const std::string& actor_token_type() const; + template + void set_actor_token_type(Arg_&& arg, Args_... args); + std::string* mutable_actor_token_type(); + PROTOBUF_NODISCARD std::string* release_actor_token_type(); + void set_allocated_actor_token_type(std::string* value); + + private: + const std::string& _internal_actor_token_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_actor_token_type( + const std::string& value); + std::string* _internal_mutable_actor_token_type(); + + public: + // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.StsService) private: class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cluster_name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 4, 9, 0, + 201, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr token_exchange_service_uri_; + ::google::protobuf::internal::ArenaStringPtr resource_; + ::google::protobuf::internal::ArenaStringPtr audience_; + ::google::protobuf::internal::ArenaStringPtr scope_; + ::google::protobuf::internal::ArenaStringPtr requested_token_type_; + ::google::protobuf::internal::ArenaStringPtr subject_token_path_; + ::google::protobuf::internal::ArenaStringPtr subject_token_type_; + ::google::protobuf::internal::ArenaStringPtr actor_token_path_; + ::google::protobuf::internal::ArenaStringPtr actor_token_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; }; // ------------------------------------------------------------------- -class GrpcService_GoogleGrpc_SslCredentials : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.SslCredentials) */ { +class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) */ { public: - GrpcService_GoogleGrpc_SslCredentials(); - virtual ~GrpcService_GoogleGrpc_SslCredentials(); - - GrpcService_GoogleGrpc_SslCredentials(const GrpcService_GoogleGrpc_SslCredentials& from); - GrpcService_GoogleGrpc_SslCredentials(GrpcService_GoogleGrpc_SslCredentials&& from) noexcept - : GrpcService_GoogleGrpc_SslCredentials() { - *this = ::std::move(from); - } - - inline GrpcService_GoogleGrpc_SslCredentials& operator=(const GrpcService_GoogleGrpc_SslCredentials& from) { + inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials() : GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(nullptr) {} + ~GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) : GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(nullptr, from) {} + inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials&& from) noexcept + : GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(nullptr, std::move(from)) {} + inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& operator=(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) { CopyFrom(from); return *this; } - inline GrpcService_GoogleGrpc_SslCredentials& operator=(GrpcService_GoogleGrpc_SslCredentials&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& operator=(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const GrpcService_GoogleGrpc_SslCredentials& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GrpcService_GoogleGrpc_SslCredentials* internal_default_instance() { - return reinterpret_cast( - &_GrpcService_GoogleGrpc_SslCredentials_default_instance_); + inline const std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields(); } - static constexpr int kIndexInFileMessages = - 4; - friend void swap(GrpcService_GoogleGrpc_SslCredentials& a, GrpcService_GoogleGrpc_SslCredentials& b) { - a.Swap(&b); + static const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& default_instance() { + return *internal_default_instance(); } - inline void Swap(GrpcService_GoogleGrpc_SslCredentials* other) { + static inline const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* internal_default_instance() { + return reinterpret_cast( + &_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_); + } + static constexpr int kIndexInFileMessages = 8; + friend void swap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& a, GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& b) { a.Swap(&b); } + inline void Swap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* other) { if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GrpcService_GoogleGrpc_SslCredentials* New() const final { - return CreateMaybeMessage(nullptr); - } - - GrpcService_GoogleGrpc_SslCredentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; - void CopyFrom(const GrpcService_GoogleGrpc_SslCredentials& from); - void MergeFrom(const GrpcService_GoogleGrpc_SslCredentials& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + void CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) final; + void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from); + void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(GrpcService_GoogleGrpc_SslCredentials* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.GoogleGrpc.SslCredentials"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials"; } + + protected: + explicit GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(::google::protobuf::Arena* arena); + GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from); + GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials&& from) noexcept + : GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(arena) { + *this = ::std::move(from); } - public: - - std::string GetTypeName() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kRootCertsFieldNumber = 1, - kPrivateKeyFieldNumber = 2, - kCertChainFieldNumber = 3, + kJsonKeyFieldNumber = 1, + kTokenLifetimeSecondsFieldNumber = 2, }; - // .DataSource root_certs = 1; - bool has_root_certs() const; - void clear_root_certs(); - const ::DataSource& root_certs() const; - ::DataSource* release_root_certs(); - ::DataSource* mutable_root_certs(); - void set_allocated_root_certs(::DataSource* root_certs); + // string json_key = 1; + void clear_json_key() ; + const std::string& json_key() const; + template + void set_json_key(Arg_&& arg, Args_... args); + std::string* mutable_json_key(); + PROTOBUF_NODISCARD std::string* release_json_key(); + void set_allocated_json_key(std::string* value); - // .DataSource private_key = 2; - bool has_private_key() const; - void clear_private_key(); - const ::DataSource& private_key() const; - ::DataSource* release_private_key(); - ::DataSource* mutable_private_key(); - void set_allocated_private_key(::DataSource* private_key); + private: + const std::string& _internal_json_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_json_key( + const std::string& value); + std::string* _internal_mutable_json_key(); - // .DataSource cert_chain = 3; - bool has_cert_chain() const; - void clear_cert_chain(); - const ::DataSource& cert_chain() const; - ::DataSource* release_cert_chain(); - ::DataSource* mutable_cert_chain(); - void set_allocated_cert_chain(::DataSource* cert_chain); + public: + // uint64 token_lifetime_seconds = 2; + void clear_token_lifetime_seconds() ; + ::uint64_t token_lifetime_seconds() const; + void set_token_lifetime_seconds(::uint64_t value); - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.SslCredentials) + private: + ::uint64_t _internal_token_lifetime_seconds() const; + void _internal_set_token_lifetime_seconds(::uint64_t value); + + public: + // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) private: class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::DataSource* root_certs_; - ::DataSource* private_key_; - ::DataSource* cert_chain_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 90, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr json_key_; + ::uint64_t token_lifetime_seconds_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; }; // ------------------------------------------------------------------- -class GrpcService_GoogleGrpc_GoogleLocalCredentials : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.GoogleLocalCredentials) */ { +class GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) */ { public: - GrpcService_GoogleGrpc_GoogleLocalCredentials(); - virtual ~GrpcService_GoogleGrpc_GoogleLocalCredentials(); - - GrpcService_GoogleGrpc_GoogleLocalCredentials(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from); - GrpcService_GoogleGrpc_GoogleLocalCredentials(GrpcService_GoogleGrpc_GoogleLocalCredentials&& from) noexcept - : GrpcService_GoogleGrpc_GoogleLocalCredentials() { - *this = ::std::move(from); - } - - inline GrpcService_GoogleGrpc_GoogleLocalCredentials& operator=(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) { + inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials() : GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(nullptr) {} + ~GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) : GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(nullptr, from) {} + inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials&& from) noexcept + : GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(nullptr, std::move(from)) {} + inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& operator=(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) { CopyFrom(from); return *this; } - inline GrpcService_GoogleGrpc_GoogleLocalCredentials& operator=(GrpcService_GoogleGrpc_GoogleLocalCredentials&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& operator=(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const GrpcService_GoogleGrpc_GoogleLocalCredentials& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GrpcService_GoogleGrpc_GoogleLocalCredentials* internal_default_instance() { - return reinterpret_cast( - &_GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_); + inline const std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields(); } - static constexpr int kIndexInFileMessages = - 5; - friend void swap(GrpcService_GoogleGrpc_GoogleLocalCredentials& a, GrpcService_GoogleGrpc_GoogleLocalCredentials& b) { - a.Swap(&b); + static const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& default_instance() { + return *internal_default_instance(); } - inline void Swap(GrpcService_GoogleGrpc_GoogleLocalCredentials* other) { + static inline const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* internal_default_instance() { + return reinterpret_cast( + &_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_); + } + static constexpr int kIndexInFileMessages = 9; + friend void swap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& a, GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& b) { a.Swap(&b); } + inline void Swap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* other) { if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GrpcService_GoogleGrpc_GoogleLocalCredentials* New() const final { - return CreateMaybeMessage(nullptr); + GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - - GrpcService_GoogleGrpc_GoogleLocalCredentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; - void CopyFrom(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from); - void MergeFrom(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + void CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) final; + void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from); + void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(GrpcService_GoogleGrpc_GoogleLocalCredentials* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.GoogleGrpc.GoogleLocalCredentials"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials"; } + + protected: + explicit GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(::google::protobuf::Arena* arena); + GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from); + GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials&& from) noexcept + : GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(arena) { + *this = ::std::move(from); } - public: - - std::string GetTypeName() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kAuthorizationTokenFieldNumber = 1, + kAuthoritySelectorFieldNumber = 2, + }; + // string authorization_token = 1; + void clear_authorization_token() ; + const std::string& authorization_token() const; + template + void set_authorization_token(Arg_&& arg, Args_... args); + std::string* mutable_authorization_token(); + PROTOBUF_NODISCARD std::string* release_authorization_token(); + void set_allocated_authorization_token(std::string* value); - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.GoogleLocalCredentials) + private: + const std::string& _internal_authorization_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_authorization_token( + const std::string& value); + std::string* _internal_mutable_authorization_token(); + + public: + // string authority_selector = 2; + void clear_authority_selector() ; + const std::string& authority_selector() const; + template + void set_authority_selector(Arg_&& arg, Args_... args); + std::string* mutable_authority_selector(); + PROTOBUF_NODISCARD std::string* release_authority_selector(); + void set_allocated_authority_selector(std::string* value); + + private: + const std::string& _internal_authority_selector() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_authority_selector( + const std::string& value); + std::string* _internal_mutable_authority_selector(); + + public: + // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) private: class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 105, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr authorization_token_; + ::google::protobuf::internal::ArenaStringPtr authority_selector_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; }; // ------------------------------------------------------------------- -class GrpcService_GoogleGrpc_Empty : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.Empty) */ { +class GrpcService_EnvoyGrpc final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:GrpcService.EnvoyGrpc) */ { public: - GrpcService_GoogleGrpc_Empty(); - virtual ~GrpcService_GoogleGrpc_Empty(); - - GrpcService_GoogleGrpc_Empty(const GrpcService_GoogleGrpc_Empty& from); - GrpcService_GoogleGrpc_Empty(GrpcService_GoogleGrpc_Empty&& from) noexcept - : GrpcService_GoogleGrpc_Empty() { - *this = ::std::move(from); - } - - inline GrpcService_GoogleGrpc_Empty& operator=(const GrpcService_GoogleGrpc_Empty& from) { + inline GrpcService_EnvoyGrpc() : GrpcService_EnvoyGrpc(nullptr) {} + ~GrpcService_EnvoyGrpc() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService_EnvoyGrpc( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService_EnvoyGrpc(const GrpcService_EnvoyGrpc& from) : GrpcService_EnvoyGrpc(nullptr, from) {} + inline GrpcService_EnvoyGrpc(GrpcService_EnvoyGrpc&& from) noexcept + : GrpcService_EnvoyGrpc(nullptr, std::move(from)) {} + inline GrpcService_EnvoyGrpc& operator=(const GrpcService_EnvoyGrpc& from) { CopyFrom(from); return *this; } - inline GrpcService_GoogleGrpc_Empty& operator=(GrpcService_GoogleGrpc_Empty&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + inline GrpcService_EnvoyGrpc& operator=(GrpcService_EnvoyGrpc&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const GrpcService_GoogleGrpc_Empty& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GrpcService_GoogleGrpc_Empty* internal_default_instance() { - return reinterpret_cast( - &_GrpcService_GoogleGrpc_Empty_default_instance_); + inline const std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields(); } - static constexpr int kIndexInFileMessages = - 6; - friend void swap(GrpcService_GoogleGrpc_Empty& a, GrpcService_GoogleGrpc_Empty& b) { - a.Swap(&b); + static const GrpcService_EnvoyGrpc& default_instance() { + return *internal_default_instance(); } - inline void Swap(GrpcService_GoogleGrpc_Empty* other) { + static inline const GrpcService_EnvoyGrpc* internal_default_instance() { + return reinterpret_cast( + &_GrpcService_EnvoyGrpc_default_instance_); + } + static constexpr int kIndexInFileMessages = 3; + friend void swap(GrpcService_EnvoyGrpc& a, GrpcService_EnvoyGrpc& b) { a.Swap(&b); } + inline void Swap(GrpcService_EnvoyGrpc* other) { if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService_EnvoyGrpc* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GrpcService_GoogleGrpc_Empty* New() const final { - return CreateMaybeMessage(nullptr); + GrpcService_EnvoyGrpc* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - - GrpcService_GoogleGrpc_Empty* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; - void CopyFrom(const GrpcService_GoogleGrpc_Empty& from); - void MergeFrom(const GrpcService_GoogleGrpc_Empty& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + void CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) final; + void CopyFrom(const GrpcService_EnvoyGrpc& from); + void MergeFrom(const GrpcService_EnvoyGrpc& from); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(GrpcService_GoogleGrpc_Empty* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.GoogleGrpc.Empty"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GrpcService_EnvoyGrpc* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService.EnvoyGrpc"; } + + protected: + explicit GrpcService_EnvoyGrpc(::google::protobuf::Arena* arena); + GrpcService_EnvoyGrpc(::google::protobuf::Arena* arena, const GrpcService_EnvoyGrpc& from); + GrpcService_EnvoyGrpc(::google::protobuf::Arena* arena, GrpcService_EnvoyGrpc&& from) noexcept + : GrpcService_EnvoyGrpc(arena) { + *this = ::std::move(from); } - public: - - std::string GetTypeName() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kClusterNameFieldNumber = 1, + }; + // string cluster_name = 1; + void clear_cluster_name() ; + const std::string& cluster_name() const; + template + void set_cluster_name(Arg_&& arg, Args_... args); + std::string* mutable_cluster_name(); + PROTOBUF_NODISCARD std::string* release_cluster_name(); + void set_allocated_cluster_name(std::string* value); - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.Empty) + private: + const std::string& _internal_cluster_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_cluster_name( + const std::string& value); + std::string* _internal_mutable_cluster_name(); + + public: + // @@protoc_insertion_point(class_scope:GrpcService.EnvoyGrpc) private: class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 1, 0, + 42, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr cluster_name_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; }; // ------------------------------------------------------------------- -class GrpcService_GoogleGrpc_ChannelCredentials : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.ChannelCredentials) */ { +class DataSource final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:DataSource) */ { public: - GrpcService_GoogleGrpc_ChannelCredentials(); - virtual ~GrpcService_GoogleGrpc_ChannelCredentials(); - - GrpcService_GoogleGrpc_ChannelCredentials(const GrpcService_GoogleGrpc_ChannelCredentials& from); - GrpcService_GoogleGrpc_ChannelCredentials(GrpcService_GoogleGrpc_ChannelCredentials&& from) noexcept - : GrpcService_GoogleGrpc_ChannelCredentials() { - *this = ::std::move(from); - } - - inline GrpcService_GoogleGrpc_ChannelCredentials& operator=(const GrpcService_GoogleGrpc_ChannelCredentials& from) { + inline DataSource() : DataSource(nullptr) {} + ~DataSource() override; + template + explicit PROTOBUF_CONSTEXPR DataSource( + ::google::protobuf::internal::ConstantInitialized); + + inline DataSource(const DataSource& from) : DataSource(nullptr, from) {} + inline DataSource(DataSource&& from) noexcept + : DataSource(nullptr, std::move(from)) {} + inline DataSource& operator=(const DataSource& from) { CopyFrom(from); return *this; } - inline GrpcService_GoogleGrpc_ChannelCredentials& operator=(GrpcService_GoogleGrpc_ChannelCredentials&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + inline DataSource& operator=(DataSource&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const GrpcService_GoogleGrpc_ChannelCredentials& default_instance(); + inline const std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields(); + } - enum CredentialSpecifierCase { - kSslCredentials = 1, - kGoogleDefault = 2, - kLocalCredentials = 3, - CREDENTIAL_SPECIFIER_NOT_SET = 0, + static const DataSource& default_instance() { + return *internal_default_instance(); + } + enum SpecifierCase { + kFilename = 1, + kInlineBytes = 2, + kInlineString = 3, + SPECIFIER_NOT_SET = 0, }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GrpcService_GoogleGrpc_ChannelCredentials* internal_default_instance() { - return reinterpret_cast( - &_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_); + static inline const DataSource* internal_default_instance() { + return reinterpret_cast( + &_DataSource_default_instance_); } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(GrpcService_GoogleGrpc_ChannelCredentials& a, GrpcService_GoogleGrpc_ChannelCredentials& b) { - a.Swap(&b); + static constexpr int kIndexInFileMessages = 1; + friend void swap(DataSource& a, DataSource& b) { a.Swap(&b); } + inline void Swap(DataSource* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } } - inline void Swap(GrpcService_GoogleGrpc_ChannelCredentials* other) { + void UnsafeArenaSwap(DataSource* other) { if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GrpcService_GoogleGrpc_ChannelCredentials* New() const final { - return CreateMaybeMessage(nullptr); + DataSource* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - - GrpcService_GoogleGrpc_ChannelCredentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; - void CopyFrom(const GrpcService_GoogleGrpc_ChannelCredentials& from); - void MergeFrom(const GrpcService_GoogleGrpc_ChannelCredentials& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + void CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) final; + void CopyFrom(const DataSource& from); + void MergeFrom(const DataSource& from); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(GrpcService_GoogleGrpc_ChannelCredentials* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.GoogleGrpc.ChannelCredentials"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(DataSource* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "DataSource"; } + + protected: + explicit DataSource(::google::protobuf::Arena* arena); + DataSource(::google::protobuf::Arena* arena, const DataSource& from); + DataSource(::google::protobuf::Arena* arena, DataSource&& from) noexcept + : DataSource(arena) { + *this = ::std::move(from); } - public: - - std::string GetTypeName() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kSslCredentialsFieldNumber = 1, - kGoogleDefaultFieldNumber = 2, - kLocalCredentialsFieldNumber = 3, + kFilenameFieldNumber = 1, + kInlineBytesFieldNumber = 2, + kInlineStringFieldNumber = 3, }; - // .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; - bool has_ssl_credentials() const; - void clear_ssl_credentials(); - const ::GrpcService_GoogleGrpc_SslCredentials& ssl_credentials() const; - ::GrpcService_GoogleGrpc_SslCredentials* release_ssl_credentials(); - ::GrpcService_GoogleGrpc_SslCredentials* mutable_ssl_credentials(); - void set_allocated_ssl_credentials(::GrpcService_GoogleGrpc_SslCredentials* ssl_credentials); + // string filename = 1; + bool has_filename() const; + void clear_filename() ; + const std::string& filename() const; + template + void set_filename(Arg_&& arg, Args_... args); + std::string* mutable_filename(); + PROTOBUF_NODISCARD std::string* release_filename(); + void set_allocated_filename(std::string* value); - // .GrpcService.GoogleGrpc.Empty google_default = 2; - bool has_google_default() const; - void clear_google_default(); - const ::GrpcService_GoogleGrpc_Empty& google_default() const; - ::GrpcService_GoogleGrpc_Empty* release_google_default(); - ::GrpcService_GoogleGrpc_Empty* mutable_google_default(); - void set_allocated_google_default(::GrpcService_GoogleGrpc_Empty* google_default); + private: + const std::string& _internal_filename() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_filename( + const std::string& value); + std::string* _internal_mutable_filename(); - // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; - bool has_local_credentials() const; - void clear_local_credentials(); - const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& local_credentials() const; - ::GrpcService_GoogleGrpc_GoogleLocalCredentials* release_local_credentials(); - ::GrpcService_GoogleGrpc_GoogleLocalCredentials* mutable_local_credentials(); - void set_allocated_local_credentials(::GrpcService_GoogleGrpc_GoogleLocalCredentials* local_credentials); + public: + // bytes inline_bytes = 2; + bool has_inline_bytes() const; + void clear_inline_bytes() ; + const std::string& inline_bytes() const; + template + void set_inline_bytes(Arg_&& arg, Args_... args); + std::string* mutable_inline_bytes(); + PROTOBUF_NODISCARD std::string* release_inline_bytes(); + void set_allocated_inline_bytes(std::string* value); - void clear_credential_specifier(); - CredentialSpecifierCase credential_specifier_case() const; - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.ChannelCredentials) - private: - class _Internal; - void set_has_ssl_credentials(); - void set_has_google_default(); - void set_has_local_credentials(); + private: + const std::string& _internal_inline_bytes() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_inline_bytes( + const std::string& value); + std::string* _internal_mutable_inline_bytes(); - inline bool has_credential_specifier() const; - inline void clear_has_credential_specifier(); + public: + // string inline_string = 3; + bool has_inline_string() const; + void clear_inline_string() ; + const std::string& inline_string() const; + template + void set_inline_string(Arg_&& arg, Args_... args); + std::string* mutable_inline_string(); + PROTOBUF_NODISCARD std::string* release_inline_string(); + void set_allocated_inline_string(std::string* value); - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; - union CredentialSpecifierUnion { - CredentialSpecifierUnion() {} - ::GrpcService_GoogleGrpc_SslCredentials* ssl_credentials_; - ::GrpcService_GoogleGrpc_Empty* google_default_; - ::GrpcService_GoogleGrpc_GoogleLocalCredentials* local_credentials_; - } credential_specifier_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + private: + const std::string& _internal_inline_string() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_inline_string( + const std::string& value); + std::string* _internal_mutable_inline_string(); + public: + void clear_specifier(); + SpecifierCase specifier_case() const; + // @@protoc_insertion_point(class_scope:DataSource) + private: + class _Internal; + void set_has_filename(); + void set_has_inline_bytes(); + void set_has_inline_string(); + inline bool has_specifier() const; + inline void clear_has_specifier(); + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 3, 0, + 40, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + union SpecifierUnion { + constexpr SpecifierUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + ::google::protobuf::internal::ArenaStringPtr filename_; + ::google::protobuf::internal::ArenaStringPtr inline_bytes_; + ::google::protobuf::internal::ArenaStringPtr inline_string_; + } specifier_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; }; // ------------------------------------------------------------------- -class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) */ { +class Any final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:Any) */ { public: - GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(); - virtual ~GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(); + inline Any() : Any(nullptr) {} + ~Any() override; + template + explicit PROTOBUF_CONSTEXPR Any( + ::google::protobuf::internal::ConstantInitialized); + + inline Any(const Any& from) : Any(nullptr, from) {} + inline Any(Any&& from) noexcept + : Any(nullptr, std::move(from)) {} + inline Any& operator=(const Any& from) { + CopyFrom(from); + return *this; + } + inline Any& operator=(Any&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from); - GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials() { + inline const std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const Any& default_instance() { + return *internal_default_instance(); + } + static inline const Any* internal_default_instance() { + return reinterpret_cast( + &_Any_default_instance_); + } + static constexpr int kIndexInFileMessages = 2; + friend void swap(Any& a, Any& b) { a.Swap(&b); } + inline void Swap(Any* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Any* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Any* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) final; + void CopyFrom(const Any& from); + void MergeFrom(const Any& from); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(Any* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "Any"; } + + protected: + explicit Any(::google::protobuf::Arena* arena); + Any(::google::protobuf::Arena* arena, const Any& from); + Any(::google::protobuf::Arena* arena, Any&& from) noexcept + : Any(arena) { *this = ::std::move(from); } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; - inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& operator=(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) { + public: + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kTypeUrlFieldNumber = 1, + kValueFieldNumber = 2, + }; + // string type_url = 1; + void clear_type_url() ; + const std::string& type_url() const; + template + void set_type_url(Arg_&& arg, Args_... args); + std::string* mutable_type_url(); + PROTOBUF_NODISCARD std::string* release_type_url(); + void set_allocated_type_url(std::string* value); + + private: + const std::string& _internal_type_url() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_url( + const std::string& value); + std::string* _internal_mutable_type_url(); + + public: + // bytes value = 2; + void clear_value() ; + const std::string& value() const; + template + void set_value(Arg_&& arg, Args_... args); + std::string* mutable_value(); + PROTOBUF_NODISCARD std::string* release_value(); + void set_allocated_value(std::string* value); + + private: + const std::string& _internal_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_value( + const std::string& value); + std::string* _internal_mutable_value(); + + public: + // @@protoc_insertion_point(class_scope:Any) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 20, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr type_url_; + ::google::protobuf::internal::ArenaStringPtr value_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; +}; +// ------------------------------------------------------------------- + +class WKT final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:WKT) */ { + public: + inline WKT() : WKT(nullptr) {} + ~WKT() override; + template + explicit PROTOBUF_CONSTEXPR WKT( + ::google::protobuf::internal::ConstantInitialized); + + inline WKT(const WKT& from) : WKT(nullptr, from) {} + inline WKT(WKT&& from) noexcept + : WKT(nullptr, std::move(from)) {} + inline WKT& operator=(const WKT& from) { CopyFrom(from); return *this; } - inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& operator=(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + inline WKT& operator=(WKT&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* internal_default_instance() { - return reinterpret_cast( - &_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_); + inline const std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields(); } - static constexpr int kIndexInFileMessages = - 8; - friend void swap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& a, GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& b) { - a.Swap(&b); + static const WKT& default_instance() { + return *internal_default_instance(); } - inline void Swap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* other) { + static inline const WKT* internal_default_instance() { + return reinterpret_cast( + &_WKT_default_instance_); + } + static constexpr int kIndexInFileMessages = 0; + friend void swap(WKT& a, WKT& b) { a.Swap(&b); } + inline void Swap(WKT* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(WKT* other) { if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* New() const final { - return CreateMaybeMessage(nullptr); - } - - GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + WKT* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; - void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from); - void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + void CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) final; + void CopyFrom(const WKT& from); + void MergeFrom(const WKT& from); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(WKT* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "WKT"; } + + protected: + explicit WKT(::google::protobuf::Arena* arena); + WKT(::google::protobuf::Arena* arena, const WKT& from); + WKT(::google::protobuf::Arena* arena, WKT&& from) noexcept + : WKT(arena) { + *this = ::std::move(from); } - public: - - std::string GetTypeName() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kJsonKeyFieldNumber = 1, - kTokenLifetimeSecondsFieldNumber = 2, + kStructFieldNumber = 1, }; - // string json_key = 1; - void clear_json_key(); - const std::string& json_key() const; - void set_json_key(const std::string& value); - void set_json_key(std::string&& value); - void set_json_key(const char* value); - void set_json_key(const char* value, size_t size); - std::string* mutable_json_key(); - std::string* release_json_key(); - void set_allocated_json_key(std::string* json_key); + // .google.protobuf.Struct struct = 1; + bool has_struct_() const; + void clear_struct_() ; + const ::google::protobuf::Struct& struct_() const; + PROTOBUF_NODISCARD ::google::protobuf::Struct* release_struct_(); + ::google::protobuf::Struct* mutable_struct_(); + void set_allocated_struct_(::google::protobuf::Struct* value); + void unsafe_arena_set_allocated_struct_(::google::protobuf::Struct* value); + ::google::protobuf::Struct* unsafe_arena_release_struct_(); - // uint64 token_lifetime_seconds = 2; - void clear_token_lifetime_seconds(); - ::PROTOBUF_NAMESPACE_ID::uint64 token_lifetime_seconds() const; - void set_token_lifetime_seconds(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + const ::google::protobuf::Struct& _internal_struct_() const; + ::google::protobuf::Struct* _internal_mutable_struct_(); - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) + public: + // @@protoc_insertion_point(class_scope:WKT) private: class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr json_key_; - ::PROTOBUF_NAMESPACE_ID::uint64 token_lifetime_seconds_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 1, 1, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::Struct* struct__; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; }; // ------------------------------------------------------------------- -class GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) */ { +class GrpcService_GoogleGrpc_SslCredentials final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.SslCredentials) */ { public: - GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(); - virtual ~GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(); - - GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from); - GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials() { - *this = ::std::move(from); - } - - inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& operator=(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) { + inline GrpcService_GoogleGrpc_SslCredentials() : GrpcService_GoogleGrpc_SslCredentials(nullptr) {} + ~GrpcService_GoogleGrpc_SslCredentials() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_SslCredentials( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService_GoogleGrpc_SslCredentials(const GrpcService_GoogleGrpc_SslCredentials& from) : GrpcService_GoogleGrpc_SslCredentials(nullptr, from) {} + inline GrpcService_GoogleGrpc_SslCredentials(GrpcService_GoogleGrpc_SslCredentials&& from) noexcept + : GrpcService_GoogleGrpc_SslCredentials(nullptr, std::move(from)) {} + inline GrpcService_GoogleGrpc_SslCredentials& operator=(const GrpcService_GoogleGrpc_SslCredentials& from) { CopyFrom(from); return *this; } - inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& operator=(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + inline GrpcService_GoogleGrpc_SslCredentials& operator=(GrpcService_GoogleGrpc_SslCredentials&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* internal_default_instance() { - return reinterpret_cast( - &_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_); + inline const std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields(); } - static constexpr int kIndexInFileMessages = - 9; - friend void swap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& a, GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& b) { - a.Swap(&b); + static const GrpcService_GoogleGrpc_SslCredentials& default_instance() { + return *internal_default_instance(); } - inline void Swap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* other) { + static inline const GrpcService_GoogleGrpc_SslCredentials* internal_default_instance() { + return reinterpret_cast( + &_GrpcService_GoogleGrpc_SslCredentials_default_instance_); + } + static constexpr int kIndexInFileMessages = 4; + friend void swap(GrpcService_GoogleGrpc_SslCredentials& a, GrpcService_GoogleGrpc_SslCredentials& b) { a.Swap(&b); } + inline void Swap(GrpcService_GoogleGrpc_SslCredentials* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService_GoogleGrpc_SslCredentials* other) { if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* New() const final { - return CreateMaybeMessage(nullptr); - } - - GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + GrpcService_GoogleGrpc_SslCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; - void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from); - void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + void CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) final; + void CopyFrom(const GrpcService_GoogleGrpc_SslCredentials& from); + void MergeFrom(const GrpcService_GoogleGrpc_SslCredentials& from); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GrpcService_GoogleGrpc_SslCredentials* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.SslCredentials"; } + + protected: + explicit GrpcService_GoogleGrpc_SslCredentials(::google::protobuf::Arena* arena); + GrpcService_GoogleGrpc_SslCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_SslCredentials& from); + GrpcService_GoogleGrpc_SslCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_SslCredentials&& from) noexcept + : GrpcService_GoogleGrpc_SslCredentials(arena) { + *this = ::std::move(from); } - public: - - std::string GetTypeName() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kAuthorizationTokenFieldNumber = 1, - kAuthoritySelectorFieldNumber = 2, + kRootCertsFieldNumber = 1, + kPrivateKeyFieldNumber = 2, + kCertChainFieldNumber = 3, }; - // string authorization_token = 1; - void clear_authorization_token(); - const std::string& authorization_token() const; - void set_authorization_token(const std::string& value); - void set_authorization_token(std::string&& value); - void set_authorization_token(const char* value); - void set_authorization_token(const char* value, size_t size); - std::string* mutable_authorization_token(); - std::string* release_authorization_token(); - void set_allocated_authorization_token(std::string* authorization_token); + // .DataSource root_certs = 1; + bool has_root_certs() const; + void clear_root_certs() ; + const ::DataSource& root_certs() const; + PROTOBUF_NODISCARD ::DataSource* release_root_certs(); + ::DataSource* mutable_root_certs(); + void set_allocated_root_certs(::DataSource* value); + void unsafe_arena_set_allocated_root_certs(::DataSource* value); + ::DataSource* unsafe_arena_release_root_certs(); - // string authority_selector = 2; - void clear_authority_selector(); - const std::string& authority_selector() const; - void set_authority_selector(const std::string& value); - void set_authority_selector(std::string&& value); - void set_authority_selector(const char* value); - void set_authority_selector(const char* value, size_t size); - std::string* mutable_authority_selector(); - std::string* release_authority_selector(); - void set_allocated_authority_selector(std::string* authority_selector); + private: + const ::DataSource& _internal_root_certs() const; + ::DataSource* _internal_mutable_root_certs(); - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) + public: + // .DataSource private_key = 2; + bool has_private_key() const; + void clear_private_key() ; + const ::DataSource& private_key() const; + PROTOBUF_NODISCARD ::DataSource* release_private_key(); + ::DataSource* mutable_private_key(); + void set_allocated_private_key(::DataSource* value); + void unsafe_arena_set_allocated_private_key(::DataSource* value); + ::DataSource* unsafe_arena_release_private_key(); + + private: + const ::DataSource& _internal_private_key() const; + ::DataSource* _internal_mutable_private_key(); + + public: + // .DataSource cert_chain = 3; + bool has_cert_chain() const; + void clear_cert_chain() ; + const ::DataSource& cert_chain() const; + PROTOBUF_NODISCARD ::DataSource* release_cert_chain(); + ::DataSource* mutable_cert_chain(); + void set_allocated_cert_chain(::DataSource* value); + void unsafe_arena_set_allocated_cert_chain(::DataSource* value); + ::DataSource* unsafe_arena_release_cert_chain(); + + private: + const ::DataSource& _internal_cert_chain() const; + ::DataSource* _internal_mutable_cert_chain(); + + public: + // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.SslCredentials) private: class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr authorization_token_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr authority_selector_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 2, 3, 3, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::DataSource* root_certs_; + ::DataSource* private_key_; + ::DataSource* cert_chain_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; }; // ------------------------------------------------------------------- -class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) */ { +class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) */ { public: - GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(); - virtual ~GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(); - - GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from); - GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin() { - *this = ::std::move(from); - } - + inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin() : GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(nullptr) {} + ~GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) : GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(nullptr, from) {} + inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin&& from) noexcept + : GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(nullptr, std::move(from)) {} inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& operator=(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) { CopyFrom(from); return *this; } inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& operator=(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& default_instance(); + inline const std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields(); + } + static const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& default_instance() { + return *internal_default_instance(); + } enum ConfigTypeCase { kConfig = 2, kTypedConfig = 3, CONFIG_TYPE_NOT_SET = 0, }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* internal_default_instance() { return reinterpret_cast( - &_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& a, GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& b) { - a.Swap(&b); + &_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_); } + static constexpr int kIndexInFileMessages = 10; + friend void swap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& a, GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& b) { a.Swap(&b); } inline void Swap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* other) { if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* New() const final { - return CreateMaybeMessage(nullptr); - } - - GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; + void CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) final; void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from); void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin"; } + + protected: + explicit GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(::google::protobuf::Arena* arena); + GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from); + GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin&& from) noexcept + : GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(arena) { + *this = ::std::move(from); } - public: - - std::string GetTypeName() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kNameFieldNumber = 1, kConfigFieldNumber = 2, kTypedConfigFieldNumber = 3, }; // string name = 1; - void clear_name(); + void clear_name() ; const std::string& name() const; - void set_name(const std::string& value); - void set_name(std::string&& value); - void set_name(const char* value); - void set_name(const char* value, size_t size); + template + void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); - std::string* release_name(); - void set_allocated_name(std::string* name); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* value); + + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); + std::string* _internal_mutable_name(); + public: // .google.protobuf.Struct config = 2 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_config() const; - PROTOBUF_DEPRECATED void clear_config(); - PROTOBUF_DEPRECATED const ::google::protobuf::Struct& config() const; - PROTOBUF_DEPRECATED ::google::protobuf::Struct* release_config(); - PROTOBUF_DEPRECATED ::google::protobuf::Struct* mutable_config(); - PROTOBUF_DEPRECATED void set_allocated_config(::google::protobuf::Struct* config); + [[deprecated]] bool has_config() const; + private: + bool _internal_has_config() const; + + public: + [[deprecated]] void clear_config() ; + [[deprecated]] const ::google::protobuf::Struct& config() const; + [[deprecated]] PROTOBUF_NODISCARD ::google::protobuf::Struct* release_config(); + [[deprecated]] ::google::protobuf::Struct* mutable_config(); + [[deprecated]] void set_allocated_config(::google::protobuf::Struct* value); + [[deprecated]] void unsafe_arena_set_allocated_config(::google::protobuf::Struct* value); + [[deprecated]] ::google::protobuf::Struct* unsafe_arena_release_config(); + private: + const ::google::protobuf::Struct& _internal_config() const; + ::google::protobuf::Struct* _internal_mutable_config(); + + public: // .Any typed_config = 3; bool has_typed_config() const; - void clear_typed_config(); + private: + bool _internal_has_typed_config() const; + + public: + void clear_typed_config() ; const ::Any& typed_config() const; - ::Any* release_typed_config(); + PROTOBUF_NODISCARD ::Any* release_typed_config(); ::Any* mutable_typed_config(); - void set_allocated_typed_config(::Any* typed_config); + void set_allocated_typed_config(::Any* value); + void unsafe_arena_set_allocated_typed_config(::Any* value); + ::Any* unsafe_arena_release_typed_config(); + + private: + const ::Any& _internal_typed_config() const; + ::Any* _internal_mutable_typed_config(); + public: void clear_config_type(); ConfigTypeCase config_type_case() const; // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) @@ -1587,275 +2275,303 @@ class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin : class _Internal; void set_has_config(); void set_has_typed_config(); - inline bool has_config_type() const; inline void clear_has_config_type(); - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - union ConfigTypeUnion { - ConfigTypeUnion() {} - ::google::protobuf::Struct* config_; - ::Any* typed_config_; - } config_type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 3, 2, + 81, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr name_; + union ConfigTypeUnion { + constexpr ConfigTypeUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + ::google::protobuf::Struct* config_; + ::Any* typed_config_; + } config_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; }; // ------------------------------------------------------------------- -class GrpcService_GoogleGrpc_CallCredentials_StsService : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.StsService) */ { +class GrpcService_GoogleGrpc_ChannelCredentials final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.ChannelCredentials) */ { public: - GrpcService_GoogleGrpc_CallCredentials_StsService(); - virtual ~GrpcService_GoogleGrpc_CallCredentials_StsService(); - - GrpcService_GoogleGrpc_CallCredentials_StsService(const GrpcService_GoogleGrpc_CallCredentials_StsService& from); - GrpcService_GoogleGrpc_CallCredentials_StsService(GrpcService_GoogleGrpc_CallCredentials_StsService&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_StsService() { - *this = ::std::move(from); - } - - inline GrpcService_GoogleGrpc_CallCredentials_StsService& operator=(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) { + inline GrpcService_GoogleGrpc_ChannelCredentials() : GrpcService_GoogleGrpc_ChannelCredentials(nullptr) {} + ~GrpcService_GoogleGrpc_ChannelCredentials() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_ChannelCredentials( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService_GoogleGrpc_ChannelCredentials(const GrpcService_GoogleGrpc_ChannelCredentials& from) : GrpcService_GoogleGrpc_ChannelCredentials(nullptr, from) {} + inline GrpcService_GoogleGrpc_ChannelCredentials(GrpcService_GoogleGrpc_ChannelCredentials&& from) noexcept + : GrpcService_GoogleGrpc_ChannelCredentials(nullptr, std::move(from)) {} + inline GrpcService_GoogleGrpc_ChannelCredentials& operator=(const GrpcService_GoogleGrpc_ChannelCredentials& from) { CopyFrom(from); return *this; } - inline GrpcService_GoogleGrpc_CallCredentials_StsService& operator=(GrpcService_GoogleGrpc_CallCredentials_StsService&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + inline GrpcService_GoogleGrpc_ChannelCredentials& operator=(GrpcService_GoogleGrpc_ChannelCredentials&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const GrpcService_GoogleGrpc_CallCredentials_StsService& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GrpcService_GoogleGrpc_CallCredentials_StsService* internal_default_instance() { - return reinterpret_cast( - &_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_); + inline const std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields(); } - static constexpr int kIndexInFileMessages = - 11; - friend void swap(GrpcService_GoogleGrpc_CallCredentials_StsService& a, GrpcService_GoogleGrpc_CallCredentials_StsService& b) { - a.Swap(&b); + static const GrpcService_GoogleGrpc_ChannelCredentials& default_instance() { + return *internal_default_instance(); } - inline void Swap(GrpcService_GoogleGrpc_CallCredentials_StsService* other) { + enum CredentialSpecifierCase { + kSslCredentials = 1, + kGoogleDefault = 2, + kLocalCredentials = 3, + CREDENTIAL_SPECIFIER_NOT_SET = 0, + }; + static inline const GrpcService_GoogleGrpc_ChannelCredentials* internal_default_instance() { + return reinterpret_cast( + &_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_); + } + static constexpr int kIndexInFileMessages = 7; + friend void swap(GrpcService_GoogleGrpc_ChannelCredentials& a, GrpcService_GoogleGrpc_ChannelCredentials& b) { a.Swap(&b); } + inline void Swap(GrpcService_GoogleGrpc_ChannelCredentials* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService_GoogleGrpc_ChannelCredentials* other) { if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GrpcService_GoogleGrpc_CallCredentials_StsService* New() const final { - return CreateMaybeMessage(nullptr); - } - - GrpcService_GoogleGrpc_CallCredentials_StsService* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + GrpcService_GoogleGrpc_ChannelCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; - void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from); - void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + void CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) final; + void CopyFrom(const GrpcService_GoogleGrpc_ChannelCredentials& from); + void MergeFrom(const GrpcService_GoogleGrpc_ChannelCredentials& from); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_StsService* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.GoogleGrpc.CallCredentials.StsService"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GrpcService_GoogleGrpc_ChannelCredentials* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.ChannelCredentials"; } + + protected: + explicit GrpcService_GoogleGrpc_ChannelCredentials(::google::protobuf::Arena* arena); + GrpcService_GoogleGrpc_ChannelCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_ChannelCredentials& from); + GrpcService_GoogleGrpc_ChannelCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_ChannelCredentials&& from) noexcept + : GrpcService_GoogleGrpc_ChannelCredentials(arena) { + *this = ::std::move(from); } - public: - - std::string GetTypeName() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kTokenExchangeServiceUriFieldNumber = 1, - kResourceFieldNumber = 2, - kAudienceFieldNumber = 3, - kScopeFieldNumber = 4, - kRequestedTokenTypeFieldNumber = 5, - kSubjectTokenPathFieldNumber = 6, - kSubjectTokenTypeFieldNumber = 7, - kActorTokenPathFieldNumber = 8, - kActorTokenTypeFieldNumber = 9, + kSslCredentialsFieldNumber = 1, + kGoogleDefaultFieldNumber = 2, + kLocalCredentialsFieldNumber = 3, }; - // string token_exchange_service_uri = 1; - void clear_token_exchange_service_uri(); - const std::string& token_exchange_service_uri() const; - void set_token_exchange_service_uri(const std::string& value); - void set_token_exchange_service_uri(std::string&& value); - void set_token_exchange_service_uri(const char* value); - void set_token_exchange_service_uri(const char* value, size_t size); - std::string* mutable_token_exchange_service_uri(); - std::string* release_token_exchange_service_uri(); - void set_allocated_token_exchange_service_uri(std::string* token_exchange_service_uri); + // .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; + bool has_ssl_credentials() const; + private: + bool _internal_has_ssl_credentials() const; - // string resource = 2; - void clear_resource(); - const std::string& resource() const; - void set_resource(const std::string& value); - void set_resource(std::string&& value); - void set_resource(const char* value); - void set_resource(const char* value, size_t size); - std::string* mutable_resource(); - std::string* release_resource(); - void set_allocated_resource(std::string* resource); + public: + void clear_ssl_credentials() ; + const ::GrpcService_GoogleGrpc_SslCredentials& ssl_credentials() const; + PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_SslCredentials* release_ssl_credentials(); + ::GrpcService_GoogleGrpc_SslCredentials* mutable_ssl_credentials(); + void set_allocated_ssl_credentials(::GrpcService_GoogleGrpc_SslCredentials* value); + void unsafe_arena_set_allocated_ssl_credentials(::GrpcService_GoogleGrpc_SslCredentials* value); + ::GrpcService_GoogleGrpc_SslCredentials* unsafe_arena_release_ssl_credentials(); - // string audience = 3; - void clear_audience(); - const std::string& audience() const; - void set_audience(const std::string& value); - void set_audience(std::string&& value); - void set_audience(const char* value); - void set_audience(const char* value, size_t size); - std::string* mutable_audience(); - std::string* release_audience(); - void set_allocated_audience(std::string* audience); + private: + const ::GrpcService_GoogleGrpc_SslCredentials& _internal_ssl_credentials() const; + ::GrpcService_GoogleGrpc_SslCredentials* _internal_mutable_ssl_credentials(); - // string scope = 4; - void clear_scope(); - const std::string& scope() const; - void set_scope(const std::string& value); - void set_scope(std::string&& value); - void set_scope(const char* value); - void set_scope(const char* value, size_t size); - std::string* mutable_scope(); - std::string* release_scope(); - void set_allocated_scope(std::string* scope); + public: + // .GrpcService.GoogleGrpc.Empty google_default = 2; + bool has_google_default() const; + private: + bool _internal_has_google_default() const; - // string requested_token_type = 5; - void clear_requested_token_type(); - const std::string& requested_token_type() const; - void set_requested_token_type(const std::string& value); - void set_requested_token_type(std::string&& value); - void set_requested_token_type(const char* value); - void set_requested_token_type(const char* value, size_t size); - std::string* mutable_requested_token_type(); - std::string* release_requested_token_type(); - void set_allocated_requested_token_type(std::string* requested_token_type); + public: + void clear_google_default() ; + const ::GrpcService_GoogleGrpc_Empty& google_default() const; + PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_Empty* release_google_default(); + ::GrpcService_GoogleGrpc_Empty* mutable_google_default(); + void set_allocated_google_default(::GrpcService_GoogleGrpc_Empty* value); + void unsafe_arena_set_allocated_google_default(::GrpcService_GoogleGrpc_Empty* value); + ::GrpcService_GoogleGrpc_Empty* unsafe_arena_release_google_default(); - // string subject_token_path = 6; - void clear_subject_token_path(); - const std::string& subject_token_path() const; - void set_subject_token_path(const std::string& value); - void set_subject_token_path(std::string&& value); - void set_subject_token_path(const char* value); - void set_subject_token_path(const char* value, size_t size); - std::string* mutable_subject_token_path(); - std::string* release_subject_token_path(); - void set_allocated_subject_token_path(std::string* subject_token_path); + private: + const ::GrpcService_GoogleGrpc_Empty& _internal_google_default() const; + ::GrpcService_GoogleGrpc_Empty* _internal_mutable_google_default(); - // string subject_token_type = 7; - void clear_subject_token_type(); - const std::string& subject_token_type() const; - void set_subject_token_type(const std::string& value); - void set_subject_token_type(std::string&& value); - void set_subject_token_type(const char* value); - void set_subject_token_type(const char* value, size_t size); - std::string* mutable_subject_token_type(); - std::string* release_subject_token_type(); - void set_allocated_subject_token_type(std::string* subject_token_type); + public: + // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; + bool has_local_credentials() const; + private: + bool _internal_has_local_credentials() const; - // string actor_token_path = 8; - void clear_actor_token_path(); - const std::string& actor_token_path() const; - void set_actor_token_path(const std::string& value); - void set_actor_token_path(std::string&& value); - void set_actor_token_path(const char* value); - void set_actor_token_path(const char* value, size_t size); - std::string* mutable_actor_token_path(); - std::string* release_actor_token_path(); - void set_allocated_actor_token_path(std::string* actor_token_path); + public: + void clear_local_credentials() ; + const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& local_credentials() const; + PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_GoogleLocalCredentials* release_local_credentials(); + ::GrpcService_GoogleGrpc_GoogleLocalCredentials* mutable_local_credentials(); + void set_allocated_local_credentials(::GrpcService_GoogleGrpc_GoogleLocalCredentials* value); + void unsafe_arena_set_allocated_local_credentials(::GrpcService_GoogleGrpc_GoogleLocalCredentials* value); + ::GrpcService_GoogleGrpc_GoogleLocalCredentials* unsafe_arena_release_local_credentials(); - // string actor_token_type = 9; - void clear_actor_token_type(); - const std::string& actor_token_type() const; - void set_actor_token_type(const std::string& value); - void set_actor_token_type(std::string&& value); - void set_actor_token_type(const char* value); - void set_actor_token_type(const char* value, size_t size); - std::string* mutable_actor_token_type(); - std::string* release_actor_token_type(); - void set_allocated_actor_token_type(std::string* actor_token_type); + private: + const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& _internal_local_credentials() const; + ::GrpcService_GoogleGrpc_GoogleLocalCredentials* _internal_mutable_local_credentials(); - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.StsService) + public: + void clear_credential_specifier(); + CredentialSpecifierCase credential_specifier_case() const; + // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.ChannelCredentials) private: class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr token_exchange_service_uri_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resource_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr audience_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr scope_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr requested_token_type_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr subject_token_path_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr subject_token_type_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr actor_token_path_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr actor_token_type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + void set_has_ssl_credentials(); + void set_has_google_default(); + void set_has_local_credentials(); + inline bool has_credential_specifier() const; + inline void clear_has_credential_specifier(); + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 3, 3, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + union CredentialSpecifierUnion { + constexpr CredentialSpecifierUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + ::GrpcService_GoogleGrpc_SslCredentials* ssl_credentials_; + ::GrpcService_GoogleGrpc_Empty* google_default_; + ::GrpcService_GoogleGrpc_GoogleLocalCredentials* local_credentials_; + } credential_specifier_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; }; // ------------------------------------------------------------------- -class GrpcService_GoogleGrpc_CallCredentials : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials) */ { +class GrpcService_GoogleGrpc_CallCredentials final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials) */ { public: - GrpcService_GoogleGrpc_CallCredentials(); - virtual ~GrpcService_GoogleGrpc_CallCredentials(); - - GrpcService_GoogleGrpc_CallCredentials(const GrpcService_GoogleGrpc_CallCredentials& from); - GrpcService_GoogleGrpc_CallCredentials(GrpcService_GoogleGrpc_CallCredentials&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials() { - *this = ::std::move(from); - } - + inline GrpcService_GoogleGrpc_CallCredentials() : GrpcService_GoogleGrpc_CallCredentials(nullptr) {} + ~GrpcService_GoogleGrpc_CallCredentials() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService_GoogleGrpc_CallCredentials(const GrpcService_GoogleGrpc_CallCredentials& from) : GrpcService_GoogleGrpc_CallCredentials(nullptr, from) {} + inline GrpcService_GoogleGrpc_CallCredentials(GrpcService_GoogleGrpc_CallCredentials&& from) noexcept + : GrpcService_GoogleGrpc_CallCredentials(nullptr, std::move(from)) {} inline GrpcService_GoogleGrpc_CallCredentials& operator=(const GrpcService_GoogleGrpc_CallCredentials& from) { CopyFrom(from); return *this; } inline GrpcService_GoogleGrpc_CallCredentials& operator=(GrpcService_GoogleGrpc_CallCredentials&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const GrpcService_GoogleGrpc_CallCredentials& default_instance(); + inline const std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields(); + } + static const GrpcService_GoogleGrpc_CallCredentials& default_instance() { + return *internal_default_instance(); + } enum CredentialSpecifierCase { kAccessToken = 1, kGoogleComputeEngine = 2, @@ -1866,80 +2582,75 @@ class GrpcService_GoogleGrpc_CallCredentials : kStsService = 7, CREDENTIAL_SPECIFIER_NOT_SET = 0, }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GrpcService_GoogleGrpc_CallCredentials* internal_default_instance() { return reinterpret_cast( - &_GrpcService_GoogleGrpc_CallCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(GrpcService_GoogleGrpc_CallCredentials& a, GrpcService_GoogleGrpc_CallCredentials& b) { - a.Swap(&b); + &_GrpcService_GoogleGrpc_CallCredentials_default_instance_); } + static constexpr int kIndexInFileMessages = 12; + friend void swap(GrpcService_GoogleGrpc_CallCredentials& a, GrpcService_GoogleGrpc_CallCredentials& b) { a.Swap(&b); } inline void Swap(GrpcService_GoogleGrpc_CallCredentials* other) { if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService_GoogleGrpc_CallCredentials* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GrpcService_GoogleGrpc_CallCredentials* New() const final { - return CreateMaybeMessage(nullptr); + GrpcService_GoogleGrpc_CallCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - - GrpcService_GoogleGrpc_CallCredentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; + void CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) final; void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials& from); void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); void InternalSwap(GrpcService_GoogleGrpc_CallCredentials* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.GoogleGrpc.CallCredentials"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.CallCredentials"; } + + protected: + explicit GrpcService_GoogleGrpc_CallCredentials(::google::protobuf::Arena* arena); + GrpcService_GoogleGrpc_CallCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_CallCredentials& from); + GrpcService_GoogleGrpc_CallCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_CallCredentials&& from) noexcept + : GrpcService_GoogleGrpc_CallCredentials(arena) { + *this = ::std::move(from); } - public: - - std::string GetTypeName() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: // nested types ---------------------------------------------------- - - typedef GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials ServiceAccountJWTAccessCredentials; - typedef GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials GoogleIAMCredentials; - typedef GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin MetadataCredentialsFromPlugin; - typedef GrpcService_GoogleGrpc_CallCredentials_StsService StsService; + using ServiceAccountJWTAccessCredentials = GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials; + using GoogleIAMCredentials = GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials; + using MetadataCredentialsFromPlugin = GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin; + using StsService = GrpcService_GoogleGrpc_CallCredentials_StsService; // accessors ------------------------------------------------------- - enum : int { kAccessTokenFieldNumber = 1, kGoogleComputeEngineFieldNumber = 2, @@ -1950,73 +2661,134 @@ class GrpcService_GoogleGrpc_CallCredentials : kStsServiceFieldNumber = 7, }; // string access_token = 1; - private: bool has_access_token() const; - public: - void clear_access_token(); + void clear_access_token() ; const std::string& access_token() const; - void set_access_token(const std::string& value); - void set_access_token(std::string&& value); - void set_access_token(const char* value); - void set_access_token(const char* value, size_t size); + template + void set_access_token(Arg_&& arg, Args_... args); std::string* mutable_access_token(); - std::string* release_access_token(); - void set_allocated_access_token(std::string* access_token); + PROTOBUF_NODISCARD std::string* release_access_token(); + void set_allocated_access_token(std::string* value); + private: + const std::string& _internal_access_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_access_token( + const std::string& value); + std::string* _internal_mutable_access_token(); + + public: // .GrpcService.GoogleGrpc.Empty google_compute_engine = 2; bool has_google_compute_engine() const; - void clear_google_compute_engine(); + private: + bool _internal_has_google_compute_engine() const; + + public: + void clear_google_compute_engine() ; const ::GrpcService_GoogleGrpc_Empty& google_compute_engine() const; - ::GrpcService_GoogleGrpc_Empty* release_google_compute_engine(); + PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_Empty* release_google_compute_engine(); ::GrpcService_GoogleGrpc_Empty* mutable_google_compute_engine(); - void set_allocated_google_compute_engine(::GrpcService_GoogleGrpc_Empty* google_compute_engine); + void set_allocated_google_compute_engine(::GrpcService_GoogleGrpc_Empty* value); + void unsafe_arena_set_allocated_google_compute_engine(::GrpcService_GoogleGrpc_Empty* value); + ::GrpcService_GoogleGrpc_Empty* unsafe_arena_release_google_compute_engine(); - // string google_refresh_token = 3; private: - bool has_google_refresh_token() const; + const ::GrpcService_GoogleGrpc_Empty& _internal_google_compute_engine() const; + ::GrpcService_GoogleGrpc_Empty* _internal_mutable_google_compute_engine(); + public: - void clear_google_refresh_token(); + // string google_refresh_token = 3; + bool has_google_refresh_token() const; + void clear_google_refresh_token() ; const std::string& google_refresh_token() const; - void set_google_refresh_token(const std::string& value); - void set_google_refresh_token(std::string&& value); - void set_google_refresh_token(const char* value); - void set_google_refresh_token(const char* value, size_t size); + template + void set_google_refresh_token(Arg_&& arg, Args_... args); std::string* mutable_google_refresh_token(); - std::string* release_google_refresh_token(); - void set_allocated_google_refresh_token(std::string* google_refresh_token); + PROTOBUF_NODISCARD std::string* release_google_refresh_token(); + void set_allocated_google_refresh_token(std::string* value); + + private: + const std::string& _internal_google_refresh_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_google_refresh_token( + const std::string& value); + std::string* _internal_mutable_google_refresh_token(); + public: // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; bool has_service_account_jwt_access() const; - void clear_service_account_jwt_access(); + private: + bool _internal_has_service_account_jwt_access() const; + + public: + void clear_service_account_jwt_access() ; const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& service_account_jwt_access() const; - ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* release_service_account_jwt_access(); + PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* release_service_account_jwt_access(); ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* mutable_service_account_jwt_access(); - void set_allocated_service_account_jwt_access(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* service_account_jwt_access); + void set_allocated_service_account_jwt_access(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* value); + void unsafe_arena_set_allocated_service_account_jwt_access(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* value); + ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* unsafe_arena_release_service_account_jwt_access(); + + private: + const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& _internal_service_account_jwt_access() const; + ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* _internal_mutable_service_account_jwt_access(); + public: // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; bool has_google_iam() const; - void clear_google_iam(); + private: + bool _internal_has_google_iam() const; + + public: + void clear_google_iam() ; const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& google_iam() const; - ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* release_google_iam(); + PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* release_google_iam(); ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* mutable_google_iam(); - void set_allocated_google_iam(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* google_iam); + void set_allocated_google_iam(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* value); + void unsafe_arena_set_allocated_google_iam(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* value); + ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* unsafe_arena_release_google_iam(); + + private: + const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& _internal_google_iam() const; + ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* _internal_mutable_google_iam(); + public: // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; bool has_from_plugin() const; - void clear_from_plugin(); + private: + bool _internal_has_from_plugin() const; + + public: + void clear_from_plugin() ; const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from_plugin() const; - ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* release_from_plugin(); + PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* release_from_plugin(); ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* mutable_from_plugin(); - void set_allocated_from_plugin(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* from_plugin); + void set_allocated_from_plugin(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* value); + void unsafe_arena_set_allocated_from_plugin(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* value); + ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* unsafe_arena_release_from_plugin(); + + private: + const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& _internal_from_plugin() const; + ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* _internal_mutable_from_plugin(); + public: // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; bool has_sts_service() const; - void clear_sts_service(); + private: + bool _internal_has_sts_service() const; + + public: + void clear_sts_service() ; const ::GrpcService_GoogleGrpc_CallCredentials_StsService& sts_service() const; - ::GrpcService_GoogleGrpc_CallCredentials_StsService* release_sts_service(); + PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_CallCredentials_StsService* release_sts_service(); ::GrpcService_GoogleGrpc_CallCredentials_StsService* mutable_sts_service(); - void set_allocated_sts_service(::GrpcService_GoogleGrpc_CallCredentials_StsService* sts_service); + void set_allocated_sts_service(::GrpcService_GoogleGrpc_CallCredentials_StsService* value); + void unsafe_arena_set_allocated_sts_service(::GrpcService_GoogleGrpc_CallCredentials_StsService* value); + ::GrpcService_GoogleGrpc_CallCredentials_StsService* unsafe_arena_release_sts_service(); + + private: + const ::GrpcService_GoogleGrpc_CallCredentials_StsService& _internal_sts_service() const; + ::GrpcService_GoogleGrpc_CallCredentials_StsService* _internal_mutable_sts_service(); + public: void clear_credential_specifier(); CredentialSpecifierCase credential_specifier_case() const; // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials) @@ -2029,129 +2801,158 @@ class GrpcService_GoogleGrpc_CallCredentials : void set_has_google_iam(); void set_has_from_plugin(); void set_has_sts_service(); - inline bool has_credential_specifier() const; inline void clear_has_credential_specifier(); - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; - union CredentialSpecifierUnion { - CredentialSpecifierUnion() {} - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr access_token_; - ::GrpcService_GoogleGrpc_Empty* google_compute_engine_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr google_refresh_token_; - ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* service_account_jwt_access_; - ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* google_iam_; - ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* from_plugin_; - ::GrpcService_GoogleGrpc_CallCredentials_StsService* sts_service_; - } credential_specifier_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 7, 5, + 79, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + union CredentialSpecifierUnion { + constexpr CredentialSpecifierUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + ::google::protobuf::internal::ArenaStringPtr access_token_; + ::GrpcService_GoogleGrpc_Empty* google_compute_engine_; + ::google::protobuf::internal::ArenaStringPtr google_refresh_token_; + ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* service_account_jwt_access_; + ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* google_iam_; + ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* from_plugin_; + ::GrpcService_GoogleGrpc_CallCredentials_StsService* sts_service_; + } credential_specifier_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; }; // ------------------------------------------------------------------- -class GrpcService_GoogleGrpc : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc) */ { +class GrpcService_GoogleGrpc final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc) */ { public: - GrpcService_GoogleGrpc(); - virtual ~GrpcService_GoogleGrpc(); - - GrpcService_GoogleGrpc(const GrpcService_GoogleGrpc& from); - GrpcService_GoogleGrpc(GrpcService_GoogleGrpc&& from) noexcept - : GrpcService_GoogleGrpc() { - *this = ::std::move(from); - } - + inline GrpcService_GoogleGrpc() : GrpcService_GoogleGrpc(nullptr) {} + ~GrpcService_GoogleGrpc() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService_GoogleGrpc(const GrpcService_GoogleGrpc& from) : GrpcService_GoogleGrpc(nullptr, from) {} + inline GrpcService_GoogleGrpc(GrpcService_GoogleGrpc&& from) noexcept + : GrpcService_GoogleGrpc(nullptr, std::move(from)) {} inline GrpcService_GoogleGrpc& operator=(const GrpcService_GoogleGrpc& from) { CopyFrom(from); return *this; } inline GrpcService_GoogleGrpc& operator=(GrpcService_GoogleGrpc&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const GrpcService_GoogleGrpc& default_instance(); + inline const std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields(); + } - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static const GrpcService_GoogleGrpc& default_instance() { + return *internal_default_instance(); + } static inline const GrpcService_GoogleGrpc* internal_default_instance() { return reinterpret_cast( - &_GrpcService_GoogleGrpc_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - friend void swap(GrpcService_GoogleGrpc& a, GrpcService_GoogleGrpc& b) { - a.Swap(&b); + &_GrpcService_GoogleGrpc_default_instance_); } + static constexpr int kIndexInFileMessages = 13; + friend void swap(GrpcService_GoogleGrpc& a, GrpcService_GoogleGrpc& b) { a.Swap(&b); } inline void Swap(GrpcService_GoogleGrpc* other) { if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService_GoogleGrpc* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GrpcService_GoogleGrpc* New() const final { - return CreateMaybeMessage(nullptr); - } - - GrpcService_GoogleGrpc* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + GrpcService_GoogleGrpc* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; + void CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) final; void CopyFrom(const GrpcService_GoogleGrpc& from); void MergeFrom(const GrpcService_GoogleGrpc& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); void InternalSwap(GrpcService_GoogleGrpc* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.GoogleGrpc"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc"; } + + protected: + explicit GrpcService_GoogleGrpc(::google::protobuf::Arena* arena); + GrpcService_GoogleGrpc(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc& from); + GrpcService_GoogleGrpc(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc&& from) noexcept + : GrpcService_GoogleGrpc(arena) { + *this = ::std::move(from); } - public: - - std::string GetTypeName() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: // nested types ---------------------------------------------------- - - typedef GrpcService_GoogleGrpc_SslCredentials SslCredentials; - typedef GrpcService_GoogleGrpc_GoogleLocalCredentials GoogleLocalCredentials; - typedef GrpcService_GoogleGrpc_Empty Empty; - typedef GrpcService_GoogleGrpc_ChannelCredentials ChannelCredentials; - typedef GrpcService_GoogleGrpc_CallCredentials CallCredentials; + using SslCredentials = GrpcService_GoogleGrpc_SslCredentials; + using GoogleLocalCredentials = GrpcService_GoogleGrpc_GoogleLocalCredentials; + using Empty = GrpcService_GoogleGrpc_Empty; + using ChannelCredentials = GrpcService_GoogleGrpc_ChannelCredentials; + using CallCredentials = GrpcService_GoogleGrpc_CallCredentials; // accessors ------------------------------------------------------- - enum : int { kCallCredentialsFieldNumber = 3, kTargetUriFieldNumber = 1, @@ -2162,318 +2963,250 @@ class GrpcService_GoogleGrpc : }; // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; int call_credentials_size() const; - void clear_call_credentials(); + private: + int _internal_call_credentials_size() const; + + public: + void clear_call_credentials() ; ::GrpcService_GoogleGrpc_CallCredentials* mutable_call_credentials(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_GoogleGrpc_CallCredentials >* - mutable_call_credentials(); + ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>* mutable_call_credentials(); + + private: + const ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>& _internal_call_credentials() const; + ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>* _internal_mutable_call_credentials(); + public: const ::GrpcService_GoogleGrpc_CallCredentials& call_credentials(int index) const; ::GrpcService_GoogleGrpc_CallCredentials* add_call_credentials(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_GoogleGrpc_CallCredentials >& - call_credentials() const; - + const ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>& call_credentials() const; // string target_uri = 1; - void clear_target_uri(); + void clear_target_uri() ; const std::string& target_uri() const; - void set_target_uri(const std::string& value); - void set_target_uri(std::string&& value); - void set_target_uri(const char* value); - void set_target_uri(const char* value, size_t size); + template + void set_target_uri(Arg_&& arg, Args_... args); std::string* mutable_target_uri(); - std::string* release_target_uri(); - void set_allocated_target_uri(std::string* target_uri); + PROTOBUF_NODISCARD std::string* release_target_uri(); + void set_allocated_target_uri(std::string* value); + private: + const std::string& _internal_target_uri() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_target_uri( + const std::string& value); + std::string* _internal_mutable_target_uri(); + + public: // string stat_prefix = 4; - void clear_stat_prefix(); + void clear_stat_prefix() ; const std::string& stat_prefix() const; - void set_stat_prefix(const std::string& value); - void set_stat_prefix(std::string&& value); - void set_stat_prefix(const char* value); - void set_stat_prefix(const char* value, size_t size); + template + void set_stat_prefix(Arg_&& arg, Args_... args); std::string* mutable_stat_prefix(); - std::string* release_stat_prefix(); - void set_allocated_stat_prefix(std::string* stat_prefix); + PROTOBUF_NODISCARD std::string* release_stat_prefix(); + void set_allocated_stat_prefix(std::string* value); + + private: + const std::string& _internal_stat_prefix() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_stat_prefix( + const std::string& value); + std::string* _internal_mutable_stat_prefix(); + public: // string credentials_factory_name = 5; - void clear_credentials_factory_name(); + void clear_credentials_factory_name() ; const std::string& credentials_factory_name() const; - void set_credentials_factory_name(const std::string& value); - void set_credentials_factory_name(std::string&& value); - void set_credentials_factory_name(const char* value); - void set_credentials_factory_name(const char* value, size_t size); + template + void set_credentials_factory_name(Arg_&& arg, Args_... args); std::string* mutable_credentials_factory_name(); - std::string* release_credentials_factory_name(); - void set_allocated_credentials_factory_name(std::string* credentials_factory_name); + PROTOBUF_NODISCARD std::string* release_credentials_factory_name(); + void set_allocated_credentials_factory_name(std::string* value); + + private: + const std::string& _internal_credentials_factory_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_credentials_factory_name( + const std::string& value); + std::string* _internal_mutable_credentials_factory_name(); + public: // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; bool has_channel_credentials() const; - void clear_channel_credentials(); + void clear_channel_credentials() ; const ::GrpcService_GoogleGrpc_ChannelCredentials& channel_credentials() const; - ::GrpcService_GoogleGrpc_ChannelCredentials* release_channel_credentials(); + PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_ChannelCredentials* release_channel_credentials(); ::GrpcService_GoogleGrpc_ChannelCredentials* mutable_channel_credentials(); - void set_allocated_channel_credentials(::GrpcService_GoogleGrpc_ChannelCredentials* channel_credentials); + void set_allocated_channel_credentials(::GrpcService_GoogleGrpc_ChannelCredentials* value); + void unsafe_arena_set_allocated_channel_credentials(::GrpcService_GoogleGrpc_ChannelCredentials* value); + ::GrpcService_GoogleGrpc_ChannelCredentials* unsafe_arena_release_channel_credentials(); + + private: + const ::GrpcService_GoogleGrpc_ChannelCredentials& _internal_channel_credentials() const; + ::GrpcService_GoogleGrpc_ChannelCredentials* _internal_mutable_channel_credentials(); + public: // .google.protobuf.Struct config = 6; bool has_config() const; - void clear_config(); + void clear_config() ; const ::google::protobuf::Struct& config() const; - ::google::protobuf::Struct* release_config(); + PROTOBUF_NODISCARD ::google::protobuf::Struct* release_config(); ::google::protobuf::Struct* mutable_config(); - void set_allocated_config(::google::protobuf::Struct* config); - - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_GoogleGrpc_CallCredentials > call_credentials_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr target_uri_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stat_prefix_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr credentials_factory_name_; - ::GrpcService_GoogleGrpc_ChannelCredentials* channel_credentials_; - ::google::protobuf::Struct* config_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_HeaderValue : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GrpcService.HeaderValue) */ { - public: - GrpcService_HeaderValue(); - virtual ~GrpcService_HeaderValue(); - - GrpcService_HeaderValue(const GrpcService_HeaderValue& from); - GrpcService_HeaderValue(GrpcService_HeaderValue&& from) noexcept - : GrpcService_HeaderValue() { - *this = ::std::move(from); - } - - inline GrpcService_HeaderValue& operator=(const GrpcService_HeaderValue& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_HeaderValue& operator=(GrpcService_HeaderValue&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } + void set_allocated_config(::google::protobuf::Struct* value); + void unsafe_arena_set_allocated_config(::google::protobuf::Struct* value); + ::google::protobuf::Struct* unsafe_arena_release_config(); - static const GrpcService_HeaderValue& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GrpcService_HeaderValue* internal_default_instance() { - return reinterpret_cast( - &_GrpcService_HeaderValue_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - friend void swap(GrpcService_HeaderValue& a, GrpcService_HeaderValue& b) { - a.Swap(&b); - } - inline void Swap(GrpcService_HeaderValue* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GrpcService_HeaderValue* New() const final { - return CreateMaybeMessage(nullptr); - } - - GrpcService_HeaderValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; - void CopyFrom(const GrpcService_HeaderValue& from); - void MergeFrom(const GrpcService_HeaderValue& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(GrpcService_HeaderValue* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.HeaderValue"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- + const ::google::protobuf::Struct& _internal_config() const; + ::google::protobuf::Struct* _internal_mutable_config(); - // accessors ------------------------------------------------------- - - enum : int { - kKeyFieldNumber = 1, - kValueFieldNumber = 2, - }; - // string key = 1; - void clear_key(); - const std::string& key() const; - void set_key(const std::string& value); - void set_key(std::string&& value); - void set_key(const char* value); - void set_key(const char* value, size_t size); - std::string* mutable_key(); - std::string* release_key(); - void set_allocated_key(std::string* key); - - // string value = 2; - void clear_value(); - const std::string& value() const; - void set_value(const std::string& value); - void set_value(std::string&& value); - void set_value(const char* value); - void set_value(const char* value, size_t size); - std::string* mutable_value(); - std::string* release_value(); - void set_allocated_value(std::string* value); - - // @@protoc_insertion_point(class_scope:GrpcService.HeaderValue) + public: + // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc) private: class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 3, 6, 3, + 76, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::GrpcService_GoogleGrpc_CallCredentials > call_credentials_; + ::google::protobuf::internal::ArenaStringPtr target_uri_; + ::google::protobuf::internal::ArenaStringPtr stat_prefix_; + ::google::protobuf::internal::ArenaStringPtr credentials_factory_name_; + ::GrpcService_GoogleGrpc_ChannelCredentials* channel_credentials_; + ::google::protobuf::Struct* config_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; }; // ------------------------------------------------------------------- -class GrpcService : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GrpcService) */ { +class GrpcService final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:GrpcService) */ { public: - GrpcService(); - virtual ~GrpcService(); - - GrpcService(const GrpcService& from); - GrpcService(GrpcService&& from) noexcept - : GrpcService() { - *this = ::std::move(from); - } - + inline GrpcService() : GrpcService(nullptr) {} + ~GrpcService() override; + template + explicit PROTOBUF_CONSTEXPR GrpcService( + ::google::protobuf::internal::ConstantInitialized); + + inline GrpcService(const GrpcService& from) : GrpcService(nullptr, from) {} + inline GrpcService(GrpcService&& from) noexcept + : GrpcService(nullptr, std::move(from)) {} inline GrpcService& operator=(const GrpcService& from) { CopyFrom(from); return *this; } inline GrpcService& operator=(GrpcService&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const GrpcService& default_instance(); + inline const std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields(); + } + static const GrpcService& default_instance() { + return *internal_default_instance(); + } enum TargetSpecifierCase { kEnvoyGrpc = 1, kGoogleGrpc = 2, TARGET_SPECIFIER_NOT_SET = 0, }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GrpcService* internal_default_instance() { return reinterpret_cast( - &_GrpcService_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - friend void swap(GrpcService& a, GrpcService& b) { - a.Swap(&b); + &_GrpcService_default_instance_); } + static constexpr int kIndexInFileMessages = 15; + friend void swap(GrpcService& a, GrpcService& b) { a.Swap(&b); } inline void Swap(GrpcService* other) { if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GrpcService* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GrpcService* New() const final { - return CreateMaybeMessage(nullptr); - } - - GrpcService* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + GrpcService* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; + void CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) final; void CopyFrom(const GrpcService& from); void MergeFrom(const GrpcService& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); void InternalSwap(GrpcService* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "GrpcService"; } + + protected: + explicit GrpcService(::google::protobuf::Arena* arena); + GrpcService(::google::protobuf::Arena* arena, const GrpcService& from); + GrpcService(::google::protobuf::Arena* arena, GrpcService&& from) noexcept + : GrpcService(arena) { + *this = ::std::move(from); } - public: - - std::string GetTypeName() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: // nested types ---------------------------------------------------- - - typedef GrpcService_EnvoyGrpc EnvoyGrpc; - typedef GrpcService_GoogleGrpc GoogleGrpc; - typedef GrpcService_HeaderValue HeaderValue; + using EnvoyGrpc = GrpcService_EnvoyGrpc; + using GoogleGrpc = GrpcService_GoogleGrpc; + using HeaderValue = GrpcService_HeaderValue; // accessors ------------------------------------------------------- - enum : int { kInitialMetadataFieldNumber = 5, kEnvoyGrpcFieldNumber = 1, @@ -2481,31 +3214,59 @@ class GrpcService : }; // repeated .GrpcService.HeaderValue initial_metadata = 5; int initial_metadata_size() const; - void clear_initial_metadata(); + private: + int _internal_initial_metadata_size() const; + + public: + void clear_initial_metadata() ; ::GrpcService_HeaderValue* mutable_initial_metadata(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_HeaderValue >* - mutable_initial_metadata(); + ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>* mutable_initial_metadata(); + + private: + const ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>& _internal_initial_metadata() const; + ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>* _internal_mutable_initial_metadata(); + public: const ::GrpcService_HeaderValue& initial_metadata(int index) const; ::GrpcService_HeaderValue* add_initial_metadata(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_HeaderValue >& - initial_metadata() const; - + const ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>& initial_metadata() const; // .GrpcService.EnvoyGrpc envoy_grpc = 1; bool has_envoy_grpc() const; - void clear_envoy_grpc(); + private: + bool _internal_has_envoy_grpc() const; + + public: + void clear_envoy_grpc() ; const ::GrpcService_EnvoyGrpc& envoy_grpc() const; - ::GrpcService_EnvoyGrpc* release_envoy_grpc(); + PROTOBUF_NODISCARD ::GrpcService_EnvoyGrpc* release_envoy_grpc(); ::GrpcService_EnvoyGrpc* mutable_envoy_grpc(); - void set_allocated_envoy_grpc(::GrpcService_EnvoyGrpc* envoy_grpc); + void set_allocated_envoy_grpc(::GrpcService_EnvoyGrpc* value); + void unsafe_arena_set_allocated_envoy_grpc(::GrpcService_EnvoyGrpc* value); + ::GrpcService_EnvoyGrpc* unsafe_arena_release_envoy_grpc(); + + private: + const ::GrpcService_EnvoyGrpc& _internal_envoy_grpc() const; + ::GrpcService_EnvoyGrpc* _internal_mutable_envoy_grpc(); + public: // .GrpcService.GoogleGrpc google_grpc = 2; bool has_google_grpc() const; - void clear_google_grpc(); + private: + bool _internal_has_google_grpc() const; + + public: + void clear_google_grpc() ; const ::GrpcService_GoogleGrpc& google_grpc() const; - ::GrpcService_GoogleGrpc* release_google_grpc(); + PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc* release_google_grpc(); ::GrpcService_GoogleGrpc* mutable_google_grpc(); - void set_allocated_google_grpc(::GrpcService_GoogleGrpc* google_grpc); + void set_allocated_google_grpc(::GrpcService_GoogleGrpc* value); + void unsafe_arena_set_allocated_google_grpc(::GrpcService_GoogleGrpc* value); + ::GrpcService_GoogleGrpc* unsafe_arena_release_google_grpc(); + + private: + const ::GrpcService_GoogleGrpc& _internal_google_grpc() const; + ::GrpcService_GoogleGrpc* _internal_mutable_google_grpc(); + public: void clear_target_specifier(); TargetSpecifierCase target_specifier_case() const; // @@protoc_insertion_point(class_scope:GrpcService) @@ -2513,76 +3274,145 @@ class GrpcService : class _Internal; void set_has_envoy_grpc(); void set_has_google_grpc(); - inline bool has_target_specifier() const; inline void clear_has_target_specifier(); - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_HeaderValue > initial_metadata_; - union TargetSpecifierUnion { - TargetSpecifierUnion() {} - ::GrpcService_EnvoyGrpc* envoy_grpc_; - ::GrpcService_GoogleGrpc* google_grpc_; - } target_specifier_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 3, 3, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::RepeatedPtrField< ::GrpcService_HeaderValue > initial_metadata_; + union TargetSpecifierUnion { + constexpr TargetSpecifierUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + ::GrpcService_EnvoyGrpc* envoy_grpc_; + ::GrpcService_GoogleGrpc* google_grpc_; + } target_specifier_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // WKT // .google.protobuf.Struct struct = 1; inline bool WKT::has_struct_() const { - return this != internal_default_instance() && struct__ != nullptr; + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.struct__ != nullptr); + return value; } -inline const ::google::protobuf::Struct& WKT::struct_() const { - const ::google::protobuf::Struct* p = struct__; +inline const ::google::protobuf::Struct& WKT::_internal_struct_() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::google::protobuf::Struct* p = _impl_.struct__; + return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +} +inline const ::google::protobuf::Struct& WKT::struct_() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:WKT.struct) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Struct_default_instance_); + return _internal_struct_(); +} +inline void WKT::unsafe_arena_set_allocated_struct_(::google::protobuf::Struct* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.struct__); + } + _impl_.struct__ = reinterpret_cast<::google::protobuf::Struct*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:WKT.struct) } inline ::google::protobuf::Struct* WKT::release_struct_() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::google::protobuf::Struct* released = _impl_.struct__; + _impl_.struct__ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::google::protobuf::Struct* WKT::unsafe_arena_release_struct_() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:WKT.struct) - - ::google::protobuf::Struct* temp = struct__; - struct__ = nullptr; + + _impl_._has_bits_[0] &= ~0x00000001u; + ::google::protobuf::Struct* temp = _impl_.struct__; + _impl_.struct__ = nullptr; return temp; } -inline ::google::protobuf::Struct* WKT::mutable_struct_() { - - if (struct__ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual()); - struct__ = p; +inline ::google::protobuf::Struct* WKT::_internal_mutable_struct_() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.struct__ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::google::protobuf::Struct>(GetArena()); + _impl_.struct__ = reinterpret_cast<::google::protobuf::Struct*>(p); } + return _impl_.struct__; +} +inline ::google::protobuf::Struct* WKT::mutable_struct_() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::Struct* _msg = _internal_mutable_struct_(); // @@protoc_insertion_point(field_mutable:WKT.struct) - return struct__; + return _msg; } -inline void WKT::set_allocated_struct_(::google::protobuf::Struct* struct_) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); +inline void WKT::set_allocated_struct_(::google::protobuf::Struct* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(struct__); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.struct__); } - if (struct_) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(struct_)->GetArena(); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - struct_ = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, struct_, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - struct__ = struct_; + + _impl_.struct__ = reinterpret_cast<::google::protobuf::Struct*>(value); // @@protoc_insertion_point(field_set_allocated:WKT.struct) } @@ -2595,87 +3425,82 @@ inline bool DataSource::has_filename() const { return specifier_case() == kFilename; } inline void DataSource::set_has_filename() { - _oneof_case_[0] = kFilename; + _impl_._oneof_case_[0] = kFilename; } inline void DataSource::clear_filename() { - if (has_filename()) { - specifier_.filename_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() == kFilename) { + _impl_.specifier_.filename_.Destroy(); clear_has_specifier(); } } -inline const std::string& DataSource::filename() const { +inline const std::string& DataSource::filename() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:DataSource.filename) - if (has_filename()) { - return specifier_.filename_.GetNoArena(); - } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return _internal_filename(); } -inline void DataSource::set_filename(const std::string& value) { - // @@protoc_insertion_point(field_set:DataSource.filename) - if (!has_filename()) { +template +inline PROTOBUF_ALWAYS_INLINE void DataSource::set_filename(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() != kFilename) { clear_specifier(); + set_has_filename(); - specifier_.filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.filename_.InitDefault(); } - specifier_.filename_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + _impl_.specifier_.filename_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:DataSource.filename) } -inline void DataSource::set_filename(std::string&& value) { - // @@protoc_insertion_point(field_set:DataSource.filename) - if (!has_filename()) { - clear_specifier(); - set_has_filename(); - specifier_.filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - specifier_.filename_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:DataSource.filename) +inline std::string* DataSource::mutable_filename() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_filename(); + // @@protoc_insertion_point(field_mutable:DataSource.filename) + return _s; } -inline void DataSource::set_filename(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_filename()) { - clear_specifier(); - set_has_filename(); - specifier_.filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline const std::string& DataSource::_internal_filename() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + if (specifier_case() != kFilename) { + return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); } - specifier_.filename_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:DataSource.filename) + return _impl_.specifier_.filename_.Get(); } -inline void DataSource::set_filename(const char* value, size_t size) { - if (!has_filename()) { +inline void DataSource::_internal_set_filename(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() != kFilename) { clear_specifier(); + set_has_filename(); - specifier_.filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.filename_.InitDefault(); } - specifier_.filename_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:DataSource.filename) + _impl_.specifier_.filename_.Set(value, GetArena()); } -inline std::string* DataSource::mutable_filename() { - if (!has_filename()) { +inline std::string* DataSource::_internal_mutable_filename() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() != kFilename) { clear_specifier(); + set_has_filename(); - specifier_.filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.filename_.InitDefault(); } - // @@protoc_insertion_point(field_mutable:DataSource.filename) - return specifier_.filename_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _impl_.specifier_.filename_.Mutable( GetArena()); } inline std::string* DataSource::release_filename() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:DataSource.filename) - if (has_filename()) { - clear_has_specifier(); - return specifier_.filename_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } else { + if (specifier_case() != kFilename) { return nullptr; } + clear_has_specifier(); + return _impl_.specifier_.filename_.Release(); } -inline void DataSource::set_allocated_filename(std::string* filename) { +inline void DataSource::set_allocated_filename(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (has_specifier()) { clear_specifier(); } - if (filename != nullptr) { + if (value != nullptr) { set_has_filename(); - specifier_.filename_.UnsafeSetDefault(filename); + _impl_.specifier_.filename_.InitAllocated(value, GetArena()); } // @@protoc_insertion_point(field_set_allocated:DataSource.filename) } @@ -2685,87 +3510,82 @@ inline bool DataSource::has_inline_bytes() const { return specifier_case() == kInlineBytes; } inline void DataSource::set_has_inline_bytes() { - _oneof_case_[0] = kInlineBytes; + _impl_._oneof_case_[0] = kInlineBytes; } inline void DataSource::clear_inline_bytes() { - if (has_inline_bytes()) { - specifier_.inline_bytes_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() == kInlineBytes) { + _impl_.specifier_.inline_bytes_.Destroy(); clear_has_specifier(); } } -inline const std::string& DataSource::inline_bytes() const { +inline const std::string& DataSource::inline_bytes() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:DataSource.inline_bytes) - if (has_inline_bytes()) { - return specifier_.inline_bytes_.GetNoArena(); - } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return _internal_inline_bytes(); } -inline void DataSource::set_inline_bytes(const std::string& value) { - // @@protoc_insertion_point(field_set:DataSource.inline_bytes) - if (!has_inline_bytes()) { +template +inline PROTOBUF_ALWAYS_INLINE void DataSource::set_inline_bytes(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() != kInlineBytes) { clear_specifier(); + set_has_inline_bytes(); - specifier_.inline_bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.inline_bytes_.InitDefault(); } - specifier_.inline_bytes_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + _impl_.specifier_.inline_bytes_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:DataSource.inline_bytes) } -inline void DataSource::set_inline_bytes(std::string&& value) { - // @@protoc_insertion_point(field_set:DataSource.inline_bytes) - if (!has_inline_bytes()) { - clear_specifier(); - set_has_inline_bytes(); - specifier_.inline_bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - specifier_.inline_bytes_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:DataSource.inline_bytes) +inline std::string* DataSource::mutable_inline_bytes() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_inline_bytes(); + // @@protoc_insertion_point(field_mutable:DataSource.inline_bytes) + return _s; } -inline void DataSource::set_inline_bytes(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_inline_bytes()) { - clear_specifier(); - set_has_inline_bytes(); - specifier_.inline_bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline const std::string& DataSource::_internal_inline_bytes() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + if (specifier_case() != kInlineBytes) { + return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); } - specifier_.inline_bytes_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:DataSource.inline_bytes) + return _impl_.specifier_.inline_bytes_.Get(); } -inline void DataSource::set_inline_bytes(const void* value, size_t size) { - if (!has_inline_bytes()) { +inline void DataSource::_internal_set_inline_bytes(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() != kInlineBytes) { clear_specifier(); + set_has_inline_bytes(); - specifier_.inline_bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.inline_bytes_.InitDefault(); } - specifier_.inline_bytes_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:DataSource.inline_bytes) + _impl_.specifier_.inline_bytes_.Set(value, GetArena()); } -inline std::string* DataSource::mutable_inline_bytes() { - if (!has_inline_bytes()) { +inline std::string* DataSource::_internal_mutable_inline_bytes() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() != kInlineBytes) { clear_specifier(); + set_has_inline_bytes(); - specifier_.inline_bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.inline_bytes_.InitDefault(); } - // @@protoc_insertion_point(field_mutable:DataSource.inline_bytes) - return specifier_.inline_bytes_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _impl_.specifier_.inline_bytes_.Mutable( GetArena()); } inline std::string* DataSource::release_inline_bytes() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:DataSource.inline_bytes) - if (has_inline_bytes()) { - clear_has_specifier(); - return specifier_.inline_bytes_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } else { + if (specifier_case() != kInlineBytes) { return nullptr; } + clear_has_specifier(); + return _impl_.specifier_.inline_bytes_.Release(); } -inline void DataSource::set_allocated_inline_bytes(std::string* inline_bytes) { +inline void DataSource::set_allocated_inline_bytes(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (has_specifier()) { clear_specifier(); } - if (inline_bytes != nullptr) { + if (value != nullptr) { set_has_inline_bytes(); - specifier_.inline_bytes_.UnsafeSetDefault(inline_bytes); + _impl_.specifier_.inline_bytes_.InitAllocated(value, GetArena()); } // @@protoc_insertion_point(field_set_allocated:DataSource.inline_bytes) } @@ -2775,87 +3595,82 @@ inline bool DataSource::has_inline_string() const { return specifier_case() == kInlineString; } inline void DataSource::set_has_inline_string() { - _oneof_case_[0] = kInlineString; + _impl_._oneof_case_[0] = kInlineString; } inline void DataSource::clear_inline_string() { - if (has_inline_string()) { - specifier_.inline_string_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() == kInlineString) { + _impl_.specifier_.inline_string_.Destroy(); clear_has_specifier(); } } -inline const std::string& DataSource::inline_string() const { +inline const std::string& DataSource::inline_string() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:DataSource.inline_string) - if (has_inline_string()) { - return specifier_.inline_string_.GetNoArena(); - } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return _internal_inline_string(); } -inline void DataSource::set_inline_string(const std::string& value) { - // @@protoc_insertion_point(field_set:DataSource.inline_string) - if (!has_inline_string()) { +template +inline PROTOBUF_ALWAYS_INLINE void DataSource::set_inline_string(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() != kInlineString) { clear_specifier(); + set_has_inline_string(); - specifier_.inline_string_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.inline_string_.InitDefault(); } - specifier_.inline_string_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + _impl_.specifier_.inline_string_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:DataSource.inline_string) } -inline void DataSource::set_inline_string(std::string&& value) { - // @@protoc_insertion_point(field_set:DataSource.inline_string) - if (!has_inline_string()) { - clear_specifier(); - set_has_inline_string(); - specifier_.inline_string_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - specifier_.inline_string_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:DataSource.inline_string) +inline std::string* DataSource::mutable_inline_string() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_inline_string(); + // @@protoc_insertion_point(field_mutable:DataSource.inline_string) + return _s; } -inline void DataSource::set_inline_string(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_inline_string()) { - clear_specifier(); - set_has_inline_string(); - specifier_.inline_string_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline const std::string& DataSource::_internal_inline_string() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + if (specifier_case() != kInlineString) { + return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); } - specifier_.inline_string_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:DataSource.inline_string) + return _impl_.specifier_.inline_string_.Get(); } -inline void DataSource::set_inline_string(const char* value, size_t size) { - if (!has_inline_string()) { +inline void DataSource::_internal_set_inline_string(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() != kInlineString) { clear_specifier(); + set_has_inline_string(); - specifier_.inline_string_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.inline_string_.InitDefault(); } - specifier_.inline_string_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:DataSource.inline_string) + _impl_.specifier_.inline_string_.Set(value, GetArena()); } -inline std::string* DataSource::mutable_inline_string() { - if (!has_inline_string()) { +inline std::string* DataSource::_internal_mutable_inline_string() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (specifier_case() != kInlineString) { clear_specifier(); + set_has_inline_string(); - specifier_.inline_string_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.specifier_.inline_string_.InitDefault(); } - // @@protoc_insertion_point(field_mutable:DataSource.inline_string) - return specifier_.inline_string_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _impl_.specifier_.inline_string_.Mutable( GetArena()); } inline std::string* DataSource::release_inline_string() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:DataSource.inline_string) - if (has_inline_string()) { - clear_has_specifier(); - return specifier_.inline_string_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } else { + if (specifier_case() != kInlineString) { return nullptr; } + clear_has_specifier(); + return _impl_.specifier_.inline_string_.Release(); } -inline void DataSource::set_allocated_inline_string(std::string* inline_string) { +inline void DataSource::set_allocated_inline_string(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (has_specifier()) { clear_specifier(); } - if (inline_string != nullptr) { + if (value != nullptr) { set_has_inline_string(); - specifier_.inline_string_.UnsafeSetDefault(inline_string); + _impl_.specifier_.inline_string_.InitAllocated(value, GetArena()); } // @@protoc_insertion_point(field_set_allocated:DataSource.inline_string) } @@ -2864,10 +3679,10 @@ inline bool DataSource::has_specifier() const { return specifier_case() != SPECIFIER_NOT_SET; } inline void DataSource::clear_has_specifier() { - _oneof_case_[0] = SPECIFIER_NOT_SET; + _impl_._oneof_case_[0] = SPECIFIER_NOT_SET; } inline DataSource::SpecifierCase DataSource::specifier_case() const { - return DataSource::SpecifierCase(_oneof_case_[0]); + return DataSource::SpecifierCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- @@ -2875,103 +3690,101 @@ inline DataSource::SpecifierCase DataSource::specifier_case() const { // string type_url = 1; inline void Any::clear_type_url() { - type_url_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.type_url_.ClearToEmpty(); } -inline const std::string& Any::type_url() const { +inline const std::string& Any::type_url() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Any.type_url) - return type_url_.GetNoArena(); + return _internal_type_url(); } -inline void Any::set_type_url(const std::string& value) { - - type_url_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void Any::set_type_url(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.type_url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Any.type_url) } -inline void Any::set_type_url(std::string&& value) { - - type_url_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:Any.type_url) -} -inline void Any::set_type_url(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - type_url_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:Any.type_url) -} -inline void Any::set_type_url(const char* value, size_t size) { - - type_url_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:Any.type_url) -} -inline std::string* Any::mutable_type_url() { - +inline std::string* Any::mutable_type_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_type_url(); // @@protoc_insertion_point(field_mutable:Any.type_url) - return type_url_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& Any::_internal_type_url() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.type_url_.Get(); +} +inline void Any::_internal_set_type_url(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.type_url_.Set(value, GetArena()); +} +inline std::string* Any::_internal_mutable_type_url() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.type_url_.Mutable( GetArena()); } inline std::string* Any::release_type_url() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:Any.type_url) - - return type_url_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void Any::set_allocated_type_url(std::string* type_url) { - if (type_url != nullptr) { - - } else { - - } - type_url_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), type_url); + return _impl_.type_url_.Release(); +} +inline void Any::set_allocated_type_url(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.type_url_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.type_url_.IsDefault()) { + _impl_.type_url_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Any.type_url) } // bytes value = 2; inline void Any::clear_value() { - value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.value_.ClearToEmpty(); } -inline const std::string& Any::value() const { +inline const std::string& Any::value() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Any.value) - return value_.GetNoArena(); + return _internal_value(); } -inline void Any::set_value(const std::string& value) { - - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void Any::set_value(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.value_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Any.value) } -inline void Any::set_value(std::string&& value) { - - value_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:Any.value) -} -inline void Any::set_value(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:Any.value) -} -inline void Any::set_value(const void* value, size_t size) { - - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:Any.value) -} -inline std::string* Any::mutable_value() { - +inline std::string* Any::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_value(); // @@protoc_insertion_point(field_mutable:Any.value) - return value_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& Any::_internal_value() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.value_.Get(); +} +inline void Any::_internal_set_value(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.value_.Set(value, GetArena()); +} +inline std::string* Any::_internal_mutable_value() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.value_.Mutable( GetArena()); } inline std::string* Any::release_value() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:Any.value) - - return value_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _impl_.value_.Release(); } inline void Any::set_allocated_value(std::string* value) { - if (value != nullptr) { - - } else { - - } - value_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.value_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.value_.IsDefault()) { + _impl_.value_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Any.value) } @@ -2981,52 +3794,51 @@ inline void Any::set_allocated_value(std::string* value) { // string cluster_name = 1; inline void GrpcService_EnvoyGrpc::clear_cluster_name() { - cluster_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.cluster_name_.ClearToEmpty(); } -inline const std::string& GrpcService_EnvoyGrpc::cluster_name() const { +inline const std::string& GrpcService_EnvoyGrpc::cluster_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.EnvoyGrpc.cluster_name) - return cluster_name_.GetNoArena(); + return _internal_cluster_name(); } -inline void GrpcService_EnvoyGrpc::set_cluster_name(const std::string& value) { - - cluster_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_EnvoyGrpc::set_cluster_name(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.cluster_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.EnvoyGrpc.cluster_name) } -inline void GrpcService_EnvoyGrpc::set_cluster_name(std::string&& value) { - - cluster_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.EnvoyGrpc.cluster_name) -} -inline void GrpcService_EnvoyGrpc::set_cluster_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - cluster_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.EnvoyGrpc.cluster_name) -} -inline void GrpcService_EnvoyGrpc::set_cluster_name(const char* value, size_t size) { - - cluster_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.EnvoyGrpc.cluster_name) -} -inline std::string* GrpcService_EnvoyGrpc::mutable_cluster_name() { - +inline std::string* GrpcService_EnvoyGrpc::mutable_cluster_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_cluster_name(); // @@protoc_insertion_point(field_mutable:GrpcService.EnvoyGrpc.cluster_name) - return cluster_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_EnvoyGrpc::_internal_cluster_name() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.cluster_name_.Get(); +} +inline void GrpcService_EnvoyGrpc::_internal_set_cluster_name(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.cluster_name_.Set(value, GetArena()); +} +inline std::string* GrpcService_EnvoyGrpc::_internal_mutable_cluster_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.cluster_name_.Mutable( GetArena()); } inline std::string* GrpcService_EnvoyGrpc::release_cluster_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.EnvoyGrpc.cluster_name) - - return cluster_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_EnvoyGrpc::set_allocated_cluster_name(std::string* cluster_name) { - if (cluster_name != nullptr) { - - } else { - - } - cluster_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), cluster_name); + return _impl_.cluster_name_.Release(); +} +inline void GrpcService_EnvoyGrpc::set_allocated_cluster_name(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.cluster_name_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.cluster_name_.IsDefault()) { + _impl_.cluster_name_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.EnvoyGrpc.cluster_name) } @@ -3036,154 +3848,289 @@ inline void GrpcService_EnvoyGrpc::set_allocated_cluster_name(std::string* clust // .DataSource root_certs = 1; inline bool GrpcService_GoogleGrpc_SslCredentials::has_root_certs() const { - return this != internal_default_instance() && root_certs_ != nullptr; + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.root_certs_ != nullptr); + return value; } inline void GrpcService_GoogleGrpc_SslCredentials::clear_root_certs() { - if (GetArenaNoVirtual() == nullptr && root_certs_ != nullptr) { - delete root_certs_; - } - root_certs_ = nullptr; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.root_certs_ != nullptr) _impl_.root_certs_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::root_certs() const { - const ::DataSource* p = root_certs_; +inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::_internal_root_certs() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::DataSource* p = _impl_.root_certs_; + return p != nullptr ? *p : reinterpret_cast(::_DataSource_default_instance_); +} +inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::root_certs() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.SslCredentials.root_certs) - return p != nullptr ? *p : *reinterpret_cast( - &::_DataSource_default_instance_); + return _internal_root_certs(); +} +inline void GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_set_allocated_root_certs(::DataSource* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.root_certs_); + } + _impl_.root_certs_ = reinterpret_cast<::DataSource*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.SslCredentials.root_certs) } inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::release_root_certs() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::DataSource* released = _impl_.root_certs_; + _impl_.root_certs_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_release_root_certs() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.SslCredentials.root_certs) - - ::DataSource* temp = root_certs_; - root_certs_ = nullptr; + + _impl_._has_bits_[0] &= ~0x00000001u; + ::DataSource* temp = _impl_.root_certs_; + _impl_.root_certs_ = nullptr; return temp; } -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::mutable_root_certs() { - - if (root_certs_ == nullptr) { - auto* p = CreateMaybeMessage<::DataSource>(GetArenaNoVirtual()); - root_certs_ = p; +inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::_internal_mutable_root_certs() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.root_certs_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::DataSource>(GetArena()); + _impl_.root_certs_ = reinterpret_cast<::DataSource*>(p); } + return _impl_.root_certs_; +} +inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::mutable_root_certs() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; + ::DataSource* _msg = _internal_mutable_root_certs(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.SslCredentials.root_certs) - return root_certs_; + return _msg; } -inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_root_certs(::DataSource* root_certs) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); +inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_root_certs(::DataSource* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete root_certs_; + delete (_impl_.root_certs_); } - if (root_certs) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - root_certs = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, root_certs, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - root_certs_ = root_certs; + + _impl_.root_certs_ = reinterpret_cast<::DataSource*>(value); // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.SslCredentials.root_certs) } // .DataSource private_key = 2; inline bool GrpcService_GoogleGrpc_SslCredentials::has_private_key() const { - return this != internal_default_instance() && private_key_ != nullptr; + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.private_key_ != nullptr); + return value; } inline void GrpcService_GoogleGrpc_SslCredentials::clear_private_key() { - if (GetArenaNoVirtual() == nullptr && private_key_ != nullptr) { - delete private_key_; - } - private_key_ = nullptr; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.private_key_ != nullptr) _impl_.private_key_->Clear(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::private_key() const { - const ::DataSource* p = private_key_; +inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::_internal_private_key() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::DataSource* p = _impl_.private_key_; + return p != nullptr ? *p : reinterpret_cast(::_DataSource_default_instance_); +} +inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::private_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.SslCredentials.private_key) - return p != nullptr ? *p : *reinterpret_cast( - &::_DataSource_default_instance_); + return _internal_private_key(); +} +inline void GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_set_allocated_private_key(::DataSource* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.private_key_); + } + _impl_.private_key_ = reinterpret_cast<::DataSource*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.SslCredentials.private_key) } inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::release_private_key() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000002u; + ::DataSource* released = _impl_.private_key_; + _impl_.private_key_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_release_private_key() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.SslCredentials.private_key) - - ::DataSource* temp = private_key_; - private_key_ = nullptr; + + _impl_._has_bits_[0] &= ~0x00000002u; + ::DataSource* temp = _impl_.private_key_; + _impl_.private_key_ = nullptr; return temp; } -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::mutable_private_key() { - - if (private_key_ == nullptr) { - auto* p = CreateMaybeMessage<::DataSource>(GetArenaNoVirtual()); - private_key_ = p; +inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::_internal_mutable_private_key() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.private_key_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::DataSource>(GetArena()); + _impl_.private_key_ = reinterpret_cast<::DataSource*>(p); } + return _impl_.private_key_; +} +inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::mutable_private_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; + ::DataSource* _msg = _internal_mutable_private_key(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.SslCredentials.private_key) - return private_key_; + return _msg; } -inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_private_key(::DataSource* private_key) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); +inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_private_key(::DataSource* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete private_key_; + delete (_impl_.private_key_); } - if (private_key) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - private_key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, private_key, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000002u; } else { - + _impl_._has_bits_[0] &= ~0x00000002u; } - private_key_ = private_key; + + _impl_.private_key_ = reinterpret_cast<::DataSource*>(value); // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.SslCredentials.private_key) } // .DataSource cert_chain = 3; inline bool GrpcService_GoogleGrpc_SslCredentials::has_cert_chain() const { - return this != internal_default_instance() && cert_chain_ != nullptr; + bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || _impl_.cert_chain_ != nullptr); + return value; } inline void GrpcService_GoogleGrpc_SslCredentials::clear_cert_chain() { - if (GetArenaNoVirtual() == nullptr && cert_chain_ != nullptr) { - delete cert_chain_; - } - cert_chain_ = nullptr; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.cert_chain_ != nullptr) _impl_.cert_chain_->Clear(); + _impl_._has_bits_[0] &= ~0x00000004u; } -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::cert_chain() const { - const ::DataSource* p = cert_chain_; +inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::_internal_cert_chain() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::DataSource* p = _impl_.cert_chain_; + return p != nullptr ? *p : reinterpret_cast(::_DataSource_default_instance_); +} +inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::cert_chain() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.SslCredentials.cert_chain) - return p != nullptr ? *p : *reinterpret_cast( - &::_DataSource_default_instance_); + return _internal_cert_chain(); +} +inline void GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_set_allocated_cert_chain(::DataSource* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cert_chain_); + } + _impl_.cert_chain_ = reinterpret_cast<::DataSource*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.SslCredentials.cert_chain) } inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::release_cert_chain() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000004u; + ::DataSource* released = _impl_.cert_chain_; + _impl_.cert_chain_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_release_cert_chain() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.SslCredentials.cert_chain) - - ::DataSource* temp = cert_chain_; - cert_chain_ = nullptr; + + _impl_._has_bits_[0] &= ~0x00000004u; + ::DataSource* temp = _impl_.cert_chain_; + _impl_.cert_chain_ = nullptr; return temp; } -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::mutable_cert_chain() { - - if (cert_chain_ == nullptr) { - auto* p = CreateMaybeMessage<::DataSource>(GetArenaNoVirtual()); - cert_chain_ = p; +inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::_internal_mutable_cert_chain() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.cert_chain_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::DataSource>(GetArena()); + _impl_.cert_chain_ = reinterpret_cast<::DataSource*>(p); } + return _impl_.cert_chain_; +} +inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::mutable_cert_chain() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000004u; + ::DataSource* _msg = _internal_mutable_cert_chain(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.SslCredentials.cert_chain) - return cert_chain_; + return _msg; } -inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_cert_chain(::DataSource* cert_chain) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); +inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_cert_chain(::DataSource* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete cert_chain_; + delete (_impl_.cert_chain_); } - if (cert_chain) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - cert_chain = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, cert_chain, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000004u; } else { - + _impl_._has_bits_[0] &= ~0x00000004u; } - cert_chain_ = cert_chain; + + _impl_.cert_chain_ = reinterpret_cast<::DataSource*>(value); // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.SslCredentials.cert_chain) } @@ -3203,133 +4150,241 @@ inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_cert_chain(::Da inline bool GrpcService_GoogleGrpc_ChannelCredentials::has_ssl_credentials() const { return credential_specifier_case() == kSslCredentials; } +inline bool GrpcService_GoogleGrpc_ChannelCredentials::_internal_has_ssl_credentials() const { + return credential_specifier_case() == kSslCredentials; +} inline void GrpcService_GoogleGrpc_ChannelCredentials::set_has_ssl_credentials() { - _oneof_case_[0] = kSslCredentials; + _impl_._oneof_case_[0] = kSslCredentials; } inline void GrpcService_GoogleGrpc_ChannelCredentials::clear_ssl_credentials() { - if (has_ssl_credentials()) { - delete credential_specifier_.ssl_credentials_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() == kSslCredentials) { + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.ssl_credentials_; + } clear_has_credential_specifier(); } } inline ::GrpcService_GoogleGrpc_SslCredentials* GrpcService_GoogleGrpc_ChannelCredentials::release_ssl_credentials() { // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) - if (has_ssl_credentials()) { + if (credential_specifier_case() == kSslCredentials) { clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_SslCredentials* temp = credential_specifier_.ssl_credentials_; - credential_specifier_.ssl_credentials_ = nullptr; + auto* temp = _impl_.credential_specifier_.ssl_credentials_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.credential_specifier_.ssl_credentials_ = nullptr; return temp; } else { return nullptr; } } -inline const ::GrpcService_GoogleGrpc_SslCredentials& GrpcService_GoogleGrpc_ChannelCredentials::ssl_credentials() const { +inline const ::GrpcService_GoogleGrpc_SslCredentials& GrpcService_GoogleGrpc_ChannelCredentials::_internal_ssl_credentials() const { + return credential_specifier_case() == kSslCredentials ? *_impl_.credential_specifier_.ssl_credentials_ : reinterpret_cast<::GrpcService_GoogleGrpc_SslCredentials&>(::_GrpcService_GoogleGrpc_SslCredentials_default_instance_); +} +inline const ::GrpcService_GoogleGrpc_SslCredentials& GrpcService_GoogleGrpc_ChannelCredentials::ssl_credentials() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) - return has_ssl_credentials() - ? *credential_specifier_.ssl_credentials_ - : *reinterpret_cast< ::GrpcService_GoogleGrpc_SslCredentials*>(&::_GrpcService_GoogleGrpc_SslCredentials_default_instance_); + return _internal_ssl_credentials(); +} +inline ::GrpcService_GoogleGrpc_SslCredentials* GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_release_ssl_credentials() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) + if (credential_specifier_case() == kSslCredentials) { + clear_has_credential_specifier(); + auto* temp = _impl_.credential_specifier_.ssl_credentials_; + _impl_.credential_specifier_.ssl_credentials_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_set_allocated_ssl_credentials(::GrpcService_GoogleGrpc_SslCredentials* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_credential_specifier(); + if (value) { + set_has_ssl_credentials(); + _impl_.credential_specifier_.ssl_credentials_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) } -inline ::GrpcService_GoogleGrpc_SslCredentials* GrpcService_GoogleGrpc_ChannelCredentials::mutable_ssl_credentials() { - if (!has_ssl_credentials()) { +inline ::GrpcService_GoogleGrpc_SslCredentials* GrpcService_GoogleGrpc_ChannelCredentials::_internal_mutable_ssl_credentials() { + if (credential_specifier_case() != kSslCredentials) { clear_credential_specifier(); set_has_ssl_credentials(); - credential_specifier_.ssl_credentials_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_SslCredentials >( - GetArenaNoVirtual()); + _impl_.credential_specifier_.ssl_credentials_ = + ::google::protobuf::MessageLite::DefaultConstruct<::GrpcService_GoogleGrpc_SslCredentials>(GetArena()); } + return _impl_.credential_specifier_.ssl_credentials_; +} +inline ::GrpcService_GoogleGrpc_SslCredentials* GrpcService_GoogleGrpc_ChannelCredentials::mutable_ssl_credentials() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::GrpcService_GoogleGrpc_SslCredentials* _msg = _internal_mutable_ssl_credentials(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) - return credential_specifier_.ssl_credentials_; + return _msg; } // .GrpcService.GoogleGrpc.Empty google_default = 2; inline bool GrpcService_GoogleGrpc_ChannelCredentials::has_google_default() const { return credential_specifier_case() == kGoogleDefault; } +inline bool GrpcService_GoogleGrpc_ChannelCredentials::_internal_has_google_default() const { + return credential_specifier_case() == kGoogleDefault; +} inline void GrpcService_GoogleGrpc_ChannelCredentials::set_has_google_default() { - _oneof_case_[0] = kGoogleDefault; + _impl_._oneof_case_[0] = kGoogleDefault; } inline void GrpcService_GoogleGrpc_ChannelCredentials::clear_google_default() { - if (has_google_default()) { - delete credential_specifier_.google_default_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() == kGoogleDefault) { + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.google_default_; + } clear_has_credential_specifier(); } } inline ::GrpcService_GoogleGrpc_Empty* GrpcService_GoogleGrpc_ChannelCredentials::release_google_default() { // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.ChannelCredentials.google_default) - if (has_google_default()) { + if (credential_specifier_case() == kGoogleDefault) { clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_Empty* temp = credential_specifier_.google_default_; - credential_specifier_.google_default_ = nullptr; + auto* temp = _impl_.credential_specifier_.google_default_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.credential_specifier_.google_default_ = nullptr; return temp; } else { return nullptr; } } -inline const ::GrpcService_GoogleGrpc_Empty& GrpcService_GoogleGrpc_ChannelCredentials::google_default() const { +inline const ::GrpcService_GoogleGrpc_Empty& GrpcService_GoogleGrpc_ChannelCredentials::_internal_google_default() const { + return credential_specifier_case() == kGoogleDefault ? *_impl_.credential_specifier_.google_default_ : reinterpret_cast<::GrpcService_GoogleGrpc_Empty&>(::_GrpcService_GoogleGrpc_Empty_default_instance_); +} +inline const ::GrpcService_GoogleGrpc_Empty& GrpcService_GoogleGrpc_ChannelCredentials::google_default() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.ChannelCredentials.google_default) - return has_google_default() - ? *credential_specifier_.google_default_ - : *reinterpret_cast< ::GrpcService_GoogleGrpc_Empty*>(&::_GrpcService_GoogleGrpc_Empty_default_instance_); + return _internal_google_default(); +} +inline ::GrpcService_GoogleGrpc_Empty* GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_release_google_default() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.ChannelCredentials.google_default) + if (credential_specifier_case() == kGoogleDefault) { + clear_has_credential_specifier(); + auto* temp = _impl_.credential_specifier_.google_default_; + _impl_.credential_specifier_.google_default_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_set_allocated_google_default(::GrpcService_GoogleGrpc_Empty* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_credential_specifier(); + if (value) { + set_has_google_default(); + _impl_.credential_specifier_.google_default_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.google_default) } -inline ::GrpcService_GoogleGrpc_Empty* GrpcService_GoogleGrpc_ChannelCredentials::mutable_google_default() { - if (!has_google_default()) { +inline ::GrpcService_GoogleGrpc_Empty* GrpcService_GoogleGrpc_ChannelCredentials::_internal_mutable_google_default() { + if (credential_specifier_case() != kGoogleDefault) { clear_credential_specifier(); set_has_google_default(); - credential_specifier_.google_default_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_Empty >( - GetArenaNoVirtual()); + _impl_.credential_specifier_.google_default_ = + ::google::protobuf::MessageLite::DefaultConstruct<::GrpcService_GoogleGrpc_Empty>(GetArena()); } + return _impl_.credential_specifier_.google_default_; +} +inline ::GrpcService_GoogleGrpc_Empty* GrpcService_GoogleGrpc_ChannelCredentials::mutable_google_default() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::GrpcService_GoogleGrpc_Empty* _msg = _internal_mutable_google_default(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.ChannelCredentials.google_default) - return credential_specifier_.google_default_; + return _msg; } // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; inline bool GrpcService_GoogleGrpc_ChannelCredentials::has_local_credentials() const { return credential_specifier_case() == kLocalCredentials; } +inline bool GrpcService_GoogleGrpc_ChannelCredentials::_internal_has_local_credentials() const { + return credential_specifier_case() == kLocalCredentials; +} inline void GrpcService_GoogleGrpc_ChannelCredentials::set_has_local_credentials() { - _oneof_case_[0] = kLocalCredentials; + _impl_._oneof_case_[0] = kLocalCredentials; } inline void GrpcService_GoogleGrpc_ChannelCredentials::clear_local_credentials() { - if (has_local_credentials()) { - delete credential_specifier_.local_credentials_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() == kLocalCredentials) { + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.local_credentials_; + } clear_has_credential_specifier(); } } inline ::GrpcService_GoogleGrpc_GoogleLocalCredentials* GrpcService_GoogleGrpc_ChannelCredentials::release_local_credentials() { // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) - if (has_local_credentials()) { + if (credential_specifier_case() == kLocalCredentials) { clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_GoogleLocalCredentials* temp = credential_specifier_.local_credentials_; - credential_specifier_.local_credentials_ = nullptr; + auto* temp = _impl_.credential_specifier_.local_credentials_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.credential_specifier_.local_credentials_ = nullptr; return temp; } else { return nullptr; } } -inline const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& GrpcService_GoogleGrpc_ChannelCredentials::local_credentials() const { +inline const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& GrpcService_GoogleGrpc_ChannelCredentials::_internal_local_credentials() const { + return credential_specifier_case() == kLocalCredentials ? *_impl_.credential_specifier_.local_credentials_ : reinterpret_cast<::GrpcService_GoogleGrpc_GoogleLocalCredentials&>(::_GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_); +} +inline const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& GrpcService_GoogleGrpc_ChannelCredentials::local_credentials() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) - return has_local_credentials() - ? *credential_specifier_.local_credentials_ - : *reinterpret_cast< ::GrpcService_GoogleGrpc_GoogleLocalCredentials*>(&::_GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_); + return _internal_local_credentials(); +} +inline ::GrpcService_GoogleGrpc_GoogleLocalCredentials* GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_release_local_credentials() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) + if (credential_specifier_case() == kLocalCredentials) { + clear_has_credential_specifier(); + auto* temp = _impl_.credential_specifier_.local_credentials_; + _impl_.credential_specifier_.local_credentials_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline ::GrpcService_GoogleGrpc_GoogleLocalCredentials* GrpcService_GoogleGrpc_ChannelCredentials::mutable_local_credentials() { - if (!has_local_credentials()) { +inline void GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_set_allocated_local_credentials(::GrpcService_GoogleGrpc_GoogleLocalCredentials* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_credential_specifier(); + if (value) { + set_has_local_credentials(); + _impl_.credential_specifier_.local_credentials_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) +} +inline ::GrpcService_GoogleGrpc_GoogleLocalCredentials* GrpcService_GoogleGrpc_ChannelCredentials::_internal_mutable_local_credentials() { + if (credential_specifier_case() != kLocalCredentials) { clear_credential_specifier(); set_has_local_credentials(); - credential_specifier_.local_credentials_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_GoogleLocalCredentials >( - GetArenaNoVirtual()); + _impl_.credential_specifier_.local_credentials_ = + ::google::protobuf::MessageLite::DefaultConstruct<::GrpcService_GoogleGrpc_GoogleLocalCredentials>(GetArena()); } + return _impl_.credential_specifier_.local_credentials_; +} +inline ::GrpcService_GoogleGrpc_GoogleLocalCredentials* GrpcService_GoogleGrpc_ChannelCredentials::mutable_local_credentials() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::GrpcService_GoogleGrpc_GoogleLocalCredentials* _msg = _internal_mutable_local_credentials(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) - return credential_specifier_.local_credentials_; + return _msg; } inline bool GrpcService_GoogleGrpc_ChannelCredentials::has_credential_specifier() const { return credential_specifier_case() != CREDENTIAL_SPECIFIER_NOT_SET; } inline void GrpcService_GoogleGrpc_ChannelCredentials::clear_has_credential_specifier() { - _oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; + _impl_._oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; } inline GrpcService_GoogleGrpc_ChannelCredentials::CredentialSpecifierCase GrpcService_GoogleGrpc_ChannelCredentials::credential_specifier_case() const { - return GrpcService_GoogleGrpc_ChannelCredentials::CredentialSpecifierCase(_oneof_case_[0]); + return GrpcService_GoogleGrpc_ChannelCredentials::CredentialSpecifierCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- @@ -3337,68 +4392,75 @@ inline GrpcService_GoogleGrpc_ChannelCredentials::CredentialSpecifierCase GrpcSe // string json_key = 1; inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::clear_json_key() { - json_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.json_key_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::json_key() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::json_key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) - return json_key_.GetNoArena(); + return _internal_json_key(); } -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_json_key(const std::string& value) { - - json_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_json_key(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.json_key_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) } -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_json_key(std::string&& value) { - - json_key_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) -} -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_json_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - json_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) -} -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_json_key(const char* value, size_t size) { - - json_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::mutable_json_key() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::mutable_json_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_json_key(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) - return json_key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_internal_json_key() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.json_key_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_internal_set_json_key(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.json_key_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_internal_mutable_json_key() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.json_key_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::release_json_key() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) - - return json_key_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_allocated_json_key(std::string* json_key) { - if (json_key != nullptr) { - - } else { - - } - json_key_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), json_key); + return _impl_.json_key_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_allocated_json_key(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.json_key_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.json_key_.IsDefault()) { + _impl_.json_key_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) } // uint64 token_lifetime_seconds = 2; inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::clear_token_lifetime_seconds() { - token_lifetime_seconds_ = PROTOBUF_ULONGLONG(0); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.token_lifetime_seconds_ = ::uint64_t{0u}; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::token_lifetime_seconds() const { +inline ::uint64_t GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::token_lifetime_seconds() const { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.token_lifetime_seconds) - return token_lifetime_seconds_; + return _internal_token_lifetime_seconds(); } -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_token_lifetime_seconds(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - token_lifetime_seconds_ = value; +inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_token_lifetime_seconds(::uint64_t value) { + _internal_set_token_lifetime_seconds(value); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.token_lifetime_seconds) } +inline ::uint64_t GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_internal_token_lifetime_seconds() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.token_lifetime_seconds_; +} +inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_internal_set_token_lifetime_seconds(::uint64_t value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.token_lifetime_seconds_ = value; +} // ------------------------------------------------------------------- @@ -3406,103 +4468,101 @@ inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCreden // string authorization_token = 1; inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::clear_authorization_token() { - authorization_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.authorization_token_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::authorization_token() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::authorization_token() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) - return authorization_token_.GetNoArena(); + return _internal_authorization_token(); } -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authorization_token(const std::string& value) { - - authorization_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authorization_token(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.authorization_token_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) } -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authorization_token(std::string&& value) { - - authorization_token_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authorization_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - authorization_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authorization_token(const char* value, size_t size) { - - authorization_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::mutable_authorization_token() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::mutable_authorization_token() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_authorization_token(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) - return authorization_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_authorization_token() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.authorization_token_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_set_authorization_token(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.authorization_token_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_mutable_authorization_token() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.authorization_token_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::release_authorization_token() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) - - return authorization_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_allocated_authorization_token(std::string* authorization_token) { - if (authorization_token != nullptr) { - - } else { - - } - authorization_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), authorization_token); + return _impl_.authorization_token_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_allocated_authorization_token(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.authorization_token_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.authorization_token_.IsDefault()) { + _impl_.authorization_token_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) } // string authority_selector = 2; inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::clear_authority_selector() { - authority_selector_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.authority_selector_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::authority_selector() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::authority_selector() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) - return authority_selector_.GetNoArena(); + return _internal_authority_selector(); } -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authority_selector(const std::string& value) { - - authority_selector_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authority_selector(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.authority_selector_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) } -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authority_selector(std::string&& value) { - - authority_selector_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authority_selector(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - authority_selector_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authority_selector(const char* value, size_t size) { - - authority_selector_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::mutable_authority_selector() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::mutable_authority_selector() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_authority_selector(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) - return authority_selector_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_authority_selector() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.authority_selector_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_set_authority_selector(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.authority_selector_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_mutable_authority_selector() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.authority_selector_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::release_authority_selector() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) - - return authority_selector_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_allocated_authority_selector(std::string* authority_selector) { - if (authority_selector != nullptr) { - - } else { - - } - authority_selector_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), authority_selector); + return _impl_.authority_selector_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_allocated_authority_selector(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.authority_selector_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.authority_selector_.IsDefault()) { + _impl_.authority_selector_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) } @@ -3512,52 +4572,51 @@ inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_all // string name = 1; inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::clear_name() { - name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::name() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) - return name_.GetNoArena(); + return _internal_name(); } -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_name(const std::string& value) { - - name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_name(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) } -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_name(std::string&& value) { - - name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::mutable_name() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) - return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_name() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.name_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_set_name(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_mutable_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.name_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::release_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) - - return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name); + return _impl_.name_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_allocated_name(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) } @@ -3565,86 +4624,155 @@ inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::has_config() const { return config_type_case() == kConfig; } +inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_has_config() const { + return config_type_case() == kConfig; +} inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_has_config() { - _oneof_case_[0] = kConfig; + _impl_._oneof_case_[0] = kConfig; } inline ::google::protobuf::Struct* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::release_config() { // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) - if (has_config()) { + if (config_type_case() == kConfig) { clear_has_config_type(); - ::google::protobuf::Struct* temp = config_type_.config_; - config_type_.config_ = nullptr; + auto* temp = _impl_.config_type_.config_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.config_type_.config_ = nullptr; return temp; } else { return nullptr; } } -inline const ::google::protobuf::Struct& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::config() const { +inline const ::google::protobuf::Struct& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_config() const { + return config_type_case() == kConfig ? *_impl_.config_type_.config_ : reinterpret_cast<::google::protobuf::Struct&>(::google::protobuf::_Struct_default_instance_); +} +inline const ::google::protobuf::Struct& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) - return has_config() - ? *config_type_.config_ - : *reinterpret_cast< ::google::protobuf::Struct*>(&::google::protobuf::_Struct_default_instance_); + return _internal_config(); +} +inline ::google::protobuf::Struct* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::unsafe_arena_release_config() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) + if (config_type_case() == kConfig) { + clear_has_config_type(); + auto* temp = _impl_.config_type_.config_; + _impl_.config_type_.config_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline ::google::protobuf::Struct* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::mutable_config() { - if (!has_config()) { +inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::unsafe_arena_set_allocated_config(::google::protobuf::Struct* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_config_type(); + if (value) { + set_has_config(); + _impl_.config_type_.config_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) +} +inline ::google::protobuf::Struct* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_mutable_config() { + if (config_type_case() != kConfig) { clear_config_type(); set_has_config(); - config_type_.config_ = CreateMaybeMessage< ::google::protobuf::Struct >( - GetArenaNoVirtual()); + _impl_.config_type_.config_ = + ::google::protobuf::MessageLite::DefaultConstruct<::google::protobuf::Struct>(GetArena()); } + return _impl_.config_type_.config_; +} +inline ::google::protobuf::Struct* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::mutable_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::Struct* _msg = _internal_mutable_config(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) - return config_type_.config_; + return _msg; } // .Any typed_config = 3; inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::has_typed_config() const { return config_type_case() == kTypedConfig; } +inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_has_typed_config() const { + return config_type_case() == kTypedConfig; +} inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_has_typed_config() { - _oneof_case_[0] = kTypedConfig; + _impl_._oneof_case_[0] = kTypedConfig; } inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::clear_typed_config() { - if (has_typed_config()) { - delete config_type_.typed_config_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (config_type_case() == kTypedConfig) { + if (GetArena() == nullptr) { + delete _impl_.config_type_.typed_config_; + } clear_has_config_type(); } } inline ::Any* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::release_typed_config() { // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) - if (has_typed_config()) { + if (config_type_case() == kTypedConfig) { clear_has_config_type(); - ::Any* temp = config_type_.typed_config_; - config_type_.typed_config_ = nullptr; + auto* temp = _impl_.config_type_.typed_config_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.config_type_.typed_config_ = nullptr; return temp; } else { return nullptr; } } -inline const ::Any& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::typed_config() const { +inline const ::Any& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_typed_config() const { + return config_type_case() == kTypedConfig ? *_impl_.config_type_.typed_config_ : reinterpret_cast<::Any&>(::_Any_default_instance_); +} +inline const ::Any& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::typed_config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) - return has_typed_config() - ? *config_type_.typed_config_ - : *reinterpret_cast< ::Any*>(&::_Any_default_instance_); + return _internal_typed_config(); +} +inline ::Any* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::unsafe_arena_release_typed_config() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) + if (config_type_case() == kTypedConfig) { + clear_has_config_type(); + auto* temp = _impl_.config_type_.typed_config_; + _impl_.config_type_.typed_config_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::unsafe_arena_set_allocated_typed_config(::Any* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_config_type(); + if (value) { + set_has_typed_config(); + _impl_.config_type_.typed_config_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) } -inline ::Any* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::mutable_typed_config() { - if (!has_typed_config()) { +inline ::Any* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_mutable_typed_config() { + if (config_type_case() != kTypedConfig) { clear_config_type(); set_has_typed_config(); - config_type_.typed_config_ = CreateMaybeMessage< ::Any >( - GetArenaNoVirtual()); + _impl_.config_type_.typed_config_ = + ::google::protobuf::MessageLite::DefaultConstruct<::Any>(GetArena()); } + return _impl_.config_type_.typed_config_; +} +inline ::Any* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::mutable_typed_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::Any* _msg = _internal_mutable_typed_config(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) - return config_type_.typed_config_; + return _msg; } inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::has_config_type() const { return config_type_case() != CONFIG_TYPE_NOT_SET; } inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::clear_has_config_type() { - _oneof_case_[0] = CONFIG_TYPE_NOT_SET; + _impl_._oneof_case_[0] = CONFIG_TYPE_NOT_SET; } inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::ConfigTypeCase GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::config_type_case() const { - return GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::ConfigTypeCase(_oneof_case_[0]); + return GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::ConfigTypeCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- @@ -3652,460 +4780,451 @@ inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Con // string token_exchange_service_uri = 1; inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_token_exchange_service_uri() { - token_exchange_service_uri_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.token_exchange_service_uri_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::token_exchange_service_uri() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::token_exchange_service_uri() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) - return token_exchange_service_uri_.GetNoArena(); + return _internal_token_exchange_service_uri(); } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_token_exchange_service_uri(const std::string& value) { - - token_exchange_service_uri_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_token_exchange_service_uri(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.token_exchange_service_uri_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_token_exchange_service_uri(std::string&& value) { - - token_exchange_service_uri_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_token_exchange_service_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_exchange_service_uri_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_token_exchange_service_uri(const char* value, size_t size) { - - token_exchange_service_uri_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_token_exchange_service_uri() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_token_exchange_service_uri() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_token_exchange_service_uri(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) - return token_exchange_service_uri_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_token_exchange_service_uri() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.token_exchange_service_uri_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_token_exchange_service_uri(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.token_exchange_service_uri_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_token_exchange_service_uri() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.token_exchange_service_uri_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_token_exchange_service_uri() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) - - return token_exchange_service_uri_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_token_exchange_service_uri(std::string* token_exchange_service_uri) { - if (token_exchange_service_uri != nullptr) { - - } else { - - } - token_exchange_service_uri_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), token_exchange_service_uri); + return _impl_.token_exchange_service_uri_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_token_exchange_service_uri(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.token_exchange_service_uri_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.token_exchange_service_uri_.IsDefault()) { + _impl_.token_exchange_service_uri_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) } // string resource = 2; inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_resource() { - resource_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.resource_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::resource() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::resource() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) - return resource_.GetNoArena(); + return _internal_resource(); } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_resource(const std::string& value) { - - resource_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_resource(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.resource_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_resource(std::string&& value) { - - resource_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_resource(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - resource_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_resource(const char* value, size_t size) { - - resource_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_resource() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_resource() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_resource(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) - return resource_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_resource() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.resource_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_resource(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.resource_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_resource() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.resource_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_resource() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) - - return resource_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_resource(std::string* resource) { - if (resource != nullptr) { - - } else { - - } - resource_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), resource); + return _impl_.resource_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_resource(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.resource_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.resource_.IsDefault()) { + _impl_.resource_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) } // string audience = 3; inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_audience() { - audience_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.audience_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::audience() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::audience() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) - return audience_.GetNoArena(); + return _internal_audience(); } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_audience(const std::string& value) { - - audience_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_audience(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.audience_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_audience(std::string&& value) { - - audience_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_audience(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - audience_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_audience(const char* value, size_t size) { - - audience_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_audience() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_audience() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_audience(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) - return audience_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_audience() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.audience_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_audience(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.audience_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_audience() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.audience_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_audience() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) - - return audience_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_audience(std::string* audience) { - if (audience != nullptr) { - - } else { - - } - audience_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), audience); + return _impl_.audience_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_audience(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.audience_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.audience_.IsDefault()) { + _impl_.audience_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) } // string scope = 4; inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_scope() { - scope_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.scope_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::scope() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::scope() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) - return scope_.GetNoArena(); + return _internal_scope(); } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_scope(const std::string& value) { - - scope_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_scope(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.scope_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_scope(std::string&& value) { - - scope_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_scope(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - scope_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_scope(const char* value, size_t size) { - - scope_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_scope() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_scope() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_scope(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) - return scope_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_scope() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.scope_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_scope(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.scope_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_scope() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.scope_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_scope() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) - - return scope_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_scope(std::string* scope) { - if (scope != nullptr) { - - } else { - - } - scope_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), scope); + return _impl_.scope_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_scope(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.scope_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.scope_.IsDefault()) { + _impl_.scope_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) } // string requested_token_type = 5; inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_requested_token_type() { - requested_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.requested_token_type_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::requested_token_type() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::requested_token_type() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) - return requested_token_type_.GetNoArena(); + return _internal_requested_token_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_requested_token_type(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.requested_token_type_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_requested_token_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_requested_token_type(); + // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_requested_token_type() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.requested_token_type_.Get(); } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_requested_token_type(const std::string& value) { - - requested_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_requested_token_type(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.requested_token_type_.Set(value, GetArena()); } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_requested_token_type(std::string&& value) { - - requested_token_type_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_requested_token_type(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - requested_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_requested_token_type(const char* value, size_t size) { - - requested_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_requested_token_type() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) - return requested_token_type_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_requested_token_type() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.requested_token_type_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_requested_token_type() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) - - return requested_token_type_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_requested_token_type(std::string* requested_token_type) { - if (requested_token_type != nullptr) { - - } else { - - } - requested_token_type_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), requested_token_type); + return _impl_.requested_token_type_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_requested_token_type(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.requested_token_type_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.requested_token_type_.IsDefault()) { + _impl_.requested_token_type_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) } // string subject_token_path = 6; inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_subject_token_path() { - subject_token_path_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.subject_token_path_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::subject_token_path() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::subject_token_path() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) - return subject_token_path_.GetNoArena(); + return _internal_subject_token_path(); } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_path(const std::string& value) { - - subject_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_path(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.subject_token_path_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_path(std::string&& value) { - - subject_token_path_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_path(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - subject_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_path(const char* value, size_t size) { - - subject_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_subject_token_path() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_subject_token_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_subject_token_path(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) - return subject_token_path_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_subject_token_path() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.subject_token_path_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_subject_token_path(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.subject_token_path_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_subject_token_path() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.subject_token_path_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_subject_token_path() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) - - return subject_token_path_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_subject_token_path(std::string* subject_token_path) { - if (subject_token_path != nullptr) { - - } else { - - } - subject_token_path_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), subject_token_path); + return _impl_.subject_token_path_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_subject_token_path(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.subject_token_path_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.subject_token_path_.IsDefault()) { + _impl_.subject_token_path_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) } // string subject_token_type = 7; inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_subject_token_type() { - subject_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.subject_token_type_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::subject_token_type() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::subject_token_type() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) - return subject_token_type_.GetNoArena(); + return _internal_subject_token_type(); } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_type(const std::string& value) { - - subject_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_type(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.subject_token_type_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_type(std::string&& value) { - - subject_token_type_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_type(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - subject_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_type(const char* value, size_t size) { - - subject_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_subject_token_type() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_subject_token_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_subject_token_type(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) - return subject_token_type_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_subject_token_type() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.subject_token_type_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_subject_token_type(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.subject_token_type_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_subject_token_type() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.subject_token_type_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_subject_token_type() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) - - return subject_token_type_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_subject_token_type(std::string* subject_token_type) { - if (subject_token_type != nullptr) { - - } else { - - } - subject_token_type_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), subject_token_type); + return _impl_.subject_token_type_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_subject_token_type(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.subject_token_type_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.subject_token_type_.IsDefault()) { + _impl_.subject_token_type_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) } // string actor_token_path = 8; inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_actor_token_path() { - actor_token_path_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.actor_token_path_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::actor_token_path() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::actor_token_path() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) - return actor_token_path_.GetNoArena(); + return _internal_actor_token_path(); } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_path(const std::string& value) { - - actor_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_path(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.actor_token_path_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_path(std::string&& value) { - - actor_token_path_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_path(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - actor_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_path(const char* value, size_t size) { - - actor_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_actor_token_path() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_actor_token_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_actor_token_path(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) - return actor_token_path_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_actor_token_path() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.actor_token_path_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_actor_token_path(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.actor_token_path_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_actor_token_path() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.actor_token_path_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_actor_token_path() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) - - return actor_token_path_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_actor_token_path(std::string* actor_token_path) { - if (actor_token_path != nullptr) { - - } else { - - } - actor_token_path_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), actor_token_path); + return _impl_.actor_token_path_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_actor_token_path(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.actor_token_path_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.actor_token_path_.IsDefault()) { + _impl_.actor_token_path_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) } // string actor_token_type = 9; inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_actor_token_type() { - actor_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.actor_token_type_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::actor_token_type() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::actor_token_type() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) - return actor_token_type_.GetNoArena(); + return _internal_actor_token_type(); } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_type(const std::string& value) { - - actor_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_type(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.actor_token_type_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) } -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_type(std::string&& value) { - - actor_token_type_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_type(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - actor_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_type(const char* value, size_t size) { - - actor_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_actor_token_type() { - +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_actor_token_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_actor_token_type(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) - return actor_token_type_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_actor_token_type() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.actor_token_type_.Get(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_actor_token_type(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.actor_token_type_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_actor_token_type() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.actor_token_type_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_actor_token_type() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) - - return actor_token_type_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_actor_token_type(std::string* actor_token_type) { - if (actor_token_type != nullptr) { - - } else { - - } - actor_token_type_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), actor_token_type); + return _impl_.actor_token_type_.Release(); +} +inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_actor_token_type(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.actor_token_type_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.actor_token_type_.IsDefault()) { + _impl_.actor_token_type_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) } @@ -4118,87 +5237,82 @@ inline bool GrpcService_GoogleGrpc_CallCredentials::has_access_token() const { return credential_specifier_case() == kAccessToken; } inline void GrpcService_GoogleGrpc_CallCredentials::set_has_access_token() { - _oneof_case_[0] = kAccessToken; + _impl_._oneof_case_[0] = kAccessToken; } inline void GrpcService_GoogleGrpc_CallCredentials::clear_access_token() { - if (has_access_token()) { - credential_specifier_.access_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() == kAccessToken) { + _impl_.credential_specifier_.access_token_.Destroy(); clear_has_credential_specifier(); } } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials::access_token() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials::access_token() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.access_token) - if (has_access_token()) { - return credential_specifier_.access_token_.GetNoArena(); - } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return _internal_access_token(); } -inline void GrpcService_GoogleGrpc_CallCredentials::set_access_token(const std::string& value) { - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.access_token) - if (!has_access_token()) { +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials::set_access_token(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() != kAccessToken) { clear_credential_specifier(); + set_has_access_token(); - credential_specifier_.access_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.credential_specifier_.access_token_.InitDefault(); } - credential_specifier_.access_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + _impl_.credential_specifier_.access_token_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.access_token) } -inline void GrpcService_GoogleGrpc_CallCredentials::set_access_token(std::string&& value) { - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.access_token) - if (!has_access_token()) { - clear_credential_specifier(); - set_has_access_token(); - credential_specifier_.access_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - credential_specifier_.access_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.access_token) +inline std::string* GrpcService_GoogleGrpc_CallCredentials::mutable_access_token() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_access_token(); + // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.access_token) + return _s; } -inline void GrpcService_GoogleGrpc_CallCredentials::set_access_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_access_token()) { - clear_credential_specifier(); - set_has_access_token(); - credential_specifier_.access_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline const std::string& GrpcService_GoogleGrpc_CallCredentials::_internal_access_token() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + if (credential_specifier_case() != kAccessToken) { + return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); } - credential_specifier_.access_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.access_token) + return _impl_.credential_specifier_.access_token_.Get(); } -inline void GrpcService_GoogleGrpc_CallCredentials::set_access_token(const char* value, size_t size) { - if (!has_access_token()) { +inline void GrpcService_GoogleGrpc_CallCredentials::_internal_set_access_token(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() != kAccessToken) { clear_credential_specifier(); + set_has_access_token(); - credential_specifier_.access_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.credential_specifier_.access_token_.InitDefault(); } - credential_specifier_.access_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.access_token) + _impl_.credential_specifier_.access_token_.Set(value, GetArena()); } -inline std::string* GrpcService_GoogleGrpc_CallCredentials::mutable_access_token() { - if (!has_access_token()) { +inline std::string* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_access_token() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() != kAccessToken) { clear_credential_specifier(); + set_has_access_token(); - credential_specifier_.access_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.credential_specifier_.access_token_.InitDefault(); } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.access_token) - return credential_specifier_.access_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _impl_.credential_specifier_.access_token_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials::release_access_token() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.access_token) - if (has_access_token()) { - clear_has_credential_specifier(); - return credential_specifier_.access_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } else { + if (credential_specifier_case() != kAccessToken) { return nullptr; } + clear_has_credential_specifier(); + return _impl_.credential_specifier_.access_token_.Release(); } -inline void GrpcService_GoogleGrpc_CallCredentials::set_allocated_access_token(std::string* access_token) { +inline void GrpcService_GoogleGrpc_CallCredentials::set_allocated_access_token(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (has_credential_specifier()) { clear_credential_specifier(); } - if (access_token != nullptr) { + if (value != nullptr) { set_has_access_token(); - credential_specifier_.access_token_.UnsafeSetDefault(access_token); + _impl_.credential_specifier_.access_token_.InitAllocated(value, GetArena()); } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.access_token) } @@ -4207,41 +5321,77 @@ inline void GrpcService_GoogleGrpc_CallCredentials::set_allocated_access_token(s inline bool GrpcService_GoogleGrpc_CallCredentials::has_google_compute_engine() const { return credential_specifier_case() == kGoogleComputeEngine; } +inline bool GrpcService_GoogleGrpc_CallCredentials::_internal_has_google_compute_engine() const { + return credential_specifier_case() == kGoogleComputeEngine; +} inline void GrpcService_GoogleGrpc_CallCredentials::set_has_google_compute_engine() { - _oneof_case_[0] = kGoogleComputeEngine; + _impl_._oneof_case_[0] = kGoogleComputeEngine; } inline void GrpcService_GoogleGrpc_CallCredentials::clear_google_compute_engine() { - if (has_google_compute_engine()) { - delete credential_specifier_.google_compute_engine_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() == kGoogleComputeEngine) { + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.google_compute_engine_; + } clear_has_credential_specifier(); } } inline ::GrpcService_GoogleGrpc_Empty* GrpcService_GoogleGrpc_CallCredentials::release_google_compute_engine() { // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) - if (has_google_compute_engine()) { + if (credential_specifier_case() == kGoogleComputeEngine) { clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_Empty* temp = credential_specifier_.google_compute_engine_; - credential_specifier_.google_compute_engine_ = nullptr; + auto* temp = _impl_.credential_specifier_.google_compute_engine_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.credential_specifier_.google_compute_engine_ = nullptr; return temp; } else { return nullptr; } } -inline const ::GrpcService_GoogleGrpc_Empty& GrpcService_GoogleGrpc_CallCredentials::google_compute_engine() const { +inline const ::GrpcService_GoogleGrpc_Empty& GrpcService_GoogleGrpc_CallCredentials::_internal_google_compute_engine() const { + return credential_specifier_case() == kGoogleComputeEngine ? *_impl_.credential_specifier_.google_compute_engine_ : reinterpret_cast<::GrpcService_GoogleGrpc_Empty&>(::_GrpcService_GoogleGrpc_Empty_default_instance_); +} +inline const ::GrpcService_GoogleGrpc_Empty& GrpcService_GoogleGrpc_CallCredentials::google_compute_engine() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) - return has_google_compute_engine() - ? *credential_specifier_.google_compute_engine_ - : *reinterpret_cast< ::GrpcService_GoogleGrpc_Empty*>(&::_GrpcService_GoogleGrpc_Empty_default_instance_); + return _internal_google_compute_engine(); +} +inline ::GrpcService_GoogleGrpc_Empty* GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_release_google_compute_engine() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) + if (credential_specifier_case() == kGoogleComputeEngine) { + clear_has_credential_specifier(); + auto* temp = _impl_.credential_specifier_.google_compute_engine_; + _impl_.credential_specifier_.google_compute_engine_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline ::GrpcService_GoogleGrpc_Empty* GrpcService_GoogleGrpc_CallCredentials::mutable_google_compute_engine() { - if (!has_google_compute_engine()) { +inline void GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_set_allocated_google_compute_engine(::GrpcService_GoogleGrpc_Empty* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_credential_specifier(); + if (value) { + set_has_google_compute_engine(); + _impl_.credential_specifier_.google_compute_engine_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) +} +inline ::GrpcService_GoogleGrpc_Empty* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_google_compute_engine() { + if (credential_specifier_case() != kGoogleComputeEngine) { clear_credential_specifier(); set_has_google_compute_engine(); - credential_specifier_.google_compute_engine_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_Empty >( - GetArenaNoVirtual()); + _impl_.credential_specifier_.google_compute_engine_ = + ::google::protobuf::MessageLite::DefaultConstruct<::GrpcService_GoogleGrpc_Empty>(GetArena()); } + return _impl_.credential_specifier_.google_compute_engine_; +} +inline ::GrpcService_GoogleGrpc_Empty* GrpcService_GoogleGrpc_CallCredentials::mutable_google_compute_engine() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::GrpcService_GoogleGrpc_Empty* _msg = _internal_mutable_google_compute_engine(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) - return credential_specifier_.google_compute_engine_; + return _msg; } // string google_refresh_token = 3; @@ -4249,87 +5399,82 @@ inline bool GrpcService_GoogleGrpc_CallCredentials::has_google_refresh_token() c return credential_specifier_case() == kGoogleRefreshToken; } inline void GrpcService_GoogleGrpc_CallCredentials::set_has_google_refresh_token() { - _oneof_case_[0] = kGoogleRefreshToken; + _impl_._oneof_case_[0] = kGoogleRefreshToken; } inline void GrpcService_GoogleGrpc_CallCredentials::clear_google_refresh_token() { - if (has_google_refresh_token()) { - credential_specifier_.google_refresh_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() == kGoogleRefreshToken) { + _impl_.credential_specifier_.google_refresh_token_.Destroy(); clear_has_credential_specifier(); } } -inline const std::string& GrpcService_GoogleGrpc_CallCredentials::google_refresh_token() const { +inline const std::string& GrpcService_GoogleGrpc_CallCredentials::google_refresh_token() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) - if (has_google_refresh_token()) { - return credential_specifier_.google_refresh_token_.GetNoArena(); - } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return _internal_google_refresh_token(); } -inline void GrpcService_GoogleGrpc_CallCredentials::set_google_refresh_token(const std::string& value) { - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) - if (!has_google_refresh_token()) { +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials::set_google_refresh_token(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() != kGoogleRefreshToken) { clear_credential_specifier(); + set_has_google_refresh_token(); - credential_specifier_.google_refresh_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.credential_specifier_.google_refresh_token_.InitDefault(); } - credential_specifier_.google_refresh_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + _impl_.credential_specifier_.google_refresh_token_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) } -inline void GrpcService_GoogleGrpc_CallCredentials::set_google_refresh_token(std::string&& value) { - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) - if (!has_google_refresh_token()) { - clear_credential_specifier(); - set_has_google_refresh_token(); - credential_specifier_.google_refresh_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - credential_specifier_.google_refresh_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) +inline std::string* GrpcService_GoogleGrpc_CallCredentials::mutable_google_refresh_token() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_google_refresh_token(); + // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) + return _s; } -inline void GrpcService_GoogleGrpc_CallCredentials::set_google_refresh_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_google_refresh_token()) { - clear_credential_specifier(); - set_has_google_refresh_token(); - credential_specifier_.google_refresh_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline const std::string& GrpcService_GoogleGrpc_CallCredentials::_internal_google_refresh_token() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + if (credential_specifier_case() != kGoogleRefreshToken) { + return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); } - credential_specifier_.google_refresh_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) + return _impl_.credential_specifier_.google_refresh_token_.Get(); } -inline void GrpcService_GoogleGrpc_CallCredentials::set_google_refresh_token(const char* value, size_t size) { - if (!has_google_refresh_token()) { +inline void GrpcService_GoogleGrpc_CallCredentials::_internal_set_google_refresh_token(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() != kGoogleRefreshToken) { clear_credential_specifier(); + set_has_google_refresh_token(); - credential_specifier_.google_refresh_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.credential_specifier_.google_refresh_token_.InitDefault(); } - credential_specifier_.google_refresh_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) + _impl_.credential_specifier_.google_refresh_token_.Set(value, GetArena()); } -inline std::string* GrpcService_GoogleGrpc_CallCredentials::mutable_google_refresh_token() { - if (!has_google_refresh_token()) { +inline std::string* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_google_refresh_token() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() != kGoogleRefreshToken) { clear_credential_specifier(); + set_has_google_refresh_token(); - credential_specifier_.google_refresh_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.credential_specifier_.google_refresh_token_.InitDefault(); } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) - return credential_specifier_.google_refresh_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _impl_.credential_specifier_.google_refresh_token_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc_CallCredentials::release_google_refresh_token() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) - if (has_google_refresh_token()) { - clear_has_credential_specifier(); - return credential_specifier_.google_refresh_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } else { + if (credential_specifier_case() != kGoogleRefreshToken) { return nullptr; } + clear_has_credential_specifier(); + return _impl_.credential_specifier_.google_refresh_token_.Release(); } -inline void GrpcService_GoogleGrpc_CallCredentials::set_allocated_google_refresh_token(std::string* google_refresh_token) { +inline void GrpcService_GoogleGrpc_CallCredentials::set_allocated_google_refresh_token(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (has_credential_specifier()) { clear_credential_specifier(); } - if (google_refresh_token != nullptr) { + if (value != nullptr) { set_has_google_refresh_token(); - credential_specifier_.google_refresh_token_.UnsafeSetDefault(google_refresh_token); + _impl_.credential_specifier_.google_refresh_token_.InitAllocated(value, GetArena()); } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) } @@ -4338,174 +5483,318 @@ inline void GrpcService_GoogleGrpc_CallCredentials::set_allocated_google_refresh inline bool GrpcService_GoogleGrpc_CallCredentials::has_service_account_jwt_access() const { return credential_specifier_case() == kServiceAccountJwtAccess; } +inline bool GrpcService_GoogleGrpc_CallCredentials::_internal_has_service_account_jwt_access() const { + return credential_specifier_case() == kServiceAccountJwtAccess; +} inline void GrpcService_GoogleGrpc_CallCredentials::set_has_service_account_jwt_access() { - _oneof_case_[0] = kServiceAccountJwtAccess; + _impl_._oneof_case_[0] = kServiceAccountJwtAccess; } inline void GrpcService_GoogleGrpc_CallCredentials::clear_service_account_jwt_access() { - if (has_service_account_jwt_access()) { - delete credential_specifier_.service_account_jwt_access_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() == kServiceAccountJwtAccess) { + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.service_account_jwt_access_; + } clear_has_credential_specifier(); } } inline ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* GrpcService_GoogleGrpc_CallCredentials::release_service_account_jwt_access() { // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) - if (has_service_account_jwt_access()) { + if (credential_specifier_case() == kServiceAccountJwtAccess) { clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* temp = credential_specifier_.service_account_jwt_access_; - credential_specifier_.service_account_jwt_access_ = nullptr; + auto* temp = _impl_.credential_specifier_.service_account_jwt_access_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.credential_specifier_.service_account_jwt_access_ = nullptr; return temp; } else { return nullptr; } } -inline const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& GrpcService_GoogleGrpc_CallCredentials::service_account_jwt_access() const { +inline const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& GrpcService_GoogleGrpc_CallCredentials::_internal_service_account_jwt_access() const { + return credential_specifier_case() == kServiceAccountJwtAccess ? *_impl_.credential_specifier_.service_account_jwt_access_ : reinterpret_cast<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials&>(::_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_); +} +inline const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& GrpcService_GoogleGrpc_CallCredentials::service_account_jwt_access() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) - return has_service_account_jwt_access() - ? *credential_specifier_.service_account_jwt_access_ - : *reinterpret_cast< ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials*>(&::_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_); + return _internal_service_account_jwt_access(); +} +inline ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_release_service_account_jwt_access() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) + if (credential_specifier_case() == kServiceAccountJwtAccess) { + clear_has_credential_specifier(); + auto* temp = _impl_.credential_specifier_.service_account_jwt_access_; + _impl_.credential_specifier_.service_account_jwt_access_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_set_allocated_service_account_jwt_access(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_credential_specifier(); + if (value) { + set_has_service_account_jwt_access(); + _impl_.credential_specifier_.service_account_jwt_access_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) } -inline ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* GrpcService_GoogleGrpc_CallCredentials::mutable_service_account_jwt_access() { - if (!has_service_account_jwt_access()) { +inline ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_service_account_jwt_access() { + if (credential_specifier_case() != kServiceAccountJwtAccess) { clear_credential_specifier(); set_has_service_account_jwt_access(); - credential_specifier_.service_account_jwt_access_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials >( - GetArenaNoVirtual()); + _impl_.credential_specifier_.service_account_jwt_access_ = + ::google::protobuf::MessageLite::DefaultConstruct<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>(GetArena()); } + return _impl_.credential_specifier_.service_account_jwt_access_; +} +inline ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* GrpcService_GoogleGrpc_CallCredentials::mutable_service_account_jwt_access() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* _msg = _internal_mutable_service_account_jwt_access(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) - return credential_specifier_.service_account_jwt_access_; + return _msg; } // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; inline bool GrpcService_GoogleGrpc_CallCredentials::has_google_iam() const { return credential_specifier_case() == kGoogleIam; } +inline bool GrpcService_GoogleGrpc_CallCredentials::_internal_has_google_iam() const { + return credential_specifier_case() == kGoogleIam; +} inline void GrpcService_GoogleGrpc_CallCredentials::set_has_google_iam() { - _oneof_case_[0] = kGoogleIam; + _impl_._oneof_case_[0] = kGoogleIam; } inline void GrpcService_GoogleGrpc_CallCredentials::clear_google_iam() { - if (has_google_iam()) { - delete credential_specifier_.google_iam_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() == kGoogleIam) { + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.google_iam_; + } clear_has_credential_specifier(); } } inline ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* GrpcService_GoogleGrpc_CallCredentials::release_google_iam() { // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.google_iam) - if (has_google_iam()) { + if (credential_specifier_case() == kGoogleIam) { clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* temp = credential_specifier_.google_iam_; - credential_specifier_.google_iam_ = nullptr; + auto* temp = _impl_.credential_specifier_.google_iam_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.credential_specifier_.google_iam_ = nullptr; return temp; } else { return nullptr; } } -inline const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& GrpcService_GoogleGrpc_CallCredentials::google_iam() const { +inline const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& GrpcService_GoogleGrpc_CallCredentials::_internal_google_iam() const { + return credential_specifier_case() == kGoogleIam ? *_impl_.credential_specifier_.google_iam_ : reinterpret_cast<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials&>(::_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_); +} +inline const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& GrpcService_GoogleGrpc_CallCredentials::google_iam() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.google_iam) - return has_google_iam() - ? *credential_specifier_.google_iam_ - : *reinterpret_cast< ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials*>(&::_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_); + return _internal_google_iam(); } -inline ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* GrpcService_GoogleGrpc_CallCredentials::mutable_google_iam() { - if (!has_google_iam()) { +inline ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_release_google_iam() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.google_iam) + if (credential_specifier_case() == kGoogleIam) { + clear_has_credential_specifier(); + auto* temp = _impl_.credential_specifier_.google_iam_; + _impl_.credential_specifier_.google_iam_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_set_allocated_google_iam(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_credential_specifier(); + if (value) { + set_has_google_iam(); + _impl_.credential_specifier_.google_iam_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.google_iam) +} +inline ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_google_iam() { + if (credential_specifier_case() != kGoogleIam) { clear_credential_specifier(); set_has_google_iam(); - credential_specifier_.google_iam_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials >( - GetArenaNoVirtual()); + _impl_.credential_specifier_.google_iam_ = + ::google::protobuf::MessageLite::DefaultConstruct<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>(GetArena()); } + return _impl_.credential_specifier_.google_iam_; +} +inline ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* GrpcService_GoogleGrpc_CallCredentials::mutable_google_iam() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* _msg = _internal_mutable_google_iam(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.google_iam) - return credential_specifier_.google_iam_; + return _msg; } // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; inline bool GrpcService_GoogleGrpc_CallCredentials::has_from_plugin() const { return credential_specifier_case() == kFromPlugin; } +inline bool GrpcService_GoogleGrpc_CallCredentials::_internal_has_from_plugin() const { + return credential_specifier_case() == kFromPlugin; +} inline void GrpcService_GoogleGrpc_CallCredentials::set_has_from_plugin() { - _oneof_case_[0] = kFromPlugin; + _impl_._oneof_case_[0] = kFromPlugin; } inline void GrpcService_GoogleGrpc_CallCredentials::clear_from_plugin() { - if (has_from_plugin()) { - delete credential_specifier_.from_plugin_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() == kFromPlugin) { + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.from_plugin_; + } clear_has_credential_specifier(); } } inline ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* GrpcService_GoogleGrpc_CallCredentials::release_from_plugin() { // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.from_plugin) - if (has_from_plugin()) { + if (credential_specifier_case() == kFromPlugin) { clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* temp = credential_specifier_.from_plugin_; - credential_specifier_.from_plugin_ = nullptr; + auto* temp = _impl_.credential_specifier_.from_plugin_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.credential_specifier_.from_plugin_ = nullptr; return temp; } else { return nullptr; } } -inline const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& GrpcService_GoogleGrpc_CallCredentials::from_plugin() const { +inline const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& GrpcService_GoogleGrpc_CallCredentials::_internal_from_plugin() const { + return credential_specifier_case() == kFromPlugin ? *_impl_.credential_specifier_.from_plugin_ : reinterpret_cast<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin&>(::_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_); +} +inline const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& GrpcService_GoogleGrpc_CallCredentials::from_plugin() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.from_plugin) - return has_from_plugin() - ? *credential_specifier_.from_plugin_ - : *reinterpret_cast< ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin*>(&::_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_); + return _internal_from_plugin(); +} +inline ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_release_from_plugin() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.from_plugin) + if (credential_specifier_case() == kFromPlugin) { + clear_has_credential_specifier(); + auto* temp = _impl_.credential_specifier_.from_plugin_; + _impl_.credential_specifier_.from_plugin_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_set_allocated_from_plugin(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_credential_specifier(); + if (value) { + set_has_from_plugin(); + _impl_.credential_specifier_.from_plugin_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.from_plugin) } -inline ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* GrpcService_GoogleGrpc_CallCredentials::mutable_from_plugin() { - if (!has_from_plugin()) { +inline ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_from_plugin() { + if (credential_specifier_case() != kFromPlugin) { clear_credential_specifier(); set_has_from_plugin(); - credential_specifier_.from_plugin_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin >( - GetArenaNoVirtual()); + _impl_.credential_specifier_.from_plugin_ = + ::google::protobuf::MessageLite::DefaultConstruct<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>(GetArena()); } + return _impl_.credential_specifier_.from_plugin_; +} +inline ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* GrpcService_GoogleGrpc_CallCredentials::mutable_from_plugin() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* _msg = _internal_mutable_from_plugin(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.from_plugin) - return credential_specifier_.from_plugin_; + return _msg; } // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; inline bool GrpcService_GoogleGrpc_CallCredentials::has_sts_service() const { return credential_specifier_case() == kStsService; } +inline bool GrpcService_GoogleGrpc_CallCredentials::_internal_has_sts_service() const { + return credential_specifier_case() == kStsService; +} inline void GrpcService_GoogleGrpc_CallCredentials::set_has_sts_service() { - _oneof_case_[0] = kStsService; + _impl_._oneof_case_[0] = kStsService; } inline void GrpcService_GoogleGrpc_CallCredentials::clear_sts_service() { - if (has_sts_service()) { - delete credential_specifier_.sts_service_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (credential_specifier_case() == kStsService) { + if (GetArena() == nullptr) { + delete _impl_.credential_specifier_.sts_service_; + } clear_has_credential_specifier(); } } inline ::GrpcService_GoogleGrpc_CallCredentials_StsService* GrpcService_GoogleGrpc_CallCredentials::release_sts_service() { // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.sts_service) - if (has_sts_service()) { + if (credential_specifier_case() == kStsService) { clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_CallCredentials_StsService* temp = credential_specifier_.sts_service_; - credential_specifier_.sts_service_ = nullptr; + auto* temp = _impl_.credential_specifier_.sts_service_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.credential_specifier_.sts_service_ = nullptr; return temp; } else { return nullptr; } } -inline const ::GrpcService_GoogleGrpc_CallCredentials_StsService& GrpcService_GoogleGrpc_CallCredentials::sts_service() const { +inline const ::GrpcService_GoogleGrpc_CallCredentials_StsService& GrpcService_GoogleGrpc_CallCredentials::_internal_sts_service() const { + return credential_specifier_case() == kStsService ? *_impl_.credential_specifier_.sts_service_ : reinterpret_cast<::GrpcService_GoogleGrpc_CallCredentials_StsService&>(::_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_); +} +inline const ::GrpcService_GoogleGrpc_CallCredentials_StsService& GrpcService_GoogleGrpc_CallCredentials::sts_service() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.sts_service) - return has_sts_service() - ? *credential_specifier_.sts_service_ - : *reinterpret_cast< ::GrpcService_GoogleGrpc_CallCredentials_StsService*>(&::_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_); + return _internal_sts_service(); +} +inline ::GrpcService_GoogleGrpc_CallCredentials_StsService* GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_release_sts_service() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.sts_service) + if (credential_specifier_case() == kStsService) { + clear_has_credential_specifier(); + auto* temp = _impl_.credential_specifier_.sts_service_; + _impl_.credential_specifier_.sts_service_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline ::GrpcService_GoogleGrpc_CallCredentials_StsService* GrpcService_GoogleGrpc_CallCredentials::mutable_sts_service() { - if (!has_sts_service()) { +inline void GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_set_allocated_sts_service(::GrpcService_GoogleGrpc_CallCredentials_StsService* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_credential_specifier(); + if (value) { + set_has_sts_service(); + _impl_.credential_specifier_.sts_service_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.sts_service) +} +inline ::GrpcService_GoogleGrpc_CallCredentials_StsService* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_sts_service() { + if (credential_specifier_case() != kStsService) { clear_credential_specifier(); set_has_sts_service(); - credential_specifier_.sts_service_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_StsService >( - GetArenaNoVirtual()); + _impl_.credential_specifier_.sts_service_ = + ::google::protobuf::MessageLite::DefaultConstruct<::GrpcService_GoogleGrpc_CallCredentials_StsService>(GetArena()); } + return _impl_.credential_specifier_.sts_service_; +} +inline ::GrpcService_GoogleGrpc_CallCredentials_StsService* GrpcService_GoogleGrpc_CallCredentials::mutable_sts_service() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::GrpcService_GoogleGrpc_CallCredentials_StsService* _msg = _internal_mutable_sts_service(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.sts_service) - return credential_specifier_.sts_service_; + return _msg; } inline bool GrpcService_GoogleGrpc_CallCredentials::has_credential_specifier() const { return credential_specifier_case() != CREDENTIAL_SPECIFIER_NOT_SET; } inline void GrpcService_GoogleGrpc_CallCredentials::clear_has_credential_specifier() { - _oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; + _impl_._oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; } inline GrpcService_GoogleGrpc_CallCredentials::CredentialSpecifierCase GrpcService_GoogleGrpc_CallCredentials::credential_specifier_case() const { - return GrpcService_GoogleGrpc_CallCredentials::CredentialSpecifierCase(_oneof_case_[0]); + return GrpcService_GoogleGrpc_CallCredentials::CredentialSpecifierCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- @@ -4513,281 +5802,387 @@ inline GrpcService_GoogleGrpc_CallCredentials::CredentialSpecifierCase GrpcServi // string target_uri = 1; inline void GrpcService_GoogleGrpc::clear_target_uri() { - target_uri_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.target_uri_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc::target_uri() const { +inline const std::string& GrpcService_GoogleGrpc::target_uri() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.target_uri) - return target_uri_.GetNoArena(); + return _internal_target_uri(); } -inline void GrpcService_GoogleGrpc::set_target_uri(const std::string& value) { - - target_uri_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc::set_target_uri(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.target_uri_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.target_uri) } -inline void GrpcService_GoogleGrpc::set_target_uri(std::string&& value) { - - target_uri_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.target_uri) -} -inline void GrpcService_GoogleGrpc::set_target_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - target_uri_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.target_uri) -} -inline void GrpcService_GoogleGrpc::set_target_uri(const char* value, size_t size) { - - target_uri_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.target_uri) -} -inline std::string* GrpcService_GoogleGrpc::mutable_target_uri() { - +inline std::string* GrpcService_GoogleGrpc::mutable_target_uri() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_target_uri(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.target_uri) - return target_uri_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc::_internal_target_uri() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.target_uri_.Get(); +} +inline void GrpcService_GoogleGrpc::_internal_set_target_uri(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.target_uri_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc::_internal_mutable_target_uri() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.target_uri_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc::release_target_uri() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.target_uri) - - return target_uri_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc::set_allocated_target_uri(std::string* target_uri) { - if (target_uri != nullptr) { - - } else { - - } - target_uri_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), target_uri); + return _impl_.target_uri_.Release(); +} +inline void GrpcService_GoogleGrpc::set_allocated_target_uri(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.target_uri_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.target_uri_.IsDefault()) { + _impl_.target_uri_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.target_uri) } // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; inline bool GrpcService_GoogleGrpc::has_channel_credentials() const { - return this != internal_default_instance() && channel_credentials_ != nullptr; + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.channel_credentials_ != nullptr); + return value; } inline void GrpcService_GoogleGrpc::clear_channel_credentials() { - if (GetArenaNoVirtual() == nullptr && channel_credentials_ != nullptr) { - delete channel_credentials_; - } - channel_credentials_ = nullptr; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.channel_credentials_ != nullptr) _impl_.channel_credentials_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::GrpcService_GoogleGrpc_ChannelCredentials& GrpcService_GoogleGrpc::_internal_channel_credentials() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::GrpcService_GoogleGrpc_ChannelCredentials* p = _impl_.channel_credentials_; + return p != nullptr ? *p : reinterpret_cast(::_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_); } -inline const ::GrpcService_GoogleGrpc_ChannelCredentials& GrpcService_GoogleGrpc::channel_credentials() const { - const ::GrpcService_GoogleGrpc_ChannelCredentials* p = channel_credentials_; +inline const ::GrpcService_GoogleGrpc_ChannelCredentials& GrpcService_GoogleGrpc::channel_credentials() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.channel_credentials) - return p != nullptr ? *p : *reinterpret_cast( - &::_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_); + return _internal_channel_credentials(); +} +inline void GrpcService_GoogleGrpc::unsafe_arena_set_allocated_channel_credentials(::GrpcService_GoogleGrpc_ChannelCredentials* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.channel_credentials_); + } + _impl_.channel_credentials_ = reinterpret_cast<::GrpcService_GoogleGrpc_ChannelCredentials*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.channel_credentials) } inline ::GrpcService_GoogleGrpc_ChannelCredentials* GrpcService_GoogleGrpc::release_channel_credentials() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::GrpcService_GoogleGrpc_ChannelCredentials* released = _impl_.channel_credentials_; + _impl_.channel_credentials_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::GrpcService_GoogleGrpc_ChannelCredentials* GrpcService_GoogleGrpc::unsafe_arena_release_channel_credentials() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.channel_credentials) - - ::GrpcService_GoogleGrpc_ChannelCredentials* temp = channel_credentials_; - channel_credentials_ = nullptr; + + _impl_._has_bits_[0] &= ~0x00000001u; + ::GrpcService_GoogleGrpc_ChannelCredentials* temp = _impl_.channel_credentials_; + _impl_.channel_credentials_ = nullptr; return temp; } -inline ::GrpcService_GoogleGrpc_ChannelCredentials* GrpcService_GoogleGrpc::mutable_channel_credentials() { - - if (channel_credentials_ == nullptr) { - auto* p = CreateMaybeMessage<::GrpcService_GoogleGrpc_ChannelCredentials>(GetArenaNoVirtual()); - channel_credentials_ = p; +inline ::GrpcService_GoogleGrpc_ChannelCredentials* GrpcService_GoogleGrpc::_internal_mutable_channel_credentials() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.channel_credentials_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::GrpcService_GoogleGrpc_ChannelCredentials>(GetArena()); + _impl_.channel_credentials_ = reinterpret_cast<::GrpcService_GoogleGrpc_ChannelCredentials*>(p); } + return _impl_.channel_credentials_; +} +inline ::GrpcService_GoogleGrpc_ChannelCredentials* GrpcService_GoogleGrpc::mutable_channel_credentials() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; + ::GrpcService_GoogleGrpc_ChannelCredentials* _msg = _internal_mutable_channel_credentials(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.channel_credentials) - return channel_credentials_; + return _msg; } -inline void GrpcService_GoogleGrpc::set_allocated_channel_credentials(::GrpcService_GoogleGrpc_ChannelCredentials* channel_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); +inline void GrpcService_GoogleGrpc::set_allocated_channel_credentials(::GrpcService_GoogleGrpc_ChannelCredentials* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete channel_credentials_; + delete (_impl_.channel_credentials_); } - if (channel_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - channel_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, channel_credentials, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - channel_credentials_ = channel_credentials; + + _impl_.channel_credentials_ = reinterpret_cast<::GrpcService_GoogleGrpc_ChannelCredentials*>(value); // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.channel_credentials) } // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; +inline int GrpcService_GoogleGrpc::_internal_call_credentials_size() const { + return _internal_call_credentials().size(); +} inline int GrpcService_GoogleGrpc::call_credentials_size() const { - return call_credentials_.size(); + return _internal_call_credentials_size(); } inline void GrpcService_GoogleGrpc::clear_call_credentials() { - call_credentials_.Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.call_credentials_.Clear(); } -inline ::GrpcService_GoogleGrpc_CallCredentials* GrpcService_GoogleGrpc::mutable_call_credentials(int index) { +inline ::GrpcService_GoogleGrpc_CallCredentials* GrpcService_GoogleGrpc::mutable_call_credentials(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.call_credentials) - return call_credentials_.Mutable(index); + return _internal_mutable_call_credentials()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_GoogleGrpc_CallCredentials >* -GrpcService_GoogleGrpc::mutable_call_credentials() { +inline ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>* GrpcService_GoogleGrpc::mutable_call_credentials() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:GrpcService.GoogleGrpc.call_credentials) - return &call_credentials_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_call_credentials(); } -inline const ::GrpcService_GoogleGrpc_CallCredentials& GrpcService_GoogleGrpc::call_credentials(int index) const { +inline const ::GrpcService_GoogleGrpc_CallCredentials& GrpcService_GoogleGrpc::call_credentials(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.call_credentials) - return call_credentials_.Get(index); + return _internal_call_credentials().Get(index); } -inline ::GrpcService_GoogleGrpc_CallCredentials* GrpcService_GoogleGrpc::add_call_credentials() { +inline ::GrpcService_GoogleGrpc_CallCredentials* GrpcService_GoogleGrpc::add_call_credentials() ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::GrpcService_GoogleGrpc_CallCredentials* _add = _internal_mutable_call_credentials()->Add(); // @@protoc_insertion_point(field_add:GrpcService.GoogleGrpc.call_credentials) - return call_credentials_.Add(); + return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_GoogleGrpc_CallCredentials >& -GrpcService_GoogleGrpc::call_credentials() const { +inline const ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>& GrpcService_GoogleGrpc::call_credentials() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:GrpcService.GoogleGrpc.call_credentials) - return call_credentials_; + return _internal_call_credentials(); +} +inline const ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>& +GrpcService_GoogleGrpc::_internal_call_credentials() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.call_credentials_; +} +inline ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>* +GrpcService_GoogleGrpc::_internal_mutable_call_credentials() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.call_credentials_; } // string stat_prefix = 4; inline void GrpcService_GoogleGrpc::clear_stat_prefix() { - stat_prefix_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.stat_prefix_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc::stat_prefix() const { +inline const std::string& GrpcService_GoogleGrpc::stat_prefix() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.stat_prefix) - return stat_prefix_.GetNoArena(); + return _internal_stat_prefix(); } -inline void GrpcService_GoogleGrpc::set_stat_prefix(const std::string& value) { - - stat_prefix_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc::set_stat_prefix(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.stat_prefix_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.stat_prefix) } -inline void GrpcService_GoogleGrpc::set_stat_prefix(std::string&& value) { - - stat_prefix_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.stat_prefix) -} -inline void GrpcService_GoogleGrpc::set_stat_prefix(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - stat_prefix_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.stat_prefix) -} -inline void GrpcService_GoogleGrpc::set_stat_prefix(const char* value, size_t size) { - - stat_prefix_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.stat_prefix) -} -inline std::string* GrpcService_GoogleGrpc::mutable_stat_prefix() { - +inline std::string* GrpcService_GoogleGrpc::mutable_stat_prefix() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_stat_prefix(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.stat_prefix) - return stat_prefix_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc::_internal_stat_prefix() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.stat_prefix_.Get(); +} +inline void GrpcService_GoogleGrpc::_internal_set_stat_prefix(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.stat_prefix_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc::_internal_mutable_stat_prefix() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.stat_prefix_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc::release_stat_prefix() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.stat_prefix) - - return stat_prefix_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc::set_allocated_stat_prefix(std::string* stat_prefix) { - if (stat_prefix != nullptr) { - - } else { - - } - stat_prefix_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stat_prefix); + return _impl_.stat_prefix_.Release(); +} +inline void GrpcService_GoogleGrpc::set_allocated_stat_prefix(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.stat_prefix_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.stat_prefix_.IsDefault()) { + _impl_.stat_prefix_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.stat_prefix) } // string credentials_factory_name = 5; inline void GrpcService_GoogleGrpc::clear_credentials_factory_name() { - credentials_factory_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.credentials_factory_name_.ClearToEmpty(); } -inline const std::string& GrpcService_GoogleGrpc::credentials_factory_name() const { +inline const std::string& GrpcService_GoogleGrpc::credentials_factory_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.credentials_factory_name) - return credentials_factory_name_.GetNoArena(); + return _internal_credentials_factory_name(); } -inline void GrpcService_GoogleGrpc::set_credentials_factory_name(const std::string& value) { - - credentials_factory_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc::set_credentials_factory_name(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.credentials_factory_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.credentials_factory_name) } -inline void GrpcService_GoogleGrpc::set_credentials_factory_name(std::string&& value) { - - credentials_factory_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.credentials_factory_name) -} -inline void GrpcService_GoogleGrpc::set_credentials_factory_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - credentials_factory_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.credentials_factory_name) -} -inline void GrpcService_GoogleGrpc::set_credentials_factory_name(const char* value, size_t size) { - - credentials_factory_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.credentials_factory_name) -} -inline std::string* GrpcService_GoogleGrpc::mutable_credentials_factory_name() { - +inline std::string* GrpcService_GoogleGrpc::mutable_credentials_factory_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_credentials_factory_name(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.credentials_factory_name) - return credentials_factory_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_GoogleGrpc::_internal_credentials_factory_name() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.credentials_factory_name_.Get(); +} +inline void GrpcService_GoogleGrpc::_internal_set_credentials_factory_name(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.credentials_factory_name_.Set(value, GetArena()); +} +inline std::string* GrpcService_GoogleGrpc::_internal_mutable_credentials_factory_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.credentials_factory_name_.Mutable( GetArena()); } inline std::string* GrpcService_GoogleGrpc::release_credentials_factory_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.credentials_factory_name) - - return credentials_factory_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc::set_allocated_credentials_factory_name(std::string* credentials_factory_name) { - if (credentials_factory_name != nullptr) { - - } else { - - } - credentials_factory_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), credentials_factory_name); + return _impl_.credentials_factory_name_.Release(); +} +inline void GrpcService_GoogleGrpc::set_allocated_credentials_factory_name(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.credentials_factory_name_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.credentials_factory_name_.IsDefault()) { + _impl_.credentials_factory_name_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.credentials_factory_name) } // .google.protobuf.Struct config = 6; inline bool GrpcService_GoogleGrpc::has_config() const { - return this != internal_default_instance() && config_ != nullptr; + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.config_ != nullptr); + return value; +} +inline const ::google::protobuf::Struct& GrpcService_GoogleGrpc::_internal_config() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::google::protobuf::Struct* p = _impl_.config_; + return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GrpcService_GoogleGrpc::config() const { - const ::google::protobuf::Struct* p = config_; +inline const ::google::protobuf::Struct& GrpcService_GoogleGrpc::config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.config) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Struct_default_instance_); + return _internal_config(); +} +inline void GrpcService_GoogleGrpc::unsafe_arena_set_allocated_config(::google::protobuf::Struct* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); + } + _impl_.config_ = reinterpret_cast<::google::protobuf::Struct*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.config) } inline ::google::protobuf::Struct* GrpcService_GoogleGrpc::release_config() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000002u; + ::google::protobuf::Struct* released = _impl_.config_; + _impl_.config_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::google::protobuf::Struct* GrpcService_GoogleGrpc::unsafe_arena_release_config() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.config) - - ::google::protobuf::Struct* temp = config_; - config_ = nullptr; + + _impl_._has_bits_[0] &= ~0x00000002u; + ::google::protobuf::Struct* temp = _impl_.config_; + _impl_.config_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GrpcService_GoogleGrpc::mutable_config() { - - if (config_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual()); - config_ = p; +inline ::google::protobuf::Struct* GrpcService_GoogleGrpc::_internal_mutable_config() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.config_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::google::protobuf::Struct>(GetArena()); + _impl_.config_ = reinterpret_cast<::google::protobuf::Struct*>(p); } + return _impl_.config_; +} +inline ::google::protobuf::Struct* GrpcService_GoogleGrpc::mutable_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; + ::google::protobuf::Struct* _msg = _internal_mutable_config(); // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.config) - return config_; + return _msg; } -inline void GrpcService_GoogleGrpc::set_allocated_config(::google::protobuf::Struct* config) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); +inline void GrpcService_GoogleGrpc::set_allocated_config(::google::protobuf::Struct* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(config_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); } - if (config) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config)->GetArena(); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, config, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000002u; } else { - + _impl_._has_bits_[0] &= ~0x00000002u; } - config_ = config; + + _impl_.config_ = reinterpret_cast<::google::protobuf::Struct*>(value); // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.config) } @@ -4797,103 +6192,101 @@ inline void GrpcService_GoogleGrpc::set_allocated_config(::google::protobuf::Str // string key = 1; inline void GrpcService_HeaderValue::clear_key() { - key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.key_.ClearToEmpty(); } -inline const std::string& GrpcService_HeaderValue::key() const { +inline const std::string& GrpcService_HeaderValue::key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.HeaderValue.key) - return key_.GetNoArena(); + return _internal_key(); } -inline void GrpcService_HeaderValue::set_key(const std::string& value) { - - key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_HeaderValue::set_key(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.key_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.HeaderValue.key) } -inline void GrpcService_HeaderValue::set_key(std::string&& value) { - - key_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.HeaderValue.key) -} -inline void GrpcService_HeaderValue::set_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.HeaderValue.key) -} -inline void GrpcService_HeaderValue::set_key(const char* value, size_t size) { - - key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.HeaderValue.key) -} -inline std::string* GrpcService_HeaderValue::mutable_key() { - +inline std::string* GrpcService_HeaderValue::mutable_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_key(); // @@protoc_insertion_point(field_mutable:GrpcService.HeaderValue.key) - return key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_HeaderValue::_internal_key() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.key_.Get(); +} +inline void GrpcService_HeaderValue::_internal_set_key(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.key_.Set(value, GetArena()); +} +inline std::string* GrpcService_HeaderValue::_internal_mutable_key() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.key_.Mutable( GetArena()); } inline std::string* GrpcService_HeaderValue::release_key() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.HeaderValue.key) - - return key_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_HeaderValue::set_allocated_key(std::string* key) { - if (key != nullptr) { - - } else { - - } - key_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key); + return _impl_.key_.Release(); +} +inline void GrpcService_HeaderValue::set_allocated_key(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.key_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.key_.IsDefault()) { + _impl_.key_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.HeaderValue.key) } // string value = 2; inline void GrpcService_HeaderValue::clear_value() { - value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.value_.ClearToEmpty(); } -inline const std::string& GrpcService_HeaderValue::value() const { +inline const std::string& GrpcService_HeaderValue::value() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.HeaderValue.value) - return value_.GetNoArena(); + return _internal_value(); } -inline void GrpcService_HeaderValue::set_value(const std::string& value) { - - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +template +inline PROTOBUF_ALWAYS_INLINE void GrpcService_HeaderValue::set_value(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.value_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:GrpcService.HeaderValue.value) } -inline void GrpcService_HeaderValue::set_value(std::string&& value) { - - value_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.HeaderValue.value) -} -inline void GrpcService_HeaderValue::set_value(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.HeaderValue.value) -} -inline void GrpcService_HeaderValue::set_value(const char* value, size_t size) { - - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.HeaderValue.value) -} -inline std::string* GrpcService_HeaderValue::mutable_value() { - +inline std::string* GrpcService_HeaderValue::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_value(); // @@protoc_insertion_point(field_mutable:GrpcService.HeaderValue.value) - return value_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _s; +} +inline const std::string& GrpcService_HeaderValue::_internal_value() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.value_.Get(); +} +inline void GrpcService_HeaderValue::_internal_set_value(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.value_.Set(value, GetArena()); +} +inline std::string* GrpcService_HeaderValue::_internal_mutable_value() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.value_.Mutable( GetArena()); } inline std::string* GrpcService_HeaderValue::release_value() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:GrpcService.HeaderValue.value) - - return value_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return _impl_.value_.Release(); } inline void GrpcService_HeaderValue::set_allocated_value(std::string* value) { - if (value != nullptr) { - - } else { - - } - value_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.value_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.value_.IsDefault()) { + _impl_.value_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:GrpcService.HeaderValue.value) } @@ -4905,161 +6298,223 @@ inline void GrpcService_HeaderValue::set_allocated_value(std::string* value) { inline bool GrpcService::has_envoy_grpc() const { return target_specifier_case() == kEnvoyGrpc; } +inline bool GrpcService::_internal_has_envoy_grpc() const { + return target_specifier_case() == kEnvoyGrpc; +} inline void GrpcService::set_has_envoy_grpc() { - _oneof_case_[0] = kEnvoyGrpc; + _impl_._oneof_case_[0] = kEnvoyGrpc; } inline void GrpcService::clear_envoy_grpc() { - if (has_envoy_grpc()) { - delete target_specifier_.envoy_grpc_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (target_specifier_case() == kEnvoyGrpc) { + if (GetArena() == nullptr) { + delete _impl_.target_specifier_.envoy_grpc_; + } clear_has_target_specifier(); } } inline ::GrpcService_EnvoyGrpc* GrpcService::release_envoy_grpc() { // @@protoc_insertion_point(field_release:GrpcService.envoy_grpc) - if (has_envoy_grpc()) { + if (target_specifier_case() == kEnvoyGrpc) { clear_has_target_specifier(); - ::GrpcService_EnvoyGrpc* temp = target_specifier_.envoy_grpc_; - target_specifier_.envoy_grpc_ = nullptr; + auto* temp = _impl_.target_specifier_.envoy_grpc_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.target_specifier_.envoy_grpc_ = nullptr; return temp; } else { return nullptr; } } -inline const ::GrpcService_EnvoyGrpc& GrpcService::envoy_grpc() const { +inline const ::GrpcService_EnvoyGrpc& GrpcService::_internal_envoy_grpc() const { + return target_specifier_case() == kEnvoyGrpc ? *_impl_.target_specifier_.envoy_grpc_ : reinterpret_cast<::GrpcService_EnvoyGrpc&>(::_GrpcService_EnvoyGrpc_default_instance_); +} +inline const ::GrpcService_EnvoyGrpc& GrpcService::envoy_grpc() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.envoy_grpc) - return has_envoy_grpc() - ? *target_specifier_.envoy_grpc_ - : *reinterpret_cast< ::GrpcService_EnvoyGrpc*>(&::_GrpcService_EnvoyGrpc_default_instance_); + return _internal_envoy_grpc(); +} +inline ::GrpcService_EnvoyGrpc* GrpcService::unsafe_arena_release_envoy_grpc() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.envoy_grpc) + if (target_specifier_case() == kEnvoyGrpc) { + clear_has_target_specifier(); + auto* temp = _impl_.target_specifier_.envoy_grpc_; + _impl_.target_specifier_.envoy_grpc_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void GrpcService::unsafe_arena_set_allocated_envoy_grpc(::GrpcService_EnvoyGrpc* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_target_specifier(); + if (value) { + set_has_envoy_grpc(); + _impl_.target_specifier_.envoy_grpc_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.envoy_grpc) } -inline ::GrpcService_EnvoyGrpc* GrpcService::mutable_envoy_grpc() { - if (!has_envoy_grpc()) { +inline ::GrpcService_EnvoyGrpc* GrpcService::_internal_mutable_envoy_grpc() { + if (target_specifier_case() != kEnvoyGrpc) { clear_target_specifier(); set_has_envoy_grpc(); - target_specifier_.envoy_grpc_ = CreateMaybeMessage< ::GrpcService_EnvoyGrpc >( - GetArenaNoVirtual()); + _impl_.target_specifier_.envoy_grpc_ = + ::google::protobuf::MessageLite::DefaultConstruct<::GrpcService_EnvoyGrpc>(GetArena()); } + return _impl_.target_specifier_.envoy_grpc_; +} +inline ::GrpcService_EnvoyGrpc* GrpcService::mutable_envoy_grpc() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::GrpcService_EnvoyGrpc* _msg = _internal_mutable_envoy_grpc(); // @@protoc_insertion_point(field_mutable:GrpcService.envoy_grpc) - return target_specifier_.envoy_grpc_; + return _msg; } // .GrpcService.GoogleGrpc google_grpc = 2; inline bool GrpcService::has_google_grpc() const { return target_specifier_case() == kGoogleGrpc; } +inline bool GrpcService::_internal_has_google_grpc() const { + return target_specifier_case() == kGoogleGrpc; +} inline void GrpcService::set_has_google_grpc() { - _oneof_case_[0] = kGoogleGrpc; + _impl_._oneof_case_[0] = kGoogleGrpc; } inline void GrpcService::clear_google_grpc() { - if (has_google_grpc()) { - delete target_specifier_.google_grpc_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (target_specifier_case() == kGoogleGrpc) { + if (GetArena() == nullptr) { + delete _impl_.target_specifier_.google_grpc_; + } clear_has_target_specifier(); } } inline ::GrpcService_GoogleGrpc* GrpcService::release_google_grpc() { // @@protoc_insertion_point(field_release:GrpcService.google_grpc) - if (has_google_grpc()) { + if (target_specifier_case() == kGoogleGrpc) { clear_has_target_specifier(); - ::GrpcService_GoogleGrpc* temp = target_specifier_.google_grpc_; - target_specifier_.google_grpc_ = nullptr; + auto* temp = _impl_.target_specifier_.google_grpc_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.target_specifier_.google_grpc_ = nullptr; return temp; } else { return nullptr; } } -inline const ::GrpcService_GoogleGrpc& GrpcService::google_grpc() const { +inline const ::GrpcService_GoogleGrpc& GrpcService::_internal_google_grpc() const { + return target_specifier_case() == kGoogleGrpc ? *_impl_.target_specifier_.google_grpc_ : reinterpret_cast<::GrpcService_GoogleGrpc&>(::_GrpcService_GoogleGrpc_default_instance_); +} +inline const ::GrpcService_GoogleGrpc& GrpcService::google_grpc() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.google_grpc) - return has_google_grpc() - ? *target_specifier_.google_grpc_ - : *reinterpret_cast< ::GrpcService_GoogleGrpc*>(&::_GrpcService_GoogleGrpc_default_instance_); + return _internal_google_grpc(); +} +inline ::GrpcService_GoogleGrpc* GrpcService::unsafe_arena_release_google_grpc() { + // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.google_grpc) + if (target_specifier_case() == kGoogleGrpc) { + clear_has_target_specifier(); + auto* temp = _impl_.target_specifier_.google_grpc_; + _impl_.target_specifier_.google_grpc_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void GrpcService::unsafe_arena_set_allocated_google_grpc(::GrpcService_GoogleGrpc* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_target_specifier(); + if (value) { + set_has_google_grpc(); + _impl_.target_specifier_.google_grpc_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.google_grpc) } -inline ::GrpcService_GoogleGrpc* GrpcService::mutable_google_grpc() { - if (!has_google_grpc()) { +inline ::GrpcService_GoogleGrpc* GrpcService::_internal_mutable_google_grpc() { + if (target_specifier_case() != kGoogleGrpc) { clear_target_specifier(); set_has_google_grpc(); - target_specifier_.google_grpc_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc >( - GetArenaNoVirtual()); + _impl_.target_specifier_.google_grpc_ = + ::google::protobuf::MessageLite::DefaultConstruct<::GrpcService_GoogleGrpc>(GetArena()); } + return _impl_.target_specifier_.google_grpc_; +} +inline ::GrpcService_GoogleGrpc* GrpcService::mutable_google_grpc() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::GrpcService_GoogleGrpc* _msg = _internal_mutable_google_grpc(); // @@protoc_insertion_point(field_mutable:GrpcService.google_grpc) - return target_specifier_.google_grpc_; + return _msg; } // repeated .GrpcService.HeaderValue initial_metadata = 5; +inline int GrpcService::_internal_initial_metadata_size() const { + return _internal_initial_metadata().size(); +} inline int GrpcService::initial_metadata_size() const { - return initial_metadata_.size(); + return _internal_initial_metadata_size(); } inline void GrpcService::clear_initial_metadata() { - initial_metadata_.Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.initial_metadata_.Clear(); } -inline ::GrpcService_HeaderValue* GrpcService::mutable_initial_metadata(int index) { +inline ::GrpcService_HeaderValue* GrpcService::mutable_initial_metadata(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:GrpcService.initial_metadata) - return initial_metadata_.Mutable(index); + return _internal_mutable_initial_metadata()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_HeaderValue >* -GrpcService::mutable_initial_metadata() { +inline ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>* GrpcService::mutable_initial_metadata() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:GrpcService.initial_metadata) - return &initial_metadata_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_initial_metadata(); } -inline const ::GrpcService_HeaderValue& GrpcService::initial_metadata(int index) const { +inline const ::GrpcService_HeaderValue& GrpcService::initial_metadata(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:GrpcService.initial_metadata) - return initial_metadata_.Get(index); + return _internal_initial_metadata().Get(index); } -inline ::GrpcService_HeaderValue* GrpcService::add_initial_metadata() { +inline ::GrpcService_HeaderValue* GrpcService::add_initial_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::GrpcService_HeaderValue* _add = _internal_mutable_initial_metadata()->Add(); // @@protoc_insertion_point(field_add:GrpcService.initial_metadata) - return initial_metadata_.Add(); + return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_HeaderValue >& -GrpcService::initial_metadata() const { +inline const ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>& GrpcService::initial_metadata() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:GrpcService.initial_metadata) - return initial_metadata_; + return _internal_initial_metadata(); +} +inline const ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>& +GrpcService::_internal_initial_metadata() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.initial_metadata_; +} +inline ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>* +GrpcService::_internal_mutable_initial_metadata() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.initial_metadata_; } inline bool GrpcService::has_target_specifier() const { return target_specifier_case() != TARGET_SPECIFIER_NOT_SET; } inline void GrpcService::clear_has_target_specifier() { - _oneof_case_[0] = TARGET_SPECIFIER_NOT_SET; + _impl_._oneof_case_[0] = TARGET_SPECIFIER_NOT_SET; } inline GrpcService::TargetSpecifierCase GrpcService::target_specifier_case() const { - return GrpcService::TargetSpecifierCase(_oneof_case_[0]); + return GrpcService::TargetSpecifierCase(_impl_._oneof_case_[0]); } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proxy_5fwasm_5fintrinsics_5flite_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // GOOGLE_PROTOBUF_INCLUDED_proxy_5fwasm_5fintrinsics_5flite_2eproto_2epb_2eh diff --git a/sdk_container.sh b/sdk_container.sh index 2b4885f..e323d09 100755 --- a/sdk_container.sh +++ b/sdk_container.sh @@ -22,7 +22,7 @@ apt-get update apt-get upgrade -y apt-get autoremove -y apt-get clean -apt-get install -y --no-install-recommends ca-certificates git autoconf autotools-dev automake libtool cmake python-is-python3 zlib1g-dev make xz-utils libzstd-dev +apt-get install -y --no-install-recommends ca-certificates git autoconf autotools-dev automake libtool cmake python-is-python3 zlib1g-dev make xz-utils libzstd-dev pkg-config # The specific version of GCC does not actually matter as long as it's confirmed to work. # That's why we explicitly pin gcc version (in this case to gcc 13) - it's the version @@ -32,56 +32,47 @@ export CC=gcc-13 export CXX=g++-13 export CPP=cpp-13 -NUM_CPUS=$(nproc) -JOBS=$((NUM_CPUS>1 ? NUM_CPUS-1 : NUM_CPUS)) - # get $HOME cd -# specific version of protobufs to match the pre-compiled support libraries -git clone https://github.com/protocolbuffers/protobuf -cd protobuf -git checkout v3.9.1 -git submodule update --init --recursive -./autogen.sh -./configure -make -j $JOBS -make check -make install -cd -rm -rf protobuf - -# This makes sure that installed dynamic libraries are visible to the dynamic -# linker, because it seems like make install does not take care of that -ldconfig - -# emscripten +# install emscripten git clone https://github.com/emscripten-core/emsdk.git cd emsdk git checkout 3.1.67 ./emsdk install --shallow 3.1.67 ./emsdk activate 3.1.67 -source ./emsdk_env.sh -cd +cd .. -git clone https://github.com/protocolbuffers/protobuf protobuf-wasm -cd protobuf-wasm -git checkout v3.9.1 +# set up build env +source emsdk/emsdk_env.sh +CXXFLAGS="--std=c++17 -O3 -flto -DSTANDALONE_WASM" +NUM_CPUS=$(nproc) +JOBS=$((NUM_CPUS>1 ? NUM_CPUS-1 : NUM_CPUS)) + +# protobuf (optional, includes abseil) +git clone https://github.com/protocolbuffers/protobuf +cd protobuf +git checkout v26.1 git submodule update --init --recursive -./autogen.sh -emconfigure ./configure --disable-shared CXXFLAGS="-O3 -flto" +emcmake cmake -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_FLAGS="$CXXFLAGS" -Dprotobuf_BUILD_TESTS=OFF "." emmake make -j $JOBS -cd +emmake make install +cd .. -cp protobuf-wasm/src/.libs/libprotobuf-lite.a /sdk/libprotobuf-lite.a -cp protobuf-wasm/src/.libs/libprotobuf.a /sdk/libprotobuf.a -rm -rf protobuf-wasm +# abseil (optional, and already included in protobuf) +#git clone https://github.com/abseil/abseil-cpp +#cd abseil-cpp +#git checkout 20240722.0 +#emcmake cmake -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_FLAGS="$CXXFLAGS" "." +#emmake make -j $JOBS +#emmake make install +#cd .. -# abseil (optional) -git clone https://github.com/abseil/abseil-cpp -cd abseil-cpp -git checkout 4447c7562e3bc702ade25105912dce503f0c4010 -b lts20240722 # Abseil LTS release 20240722.0 -emcmake cmake -DCMAKE_CXX_STANDARD=17 "." +# re2 (optional, depends on installed absl) +git clone https://github.com/google/re2 +cd re2 +git checkout 2023-07-01 +emcmake cmake -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_FLAGS="$CXXFLAGS" "." emmake make -j $JOBS -cd - +emmake make install +cd .. diff --git a/struct_lite.pb.cc b/struct_lite.pb.cc index f1051d1..caba06f 100644 --- a/struct_lite.pb.cc +++ b/struct_lite.pb.cc @@ -1,3 +1,4 @@ +// Copyright 2016-2019 Envoy Project Authors // Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -14,392 +15,336 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: struct_lite.proto +// Protobuf C++ Version: 5.26.1 #include "struct_lite.pb.h" #include - -#include -#include -#include -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/wire_format_lite.h" +#include "google/protobuf/io/zero_copy_stream_impl_lite.h" +#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_struct_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ListValue_struct_5flite_2eproto; + +// Must be included last. +#include "google/protobuf/port_def.inc" +PROTOBUF_PRAGMA_INIT_SEG +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace google { namespace protobuf { -class Struct_FieldsEntry_DoNotUseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Struct_FieldsEntry_DoNotUse_default_instance_; -class StructDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Struct_default_instance_; -class ValueDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; - int null_value_; - double number_value_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_value_; - bool bool_value_; - const ::google::protobuf::Struct* struct_value_; - const ::google::protobuf::ListValue* list_value_; -} _Value_default_instance_; -class ListValueDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ListValue_default_instance_; -} // namespace protobuf -} // namespace google -static void InitDefaultsscc_info_ListValue_struct_5flite_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - { - void* ptr = &::google::protobuf::_Struct_FieldsEntry_DoNotUse_default_instance_; - new (ptr) ::google::protobuf::Struct_FieldsEntry_DoNotUse(); - } - { - void* ptr = &::google::protobuf::_Struct_default_instance_; - new (ptr) ::google::protobuf::Struct(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - { - void* ptr = &::google::protobuf::_Value_default_instance_; - new (ptr) ::google::protobuf::Value(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - { - void* ptr = &::google::protobuf::_ListValue_default_instance_; - new (ptr) ::google::protobuf::ListValue(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::google::protobuf::Struct_FieldsEntry_DoNotUse::InitAsDefaultInstance(); - ::google::protobuf::Struct::InitAsDefaultInstance(); - ::google::protobuf::Value::InitAsDefaultInstance(); - ::google::protobuf::ListValue::InitAsDefaultInstance(); -} +inline constexpr ListValue::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : values_{}, + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR ListValue::ListValue(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct ListValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ListValueDefaultTypeInternal() {} + union { + ListValue _instance; + }; +}; -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ListValue_struct_5flite_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_ListValue_struct_5flite_2eproto}, {}}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListValueDefaultTypeInternal _ListValue_default_instance_; + +inline constexpr Struct::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : fields_{}, + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR Struct::Struct(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct StructDefaultTypeInternal { + PROTOBUF_CONSTEXPR StructDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~StructDefaultTypeInternal() {} + union { + Struct _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructDefaultTypeInternal _Struct_default_instance_; + +inline constexpr Value::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : kind_{}, + _cached_size_{0}, + _oneof_case_{} {} + +template +PROTOBUF_CONSTEXPR Value::Value(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct ValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR ValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ValueDefaultTypeInternal() {} + union { + Value _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValueDefaultTypeInternal _Value_default_instance_; +} // namespace protobuf +} // namespace google namespace google { namespace protobuf { +PROTOBUF_CONSTINIT const uint32_t NullValue_internal_data_[] = { + 65536u, 0u, }; bool NullValue_IsValid(int value) { - switch (value) { - case 0: - return true; - default: - return false; - } + return 0 <= value && value <= 0; } +static ::google::protobuf::internal::ExplicitlyConstructed + NullValue_strings[1] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed NullValue_strings[1] = {}; - -static const char NullValue_names[] = - "NULL_VALUE"; +static const char NullValue_names[] = { + "NULL_VALUE" +}; -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry NullValue_entries[] = { - { {NullValue_names + 0, 10}, 0 }, +static const ::google::protobuf::internal::EnumEntry NullValue_entries[] = + { + {{&NullValue_names[0], 10}, 0}, }; static const int NullValue_entries_by_number[] = { - 0, // 0 -> NULL_VALUE + 0, // 0 -> NULL_VALUE }; -const std::string& NullValue_Name( - NullValue value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - NullValue_entries, - NullValue_entries_by_number, +const std::string& NullValue_Name(NullValue value) { + static const bool kDummy = + ::google::protobuf::internal::InitializeEnumStrings( + NullValue_entries, NullValue_entries_by_number, 1, NullValue_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - NullValue_entries, - NullValue_entries_by_number, - 1, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - NullValue_strings[idx].get(); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName( + NullValue_entries, NullValue_entries_by_number, 1, + value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() + : NullValue_strings[idx].get(); } -bool NullValue_Parse( - const std::string& name, NullValue* value) { + +bool NullValue_Parse(absl::string_view name, NullValue* value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( NullValue_entries, 1, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } - // =================================================================== -Struct_FieldsEntry_DoNotUse::Struct_FieldsEntry_DoNotUse() {} -Struct_FieldsEntry_DoNotUse::Struct_FieldsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void Struct_FieldsEntry_DoNotUse::MergeFrom(const Struct_FieldsEntry_DoNotUse& other) { - MergeFromInternal(other); -} - // =================================================================== -void Struct::InitAsDefaultInstance() { -} class Struct::_Internal { public: }; -Struct::Struct() - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:google.protobuf.Struct) -} -Struct::Struct(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _internal_metadata_(arena), - fields_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +Struct::Struct(::google::protobuf::Arena* arena) + : ::google::protobuf::MessageLite(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.Struct) } -Struct::Struct(const Struct& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - fields_.MergeFrom(from.fields_); +inline PROTOBUF_NDEBUG_INLINE Struct::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : fields_{visibility, arena, from.fields_}, + _cached_size_{0} {} + +Struct::Struct( + ::google::protobuf::Arena* arena, + const Struct& from) + : ::google::protobuf::MessageLite(arena) { + Struct* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + // @@protoc_insertion_point(copy_constructor:google.protobuf.Struct) } +inline PROTOBUF_NDEBUG_INLINE Struct::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : fields_{visibility, arena}, + _cached_size_{0} {} -void Struct::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListValue_struct_5flite_2eproto.base); +inline void Struct::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - Struct::~Struct() { // @@protoc_insertion_point(destructor:google.protobuf.Struct) + _internal_metadata_.Delete(); SharedDtor(); } - -void Struct::SharedDtor() { - GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); +inline void Struct::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void Struct::ArenaDtor(void* object) { - Struct* _this = reinterpret_cast< Struct* >(object); - (void)_this; -} -void Struct::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Struct::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Struct& Struct::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListValue_struct_5flite_2eproto.base); - return *internal_default_instance(); -} +const ::google::protobuf::MessageLite::ClassData* +Struct::GetClassData() const { + struct ClassData_ { + ::google::protobuf::MessageLite::ClassData header; + char type_name[23]; + }; + PROTOBUF_CONSTINIT static const ClassData_ _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(Struct, _impl_._cached_size_), + true, + }, + "google.protobuf.Struct", + }; -void Struct::Clear() { + return &_data_.header; +} +PROTOBUF_NOINLINE void Struct::Clear() { // @@protoc_insertion_point(message_clear_start:google.protobuf.Struct) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - fields_.Clear(); - _internal_metadata_.Clear(); + _impl_.fields_.Clear(); + _internal_metadata_.Clear(); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Struct::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // map fields = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&fields_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: +const char* Struct::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ } -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Struct::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:google.protobuf.Struct) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // map fields = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - Struct_FieldsEntry_DoNotUse::Parser< ::PROTOBUF_NAMESPACE_ID::internal::MapFieldLite< - Struct_FieldsEntry_DoNotUse, - std::string, ::google::protobuf::Value, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE, - 0 >, - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::protobuf::Value > > parser(&fields_); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "google.protobuf.Struct.FieldsEntry.key")); - } else { - goto handle_unusual; - } - break; - } - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:google.protobuf.Struct) - return true; -failure: - // @@protoc_insertion_point(parse_failure:google.protobuf.Struct) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void Struct::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:google.protobuf.Struct) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 2, 37, 2> Struct::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_Struct_default_instance_._instance, + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::google::protobuf::Struct>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // map fields = 1; + {PROTOBUF_FIELD_OFFSET(Struct, _impl_.fields_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, {{ + {::_pbi::TcParser::GetMapAuxInfo< + decltype(Struct()._impl_.fields_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::CreateInArenaStorageCb<::google::protobuf::Value>}, + }}, {{ + "\26\6\0\0\0\0\0\0" + "google.protobuf.Struct" + "fields" + }}, +}; + +::uint8_t* Struct::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Struct) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; // map fields = 1; - if (!this->fields().empty()) { - typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::protobuf::Value >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "google.protobuf.Struct.FieldsEntry.key"); - } - }; - - if (output->IsSerializationDeterministic() && - this->fields().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->fields().size()]); - typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::protobuf::Value >::size_type size_type; - size_type n = 0; - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::protobuf::Value >::const_iterator - it = this->fields().begin(); - it != this->fields().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - for (size_type i = 0; i < n; i++) { - Struct_FieldsEntry_DoNotUse::Funcs::SerializeToCodedStream(1, items[static_cast(i)]->first, items[static_cast(i)]->second, output); - Utf8Check::Check(&(*items[static_cast(i)])); + if (!_internal_fields().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = _internal_fields(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 1, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Struct.fields"); } } else { - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::protobuf::Value >::const_iterator - it = this->fields().begin(); - it != this->fields().end(); ++it) { - Struct_FieldsEntry_DoNotUse::Funcs::SerializeToCodedStream(1, it->first, it->second, output); - Utf8Check::Check(&(*it)); + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 1, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Struct.fields"); } } } - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:google.protobuf.Struct) + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Struct) + return target; } -size_t Struct::ByteSizeLong() const { +::size_t Struct::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Struct) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // map fields = 1; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->fields_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::protobuf::Value >::const_iterator - it = this->fields().begin(); - it != this->fields().end(); ++it) { - total_size += Struct_FieldsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_fields_size()); + for (const auto& entry : _internal_fields()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size(); + } + _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void Struct::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::_pbi::DownCast( &from)); } void Struct::MergeFrom(const Struct& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Struct) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + Struct* const _this = this; + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Struct) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - fields_.MergeFrom(from.fields_); + _this->_impl_.fields_.MergeFrom(from._impl_.fields_); + _this->_internal_metadata_.MergeFrom(from._internal_metadata_); } void Struct::CopyFrom(const Struct& from) { @@ -409,152 +354,122 @@ void Struct::CopyFrom(const Struct& from) { MergeFrom(from); } -bool Struct::IsInitialized() const { +PROTOBUF_NOINLINE bool Struct::IsInitialized() const { return true; } -void Struct::InternalSwap(Struct* other) { +void Struct::InternalSwap(Struct* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - fields_.Swap(&other->fields_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.fields_.InternalSwap(&other->_impl_.fields_); } -std::string Struct::GetTypeName() const { - return "google.protobuf.Struct"; -} - - // =================================================================== -void Value::InitAsDefaultInstance() { -} class Value::_Internal { public: - static const ::google::protobuf::Struct& struct_value(const Value* msg); - static const ::google::protobuf::ListValue& list_value(const Value* msg); + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::google::protobuf::Value, _impl_._oneof_case_); }; -const ::google::protobuf::Struct& -Value::_Internal::struct_value(const Value* msg) { - return *msg->kind_.struct_value_; -} -const ::google::protobuf::ListValue& -Value::_Internal::list_value(const Value* msg) { - return *msg->kind_.list_value_; -} void Value::set_allocated_struct_value(::google::protobuf::Struct* struct_value) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_kind(); if (struct_value) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(struct_value); + ::google::protobuf::Arena* submessage_arena = struct_value->GetArena(); if (message_arena != submessage_arena) { - struct_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, struct_value, submessage_arena); + struct_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, struct_value, submessage_arena); } set_has_struct_value(); - kind_.struct_value_ = struct_value; + _impl_.kind_.struct_value_ = struct_value; } // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.struct_value) } void Value::set_allocated_list_value(::google::protobuf::ListValue* list_value) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_kind(); if (list_value) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(list_value); + ::google::protobuf::Arena* submessage_arena = list_value->GetArena(); if (message_arena != submessage_arena) { - list_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, list_value, submessage_arena); + list_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, list_value, submessage_arena); } set_has_list_value(); - kind_.list_value_ = list_value; + _impl_.kind_.list_value_ = list_value; } // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.list_value) } -Value::Value() - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:google.protobuf.Value) -} -Value::Value(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _internal_metadata_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +Value::Value(::google::protobuf::Arena* arena) + : ::google::protobuf::MessageLite(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.Value) } -Value::Value(const Value& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_kind(); - switch (from.kind_case()) { - case kNullValue: { - set_null_value(from.null_value()); - break; - } - case kNumberValue: { - set_number_value(from.number_value()); - break; - } - case kStringValue: { - set_string_value(from.string_value()); - break; - } - case kBoolValue: { - set_bool_value(from.bool_value()); - break; - } - case kStructValue: { - mutable_struct_value()->::google::protobuf::Struct::MergeFrom(from.struct_value()); - break; - } - case kListValue: { - mutable_list_value()->::google::protobuf::ListValue::MergeFrom(from.list_value()); - break; - } - case KIND_NOT_SET: { +inline PROTOBUF_NDEBUG_INLINE Value::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : kind_{}, + _cached_size_{0}, + _oneof_case_{from._oneof_case_[0]} {} + +Value::Value( + ::google::protobuf::Arena* arena, + const Value& from) + : ::google::protobuf::MessageLite(arena) { + Value* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + switch (kind_case()) { + case KIND_NOT_SET: break; - } + case kNullValue: + _impl_.kind_.null_value_ = from._impl_.kind_.null_value_; + break; + case kNumberValue: + _impl_.kind_.number_value_ = from._impl_.kind_.number_value_; + break; + case kStringValue: + new (&_impl_.kind_.string_value_) decltype(_impl_.kind_.string_value_){arena, from._impl_.kind_.string_value_}; + break; + case kBoolValue: + _impl_.kind_.bool_value_ = from._impl_.kind_.bool_value_; + break; + case kStructValue: + _impl_.kind_.struct_value_ = ::google::protobuf::MessageLite::CopyConstruct<::google::protobuf::Struct>(arena, *from._impl_.kind_.struct_value_); + break; + case kListValue: + _impl_.kind_.list_value_ = ::google::protobuf::MessageLite::CopyConstruct<::google::protobuf::ListValue>(arena, *from._impl_.kind_.list_value_); + break; } + // @@protoc_insertion_point(copy_constructor:google.protobuf.Value) } +inline PROTOBUF_NDEBUG_INLINE Value::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : kind_{}, + _cached_size_{0}, + _oneof_case_{} {} -void Value::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListValue_struct_5flite_2eproto.base); - clear_has_kind(); +inline void Value::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - Value::~Value() { // @@protoc_insertion_point(destructor:google.protobuf.Value) + _internal_metadata_.Delete(); SharedDtor(); } - -void Value::SharedDtor() { - GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); +inline void Value::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); if (has_kind()) { clear_kind(); } + _impl_.~Impl_(); } -void Value::ArenaDtor(void* object) { - Value* _this = reinterpret_cast< Value* >(object); - (void)_this; -} -void Value::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Value::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Value& Value::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListValue_struct_5flite_2eproto.base); - return *internal_default_instance(); -} - - void Value::clear_kind() { // @@protoc_insertion_point(one_of_clear_start:google.protobuf.Value) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (kind_case()) { case kNullValue: { // No need to clear @@ -565,8 +480,7 @@ void Value::clear_kind() { break; } case kStringValue: { - kind_.string_value_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + _impl_.kind_.string_value_.Destroy(); break; } case kBoolValue: { @@ -574,14 +488,14 @@ void Value::clear_kind() { break; } case kStructValue: { - if (GetArenaNoVirtual() == nullptr) { - delete kind_.struct_value_; + if (GetArena() == nullptr) { + delete _impl_.kind_.struct_value_; } break; } case kListValue: { - if (GetArenaNoVirtual() == nullptr) { - delete kind_.list_value_; + if (GetArena() == nullptr) { + delete _impl_.kind_.list_value_; } break; } @@ -589,264 +503,156 @@ void Value::clear_kind() { break; } } - _oneof_case_[0] = KIND_NOT_SET; + _impl_._oneof_case_[0] = KIND_NOT_SET; } -void Value::Clear() { +const ::google::protobuf::MessageLite::ClassData* +Value::GetClassData() const { + struct ClassData_ { + ::google::protobuf::MessageLite::ClassData header; + char type_name[22]; + }; + + PROTOBUF_CONSTINIT static const ClassData_ _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(Value, _impl_._cached_size_), + true, + }, + "google.protobuf.Value", + }; + + return &_data_.header; +} +PROTOBUF_NOINLINE void Value::Clear() { // @@protoc_insertion_point(message_clear_start:google.protobuf.Value) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; clear_kind(); - _internal_metadata_.Clear(); + _internal_metadata_.Clear(); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Value::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .google.protobuf.NullValue null_value = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - set_null_value(static_cast<::google::protobuf::NullValue>(val)); - } else goto handle_unusual; - continue; - // double number_value = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { - set_number_value(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(double); - } else goto handle_unusual; - continue; - // string string_value = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_string_value(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bool bool_value = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - set_bool_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .google.protobuf.Struct struct_value = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr = ctx->ParseMessage(mutable_struct_value(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .google.protobuf.ListValue list_value = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr = ctx->ParseMessage(mutable_list_value(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: +const char* Value::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ } -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Value::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:google.protobuf.Value) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .google.protobuf.NullValue null_value = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_null_value(static_cast< ::google::protobuf::NullValue >(value)); - } else { - goto handle_unusual; - } - break; - } - - // double number_value = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (17 & 0xFF)) { - clear_kind(); - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( - input, &kind_.number_value_))); - set_has_number_value(); - } else { - goto handle_unusual; - } - break; - } - // string string_value = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_string_value())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->string_value().data(), static_cast(this->string_value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "google.protobuf.Value.string_value")); - } else { - goto handle_unusual; - } - break; - } - - // bool bool_value = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { - clear_kind(); - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( - input, &kind_.bool_value_))); - set_has_bool_value(); - } else { - goto handle_unusual; - } - break; - } - // .google.protobuf.Struct struct_value = 5; - case 5: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_struct_value())); - } else { - goto handle_unusual; - } - break; - } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 6, 2, 42, 2> Value::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 6, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967232, // skipmap + offsetof(decltype(_table_), field_entries), + 6, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_Value_default_instance_._instance, + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::google::protobuf::Value>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // .google.protobuf.NullValue null_value = 1; + {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.null_value_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kOpenEnum)}, + // double number_value = 2; + {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.number_value_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kDouble)}, + // string string_value = 3; + {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.string_value_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // bool bool_value = 4; + {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.bool_value_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kBool)}, + // .google.protobuf.Struct struct_value = 5; + {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.struct_value_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .google.protobuf.ListValue list_value = 6; + {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.list_value_), _Internal::kOneofCaseOffset + 0, 1, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::ListValue>()}, + }}, {{ + "\25\0\0\14\0\0\0\0" + "google.protobuf.Value" + "string_value" + }}, +}; - // .google.protobuf.ListValue list_value = 6; - case 6: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_list_value())); - } else { - goto handle_unusual; - } - break; - } +::uint8_t* Value::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Value) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } + switch (kind_case()) { + case kNullValue: { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_null_value(), target); + break; } + case kNumberValue: { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 2, this->_internal_number_value(), target); + break; + } + case kStringValue: { + const std::string& _s = this->_internal_string_value(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Value.string_value"); + target = stream->WriteStringMaybeAliased(3, _s, target); + break; + } + case kBoolValue: { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 4, this->_internal_bool_value(), target); + break; + } + case kStructValue: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, *_impl_.kind_.struct_value_, _impl_.kind_.struct_value_->GetCachedSize(), target, stream); + break; + } + case kListValue: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *_impl_.kind_.list_value_, _impl_.kind_.list_value_->GetCachedSize(), target, stream); + break; + } + default: + break; } -success: - // @@protoc_insertion_point(parse_success:google.protobuf.Value) - return true; -failure: - // @@protoc_insertion_point(parse_failure:google.protobuf.Value) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Value::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:google.protobuf.Value) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .google.protobuf.NullValue null_value = 1; - if (has_null_value()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( - 1, this->null_value(), output); - } - - // double number_value = 2; - if (has_number_value()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDouble(2, this->number_value(), output); - } - - // string string_value = 3; - if (has_string_value()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->string_value().data(), static_cast(this->string_value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "google.protobuf.Value.string_value"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->string_value(), output); - } - - // bool bool_value = 4; - if (has_bool_value()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(4, this->bool_value(), output); - } - - // .google.protobuf.Struct struct_value = 5; - if (has_struct_value()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 5, _Internal::struct_value(this), output); - } - - // .google.protobuf.ListValue list_value = 6; - if (has_list_value()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 6, _Internal::list_value(this), output); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size()), target); } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:google.protobuf.Value) + // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Value) + return target; } -size_t Value::ByteSizeLong() const { +::size_t Value::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Value) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -854,91 +660,115 @@ size_t Value::ByteSizeLong() const { // .google.protobuf.NullValue null_value = 1; case kNullValue: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->null_value()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_null_value()); break; } // double number_value = 2; case kNumberValue: { - total_size += 1 + 8; + total_size += 9; break; } // string string_value = 3; case kStringValue: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->string_value()); + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_string_value()); break; } // bool bool_value = 4; case kBoolValue: { - total_size += 1 + 1; + total_size += 2; break; } // .google.protobuf.Struct struct_value = 5; case kStructValue: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *kind_.struct_value_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.kind_.struct_value_); break; } // .google.protobuf.ListValue list_value = 6; case kListValue: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *kind_.list_value_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.kind_.list_value_); break; } case KIND_NOT_SET: { break; } } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size(); + } + _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void Value::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::_pbi::DownCast( &from)); } void Value::MergeFrom(const Value& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Value) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + Value* const _this = this; + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Value) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - switch (from.kind_case()) { - case kNullValue: { - set_null_value(from.null_value()); - break; - } - case kNumberValue: { - set_number_value(from.number_value()); - break; - } - case kStringValue: { - set_string_value(from.string_value()); - break; - } - case kBoolValue: { - set_bool_value(from.bool_value()); - break; - } - case kStructValue: { - mutable_struct_value()->::google::protobuf::Struct::MergeFrom(from.struct_value()); - break; - } - case kListValue: { - mutable_list_value()->::google::protobuf::ListValue::MergeFrom(from.list_value()); - break; + if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { + const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; + const bool oneof_needs_init = oneof_to_case != oneof_from_case; + if (oneof_needs_init) { + if (oneof_to_case != 0) { + _this->clear_kind(); + } + _this->_impl_._oneof_case_[0] = oneof_from_case; } - case KIND_NOT_SET: { - break; + + switch (oneof_from_case) { + case kNullValue: { + _this->_impl_.kind_.null_value_ = from._impl_.kind_.null_value_; + break; + } + case kNumberValue: { + _this->_impl_.kind_.number_value_ = from._impl_.kind_.number_value_; + break; + } + case kStringValue: { + if (oneof_needs_init) { + _this->_impl_.kind_.string_value_.InitDefault(); + } + _this->_impl_.kind_.string_value_.Set(from._internal_string_value(), arena); + break; + } + case kBoolValue: { + _this->_impl_.kind_.bool_value_ = from._impl_.kind_.bool_value_; + break; + } + case kStructValue: { + if (oneof_needs_init) { + _this->_impl_.kind_.struct_value_ = + ::google::protobuf::MessageLite::CopyConstruct<::google::protobuf::Struct>(arena, *from._impl_.kind_.struct_value_); + } else { + _this->_impl_.kind_.struct_value_->MergeFrom(from._internal_struct_value()); + } + break; + } + case kListValue: { + if (oneof_needs_init) { + _this->_impl_.kind_.list_value_ = + ::google::protobuf::MessageLite::CopyConstruct<::google::protobuf::ListValue>(arena, *from._impl_.kind_.list_value_); + } else { + _this->_impl_.kind_.list_value_->MergeFrom(from._internal_list_value()); + } + break; + } + case KIND_NOT_SET: + break; } } + _this->_internal_metadata_.MergeFrom(from._internal_metadata_); } void Value::CopyFrom(const Value& from) { @@ -948,238 +778,197 @@ void Value::CopyFrom(const Value& from) { MergeFrom(from); } -bool Value::IsInitialized() const { +PROTOBUF_NOINLINE bool Value::IsInitialized() const { return true; } -void Value::InternalSwap(Value* other) { +void Value::InternalSwap(Value* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(kind_, other->kind_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.kind_, other->_impl_.kind_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } -std::string Value::GetTypeName() const { - return "google.protobuf.Value"; -} - - // =================================================================== -void ListValue::InitAsDefaultInstance() { -} class ListValue::_Internal { public: }; -ListValue::ListValue() - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:google.protobuf.ListValue) -} -ListValue::ListValue(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _internal_metadata_(arena), - values_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +ListValue::ListValue(::google::protobuf::Arena* arena) + : ::google::protobuf::MessageLite(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.ListValue) } -ListValue::ListValue(const ListValue& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _internal_metadata_(nullptr), - values_(from.values_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); +inline PROTOBUF_NDEBUG_INLINE ListValue::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : values_{visibility, arena, from.values_}, + _cached_size_{0} {} + +ListValue::ListValue( + ::google::protobuf::Arena* arena, + const ListValue& from) + : ::google::protobuf::MessageLite(arena) { + ListValue* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + // @@protoc_insertion_point(copy_constructor:google.protobuf.ListValue) } +inline PROTOBUF_NDEBUG_INLINE ListValue::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : values_{visibility, arena}, + _cached_size_{0} {} -void ListValue::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListValue_struct_5flite_2eproto.base); +inline void ListValue::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - ListValue::~ListValue() { // @@protoc_insertion_point(destructor:google.protobuf.ListValue) + _internal_metadata_.Delete(); SharedDtor(); } - -void ListValue::SharedDtor() { - GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); +inline void ListValue::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void ListValue::ArenaDtor(void* object) { - ListValue* _this = reinterpret_cast< ListValue* >(object); - (void)_this; -} -void ListValue::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ListValue::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ListValue& ListValue::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListValue_struct_5flite_2eproto.base); - return *internal_default_instance(); -} +const ::google::protobuf::MessageLite::ClassData* +ListValue::GetClassData() const { + struct ClassData_ { + ::google::protobuf::MessageLite::ClassData header; + char type_name[26]; + }; + PROTOBUF_CONSTINIT static const ClassData_ _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(ListValue, _impl_._cached_size_), + true, + }, + "google.protobuf.ListValue", + }; -void ListValue::Clear() { + return &_data_.header; +} +PROTOBUF_NOINLINE void ListValue::Clear() { // @@protoc_insertion_point(message_clear_start:google.protobuf.ListValue) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - values_.Clear(); - _internal_metadata_.Clear(); + _impl_.values_.Clear(); + _internal_metadata_.Clear(); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ListValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .google.protobuf.Value values = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_values(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: +const char* ListValue::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ } -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ListValue::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:google.protobuf.ListValue) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .google.protobuf.Value values = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_values())); - } else { - goto handle_unusual; - } - break; - } - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:google.protobuf.ListValue) - return true; -failure: - // @@protoc_insertion_point(parse_failure:google.protobuf.ListValue) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void ListValue::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:google.protobuf.ListValue) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListValue::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_ListValue_default_instance_._instance, + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::google::protobuf::ListValue>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated .google.protobuf.Value values = 1; + {::_pbi::TcParser::FastMtR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListValue, _impl_.values_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .google.protobuf.Value values = 1; + {PROTOBUF_FIELD_OFFSET(ListValue, _impl_.values_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, + }}, {{ + }}, +}; + +::uint8_t* ListValue::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ListValue) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; // repeated .google.protobuf.Value values = 1; - for (unsigned int i = 0, - n = static_cast(this->values_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 1, - this->values(static_cast(i)), - output); + for (unsigned i = 0, n = static_cast( + this->_internal_values_size()); + i < n; i++) { + const auto& repfield = this->_internal_values().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, repfield, repfield.GetCachedSize(), + target, stream); } - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:google.protobuf.ListValue) + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ListValue) + return target; } -size_t ListValue::ByteSizeLong() const { +::size_t ListValue::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ListValue) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.protobuf.Value values = 1; - { - unsigned int count = static_cast(this->values_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->values(static_cast(i))); - } + total_size += 1UL * this->_internal_values_size(); + for (const auto& msg : this->_internal_values()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString).size(); + } + _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } void ListValue::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::_pbi::DownCast( &from)); } void ListValue::MergeFrom(const ListValue& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.ListValue) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ListValue* const _this = this; + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.ListValue) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - values_.MergeFrom(from.values_); + _this->_internal_mutable_values()->MergeFrom( + from._internal_values()); + _this->_internal_metadata_.MergeFrom(from._internal_metadata_); } void ListValue::CopyFrom(const ListValue& from) { @@ -1189,38 +978,22 @@ void ListValue::CopyFrom(const ListValue& from) { MergeFrom(from); } -bool ListValue::IsInitialized() const { +PROTOBUF_NOINLINE bool ListValue::IsInitialized() const { return true; } -void ListValue::InternalSwap(ListValue* other) { +void ListValue::InternalSwap(ListValue* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&values_)->InternalSwap(CastToBase(&other->values_)); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.values_.InternalSwap(&other->_impl_.values_); } -std::string ListValue::GetTypeName() const { - return "google.protobuf.ListValue"; -} - - // @@protoc_insertion_point(namespace_scope) } // namespace protobuf } // namespace google -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::google::protobuf::Struct_FieldsEntry_DoNotUse* Arena::CreateMaybeMessage< ::google::protobuf::Struct_FieldsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::google::protobuf::Struct_FieldsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::google::protobuf::Struct* Arena::CreateMaybeMessage< ::google::protobuf::Struct >(Arena* arena) { - return Arena::CreateMessageInternal< ::google::protobuf::Struct >(arena); -} -template<> PROTOBUF_NOINLINE ::google::protobuf::Value* Arena::CreateMaybeMessage< ::google::protobuf::Value >(Arena* arena) { - return Arena::CreateMessageInternal< ::google::protobuf::Value >(arena); -} -template<> PROTOBUF_NOINLINE ::google::protobuf::ListValue* Arena::CreateMaybeMessage< ::google::protobuf::ListValue >(Arena* arena) { - return Arena::CreateMessageInternal< ::google::protobuf::ListValue >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" diff --git a/struct_lite.pb.h b/struct_lite.pb.h index 10f8fde..e9556a3 100644 --- a/struct_lite.pb.h +++ b/struct_lite.pb.h @@ -1,325 +1,468 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2016-2019 Envoy Project Authors +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. // Generated by the protocol buffer compiler. DO NOT EDIT! // source: struct_lite.proto +// Protobuf C++ Version: 5.26.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_struct_5flite_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_struct_5flite_2eproto +#ifndef GOOGLE_PROTOBUF_INCLUDED_struct_5flite_2eproto_2epb_2eh +#define GOOGLE_PROTOBUF_INCLUDED_struct_5flite_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3009000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3009001 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. +#include +#include + +#include "google/protobuf/port_def.inc" +#if PROTOBUF_VERSION != 5026001 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include +#include "google/protobuf/port_undef.inc" +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/map.h" // IWYU pragma: export +#include "google/protobuf/map_field_lite.h" +#include "google/protobuf/generated_enum_util.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_struct_5flite_2eproto -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { class AnyMetadata; } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_struct_5flite_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[4] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; + static const ::uint32_t offsets[]; }; namespace google { namespace protobuf { class ListValue; -class ListValueDefaultTypeInternal; +struct ListValueDefaultTypeInternal; extern ListValueDefaultTypeInternal _ListValue_default_instance_; class Struct; -class StructDefaultTypeInternal; +struct StructDefaultTypeInternal; extern StructDefaultTypeInternal _Struct_default_instance_; -class Struct_FieldsEntry_DoNotUse; -class Struct_FieldsEntry_DoNotUseDefaultTypeInternal; -extern Struct_FieldsEntry_DoNotUseDefaultTypeInternal _Struct_FieldsEntry_DoNotUse_default_instance_; class Value; -class ValueDefaultTypeInternal; +struct ValueDefaultTypeInternal; extern ValueDefaultTypeInternal _Value_default_instance_; } // namespace protobuf } // namespace google -PROTOBUF_NAMESPACE_OPEN -template<> ::google::protobuf::ListValue* Arena::CreateMaybeMessage<::google::protobuf::ListValue>(Arena*); -template<> ::google::protobuf::Struct* Arena::CreateMaybeMessage<::google::protobuf::Struct>(Arena*); -template<> ::google::protobuf::Struct_FieldsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::Struct_FieldsEntry_DoNotUse>(Arena*); -template<> ::google::protobuf::Value* Arena::CreateMaybeMessage<::google::protobuf::Value>(Arena*); -PROTOBUF_NAMESPACE_CLOSE + namespace google { namespace protobuf { - enum NullValue : int { NULL_VALUE = 0, - NullValue_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - NullValue_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() + NullValue_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + NullValue_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; -bool NullValue_IsValid(int value); -constexpr NullValue NullValue_MIN = NULL_VALUE; -constexpr NullValue NullValue_MAX = NULL_VALUE; -constexpr int NullValue_ARRAYSIZE = NullValue_MAX + 1; +bool NullValue_IsValid(int value); +extern const uint32_t NullValue_internal_data_[]; +constexpr NullValue NullValue_MIN = static_cast(0); +constexpr NullValue NullValue_MAX = static_cast(0); +constexpr int NullValue_ARRAYSIZE = 0 + 1; const std::string& NullValue_Name(NullValue value); -template -inline const std::string& NullValue_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function NullValue_Name."); - return NullValue_Name(static_cast(enum_t_value)); -} -bool NullValue_Parse( - const std::string& name, NullValue* value); +template +const std::string& NullValue_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to NullValue_Name()."); + return NullValue_Name(static_cast(value)); +} +bool NullValue_Parse(absl::string_view name, NullValue* value); + // =================================================================== -class Struct_FieldsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntryLite { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntryLite SuperType; - Struct_FieldsEntry_DoNotUse(); - Struct_FieldsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const Struct_FieldsEntry_DoNotUse& other); - static const Struct_FieldsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Struct_FieldsEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), s->size(), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "google.protobuf.Struct.FieldsEntry.key"); - } - static bool ValidateValue(void*) { return true; } -}; // ------------------------------------------------------------------- -class Struct : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:google.protobuf.Struct) */ { +class ListValue final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:google.protobuf.ListValue) */ { public: - Struct(); - virtual ~Struct(); + inline ListValue() : ListValue(nullptr) {} + ~ListValue() override; + template + explicit PROTOBUF_CONSTEXPR ListValue( + ::google::protobuf::internal::ConstantInitialized); + + inline ListValue(const ListValue& from) : ListValue(nullptr, from) {} + inline ListValue(ListValue&& from) noexcept + : ListValue(nullptr, std::move(from)) {} + inline ListValue& operator=(const ListValue& from) { + CopyFrom(from); + return *this; + } + inline ListValue& operator=(ListValue&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields(); + } - Struct(const Struct& from); - Struct(Struct&& from) noexcept - : Struct() { + static const ListValue& default_instance() { + return *internal_default_instance(); + } + static inline const ListValue* internal_default_instance() { + return reinterpret_cast( + &_ListValue_default_instance_); + } + static constexpr int kIndexInFileMessages = 3; + friend void swap(ListValue& a, ListValue& b) { a.Swap(&b); } + inline void Swap(ListValue* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListValue* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListValue* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) final; + void CopyFrom(const ListValue& from); + void MergeFrom(const ListValue& from); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(ListValue* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "google.protobuf.ListValue"; } + + protected: + explicit ListValue(::google::protobuf::Arena* arena); + ListValue(::google::protobuf::Arena* arena, const ListValue& from); + ListValue(::google::protobuf::Arena* arena, ListValue&& from) noexcept + : ListValue(arena) { *this = ::std::move(from); } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + + public: + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kValuesFieldNumber = 1, + }; + // repeated .google.protobuf.Value values = 1; + int values_size() const; + private: + int _internal_values_size() const; + public: + void clear_values() ; + ::google::protobuf::Value* mutable_values(int index); + ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>* mutable_values(); + + private: + const ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>& _internal_values() const; + ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>* _internal_mutable_values(); + public: + const ::google::protobuf::Value& values(int index) const; + ::google::protobuf::Value* add_values(); + const ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>& values() const; + // @@protoc_insertion_point(class_scope:google.protobuf.ListValue) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 1, 1, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value > values_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_struct_5flite_2eproto; +}; +// ------------------------------------------------------------------- + +class Struct final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:google.protobuf.Struct) */ { + public: + inline Struct() : Struct(nullptr) {} + ~Struct() override; + template + explicit PROTOBUF_CONSTEXPR Struct( + ::google::protobuf::internal::ConstantInitialized); + + inline Struct(const Struct& from) : Struct(nullptr, from) {} + inline Struct(Struct&& from) noexcept + : Struct(nullptr, std::move(from)) {} inline Struct& operator=(const Struct& from) { CopyFrom(from); return *this; } inline Struct& operator=(Struct&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { - return GetArenaNoVirtual(); + inline const std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString); } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); + inline std::string* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields(); } - static const Struct& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static const Struct& default_instance() { + return *internal_default_instance(); + } static inline const Struct* internal_default_instance() { return reinterpret_cast( - &_Struct_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(Struct& a, Struct& b) { - a.Swap(&b); + &_Struct_default_instance_); } + static constexpr int kIndexInFileMessages = 1; + friend void swap(Struct& a, Struct& b) { a.Swap(&b); } inline void Swap(Struct* other) { if (other == this) return; - if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Struct* other) { if (other == this) return; - GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline Struct* New() const final { - return CreateMaybeMessage(nullptr); + Struct* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - - Struct* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; + void CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) final; void CopyFrom(const Struct& from); void MergeFrom(const Struct& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); void InternalSwap(Struct* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "google.protobuf.Struct"; - } - protected: - explicit Struct(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "google.protobuf.Struct"; } + + protected: + explicit Struct(::google::protobuf::Arena* arena); + Struct(::google::protobuf::Arena* arena, const Struct& from); + Struct(::google::protobuf::Arena* arena, Struct&& from) noexcept + : Struct(arena) { + *this = ::std::move(from); } - public: - - std::string GetTypeName() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- - enum : int { kFieldsFieldNumber = 1, }; // map fields = 1; int fields_size() const; - void clear_fields(); - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::protobuf::Value >& - fields() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::protobuf::Value >* - mutable_fields(); + private: + int _internal_fields_size() const; + + public: + void clear_fields() ; + const ::google::protobuf::Map& fields() const; + ::google::protobuf::Map* mutable_fields(); + + private: + const ::google::protobuf::Map& _internal_fields() const; + ::google::protobuf::Map* _internal_mutable_fields(); + public: // @@protoc_insertion_point(class_scope:google.protobuf.Struct) private: class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::MapFieldLite< - Struct_FieldsEntry_DoNotUse, - std::string, ::google::protobuf::Value, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE, - 0 > fields_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 1, 2, + 37, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::MapFieldLite fields_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_struct_5flite_2eproto; }; // ------------------------------------------------------------------- -class Value : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:google.protobuf.Value) */ { - public: - Value(); - virtual ~Value(); - - Value(const Value& from); - Value(Value&& from) noexcept - : Value() { - *this = ::std::move(from); - } +// ------------------------------------------------------------------- +class Value final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:google.protobuf.Value) */ { + public: + inline Value() : Value(nullptr) {} + ~Value() override; + template + explicit PROTOBUF_CONSTEXPR Value( + ::google::protobuf::internal::ConstantInitialized); + + inline Value(const Value& from) : Value(nullptr, from) {} + inline Value(Value&& from) noexcept + : Value(nullptr, std::move(from)) {} inline Value& operator=(const Value& from) { CopyFrom(from); return *this; } inline Value& operator=(Value&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { - return GetArenaNoVirtual(); + inline const std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields(::google::protobuf::internal::GetEmptyString); } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); + inline std::string* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields(); } - static const Value& default_instance(); + static const Value& default_instance() { + return *internal_default_instance(); + } enum KindCase { kNullValue = 1, kNumberValue = 2, @@ -329,89 +472,71 @@ class Value : kListValue = 6, KIND_NOT_SET = 0, }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Value* internal_default_instance() { return reinterpret_cast( - &_Value_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(Value& a, Value& b) { - a.Swap(&b); + &_Value_default_instance_); } + static constexpr int kIndexInFileMessages = 2; + friend void swap(Value& a, Value& b) { a.Swap(&b); } inline void Swap(Value* other) { if (other == this) return; - if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Value* other) { if (other == this) return; - GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline Value* New() const final { - return CreateMaybeMessage(nullptr); + Value* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - - Value* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; + void CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) final; void CopyFrom(const Value& from); void MergeFrom(const Value& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); void InternalSwap(Value* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "google.protobuf.Value"; - } - protected: - explicit Value(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "google.protobuf.Value"; } + + protected: + explicit Value(::google::protobuf::Arena* arena); + Value(::google::protobuf::Arena* arena, const Value& from); + Value(::google::protobuf::Arena* arena, Value&& from) noexcept + : Value(arena) { + *this = ::std::move(from); } - public: - - std::string GetTypeName() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kNullValueFieldNumber = 1, kNumberValueFieldNumber = 2, @@ -421,74 +546,93 @@ class Value : kListValueFieldNumber = 6, }; // .google.protobuf.NullValue null_value = 1; - private: bool has_null_value() const; - public: - void clear_null_value(); + void clear_null_value() ; ::google::protobuf::NullValue null_value() const; void set_null_value(::google::protobuf::NullValue value); - // double number_value = 2; private: - bool has_number_value() const; + ::google::protobuf::NullValue _internal_null_value() const; + void _internal_set_null_value(::google::protobuf::NullValue value); + public: - void clear_number_value(); + // double number_value = 2; + bool has_number_value() const; + void clear_number_value() ; double number_value() const; void set_number_value(double value); - // string string_value = 3; private: - bool has_string_value() const; + double _internal_number_value() const; + void _internal_set_number_value(double value); + public: - void clear_string_value(); + // string string_value = 3; + bool has_string_value() const; + void clear_string_value() ; const std::string& string_value() const; - void set_string_value(const std::string& value); - void set_string_value(std::string&& value); - void set_string_value(const char* value); - void set_string_value(const char* value, size_t size); + template + void set_string_value(Arg_&& arg, Args_... args); std::string* mutable_string_value(); - std::string* release_string_value(); - void set_allocated_string_value(std::string* string_value); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_string_value(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_string_value( - std::string* string_value); + PROTOBUF_NODISCARD std::string* release_string_value(); + void set_allocated_string_value(std::string* value); - // bool bool_value = 4; private: - bool has_bool_value() const; + const std::string& _internal_string_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_value( + const std::string& value); + std::string* _internal_mutable_string_value(); + public: - void clear_bool_value(); + // bool bool_value = 4; + bool has_bool_value() const; + void clear_bool_value() ; bool bool_value() const; void set_bool_value(bool value); + private: + bool _internal_bool_value() const; + void _internal_set_bool_value(bool value); + + public: // .google.protobuf.Struct struct_value = 5; bool has_struct_value() const; - void clear_struct_value(); + private: + bool _internal_has_struct_value() const; + + public: + void clear_struct_value() ; const ::google::protobuf::Struct& struct_value() const; - ::google::protobuf::Struct* release_struct_value(); + PROTOBUF_NODISCARD ::google::protobuf::Struct* release_struct_value(); ::google::protobuf::Struct* mutable_struct_value(); - void set_allocated_struct_value(::google::protobuf::Struct* struct_value); - void unsafe_arena_set_allocated_struct_value( - ::google::protobuf::Struct* struct_value); + void set_allocated_struct_value(::google::protobuf::Struct* value); + void unsafe_arena_set_allocated_struct_value(::google::protobuf::Struct* value); ::google::protobuf::Struct* unsafe_arena_release_struct_value(); + private: + const ::google::protobuf::Struct& _internal_struct_value() const; + ::google::protobuf::Struct* _internal_mutable_struct_value(); + + public: // .google.protobuf.ListValue list_value = 6; bool has_list_value() const; - void clear_list_value(); + private: + bool _internal_has_list_value() const; + + public: + void clear_list_value() ; const ::google::protobuf::ListValue& list_value() const; - ::google::protobuf::ListValue* release_list_value(); + PROTOBUF_NODISCARD ::google::protobuf::ListValue* release_list_value(); ::google::protobuf::ListValue* mutable_list_value(); - void set_allocated_list_value(::google::protobuf::ListValue* list_value); - void unsafe_arena_set_allocated_list_value( - ::google::protobuf::ListValue* list_value); + void set_allocated_list_value(::google::protobuf::ListValue* value); + void unsafe_arena_set_allocated_list_value(::google::protobuf::ListValue* value); ::google::protobuf::ListValue* unsafe_arena_release_list_value(); + private: + const ::google::protobuf::ListValue& _internal_list_value() const; + ::google::protobuf::ListValue* _internal_mutable_list_value(); + + public: void clear_kind(); KindCase kind_case() const; // @@protoc_insertion_point(class_scope:google.protobuf.Value) @@ -500,200 +644,88 @@ class Value : void set_has_bool_value(); void set_has_struct_value(); void set_has_list_value(); - inline bool has_kind() const; inline void clear_has_kind(); - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - union KindUnion { - KindUnion() {} - int null_value_; - double number_value_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_value_; - bool bool_value_; - ::google::protobuf::Struct* struct_value_; - ::google::protobuf::ListValue* list_value_; - } kind_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 6, 2, + 42, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + union KindUnion { + constexpr KindUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + int null_value_; + double number_value_; + ::google::protobuf::internal::ArenaStringPtr string_value_; + bool bool_value_; + ::google::protobuf::Struct* struct_value_; + ::google::protobuf::ListValue* list_value_; + } kind_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_struct_5flite_2eproto; }; -// ------------------------------------------------------------------- - -class ListValue : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:google.protobuf.ListValue) */ { - public: - ListValue(); - virtual ~ListValue(); - ListValue(const ListValue& from); - ListValue(ListValue&& from) noexcept - : ListValue() { - *this = ::std::move(from); - } - - inline ListValue& operator=(const ListValue& from) { - CopyFrom(from); - return *this; - } - inline ListValue& operator=(ListValue&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ListValue& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ListValue* internal_default_instance() { - return reinterpret_cast( - &_ListValue_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(ListValue& a, ListValue& b) { - a.Swap(&b); - } - inline void Swap(ListValue* other) { - if (other == this) return; - if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ListValue* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline ListValue* New() const final { - return CreateMaybeMessage(nullptr); - } - - ListValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; - void CopyFrom(const ListValue& from); - void MergeFrom(const ListValue& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ListValue* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "google.protobuf.ListValue"; - } - protected: - explicit ListValue(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: +// =================================================================== - std::string GetTypeName() const final; - // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- - enum : int { - kValuesFieldNumber = 1, - }; - // repeated .google.protobuf.Value values = 1; - int values_size() const; - void clear_values(); - ::google::protobuf::Value* mutable_values(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::protobuf::Value >* - mutable_values(); - const ::google::protobuf::Value& values(int index) const; - ::google::protobuf::Value* add_values(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::protobuf::Value >& - values() const; - - // @@protoc_insertion_point(class_scope:google.protobuf.ListValue) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::protobuf::Value > values_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_struct_5flite_2eproto; -}; // =================================================================== -// =================================================================== - #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // Struct // map fields = 1; +inline int Struct::_internal_fields_size() const { + return _internal_fields().size(); +} inline int Struct::fields_size() const { - return fields_.size(); + return _internal_fields_size(); } inline void Struct::clear_fields() { - fields_.Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.fields_.Clear(); +} +inline const ::google::protobuf::Map& Struct::_internal_fields() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.fields_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::protobuf::Value >& -Struct::fields() const { +inline const ::google::protobuf::Map& Struct::fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:google.protobuf.Struct.fields) - return fields_.GetMap(); + return _internal_fields(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::protobuf::Value >* -Struct::mutable_fields() { +inline ::google::protobuf::Map* Struct::_internal_mutable_fields() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.fields_.MutableMap(); +} +inline ::google::protobuf::Map* Struct::mutable_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:google.protobuf.Struct.fields) - return fields_.MutableMap(); + return _internal_mutable_fields(); } // ------------------------------------------------------------------- @@ -705,403 +737,421 @@ inline bool Value::has_null_value() const { return kind_case() == kNullValue; } inline void Value::set_has_null_value() { - _oneof_case_[0] = kNullValue; + _impl_._oneof_case_[0] = kNullValue; } inline void Value::clear_null_value() { - if (has_null_value()) { - kind_.null_value_ = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (kind_case() == kNullValue) { + _impl_.kind_.null_value_ = 0; clear_has_kind(); } } inline ::google::protobuf::NullValue Value::null_value() const { // @@protoc_insertion_point(field_get:google.protobuf.Value.null_value) - if (has_null_value()) { - return static_cast< ::google::protobuf::NullValue >(kind_.null_value_); - } - return static_cast< ::google::protobuf::NullValue >(0); + return _internal_null_value(); } inline void Value::set_null_value(::google::protobuf::NullValue value) { - if (!has_null_value()) { + if (kind_case() != kNullValue) { clear_kind(); set_has_null_value(); } - kind_.null_value_ = value; + _impl_.kind_.null_value_ = value; // @@protoc_insertion_point(field_set:google.protobuf.Value.null_value) } +inline ::google::protobuf::NullValue Value::_internal_null_value() const { + if (kind_case() == kNullValue) { + return static_cast<::google::protobuf::NullValue>(_impl_.kind_.null_value_); + } + return static_cast<::google::protobuf::NullValue>(0); +} // double number_value = 2; inline bool Value::has_number_value() const { return kind_case() == kNumberValue; } inline void Value::set_has_number_value() { - _oneof_case_[0] = kNumberValue; + _impl_._oneof_case_[0] = kNumberValue; } inline void Value::clear_number_value() { - if (has_number_value()) { - kind_.number_value_ = 0; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (kind_case() == kNumberValue) { + _impl_.kind_.number_value_ = 0; clear_has_kind(); } } inline double Value::number_value() const { // @@protoc_insertion_point(field_get:google.protobuf.Value.number_value) - if (has_number_value()) { - return kind_.number_value_; - } - return 0; + return _internal_number_value(); } inline void Value::set_number_value(double value) { - if (!has_number_value()) { + if (kind_case() != kNumberValue) { clear_kind(); set_has_number_value(); } - kind_.number_value_ = value; + _impl_.kind_.number_value_ = value; // @@protoc_insertion_point(field_set:google.protobuf.Value.number_value) } +inline double Value::_internal_number_value() const { + if (kind_case() == kNumberValue) { + return _impl_.kind_.number_value_; + } + return 0; +} // string string_value = 3; inline bool Value::has_string_value() const { return kind_case() == kStringValue; } inline void Value::set_has_string_value() { - _oneof_case_[0] = kStringValue; + _impl_._oneof_case_[0] = kStringValue; } inline void Value::clear_string_value() { - if (has_string_value()) { - kind_.string_value_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (kind_case() == kStringValue) { + _impl_.kind_.string_value_.Destroy(); clear_has_kind(); } } -inline const std::string& Value::string_value() const { +inline const std::string& Value::string_value() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Value.string_value) - if (has_string_value()) { - return kind_.string_value_.Get(); - } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return _internal_string_value(); } -inline void Value::set_string_value(const std::string& value) { - if (!has_string_value()) { +template +inline PROTOBUF_ALWAYS_INLINE void Value::set_string_value(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (kind_case() != kStringValue) { clear_kind(); + set_has_string_value(); - kind_.string_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.kind_.string_value_.InitDefault(); } - kind_.string_value_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, - GetArenaNoVirtual()); + _impl_.kind_.string_value_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.Value.string_value) } -inline void Value::set_string_value(std::string&& value) { - // @@protoc_insertion_point(field_set:google.protobuf.Value.string_value) - if (!has_string_value()) { - clear_kind(); - set_has_string_value(); - kind_.string_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - kind_.string_value_.SetLite( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Value.string_value) +inline std::string* Value::mutable_string_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_string_value(); + // @@protoc_insertion_point(field_mutable:google.protobuf.Value.string_value) + return _s; } -inline void Value::set_string_value(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_string_value()) { - clear_kind(); - set_has_string_value(); - kind_.string_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline const std::string& Value::_internal_string_value() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + if (kind_case() != kStringValue) { + return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); } - kind_.string_value_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:google.protobuf.Value.string_value) + return _impl_.kind_.string_value_.Get(); } -inline void Value::set_string_value(const char* value, - size_t size) { - if (!has_string_value()) { +inline void Value::_internal_set_string_value(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (kind_case() != kStringValue) { clear_kind(); + set_has_string_value(); - kind_.string_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.kind_.string_value_.InitDefault(); } - kind_.string_value_.SetLite( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:google.protobuf.Value.string_value) -} -inline std::string* Value::mutable_string_value() { - if (!has_string_value()) { + _impl_.kind_.string_value_.Set(value, GetArena()); +} +inline std::string* Value::_internal_mutable_string_value() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (kind_case() != kStringValue) { clear_kind(); + set_has_string_value(); - kind_.string_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.kind_.string_value_.InitDefault(); } - return kind_.string_value_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_mutable:google.protobuf.Value.string_value) + return _impl_.kind_.string_value_.Mutable( GetArena()); } inline std::string* Value::release_string_value() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.protobuf.Value.string_value) - if (has_string_value()) { - clear_has_kind(); - return kind_.string_value_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - } else { + if (kind_case() != kStringValue) { return nullptr; } + clear_has_kind(); + return _impl_.kind_.string_value_.Release(); } -inline void Value::set_allocated_string_value(std::string* string_value) { +inline void Value::set_allocated_string_value(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (has_kind()) { clear_kind(); } - if (string_value != nullptr) { + if (value != nullptr) { set_has_string_value(); - kind_.string_value_.UnsafeSetDefault(string_value); + _impl_.kind_.string_value_.InitAllocated(value, GetArena()); } // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.string_value) } -inline std::string* Value::unsafe_arena_release_string_value() { - // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.string_value) - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (has_string_value()) { - clear_has_kind(); - return kind_.string_value_.UnsafeArenaRelease( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - } else { - return nullptr; - } -} -inline void Value::unsafe_arena_set_allocated_string_value(std::string* string_value) { - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (!has_string_value()) { - kind_.string_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - clear_kind(); - if (string_value) { - set_has_string_value(); - kind_.string_value_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), string_value, GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.string_value) -} // bool bool_value = 4; inline bool Value::has_bool_value() const { return kind_case() == kBoolValue; } inline void Value::set_has_bool_value() { - _oneof_case_[0] = kBoolValue; + _impl_._oneof_case_[0] = kBoolValue; } inline void Value::clear_bool_value() { - if (has_bool_value()) { - kind_.bool_value_ = false; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (kind_case() == kBoolValue) { + _impl_.kind_.bool_value_ = false; clear_has_kind(); } } inline bool Value::bool_value() const { // @@protoc_insertion_point(field_get:google.protobuf.Value.bool_value) - if (has_bool_value()) { - return kind_.bool_value_; - } - return false; + return _internal_bool_value(); } inline void Value::set_bool_value(bool value) { - if (!has_bool_value()) { + if (kind_case() != kBoolValue) { clear_kind(); set_has_bool_value(); } - kind_.bool_value_ = value; + _impl_.kind_.bool_value_ = value; // @@protoc_insertion_point(field_set:google.protobuf.Value.bool_value) } +inline bool Value::_internal_bool_value() const { + if (kind_case() == kBoolValue) { + return _impl_.kind_.bool_value_; + } + return false; +} // .google.protobuf.Struct struct_value = 5; inline bool Value::has_struct_value() const { return kind_case() == kStructValue; } +inline bool Value::_internal_has_struct_value() const { + return kind_case() == kStructValue; +} inline void Value::set_has_struct_value() { - _oneof_case_[0] = kStructValue; + _impl_._oneof_case_[0] = kStructValue; } inline void Value::clear_struct_value() { - if (has_struct_value()) { - if (GetArenaNoVirtual() == nullptr) { - delete kind_.struct_value_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (kind_case() == kStructValue) { + if (GetArena() == nullptr) { + delete _impl_.kind_.struct_value_; } clear_has_kind(); } } inline ::google::protobuf::Struct* Value::release_struct_value() { // @@protoc_insertion_point(field_release:google.protobuf.Value.struct_value) - if (has_struct_value()) { + if (kind_case() == kStructValue) { clear_has_kind(); - ::google::protobuf::Struct* temp = kind_.struct_value_; - if (GetArenaNoVirtual() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* temp = _impl_.kind_.struct_value_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } - kind_.struct_value_ = nullptr; + _impl_.kind_.struct_value_ = nullptr; return temp; } else { return nullptr; } } -inline const ::google::protobuf::Struct& Value::struct_value() const { +inline const ::google::protobuf::Struct& Value::_internal_struct_value() const { + return kind_case() == kStructValue ? *_impl_.kind_.struct_value_ : reinterpret_cast<::google::protobuf::Struct&>(::google::protobuf::_Struct_default_instance_); +} +inline const ::google::protobuf::Struct& Value::struct_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Value.struct_value) - return has_struct_value() - ? *kind_.struct_value_ - : *reinterpret_cast< ::google::protobuf::Struct*>(&::google::protobuf::_Struct_default_instance_); + return _internal_struct_value(); } inline ::google::protobuf::Struct* Value::unsafe_arena_release_struct_value() { // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.struct_value) - if (has_struct_value()) { + if (kind_case() == kStructValue) { clear_has_kind(); - ::google::protobuf::Struct* temp = kind_.struct_value_; - kind_.struct_value_ = nullptr; + auto* temp = _impl_.kind_.struct_value_; + _impl_.kind_.struct_value_ = nullptr; return temp; } else { return nullptr; } } -inline void Value::unsafe_arena_set_allocated_struct_value(::google::protobuf::Struct* struct_value) { +inline void Value::unsafe_arena_set_allocated_struct_value(::google::protobuf::Struct* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. clear_kind(); - if (struct_value) { + if (value) { set_has_struct_value(); - kind_.struct_value_ = struct_value; + _impl_.kind_.struct_value_ = value; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.struct_value) } -inline ::google::protobuf::Struct* Value::mutable_struct_value() { - if (!has_struct_value()) { +inline ::google::protobuf::Struct* Value::_internal_mutable_struct_value() { + if (kind_case() != kStructValue) { clear_kind(); set_has_struct_value(); - kind_.struct_value_ = CreateMaybeMessage< ::google::protobuf::Struct >( - GetArenaNoVirtual()); + _impl_.kind_.struct_value_ = + ::google::protobuf::MessageLite::DefaultConstruct<::google::protobuf::Struct>(GetArena()); } + return _impl_.kind_.struct_value_; +} +inline ::google::protobuf::Struct* Value::mutable_struct_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::Struct* _msg = _internal_mutable_struct_value(); // @@protoc_insertion_point(field_mutable:google.protobuf.Value.struct_value) - return kind_.struct_value_; + return _msg; } // .google.protobuf.ListValue list_value = 6; inline bool Value::has_list_value() const { return kind_case() == kListValue; } +inline bool Value::_internal_has_list_value() const { + return kind_case() == kListValue; +} inline void Value::set_has_list_value() { - _oneof_case_[0] = kListValue; + _impl_._oneof_case_[0] = kListValue; } inline void Value::clear_list_value() { - if (has_list_value()) { - if (GetArenaNoVirtual() == nullptr) { - delete kind_.list_value_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (kind_case() == kListValue) { + if (GetArena() == nullptr) { + delete _impl_.kind_.list_value_; } clear_has_kind(); } } inline ::google::protobuf::ListValue* Value::release_list_value() { // @@protoc_insertion_point(field_release:google.protobuf.Value.list_value) - if (has_list_value()) { + if (kind_case() == kListValue) { clear_has_kind(); - ::google::protobuf::ListValue* temp = kind_.list_value_; - if (GetArenaNoVirtual() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* temp = _impl_.kind_.list_value_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } - kind_.list_value_ = nullptr; + _impl_.kind_.list_value_ = nullptr; return temp; } else { return nullptr; } } -inline const ::google::protobuf::ListValue& Value::list_value() const { +inline const ::google::protobuf::ListValue& Value::_internal_list_value() const { + return kind_case() == kListValue ? *_impl_.kind_.list_value_ : reinterpret_cast<::google::protobuf::ListValue&>(::google::protobuf::_ListValue_default_instance_); +} +inline const ::google::protobuf::ListValue& Value::list_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Value.list_value) - return has_list_value() - ? *kind_.list_value_ - : *reinterpret_cast< ::google::protobuf::ListValue*>(&::google::protobuf::_ListValue_default_instance_); + return _internal_list_value(); } inline ::google::protobuf::ListValue* Value::unsafe_arena_release_list_value() { // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.list_value) - if (has_list_value()) { + if (kind_case() == kListValue) { clear_has_kind(); - ::google::protobuf::ListValue* temp = kind_.list_value_; - kind_.list_value_ = nullptr; + auto* temp = _impl_.kind_.list_value_; + _impl_.kind_.list_value_ = nullptr; return temp; } else { return nullptr; } } -inline void Value::unsafe_arena_set_allocated_list_value(::google::protobuf::ListValue* list_value) { +inline void Value::unsafe_arena_set_allocated_list_value(::google::protobuf::ListValue* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. clear_kind(); - if (list_value) { + if (value) { set_has_list_value(); - kind_.list_value_ = list_value; + _impl_.kind_.list_value_ = value; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.list_value) } -inline ::google::protobuf::ListValue* Value::mutable_list_value() { - if (!has_list_value()) { +inline ::google::protobuf::ListValue* Value::_internal_mutable_list_value() { + if (kind_case() != kListValue) { clear_kind(); set_has_list_value(); - kind_.list_value_ = CreateMaybeMessage< ::google::protobuf::ListValue >( - GetArenaNoVirtual()); + _impl_.kind_.list_value_ = + ::google::protobuf::MessageLite::DefaultConstruct<::google::protobuf::ListValue>(GetArena()); } + return _impl_.kind_.list_value_; +} +inline ::google::protobuf::ListValue* Value::mutable_list_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::ListValue* _msg = _internal_mutable_list_value(); // @@protoc_insertion_point(field_mutable:google.protobuf.Value.list_value) - return kind_.list_value_; + return _msg; } inline bool Value::has_kind() const { return kind_case() != KIND_NOT_SET; } inline void Value::clear_has_kind() { - _oneof_case_[0] = KIND_NOT_SET; + _impl_._oneof_case_[0] = KIND_NOT_SET; } inline Value::KindCase Value::kind_case() const { - return Value::KindCase(_oneof_case_[0]); + return Value::KindCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- // ListValue // repeated .google.protobuf.Value values = 1; +inline int ListValue::_internal_values_size() const { + return _internal_values().size(); +} inline int ListValue::values_size() const { - return values_.size(); + return _internal_values_size(); } inline void ListValue::clear_values() { - values_.Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.values_.Clear(); } -inline ::google::protobuf::Value* ListValue::mutable_values(int index) { +inline ::google::protobuf::Value* ListValue::mutable_values(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:google.protobuf.ListValue.values) - return values_.Mutable(index); + return _internal_mutable_values()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::protobuf::Value >* -ListValue::mutable_values() { +inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>* ListValue::mutable_values() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:google.protobuf.ListValue.values) - return &values_; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_values(); } -inline const ::google::protobuf::Value& ListValue::values(int index) const { +inline const ::google::protobuf::Value& ListValue::values(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.ListValue.values) - return values_.Get(index); + return _internal_values().Get(index); } -inline ::google::protobuf::Value* ListValue::add_values() { +inline ::google::protobuf::Value* ListValue::add_values() ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::Value* _add = _internal_mutable_values()->Add(); // @@protoc_insertion_point(field_add:google.protobuf.ListValue.values) - return values_.Add(); + return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::protobuf::Value >& -ListValue::values() const { +inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>& ListValue::values() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:google.protobuf.ListValue.values) - return values_; + return _internal_values(); +} +inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>& +ListValue::_internal_values() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.values_; +} +inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>* +ListValue::_internal_mutable_values() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.values_; } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace protobuf } // namespace google -PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::google::protobuf::NullValue> : ::std::true_type {}; +namespace google { +namespace protobuf { -PROTOBUF_NAMESPACE_CLOSE +template <> +struct is_proto_enum<::google::protobuf::NullValue> : std::true_type {}; + +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_struct_5flite_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // GOOGLE_PROTOBUF_INCLUDED_struct_5flite_2eproto_2epb_2eh