From 7af81ea7d2b97d1da1f1d9786a3cce276deeb020 Mon Sep 17 00:00:00 2001 From: Yan Xue Date: Fri, 3 Apr 2020 04:28:30 +0000 Subject: [PATCH] use bazel to build --- BUILD | 66 - Makefile | 8 - api/BUILD | 18 + .../proxy_wasm_intrinsics.proto | 0 .../proxy_wasm_intrinsics_lite.proto | 2 +- struct_lite.proto => api/struct_lite.proto | 0 bazel/api_build_system.bzl | 34 + bazel/wasm_build_system.bzl | 7 + Dockerfile-sdk => docker/Dockerfile-sdk | 0 build_wasm.sh => docker/build_wasm.sh | 0 sdk_container.sh => docker/sdk_container.sh | 0 example/BUILD | 14 + example/example.cc | 22 + proxy_wasm_intrinsics.pb.cc | 6664 ----------------- proxy_wasm_intrinsics.pb.h | 4986 ------------ proxy_wasm_intrinsics_lite.pb.cc | 5956 --------------- proxy_wasm_intrinsics_lite.pb.h | 5065 ------------- source/BUILD | 63 + proxy_wasm_api.h => source/proxy_wasm_api.h | 0 .../proxy_wasm_common.h | 0 .../proxy_wasm_enums.h | 0 .../proxy_wasm_externs.h | 0 .../proxy_wasm_intrinsics.cc | 0 .../proxy_wasm_intrinsics.h | 5 +- .../proxy_wasm_intrinsics.js | 0 struct_lite.pb.cc | 1226 --- struct_lite.pb.h | 1107 --- 27 files changed, 161 insertions(+), 25082 deletions(-) delete mode 100644 Makefile create mode 100644 api/BUILD rename proxy_wasm_intrinsics.proto => api/proxy_wasm_intrinsics.proto (100%) rename proxy_wasm_intrinsics_lite.proto => api/proxy_wasm_intrinsics_lite.proto (98%) rename struct_lite.proto => api/struct_lite.proto (100%) create mode 100644 bazel/api_build_system.bzl create mode 100644 bazel/wasm_build_system.bzl rename Dockerfile-sdk => docker/Dockerfile-sdk (100%) rename build_wasm.sh => docker/build_wasm.sh (100%) rename sdk_container.sh => docker/sdk_container.sh (100%) create mode 100644 example/BUILD create mode 100644 example/example.cc delete mode 100644 proxy_wasm_intrinsics.pb.cc delete mode 100644 proxy_wasm_intrinsics.pb.h delete mode 100644 proxy_wasm_intrinsics_lite.pb.cc delete mode 100644 proxy_wasm_intrinsics_lite.pb.h create mode 100644 source/BUILD rename proxy_wasm_api.h => source/proxy_wasm_api.h (100%) rename proxy_wasm_common.h => source/proxy_wasm_common.h (100%) rename proxy_wasm_enums.h => source/proxy_wasm_enums.h (100%) rename proxy_wasm_externs.h => source/proxy_wasm_externs.h (100%) rename proxy_wasm_intrinsics.cc => source/proxy_wasm_intrinsics.cc (100%) rename proxy_wasm_intrinsics.h => source/proxy_wasm_intrinsics.h (92%) rename proxy_wasm_intrinsics.js => source/proxy_wasm_intrinsics.js (100%) delete mode 100644 struct_lite.pb.cc delete mode 100644 struct_lite.pb.h diff --git a/BUILD b/BUILD index b2fbcce..8036f87 100644 --- a/BUILD +++ b/BUILD @@ -1,68 +1,2 @@ licenses(["notice"]) # Apache 2 -package(default_visibility = ["//visibility:public"]) - -cc_library( - name = "api_lib", - hdrs = ["proxy_wasm_api.h"], -) - -cc_library( - name = "common_lib", - hdrs = [ - "proxy_wasm_common.h", - "proxy_wasm_enums.h", - ], -) - -cc_library( - name = "proxy_wasm_intrinsics_lite", - srcs = [ - "proxy_wasm_intrinsics.cc", - "proxy_wasm_intrinsics_lite.pb.cc", - "struct_lite.pb.cc", - ], - hdrs = [ - "proxy_wasm_api.h", - "proxy_wasm_common.h", - "proxy_wasm_enums.h", - "proxy_wasm_externs.h", - "proxy_wasm_intrinsics.h", - "proxy_wasm_intrinsics_lite.pb.h", - "struct_lite.pb.h", - ], - copts = ["-DPROXY_WASM_PROTOBUF_LITE=1"], - visibility = ["//visibility:public"], - deps = [ - "@com_google_protobuf//:protobuf_lite", - ], -) - -cc_library( - name = "proxy_wasm_intrinsics", - srcs = [ - "proxy_wasm_intrinsics.cc", - "proxy_wasm_intrinsics.pb.cc", - ], - hdrs = [ - "proxy_wasm_api.h", - "proxy_wasm_common.h", - "proxy_wasm_enums.h", - "proxy_wasm_externs.h", - "proxy_wasm_intrinsics.h", - "proxy_wasm_intrinsics.pb.h", - "struct_lite.pb.h", - ], - visibility = ["//visibility:public"], - deps = [ - "@com_google_protobuf//:protobuf", - ], -) - -filegroup( - name = "jslib", - srcs = [ - "proxy_wasm_intrinsics.js", - ], - visibility = ["//visibility:public"], -) diff --git a/Makefile b/Makefile deleted file mode 100644 index 089b0ff..0000000 --- a/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -all: proxy_wasm_intrinsics.pb.h proxy_wasm_intrinsics_lite.pb.h struct_lite.pb.h - -proxy_wasm_intrinsics.pb.h: proxy_wasm_intrinsics.proto - protoc --cpp_out=. proxy_wasm_intrinsics.proto - -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 diff --git a/api/BUILD b/api/BUILD new file mode 100644 index 0000000..79c4e23 --- /dev/null +++ b/api/BUILD @@ -0,0 +1,18 @@ +load("//:bazel/api_build_system.bzl", "api_proto_package") + +licenses(["notice"]) # Apache 2 + +api_proto_package( + name = "proxy_wasm_intrinsics", + srcs = [ + "proxy_wasm_intrinsics.proto", + ], +) + +api_proto_package( + name = "proxy_wasm_intrinsics_lite", + srcs = [ + "proxy_wasm_intrinsics_lite.proto", + "struct_lite.proto", + ], +) diff --git a/proxy_wasm_intrinsics.proto b/api/proxy_wasm_intrinsics.proto similarity index 100% rename from proxy_wasm_intrinsics.proto rename to api/proxy_wasm_intrinsics.proto diff --git a/proxy_wasm_intrinsics_lite.proto b/api/proxy_wasm_intrinsics_lite.proto similarity index 98% rename from proxy_wasm_intrinsics_lite.proto rename to api/proxy_wasm_intrinsics_lite.proto index 565bba9..c01fd19 100644 --- a/proxy_wasm_intrinsics_lite.proto +++ b/api/proxy_wasm_intrinsics_lite.proto @@ -16,7 +16,7 @@ syntax = 'proto3'; option optimize_for = LITE_RUNTIME; -import "struct_lite.proto"; +import "api/struct_lite.proto"; message WKT { google.protobuf.Struct struct = 1; diff --git a/struct_lite.proto b/api/struct_lite.proto similarity index 100% rename from struct_lite.proto rename to api/struct_lite.proto diff --git a/bazel/api_build_system.bzl b/bazel/api_build_system.bzl new file mode 100644 index 0000000..823cd29 --- /dev/null +++ b/bazel/api_build_system.bzl @@ -0,0 +1,34 @@ +load("@rules_cc//cc:defs.bzl", "cc_proto_library") +load("@rules_proto//proto:defs.bzl", "proto_library") + +_CC_PROTO_SUFFIX = "_cc_proto" +_COMMON_PROTO_DEPS = [ + "@com_google_protobuf//:any_proto", + "@com_google_protobuf//:duration_proto", + "@com_google_protobuf//:empty_proto", + "@com_google_protobuf//:struct_proto", +] + +def api_proto_package( + name = "pkg", + srcs = [], + deps = [], + visibility = ["//visibility:public"]): + if srcs == []: + srcs = native.glob(["*.proto"]) + + proto_library( + name = name, + srcs = srcs, + deps = deps + _COMMON_PROTO_DEPS, + visibility = visibility, + ) + + relative_name = ":" + name + cc_proto_library_name = name + _CC_PROTO_SUFFIX + + cc_proto_library( + name = cc_proto_library_name, + deps = [relative_name], + visibility = ["//visibility:public"], + ) diff --git a/bazel/wasm_build_system.bzl b/bazel/wasm_build_system.bzl new file mode 100644 index 0000000..4333f68 --- /dev/null +++ b/bazel/wasm_build_system.bzl @@ -0,0 +1,7 @@ +def wasm_binary( + name = "binary", + out = "", + lite = False, + srcs = []): + if out == "": + out = name + ".wasm" diff --git a/Dockerfile-sdk b/docker/Dockerfile-sdk similarity index 100% rename from Dockerfile-sdk rename to docker/Dockerfile-sdk diff --git a/build_wasm.sh b/docker/build_wasm.sh similarity index 100% rename from build_wasm.sh rename to docker/build_wasm.sh diff --git a/sdk_container.sh b/docker/sdk_container.sh similarity index 100% rename from sdk_container.sh rename to docker/sdk_container.sh diff --git a/example/BUILD b/example/BUILD new file mode 100644 index 0000000..a6aea4e --- /dev/null +++ b/example/BUILD @@ -0,0 +1,14 @@ +load("//:bazel/wasm_build_system.bzl", "wasm_binary") + +licenses(["notice"]) + +package(default_visibility = ["//visibility:public"]) + +wasm_binary( + name = "example_base", +) + +wasm_binary( + name = "example_lite", + lite = True, +) diff --git a/example/example.cc b/example/example.cc new file mode 100644 index 0000000..ef6d593 --- /dev/null +++ b/example/example.cc @@ -0,0 +1,22 @@ +#include +#include + +#include "proxy_wasm_intrinsics.h" + +class ExampleContext : public Context { +public: + explicit ExampleContext(uint32_t id, RootContext *root) : Context(id, root) {} + + FilterHeadersStatus onRequestHeaders(uint32_t headers) override; + void onDone() override; +}; +static RegisterContextFactory register_ExampleContext(CONTEXT_FACTORY(ExampleContext)); + +FilterHeadersStatus ExampleContext::onRequestHeaders(uint32_t headers) { + logInfo(std::string("onRequestHeaders ") + std::to_string(id())); + auto path = getRequestHeader(":path"); + logInfo(std::string("header path ") + std::string(path->view())); + return FilterHeadersStatus::Continue; +} + +void ExampleContext::onDone() { logInfo("onDone " + std::to_string(id())); } diff --git a/proxy_wasm_intrinsics.pb.cc b/proxy_wasm_intrinsics.pb.cc deleted file mode 100644 index 9e56f38..0000000 --- a/proxy_wasm_intrinsics.pb.cc +++ /dev/null @@ -1,6664 +0,0 @@ -// 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 - -#include "proxy_wasm_intrinsics.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@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(); -} - -::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,}}; - -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_GoogleLocalCredentials_proxy_5fwasm_5fintrinsics_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_GoogleLocalCredentials(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_GoogleLocalCredentials::InitAsDefaultInstance(); -} - -::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}, {}}; - -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_SslCredentials_proxy_5fwasm_5fintrinsics_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_GoogleGrpc_SslCredentials_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_SslCredentials(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_SslCredentials::InitAsDefaultInstance(); -} - -::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,}}; - -static void InitDefaultsscc_info_GrpcService_HeaderValue_proxy_5fwasm_5fintrinsics_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_HeaderValue_default_instance_; - new (ptr) ::GrpcService_HeaderValue(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_HeaderValue::InitAsDefaultInstance(); -} - -::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}, {}}; - -static void InitDefaultsscc_info_WKT_proxy_5fwasm_5fintrinsics_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - 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_), -}; -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)}, -}; - -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_), -}; - -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 ::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 ::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, -}; - -// 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); - -// =================================================================== - -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); -}; - -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; - } - // @@protoc_insertion_point(copy_constructor:WKT) -} - -void WKT::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_WKT_proxy_5fwasm_5fintrinsics_2eproto.base); - struct__ = nullptr; -} - -WKT::~WKT() { - // @@protoc_insertion_point(destructor:WKT) - 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() { -// @@protoc_insertion_point(message_clear_start:WKT) - ::PROTOBUF_NAMESPACE_ID::uint32 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; - } - } - } -success: - // @@protoc_insertion_point(parse_success:WKT) - return true; -failure: - // @@protoc_insertion_point(parse_failure:WKT) - return false; -#undef DO_ -} -#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; - - // .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_NAMESPACE_ID::uint8* WKT::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:WKT) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .google.protobuf.Struct struct = 1; - if (this->has_struct_()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::struct_(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:WKT) - return target; -} - -size_t WKT::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:WKT) - 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; - - // .google.protobuf.Struct struct = 1; - if (this->has_struct_()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *struct__); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_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) cached_has_bits; - - if (from.has_struct_()) { - mutable_struct_()->PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from.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); -} - -void WKT::CopyFrom(const WKT& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:WKT) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WKT::IsInitialized() const { - return true; -} - -void WKT::InternalSwap(WKT* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(struct__, other->struct__); -} - -::PROTOBUF_NAMESPACE_ID::Metadata WKT::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -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: -}; - -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: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:DataSource) -} - -void DataSource::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DataSource_proxy_5fwasm_5fintrinsics_2eproto.base); - clear_has_specifier(); -} - -DataSource::~DataSource() { - // @@protoc_insertion_point(destructor:DataSource) - SharedDtor(); -} - -void DataSource::SharedDtor() { - if (has_specifier()) { - clear_specifier(); - } -} - -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) - switch (specifier_case()) { - case kFilename: { - specifier_.filename_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - break; - } - case kInlineBytes: { - specifier_.inline_bytes_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - break; - } - case kInlineString: { - specifier_.inline_string_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - break; - } - case SPECIFIER_NOT_SET: { - break; - } - } - _oneof_case_[0] = SPECIFIER_NOT_SET; -} - - -void DataSource::Clear() { -// @@protoc_insertion_point(message_clear_start:DataSource) - ::PROTOBUF_NAMESPACE_ID::uint32 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_ -} -#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); - } - - // 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_NAMESPACE_ID::uint8* DataSource::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) 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); - } - - // bytes inline_bytes = 2; - if (has_inline_bytes()) { - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray( - 2, this->inline_bytes(), target); - } - - // 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"); - 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); - } - // @@protoc_insertion_point(serialize_to_array_end:DataSource) - return target; -} - -size_t DataSource::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:DataSource) - 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; - - switch (specifier_case()) { - // string filename = 1; - case kFilename: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->filename()); - break; - } - // bytes inline_bytes = 2; - case kInlineBytes: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->inline_bytes()); - break; - } - // string inline_string = 3; - case kInlineString: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->inline_string()); - break; - } - case SPECIFIER_NOT_SET: { - break; - } - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_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) 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; - } - } -} - -void DataSource::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:DataSource) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DataSource::CopyFrom(const DataSource& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:DataSource) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DataSource::IsInitialized() const { - return true; -} - -void DataSource::InternalSwap(DataSource* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(specifier_, other->specifier_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::PROTOBUF_NAMESPACE_ID::Metadata DataSource::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -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_); - } - // @@protoc_insertion_point(copy_constructor:GrpcService.EnvoyGrpc) -} - -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()); -} - -GrpcService_EnvoyGrpc::~GrpcService_EnvoyGrpc() { - // @@protoc_insertion_point(destructor:GrpcService.EnvoyGrpc) - 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() { -// @@protoc_insertion_point(message_clear_start:GrpcService.EnvoyGrpc) - ::PROTOBUF_NAMESPACE_ID::uint32 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_ -} -#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; - - // 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_NAMESPACE_ID::uint8* GrpcService_EnvoyGrpc::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.EnvoyGrpc) - ::PROTOBUF_NAMESPACE_ID::uint32 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 (_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.EnvoyGrpc) - return target; -} - -size_t GrpcService_EnvoyGrpc::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.EnvoyGrpc) - 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; - - // string cluster_name = 1; - if (this->cluster_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->cluster_name()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_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) cached_has_bits; - - if (from.cluster_name().size() > 0) { - - cluster_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.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); -} - -void GrpcService_EnvoyGrpc::CopyFrom(const GrpcService_EnvoyGrpc& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.EnvoyGrpc) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GrpcService_EnvoyGrpc::IsInitialized() const { - return true; -} - -void GrpcService_EnvoyGrpc::InternalSwap(GrpcService_EnvoyGrpc* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - cluster_name_.Swap(&other->cluster_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GrpcService_EnvoyGrpc::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -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); -}; - -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; - } - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.SslCredentials) -} - -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_)); -} - -GrpcService_GoogleGrpc_SslCredentials::~GrpcService_GoogleGrpc_SslCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.SslCredentials) - 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() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.SslCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 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; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc.SslCredentials) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.GoogleGrpc.SslCredentials) - return false; -#undef DO_ -} -#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); - } - - // .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_NAMESPACE_ID::uint8* GrpcService_GoogleGrpc_SslCredentials::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_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()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::root_certs(this), target); - } - - // .DataSource private_key = 2; - if (this->has_private_key()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, _Internal::private_key(this), target); - } - - // .DataSource cert_chain = 3; - if (this->has_cert_chain()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, _Internal::cert_chain(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.SslCredentials) - return target; -} - -size_t GrpcService_GoogleGrpc_SslCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.SslCredentials) - 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; - - // .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_); - } - - // .DataSource cert_chain = 3; - if (this->has_cert_chain()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *cert_chain_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -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); - } -} - -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) 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()); - } -} - -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); -} - -void GrpcService_GoogleGrpc_SslCredentials::CopyFrom(const GrpcService_GoogleGrpc_SslCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.SslCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GrpcService_GoogleGrpc_SslCredentials::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_SslCredentials::InternalSwap(GrpcService_GoogleGrpc_SslCredentials* 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_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GrpcService_GoogleGrpc_SslCredentials::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -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() { -} - -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; -} - -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(); -} - - -// =================================================================== - -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); -}; - -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(); - clear_credential_specifier(); - if (ssl_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - ssl_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, ssl_credentials, submessage_arena); - } - set_has_ssl_credentials(); - 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(); - clear_credential_specifier(); - if (google_default) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(google_default)->GetArena(); - if (message_arena != submessage_arena) { - google_default = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, google_default, submessage_arena); - } - set_has_google_default(); - 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_; - clear_has_credential_specifier(); - } -} -void GrpcService_GoogleGrpc_ChannelCredentials::set_allocated_local_credentials(::GrpcService_GoogleGrpc_GoogleLocalCredentials* local_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - clear_credential_specifier(); - if (local_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - local_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, local_credentials, submessage_arena); - } - set_has_local_credentials(); - 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: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.ChannelCredentials) -} - -void GrpcService_GoogleGrpc_ChannelCredentials::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_GoogleGrpc_ChannelCredentials_proxy_5fwasm_5fintrinsics_2eproto.base); - clear_has_credential_specifier(); -} - -GrpcService_GoogleGrpc_ChannelCredentials::~GrpcService_GoogleGrpc_ChannelCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.ChannelCredentials) - SharedDtor(); -} - -void GrpcService_GoogleGrpc_ChannelCredentials::SharedDtor() { - if (has_credential_specifier()) { - clear_credential_specifier(); - } -} - -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) - switch (credential_specifier_case()) { - case kSslCredentials: { - delete credential_specifier_.ssl_credentials_; - break; - } - case kGoogleDefault: { - delete credential_specifier_.google_default_; - break; - } - case kLocalCredentials: { - delete credential_specifier_.local_credentials_; - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { - break; - } - } - _oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; -} - - -void GrpcService_GoogleGrpc_ChannelCredentials::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.ChannelCredentials) - ::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_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: - 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_NAMESPACE_ID::uint8* GrpcService_GoogleGrpc_ChannelCredentials::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) 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); - } - - // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; - if (has_local_credentials()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, _Internal::local_credentials(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.ChannelCredentials) - return target; -} - -size_t GrpcService_GoogleGrpc_ChannelCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.ChannelCredentials) - 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; - - 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_); - break; - } - // .google.protobuf.Empty google_default = 2; - case kGoogleDefault: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *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_); - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { - break; - } - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_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) 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; - } - 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); -} - -void GrpcService_GoogleGrpc_ChannelCredentials::CopyFrom(const GrpcService_GoogleGrpc_ChannelCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.ChannelCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GrpcService_GoogleGrpc_ChannelCredentials::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_ChannelCredentials::InternalSwap(GrpcService_GoogleGrpc_ChannelCredentials* 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_ChannelCredentials::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -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_; - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) -} - -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); -} - -GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::~GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - 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() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 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_ -} -#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); - } - - // 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_NAMESPACE_ID::uint8* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_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"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->json_key(), 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 (_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.ServiceAccountJWTAccessCredentials) - return target; -} - -size_t GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - 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; - - // string json_key = 1; - if (this->json_key().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->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()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_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) cached_has_bits; - - if (from.json_key().size() > 0) { - - json_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.json_key_); - } - if (from.token_lifetime_seconds() != 0) { - set_token_lifetime_seconds(from.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); -} - -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* 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_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -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_); - } - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) -} - -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()); -} - -GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::~GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - 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() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 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_ -} -#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); - } - - // 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_NAMESPACE_ID::uint8* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_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"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->authorization_token(), 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 (_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.GoogleIAMCredentials) - return target; -} - -size_t GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - 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; - - // string authorization_token = 1; - if (this->authorization_token().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->authorization_token()); - } - - // string authority_selector = 2; - if (this->authority_selector().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->authority_selector()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_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) cached_has_bits; - - if (from.authorization_token().size() > 0) { - - authorization_token_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.authorization_token_); - } - if (from.authority_selector().size() > 0) { - - authority_selector_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.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); -} - -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* 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()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -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); -}; - -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(); - clear_config_type(); - if (config) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config)->GetArena(); - if (message_arena != submessage_arena) { - config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, config, submessage_arena); - } - set_has_config(); - 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_; - 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(); - clear_config_type(); - if (typed_config) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - typed_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, typed_config, submessage_arena); - } - set_has_typed_config(); - 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_; - 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: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) -} - -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(); -} - -GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::~GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - SharedDtor(); -} - -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::SharedDtor() { - name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (has_config_type()) { - clear_config_type(); - } -} - -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) - switch (config_type_case()) { - case kConfig: { - delete config_type_.config_; - break; - } - case kTypedConfig: { - delete config_type_.typed_config_; - break; - } - case CONFIG_TYPE_NOT_SET: { - break; - } - } - _oneof_case_[0] = CONFIG_TYPE_NOT_SET; -} - - -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - 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: - 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; - } - - 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 { - // @@protoc_insertion_point(serialize_to_array_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"); - 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); - } - - // .google.protobuf.Any typed_config = 3; - if (has_typed_config()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, _Internal::typed_config(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.MetadataCredentialsFromPlugin) - return target; -} - -size_t GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - 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; - - // string name = 1; - if (this->name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->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_); - break; - } - // .google.protobuf.Any typed_config = 3; - case kTypedConfig: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *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; -} - -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) cached_has_bits; - - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.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; - } - 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); -} - -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]); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -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_); - } - // @@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()); -} - -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_2eproto.base); - return *internal_default_instance(); -} - - -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, "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: - 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_NAMESPACE_ID::uint8* GrpcService_GoogleGrpc_CallCredentials_StsService::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_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"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->token_exchange_service_uri(), 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); - } - - // 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); - } - - // 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); - } - - // 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); - } - - // 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); - } - - // 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); - } - - // 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); - } - - // 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 (_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.StsService) - return target; -} - -size_t GrpcService_GoogleGrpc_CallCredentials_StsService::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - 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; - - // 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()); - } - - // string resource = 2; - if (this->resource().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->resource()); - } - - // string audience = 3; - if (this->audience().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->audience()); - } - - // string scope = 4; - if (this->scope().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->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()); - } - - // 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()); - } - - // 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()); - } - - // 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()); - } - - // 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()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_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) 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.resource().size() > 0) { - - resource_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.resource_); - } - if (from.audience().size() > 0) { - - audience_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.audience_); - } - if (from.scope().size() > 0) { - - scope_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.scope_); - } - if (from.requested_token_type().size() > 0) { - - requested_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.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.subject_token_type().size() > 0) { - - subject_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.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.actor_token_type().size() > 0) { - - actor_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.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); -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GrpcService_GoogleGrpc_CallCredentials_StsService::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_StsService* 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(); -} - - -// =================================================================== - -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); -}; - -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(); - clear_credential_specifier(); - if (google_compute_engine) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::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); - } - set_has_google_compute_engine(); - 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_; - 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(); - clear_credential_specifier(); - if (service_account_jwt_access) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - service_account_jwt_access = ::PROTOBUF_NAMESPACE_ID::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; - } - // @@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(); - clear_credential_specifier(); - if (google_iam) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - google_iam = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, google_iam, submessage_arena); - } - set_has_google_iam(); - 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(); - clear_credential_specifier(); - if (from_plugin) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - from_plugin = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, from_plugin, submessage_arena); - } - set_has_from_plugin(); - 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(); - clear_credential_specifier(); - if (sts_service) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - sts_service = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, sts_service, submessage_arena); - } - set_has_sts_service(); - 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: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials) -} - -void GrpcService_GoogleGrpc_CallCredentials::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_2eproto.base); - clear_has_credential_specifier(); -} - -GrpcService_GoogleGrpc_CallCredentials::~GrpcService_GoogleGrpc_CallCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials) - SharedDtor(); -} - -void GrpcService_GoogleGrpc_CallCredentials::SharedDtor() { - if (has_credential_specifier()) { - clear_credential_specifier(); - } -} - -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) - switch (credential_specifier_case()) { - case kAccessToken: { - credential_specifier_.access_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - break; - } - case kGoogleComputeEngine: { - delete credential_specifier_.google_compute_engine_; - break; - } - case kGoogleRefreshToken: { - credential_specifier_.google_refresh_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - break; - } - case kServiceAccountJwtAccess: { - delete credential_specifier_.service_account_jwt_access_; - break; - } - case kGoogleIam: { - delete credential_specifier_.google_iam_; - break; - } - case kFromPlugin: { - delete credential_specifier_.from_plugin_; - break; - } - case kStsService: { - delete credential_specifier_.sts_service_; - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { - 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, "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_ -} -#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) -} - -::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; - - 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; - - switch (credential_specifier_case()) { - // string access_token = 1; - case kAccessToken: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->access_token()); - break; - } - // .google.protobuf.Empty google_compute_engine = 2; - case kGoogleComputeEngine: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *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()); - 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_); - break; - } - // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; - case kGoogleIam: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *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_); - break; - } - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - case kStsService: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *credential_specifier_.sts_service_); - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { - 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); - } -} - -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; - (void) cached_has_bits; - - 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: { - break; - } - } -} - -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) 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; - } - } // 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; - } - 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::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc) - 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; - - // 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); - } - - // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - if (this->has_channel_credentials()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, _Internal::channel_credentials(this), output); - } - - // 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); - } - - // 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); - } - - // 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); - } - - // .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_NAMESPACE_ID::uint8* GrpcService_GoogleGrpc::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc) - ::PROTOBUF_NAMESPACE_ID::uint32 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); - } - - // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - if (this->has_channel_credentials()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, _Internal::channel_credentials(this), target); - } - - // 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); - } - - // 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); - } - - // 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); - } - - // .google.protobuf.Struct config = 6; - if (this->has_config()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, _Internal::config(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) - return target; -} - -size_t GrpcService_GoogleGrpc::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc) - 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; - - // 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))); - } - } - - // string target_uri = 1; - if (this->target_uri().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->target_uri()); - } - - // string stat_prefix = 4; - if (this->stat_prefix().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->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_); - } - - // .google.protobuf.Struct config = 6; - if (this->has_config()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *config_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -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); - } -} - -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) { - - 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()); - } -} - -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); -} - -void GrpcService_GoogleGrpc::CopyFrom(const GrpcService_GoogleGrpc& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GrpcService_GoogleGrpc::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc::InternalSwap(GrpcService_GoogleGrpc* 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(); -} - - -// =================================================================== - -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_); - } - // @@protoc_insertion_point(copy_constructor:GrpcService.HeaderValue) -} - -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()); -} - -GrpcService_HeaderValue::~GrpcService_HeaderValue() { - // @@protoc_insertion_point(destructor:GrpcService.HeaderValue) - 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() { -// @@protoc_insertion_point(message_clear_start:GrpcService.HeaderValue) - ::PROTOBUF_NAMESPACE_ID::uint32 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_ -} -#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); - } - - // 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_NAMESPACE_ID::uint8* GrpcService_HeaderValue::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_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"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->key(), 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 (_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.HeaderValue) - return target; -} - -size_t GrpcService_HeaderValue::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.HeaderValue) - 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; - - // string key = 1; - if (this->key().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->key()); - } - - // string value = 2; - if (this->value().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->value()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_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) cached_has_bits; - - if (from.key().size() > 0) { - - key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_); - } - if (from.value().size() > 0) { - - value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.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); -} - -void GrpcService_HeaderValue::CopyFrom(const GrpcService_HeaderValue& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.HeaderValue) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GrpcService_HeaderValue::IsInitialized() const { - return true; -} - -void GrpcService_HeaderValue::InternalSwap(GrpcService_HeaderValue* 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()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GrpcService_HeaderValue::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -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); -}; - -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(); - clear_target_specifier(); - if (envoy_grpc) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - envoy_grpc = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, envoy_grpc, submessage_arena); - } - set_has_envoy_grpc(); - 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(); - clear_target_specifier(); - if (google_grpc) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - google_grpc = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, google_grpc, submessage_arena); - } - set_has_google_grpc(); - 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: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:GrpcService) -} - -void GrpcService::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_proxy_5fwasm_5fintrinsics_2eproto.base); - timeout_ = nullptr; - clear_has_target_specifier(); -} - -GrpcService::~GrpcService() { - // @@protoc_insertion_point(destructor:GrpcService) - SharedDtor(); -} - -void GrpcService::SharedDtor() { - if (this != internal_default_instance()) delete timeout_; - if (has_target_specifier()) { - clear_target_specifier(); - } -} - -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) - switch (target_specifier_case()) { - case kEnvoyGrpc: { - delete target_specifier_.envoy_grpc_; - break; - } - case kGoogleGrpc: { - delete target_specifier_.google_grpc_; - break; - } - case TARGET_SPECIFIER_NOT_SET: { - break; - } - } - _oneof_case_[0] = TARGET_SPECIFIER_NOT_SET; -} - - -void GrpcService::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService) - ::PROTOBUF_NAMESPACE_ID::uint32 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_; - } - 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_ -} -#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); - } - - // 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_NAMESPACE_ID::uint8* GrpcService::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) 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); - } - - // .GrpcService.GoogleGrpc google_grpc = 2; - if (has_google_grpc()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, _Internal::google_grpc(this), target); - } - - // .google.protobuf.Duration timeout = 3; - if (this->has_timeout()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, _Internal::timeout(this), target); - } - - // 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); - } - - 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) - return target; -} - -size_t GrpcService::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService) - 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; - - // 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))); - } - } - - // .google.protobuf.Duration timeout = 3; - if (this->has_timeout()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *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_); - break; - } - // .GrpcService.GoogleGrpc google_grpc = 2; - case kGoogleGrpc: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *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; -} - -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) 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; - } - case kGoogleGrpc: { - mutable_google_grpc()->::GrpcService_GoogleGrpc::MergeFrom(from.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); -} - -void GrpcService::CopyFrom(const GrpcService& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GrpcService::IsInitialized() const { - return true; -} - -void GrpcService::InternalSwap(GrpcService* 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]); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GrpcService::GetMetadata() const { - return GetMetadataStatic(); -} - - -// @@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 - -// @@protoc_insertion_point(global_scope) -#include diff --git a/proxy_wasm_intrinsics.pb.h b/proxy_wasm_intrinsics.pb.h deleted file mode 100644 index 3a6d6e8..0000000 --- a/proxy_wasm_intrinsics.pb.h +++ /dev/null @@ -1,4986 +0,0 @@ -/* - * 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 - -#ifndef GOOGLE_PROTOBUF_INCLUDED_proxy_5fwasm_5fintrinsics_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_proxy_5fwasm_5fintrinsics_2eproto - -#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. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// 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[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_proxy_5fwasm_5fintrinsics_2eproto; -class DataSource; -class DataSourceDefaultTypeInternal; -extern DataSourceDefaultTypeInternal _DataSource_default_instance_; -class GrpcService; -class GrpcServiceDefaultTypeInternal; -extern GrpcServiceDefaultTypeInternal _GrpcService_default_instance_; -class GrpcService_EnvoyGrpc; -class GrpcService_EnvoyGrpcDefaultTypeInternal; -extern GrpcService_EnvoyGrpcDefaultTypeInternal _GrpcService_EnvoyGrpc_default_instance_; -class GrpcService_GoogleGrpc; -class GrpcService_GoogleGrpcDefaultTypeInternal; -extern GrpcService_GoogleGrpcDefaultTypeInternal _GrpcService_GoogleGrpc_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials; -class GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal; -extern GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials; -class 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; -extern GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials; -class 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; -extern GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_; -class GrpcService_GoogleGrpc_ChannelCredentials; -class GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal; -extern GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_ChannelCredentials_default_instance_; -class GrpcService_GoogleGrpc_GoogleLocalCredentials; -class GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal; -extern GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_; -class GrpcService_GoogleGrpc_SslCredentials; -class GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal; -extern GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_SslCredentials_default_instance_; -class GrpcService_HeaderValue; -class GrpcService_HeaderValueDefaultTypeInternal; -extern GrpcService_HeaderValueDefaultTypeInternal _GrpcService_HeaderValue_default_instance_; -class WKT; -class 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 - -// =================================================================== - -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) { - CopyFrom(from); - return *this; - } - inline WKT& operator=(WKT&& 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 WKT& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - 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; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline WKT* New() const final { - return CreateMaybeMessage(nullptr); - } - - WKT* 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 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(); } - - 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; - } - 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]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStructFieldNumber = 1, - }; - // .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_); - - // @@protoc_insertion_point(class_scope:WKT) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - PROTOBUF_NAMESPACE_ID::Struct* struct__; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// ------------------------------------------------------------------- - -class DataSource : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:DataSource) */ { - public: - DataSource(); - virtual ~DataSource(); - - DataSource(const DataSource& from); - DataSource(DataSource&& from) noexcept - : DataSource() { - *this = ::std::move(from); - } - - inline DataSource& operator=(const DataSource& from) { - CopyFrom(from); - return *this; - } - inline DataSource& operator=(DataSource&& 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 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 constexpr int kIndexInFileMessages = - 1; - - friend void swap(DataSource& a, DataSource& b) { - a.Swap(&b); - } - inline void Swap(DataSource* other) { - if (other == this) return; - 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"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - 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]; - } - - 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) - 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 struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_EnvoyGrpc : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:GrpcService.EnvoyGrpc) */ { - 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) { - CopyFrom(from); - return *this; - } - inline GrpcService_EnvoyGrpc& operator=(GrpcService_EnvoyGrpc&& 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_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 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; - 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); - } - 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(); } - - 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; - } - 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]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kClusterNameFieldNumber = 1, - }; - // 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); - - // @@protoc_insertion_point(class_scope:GrpcService.EnvoyGrpc) - private: - class _Internal; - - ::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; -}; -// ------------------------------------------------------------------- - -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(); - - 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) { - 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); - } - 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_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 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; - 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); - } - 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(); } - - 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; - } - 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]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRootCertsFieldNumber = 1, - kPrivateKeyFieldNumber = 2, - kCertChainFieldNumber = 3, - }; - // .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); - - // .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); - - // .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); - - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.SslCredentials) - 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 struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc_GoogleLocalCredentials : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.GoogleLocalCredentials) */ { - 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) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc_GoogleLocalCredentials& operator=(GrpcService_GoogleGrpc_GoogleLocalCredentials&& 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_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 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; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GrpcService_GoogleGrpc_GoogleLocalCredentials* New() const final { - return CreateMaybeMessage(nullptr); - } - - 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; - 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_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; - } - 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]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.GoogleLocalCredentials) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc_ChannelCredentials : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.ChannelCredentials) */ { - 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) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc_ChannelCredentials& operator=(GrpcService_GoogleGrpc_ChannelCredentials&& 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_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 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; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GrpcService_GoogleGrpc_ChannelCredentials* New() const final { - return CreateMaybeMessage(nullptr); - } - - 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; - 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_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; - } - 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]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSslCredentialsFieldNumber = 1, - kGoogleDefaultFieldNumber = 2, - kLocalCredentialsFieldNumber = 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); - - // .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); - - // .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); - - 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(); - - inline bool has_credential_specifier() const; - inline void clear_has_credential_specifier(); - - ::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]; - - 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) */ { - 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) { - 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); - } 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_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 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; - 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); - } - 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(); } - - 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; - } - 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]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kJsonKeyFieldNumber = 1, - kTokenLifetimeSecondsFieldNumber = 2, - }; - // 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); - - // 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); - - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - 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 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) */ { - 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) { - 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); - } 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_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 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; - 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"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - 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]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAuthorizationTokenFieldNumber = 1, - kAuthoritySelectorFieldNumber = 2, - }; - // 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); - - // 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); - - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - 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 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) */ { - 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& 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); - } 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_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); - } - inline void Swap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* other) { - if (other == this) return; - 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); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - 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; - - 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; - } - 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]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNameFieldNumber = 1, - kConfigFieldNumber = 2, - kTypedConfigFieldNumber = 3, - }; - // string name = 1; - 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); - std::string* mutable_name(); - std::string* release_name(); - void set_allocated_name(std::string* name); - - // .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); - - // .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); - - void clear_config_type(); - ConfigTypeCase config_type_case() const; - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - private: - 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 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) */ { - 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) { - 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); - } 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_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 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; - 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); - } - 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(); } - - 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; - } - 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]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTokenExchangeServiceUriFieldNumber = 1, - kResourceFieldNumber = 2, - kAudienceFieldNumber = 3, - kScopeFieldNumber = 4, - kRequestedTokenTypeFieldNumber = 5, - kSubjectTokenPathFieldNumber = 6, - kSubjectTokenTypeFieldNumber = 7, - kActorTokenPathFieldNumber = 8, - kActorTokenTypeFieldNumber = 9, - }; - // 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); - - // 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); - - // 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); - - // 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); - - // 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); - - // 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); - - // 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); - - // 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); - - // 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); - - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.StsService) - 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_; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc_CallCredentials : - public ::PROTOBUF_NAMESPACE_ID::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& 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); - } 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_GoogleGrpc_CallCredentials& default_instance(); - - enum CredentialSpecifierCase { - kAccessToken = 1, - kGoogleComputeEngine = 2, - kGoogleRefreshToken = 3, - kServiceAccountJwtAccess = 4, - kGoogleIam = 5, - kFromPlugin = 6, - 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); - } - inline void Swap(GrpcService_GoogleGrpc_CallCredentials* other) { - if (other == this) return; - 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"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - 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]; - } - - 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; - - // accessors ------------------------------------------------------- - - enum : int { - kAccessTokenFieldNumber = 1, - kGoogleComputeEngineFieldNumber = 2, - kGoogleRefreshTokenFieldNumber = 3, - kServiceAccountJwtAccessFieldNumber = 4, - kGoogleIamFieldNumber = 5, - kFromPluginFieldNumber = 6, - kStsServiceFieldNumber = 7, - }; - // string access_token = 1; - private: - bool has_access_token() const; - public: - 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); - std::string* mutable_access_token(); - std::string* release_access_token(); - void set_allocated_access_token(std::string* access_token); - - // .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); - - // string google_refresh_token = 3; - private: - bool has_google_refresh_token() const; - public: - 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); - std::string* mutable_google_refresh_token(); - std::string* release_google_refresh_token(); - void set_allocated_google_refresh_token(std::string* google_refresh_token); - - // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; - bool has_service_account_jwt_access() const; - 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(); - ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* mutable_service_account_jwt_access(); - void set_allocated_service_account_jwt_access(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* service_account_jwt_access); - - // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; - bool has_google_iam() const; - void clear_google_iam(); - const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& google_iam() const; - ::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); - - // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; - bool has_from_plugin() const; - void clear_from_plugin(); - const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from_plugin() const; - ::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); - - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - bool has_sts_service() const; - void clear_sts_service(); - const ::GrpcService_GoogleGrpc_CallCredentials_StsService& sts_service() const; - ::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 clear_credential_specifier(); - CredentialSpecifierCase credential_specifier_case() const; - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials) - private: - class _Internal; - void set_has_access_token(); - void set_has_google_compute_engine(); - void set_has_google_refresh_token(); - void set_has_service_account_jwt_access(); - 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 struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc : - public ::PROTOBUF_NAMESPACE_ID::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& 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); - } 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_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); - } - inline void Swap(GrpcService_GoogleGrpc* other) { - if (other == this) return; - 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); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - 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(); } - - 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; - } - 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]; - } - - public: - - // nested types ---------------------------------------------------- - - typedef GrpcService_GoogleGrpc_SslCredentials SslCredentials; - typedef GrpcService_GoogleGrpc_GoogleLocalCredentials GoogleLocalCredentials; - typedef GrpcService_GoogleGrpc_ChannelCredentials ChannelCredentials; - typedef GrpcService_GoogleGrpc_CallCredentials CallCredentials; - - // accessors ------------------------------------------------------- - - enum : int { - kCallCredentialsFieldNumber = 3, - kTargetUriFieldNumber = 1, - kStatPrefixFieldNumber = 4, - kCredentialsFactoryNameFieldNumber = 5, - kChannelCredentialsFieldNumber = 2, - kConfigFieldNumber = 6, - }; - // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; - int call_credentials_size() const; - void clear_call_credentials(); - ::GrpcService_GoogleGrpc_CallCredentials* mutable_call_credentials(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_GoogleGrpc_CallCredentials >* - mutable_call_credentials(); - 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; - - // string target_uri = 1; - 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); - std::string* mutable_target_uri(); - std::string* release_target_uri(); - void set_allocated_target_uri(std::string* target_uri); - - // string stat_prefix = 4; - 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); - std::string* mutable_stat_prefix(); - std::string* release_stat_prefix(); - void set_allocated_stat_prefix(std::string* stat_prefix); - - // string credentials_factory_name = 5; - 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); - std::string* mutable_credentials_factory_name(); - std::string* release_credentials_factory_name(); - void set_allocated_credentials_factory_name(std::string* credentials_factory_name); - - // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - bool has_channel_credentials() const; - void clear_channel_credentials(); - const ::GrpcService_GoogleGrpc_ChannelCredentials& channel_credentials() const; - ::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 ---------------------------------------------- - - 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; - } - 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]; - } - - 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) - 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 struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService : - public ::PROTOBUF_NAMESPACE_ID::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& operator=(const GrpcService& from) { - CopyFrom(from); - return *this; - } - inline GrpcService& operator=(GrpcService&& 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& 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); - } - inline void Swap(GrpcService* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GrpcService* New() const final { - return CreateMaybeMessage(nullptr); - } - - 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; - 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(); } - - 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; - } - 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]; - } - - public: - - // nested types ---------------------------------------------------- - - typedef GrpcService_EnvoyGrpc EnvoyGrpc; - typedef GrpcService_GoogleGrpc GoogleGrpc; - typedef GrpcService_HeaderValue HeaderValue; - - // accessors ------------------------------------------------------- - - enum : int { - kInitialMetadataFieldNumber = 5, - kTimeoutFieldNumber = 3, - kEnvoyGrpcFieldNumber = 1, - kGoogleGrpcFieldNumber = 2, - }; - // repeated .GrpcService.HeaderValue initial_metadata = 5; - int initial_metadata_size() const; - void clear_initial_metadata(); - ::GrpcService_HeaderValue* mutable_initial_metadata(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_HeaderValue >* - mutable_initial_metadata(); - const ::GrpcService_HeaderValue& initial_metadata(int index) const; - ::GrpcService_HeaderValue* add_initial_metadata(); - const ::PROTOBUF_NAMESPACE_ID::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); - - // .GrpcService.EnvoyGrpc envoy_grpc = 1; - bool has_envoy_grpc() const; - void clear_envoy_grpc(); - const ::GrpcService_EnvoyGrpc& envoy_grpc() const; - ::GrpcService_EnvoyGrpc* release_envoy_grpc(); - ::GrpcService_EnvoyGrpc* mutable_envoy_grpc(); - void set_allocated_envoy_grpc(::GrpcService_EnvoyGrpc* envoy_grpc); - - // .GrpcService.GoogleGrpc google_grpc = 2; - bool has_google_grpc() const; - void clear_google_grpc(); - const ::GrpcService_GoogleGrpc& google_grpc() const; - ::GrpcService_GoogleGrpc* release_google_grpc(); - ::GrpcService_GoogleGrpc* mutable_google_grpc(); - void set_allocated_google_grpc(::GrpcService_GoogleGrpc* google_grpc); - - void clear_target_specifier(); - TargetSpecifierCase target_specifier_case() const; - // @@protoc_insertion_point(class_scope:GrpcService) - private: - 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 struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #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; -} -inline const PROTOBUF_NAMESPACE_ID::Struct& WKT::struct_() const { - const PROTOBUF_NAMESPACE_ID::Struct* p = struct__; - // @@protoc_insertion_point(field_get:WKT.struct) - return p != nullptr ? *p : *reinterpret_cast( - &PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); -} -inline PROTOBUF_NAMESPACE_ID::Struct* WKT::release_struct_() { - // @@protoc_insertion_point(field_release:WKT.struct) - - PROTOBUF_NAMESPACE_ID::Struct* temp = struct__; - struct__ = nullptr; - return temp; -} -inline PROTOBUF_NAMESPACE_ID::Struct* WKT::mutable_struct_() { - - if (struct__ == nullptr) { - auto* p = CreateMaybeMessage(GetArenaNoVirtual()); - struct__ = p; - } - // @@protoc_insertion_point(field_mutable:WKT.struct) - return struct__; -} -inline void WKT::set_allocated_struct_(PROTOBUF_NAMESPACE_ID::Struct* struct_) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(struct__); - } - if (struct_) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(struct_)->GetArena(); - if (message_arena != submessage_arena) { - struct_ = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, struct_, submessage_arena); - } - - } else { - - } - struct__ = struct_; - // @@protoc_insertion_point(field_set_allocated:WKT.struct) -} - -// ------------------------------------------------------------------- - -// DataSource - -// string filename = 1; -inline bool DataSource::has_filename() const { - return specifier_case() == kFilename; -} -inline void DataSource::set_has_filename() { - _oneof_case_[0] = kFilename; -} -inline void DataSource::clear_filename() { - if (has_filename()) { - specifier_.filename_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - clear_has_specifier(); - } -} -inline const std::string& DataSource::filename() const { - // @@protoc_insertion_point(field_get:DataSource.filename) - if (has_filename()) { - return specifier_.filename_.GetNoArena(); - } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); -} -inline void DataSource::set_filename(const 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(), value); - // @@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 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()); - } - specifier_.filename_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:DataSource.filename) -} -inline void DataSource::set_filename(const char* value, size_t size) { - 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::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:DataSource.filename) -} -inline std::string* DataSource::mutable_filename() { - if (!has_filename()) { - clear_specifier(); - set_has_filename(); - specifier_.filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:DataSource.filename) - return specifier_.filename_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* DataSource::release_filename() { - // @@protoc_insertion_point(field_release:DataSource.filename) - if (has_filename()) { - clear_has_specifier(); - return specifier_.filename_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void DataSource::set_allocated_filename(std::string* filename) { - if (has_specifier()) { - clear_specifier(); - } - if (filename != nullptr) { - set_has_filename(); - specifier_.filename_.UnsafeSetDefault(filename); - } - // @@protoc_insertion_point(field_set_allocated:DataSource.filename) -} - -// bytes inline_bytes = 2; -inline bool DataSource::has_inline_bytes() const { - return specifier_case() == kInlineBytes; -} -inline void DataSource::set_has_inline_bytes() { - _oneof_case_[0] = kInlineBytes; -} -inline void DataSource::clear_inline_bytes() { - if (has_inline_bytes()) { - specifier_.inline_bytes_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - clear_has_specifier(); - } -} -inline const std::string& DataSource::inline_bytes() const { - // @@protoc_insertion_point(field_get:DataSource.inline_bytes) - if (has_inline_bytes()) { - return specifier_.inline_bytes_.GetNoArena(); - } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); -} -inline void DataSource::set_inline_bytes(const 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(), value); - // @@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 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()); - } - specifier_.inline_bytes_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:DataSource.inline_bytes) -} -inline void DataSource::set_inline_bytes(const void* value, size_t size) { - 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::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:DataSource.inline_bytes) -} -inline std::string* DataSource::mutable_inline_bytes() { - if (!has_inline_bytes()) { - clear_specifier(); - set_has_inline_bytes(); - specifier_.inline_bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:DataSource.inline_bytes) - return specifier_.inline_bytes_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* DataSource::release_inline_bytes() { - // @@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 { - return nullptr; - } -} -inline void DataSource::set_allocated_inline_bytes(std::string* inline_bytes) { - if (has_specifier()) { - clear_specifier(); - } - if (inline_bytes != nullptr) { - set_has_inline_bytes(); - specifier_.inline_bytes_.UnsafeSetDefault(inline_bytes); - } - // @@protoc_insertion_point(field_set_allocated:DataSource.inline_bytes) -} - -// string inline_string = 3; -inline bool DataSource::has_inline_string() const { - return specifier_case() == kInlineString; -} -inline void DataSource::set_has_inline_string() { - _oneof_case_[0] = kInlineString; -} -inline void DataSource::clear_inline_string() { - if (has_inline_string()) { - specifier_.inline_string_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - clear_has_specifier(); - } -} -inline const std::string& DataSource::inline_string() const { - // @@protoc_insertion_point(field_get:DataSource.inline_string) - if (has_inline_string()) { - return specifier_.inline_string_.GetNoArena(); - } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); -} -inline void DataSource::set_inline_string(const 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(), value); - // @@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 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()); - } - specifier_.inline_string_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:DataSource.inline_string) -} -inline void DataSource::set_inline_string(const char* value, size_t size) { - 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::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:DataSource.inline_string) -} -inline std::string* DataSource::mutable_inline_string() { - if (!has_inline_string()) { - clear_specifier(); - set_has_inline_string(); - specifier_.inline_string_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:DataSource.inline_string) - return specifier_.inline_string_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* DataSource::release_inline_string() { - // @@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 { - return nullptr; - } -} -inline void DataSource::set_allocated_inline_string(std::string* inline_string) { - if (has_specifier()) { - clear_specifier(); - } - if (inline_string != nullptr) { - set_has_inline_string(); - specifier_.inline_string_.UnsafeSetDefault(inline_string); - } - // @@protoc_insertion_point(field_set_allocated:DataSource.inline_string) -} - -inline bool DataSource::has_specifier() const { - return specifier_case() != SPECIFIER_NOT_SET; -} -inline void DataSource::clear_has_specifier() { - _oneof_case_[0] = SPECIFIER_NOT_SET; -} -inline DataSource::SpecifierCase DataSource::specifier_case() const { - return DataSource::SpecifierCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// GrpcService_EnvoyGrpc - -// string cluster_name = 1; -inline void GrpcService_EnvoyGrpc::clear_cluster_name() { - cluster_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_EnvoyGrpc::cluster_name() const { - // @@protoc_insertion_point(field_get:GrpcService.EnvoyGrpc.cluster_name) - return cluster_name_.GetNoArena(); -} -inline void GrpcService_EnvoyGrpc::set_cluster_name(const std::string& value) { - - cluster_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.EnvoyGrpc.cluster_name) - return cluster_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_EnvoyGrpc::release_cluster_name() { - // @@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); - // @@protoc_insertion_point(field_set_allocated:GrpcService.EnvoyGrpc.cluster_name) -} - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_SslCredentials - -// .DataSource root_certs = 1; -inline bool GrpcService_GoogleGrpc_SslCredentials::has_root_certs() const { - return this != internal_default_instance() && root_certs_ != nullptr; -} -inline void GrpcService_GoogleGrpc_SslCredentials::clear_root_certs() { - if (GetArenaNoVirtual() == nullptr && root_certs_ != nullptr) { - delete root_certs_; - } - root_certs_ = nullptr; -} -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::root_certs() const { - const ::DataSource* p = root_certs_; - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.SslCredentials.root_certs) - return p != nullptr ? *p : *reinterpret_cast( - &::_DataSource_default_instance_); -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::release_root_certs() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.SslCredentials.root_certs) - - ::DataSource* temp = root_certs_; - 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; - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.SslCredentials.root_certs) - return root_certs_; -} -inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_root_certs(::DataSource* root_certs) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete root_certs_; - } - if (root_certs) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - root_certs = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, root_certs, submessage_arena); - } - - } else { - - } - root_certs_ = root_certs; - // @@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; -} -inline void GrpcService_GoogleGrpc_SslCredentials::clear_private_key() { - if (GetArenaNoVirtual() == nullptr && private_key_ != nullptr) { - delete private_key_; - } - private_key_ = nullptr; -} -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::private_key() const { - const ::DataSource* p = private_key_; - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.SslCredentials.private_key) - return p != nullptr ? *p : *reinterpret_cast( - &::_DataSource_default_instance_); -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::release_private_key() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.SslCredentials.private_key) - - ::DataSource* temp = private_key_; - 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; - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.SslCredentials.private_key) - return private_key_; -} -inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_private_key(::DataSource* private_key) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete private_key_; - } - if (private_key) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - private_key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, private_key, submessage_arena); - } - - } else { - - } - private_key_ = private_key; - // @@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; -} -inline void GrpcService_GoogleGrpc_SslCredentials::clear_cert_chain() { - if (GetArenaNoVirtual() == nullptr && cert_chain_ != nullptr) { - delete cert_chain_; - } - cert_chain_ = nullptr; -} -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::cert_chain() const { - const ::DataSource* p = cert_chain_; - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.SslCredentials.cert_chain) - return p != nullptr ? *p : *reinterpret_cast( - &::_DataSource_default_instance_); -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::release_cert_chain() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.SslCredentials.cert_chain) - - ::DataSource* temp = cert_chain_; - 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; - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.SslCredentials.cert_chain) - return cert_chain_; -} -inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_cert_chain(::DataSource* cert_chain) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete cert_chain_; - } - if (cert_chain) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - cert_chain = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, cert_chain, submessage_arena); - } - - } else { - - } - cert_chain_ = cert_chain; - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.SslCredentials.cert_chain) -} - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_GoogleLocalCredentials - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_ChannelCredentials - -// .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; -inline bool GrpcService_GoogleGrpc_ChannelCredentials::has_ssl_credentials() const { - return credential_specifier_case() == kSslCredentials; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::set_has_ssl_credentials() { - _oneof_case_[0] = kSslCredentials; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::clear_ssl_credentials() { - if (has_ssl_credentials()) { - delete 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()) { - clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_SslCredentials* temp = credential_specifier_.ssl_credentials_; - credential_specifier_.ssl_credentials_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_SslCredentials& GrpcService_GoogleGrpc_ChannelCredentials::ssl_credentials() const { - // @@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_); -} -inline ::GrpcService_GoogleGrpc_SslCredentials* GrpcService_GoogleGrpc_ChannelCredentials::mutable_ssl_credentials() { - if (!has_ssl_credentials()) { - clear_credential_specifier(); - set_has_ssl_credentials(); - credential_specifier_.ssl_credentials_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_SslCredentials >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) - return credential_specifier_.ssl_credentials_; -} - -// .google.protobuf.Empty google_default = 2; -inline bool GrpcService_GoogleGrpc_ChannelCredentials::has_google_default() const { - return credential_specifier_case() == kGoogleDefault; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::set_has_google_default() { - _oneof_case_[0] = kGoogleDefault; -} -inline PROTOBUF_NAMESPACE_ID::Empty* GrpcService_GoogleGrpc_ChannelCredentials::release_google_default() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.ChannelCredentials.google_default) - if (has_google_default()) { - clear_has_credential_specifier(); - PROTOBUF_NAMESPACE_ID::Empty* temp = credential_specifier_.google_default_; - credential_specifier_.google_default_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const PROTOBUF_NAMESPACE_ID::Empty& GrpcService_GoogleGrpc_ChannelCredentials::google_default() const { - // @@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_); -} -inline PROTOBUF_NAMESPACE_ID::Empty* GrpcService_GoogleGrpc_ChannelCredentials::mutable_google_default() { - if (!has_google_default()) { - clear_credential_specifier(); - set_has_google_default(); - credential_specifier_.google_default_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Empty >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.ChannelCredentials.google_default) - return credential_specifier_.google_default_; -} - -// .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; -inline bool GrpcService_GoogleGrpc_ChannelCredentials::has_local_credentials() const { - return credential_specifier_case() == kLocalCredentials; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::set_has_local_credentials() { - _oneof_case_[0] = kLocalCredentials; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::clear_local_credentials() { - if (has_local_credentials()) { - delete 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()) { - clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_GoogleLocalCredentials* temp = credential_specifier_.local_credentials_; - credential_specifier_.local_credentials_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& GrpcService_GoogleGrpc_ChannelCredentials::local_credentials() const { - // @@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_); -} -inline ::GrpcService_GoogleGrpc_GoogleLocalCredentials* GrpcService_GoogleGrpc_ChannelCredentials::mutable_local_credentials() { - if (!has_local_credentials()) { - clear_credential_specifier(); - set_has_local_credentials(); - credential_specifier_.local_credentials_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_GoogleLocalCredentials >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) - return credential_specifier_.local_credentials_; -} - -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; -} -inline GrpcService_GoogleGrpc_ChannelCredentials::CredentialSpecifierCase GrpcService_GoogleGrpc_ChannelCredentials::credential_specifier_case() const { - return GrpcService_GoogleGrpc_ChannelCredentials::CredentialSpecifierCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials - -// string json_key = 1; -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::clear_json_key() { - json_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::json_key() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) - return json_key_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_json_key(const std::string& value) { - - json_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) - return json_key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::release_json_key() { - // @@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); - // @@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); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::token_lifetime_seconds() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.token_lifetime_seconds) - return token_lifetime_seconds_; -} -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_token_lifetime_seconds(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - token_lifetime_seconds_ = value; - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.token_lifetime_seconds) -} - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials - -// string authorization_token = 1; -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::clear_authorization_token() { - authorization_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::authorization_token() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) - return authorization_token_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authorization_token(const std::string& value) { - - authorization_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) - return authorization_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::release_authorization_token() { - // @@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); - // @@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()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::authority_selector() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) - return authority_selector_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authority_selector(const std::string& value) { - - authority_selector_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) - return authority_selector_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::release_authority_selector() { - // @@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); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) -} - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin - -// string name = 1; -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::clear_name() { - name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::name() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) - return name_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_name(const std::string& value) { - - name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) - return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::release_name() { - // @@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); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) -} - -// .google.protobuf.Struct config = 2 [deprecated = true]; -inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::has_config() const { - return config_type_case() == kConfig; -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_has_config() { - _oneof_case_[0] = kConfig; -} -inline PROTOBUF_NAMESPACE_ID::Struct* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::release_config() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) - if (has_config()) { - clear_has_config_type(); - PROTOBUF_NAMESPACE_ID::Struct* temp = config_type_.config_; - config_type_.config_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const PROTOBUF_NAMESPACE_ID::Struct& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::config() const { - // @@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_); -} -inline PROTOBUF_NAMESPACE_ID::Struct* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::mutable_config() { - if (!has_config()) { - clear_config_type(); - set_has_config(); - config_type_.config_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Struct >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) - return config_type_.config_; -} - -// .google.protobuf.Any typed_config = 3; -inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::has_typed_config() const { - return config_type_case() == kTypedConfig; -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_has_typed_config() { - _oneof_case_[0] = kTypedConfig; -} -inline PROTOBUF_NAMESPACE_ID::Any* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::release_typed_config() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) - if (has_typed_config()) { - clear_has_config_type(); - PROTOBUF_NAMESPACE_ID::Any* temp = config_type_.typed_config_; - config_type_.typed_config_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const PROTOBUF_NAMESPACE_ID::Any& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::typed_config() const { - // @@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_); -} -inline PROTOBUF_NAMESPACE_ID::Any* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::mutable_typed_config() { - if (!has_typed_config()) { - clear_config_type(); - set_has_typed_config(); - config_type_.typed_config_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Any >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) - return config_type_.typed_config_; -} - -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; -} -inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::ConfigTypeCase GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::config_type_case() const { - return GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::ConfigTypeCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_CallCredentials_StsService - -// 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()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::token_exchange_service_uri() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) - return token_exchange_service_uri_.GetNoArena(); -} -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); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) - return token_exchange_service_uri_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_token_exchange_service_uri() { - // @@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); - // @@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()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::resource() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) - return resource_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_resource(const std::string& value) { - - resource_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) - return resource_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_resource() { - // @@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); - // @@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()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::audience() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) - return audience_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_audience(const std::string& value) { - - audience_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) - return audience_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_audience() { - // @@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); - // @@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()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::scope() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) - return scope_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_scope(const std::string& value) { - - scope_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) - return scope_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_scope() { - // @@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); - // @@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()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::requested_token_type() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) - return requested_token_type_.GetNoArena(); -} -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::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::release_requested_token_type() { - // @@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); - // @@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()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::subject_token_path() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) - return subject_token_path_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_path(const std::string& value) { - - subject_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) - return subject_token_path_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_subject_token_path() { - // @@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); - // @@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()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::subject_token_type() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) - return subject_token_type_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_type(const std::string& value) { - - subject_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) - return subject_token_type_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_subject_token_type() { - // @@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); - // @@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()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::actor_token_path() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) - return actor_token_path_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_path(const std::string& value) { - - actor_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) - return actor_token_path_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_actor_token_path() { - // @@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); - // @@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()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::actor_token_type() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) - return actor_token_type_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_type(const std::string& value) { - - actor_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) - return actor_token_type_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_actor_token_type() { - // @@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); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) -} - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_CallCredentials - -// string access_token = 1; -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; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_access_token() { - if (has_access_token()) { - credential_specifier_.access_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - clear_has_credential_specifier(); - } -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials::access_token() const { - // @@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(); -} -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()) { - 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(), value); - // @@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 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()); - } - credential_specifier_.access_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.access_token) -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_access_token(const char* value, size_t size) { - 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::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.access_token) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials::mutable_access_token() { - if (!has_access_token()) { - clear_credential_specifier(); - set_has_access_token(); - credential_specifier_.access_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.access_token) - return credential_specifier_.access_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials::release_access_token() { - // @@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 { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_allocated_access_token(std::string* access_token) { - if (has_credential_specifier()) { - clear_credential_specifier(); - } - if (access_token != nullptr) { - set_has_access_token(); - credential_specifier_.access_token_.UnsafeSetDefault(access_token); - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.access_token) -} - -// .google.protobuf.Empty google_compute_engine = 2; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_google_compute_engine() const { - return credential_specifier_case() == kGoogleComputeEngine; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_google_compute_engine() { - _oneof_case_[0] = kGoogleComputeEngine; -} -inline PROTOBUF_NAMESPACE_ID::Empty* GrpcService_GoogleGrpc_CallCredentials::release_google_compute_engine() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) - if (has_google_compute_engine()) { - clear_has_credential_specifier(); - PROTOBUF_NAMESPACE_ID::Empty* temp = credential_specifier_.google_compute_engine_; - credential_specifier_.google_compute_engine_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const PROTOBUF_NAMESPACE_ID::Empty& GrpcService_GoogleGrpc_CallCredentials::google_compute_engine() const { - // @@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_); -} -inline PROTOBUF_NAMESPACE_ID::Empty* GrpcService_GoogleGrpc_CallCredentials::mutable_google_compute_engine() { - if (!has_google_compute_engine()) { - clear_credential_specifier(); - set_has_google_compute_engine(); - credential_specifier_.google_compute_engine_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Empty >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) - return credential_specifier_.google_compute_engine_; -} - -// string google_refresh_token = 3; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_google_refresh_token() const { - return credential_specifier_case() == kGoogleRefreshToken; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_google_refresh_token() { - _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()); - clear_has_credential_specifier(); - } -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials::google_refresh_token() const { - // @@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(); -} -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()) { - 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(), value); - // @@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 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()); - } - 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) -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_google_refresh_token(const char* value, size_t size) { - 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::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials::mutable_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()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) - return credential_specifier_.google_refresh_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials::release_google_refresh_token() { - // @@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 { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_allocated_google_refresh_token(std::string* google_refresh_token) { - if (has_credential_specifier()) { - clear_credential_specifier(); - } - if (google_refresh_token != nullptr) { - set_has_google_refresh_token(); - credential_specifier_.google_refresh_token_.UnsafeSetDefault(google_refresh_token); - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) -} - -// .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; -inline bool GrpcService_GoogleGrpc_CallCredentials::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; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_service_account_jwt_access() { - if (has_service_account_jwt_access()) { - delete 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()) { - clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* temp = credential_specifier_.service_account_jwt_access_; - 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 { - // @@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_); -} -inline ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* GrpcService_GoogleGrpc_CallCredentials::mutable_service_account_jwt_access() { - if (!has_service_account_jwt_access()) { - clear_credential_specifier(); - set_has_service_account_jwt_access(); - credential_specifier_.service_account_jwt_access_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) - return credential_specifier_.service_account_jwt_access_; -} - -// .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_google_iam() const { - return credential_specifier_case() == kGoogleIam; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_google_iam() { - _oneof_case_[0] = kGoogleIam; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_google_iam() { - if (has_google_iam()) { - delete 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()) { - clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* temp = credential_specifier_.google_iam_; - credential_specifier_.google_iam_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& GrpcService_GoogleGrpc_CallCredentials::google_iam() const { - // @@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_); -} -inline ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* GrpcService_GoogleGrpc_CallCredentials::mutable_google_iam() { - if (!has_google_iam()) { - clear_credential_specifier(); - set_has_google_iam(); - credential_specifier_.google_iam_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.google_iam) - return credential_specifier_.google_iam_; -} - -// .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_from_plugin() const { - return credential_specifier_case() == kFromPlugin; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_from_plugin() { - _oneof_case_[0] = kFromPlugin; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_from_plugin() { - if (has_from_plugin()) { - delete 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()) { - clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* temp = credential_specifier_.from_plugin_; - credential_specifier_.from_plugin_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& GrpcService_GoogleGrpc_CallCredentials::from_plugin() const { - // @@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_); -} -inline ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* GrpcService_GoogleGrpc_CallCredentials::mutable_from_plugin() { - if (!has_from_plugin()) { - clear_credential_specifier(); - set_has_from_plugin(); - credential_specifier_.from_plugin_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.from_plugin) - return credential_specifier_.from_plugin_; -} - -// .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_sts_service() const { - return credential_specifier_case() == kStsService; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_sts_service() { - _oneof_case_[0] = kStsService; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_sts_service() { - if (has_sts_service()) { - delete 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()) { - clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_CallCredentials_StsService* temp = credential_specifier_.sts_service_; - credential_specifier_.sts_service_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_StsService& GrpcService_GoogleGrpc_CallCredentials::sts_service() const { - // @@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_); -} -inline ::GrpcService_GoogleGrpc_CallCredentials_StsService* GrpcService_GoogleGrpc_CallCredentials::mutable_sts_service() { - if (!has_sts_service()) { - clear_credential_specifier(); - set_has_sts_service(); - credential_specifier_.sts_service_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_StsService >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.sts_service) - return credential_specifier_.sts_service_; -} - -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; -} -inline GrpcService_GoogleGrpc_CallCredentials::CredentialSpecifierCase GrpcService_GoogleGrpc_CallCredentials::credential_specifier_case() const { - return GrpcService_GoogleGrpc_CallCredentials::CredentialSpecifierCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc - -// string target_uri = 1; -inline void GrpcService_GoogleGrpc::clear_target_uri() { - target_uri_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc::target_uri() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.target_uri) - return target_uri_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc::set_target_uri(const std::string& value) { - - target_uri_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.target_uri) - return target_uri_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc::release_target_uri() { - // @@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); - // @@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; -} -inline void GrpcService_GoogleGrpc::clear_channel_credentials() { - if (GetArenaNoVirtual() == nullptr && channel_credentials_ != nullptr) { - delete channel_credentials_; - } - channel_credentials_ = nullptr; -} -inline const ::GrpcService_GoogleGrpc_ChannelCredentials& GrpcService_GoogleGrpc::channel_credentials() const { - const ::GrpcService_GoogleGrpc_ChannelCredentials* p = channel_credentials_; - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.channel_credentials) - return p != nullptr ? *p : *reinterpret_cast( - &::_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_); -} -inline ::GrpcService_GoogleGrpc_ChannelCredentials* GrpcService_GoogleGrpc::release_channel_credentials() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.channel_credentials) - - ::GrpcService_GoogleGrpc_ChannelCredentials* temp = channel_credentials_; - 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; - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.channel_credentials) - return channel_credentials_; -} -inline void GrpcService_GoogleGrpc::set_allocated_channel_credentials(::GrpcService_GoogleGrpc_ChannelCredentials* channel_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete channel_credentials_; - } - if (channel_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - channel_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, channel_credentials, submessage_arena); - } - - } else { - - } - channel_credentials_ = channel_credentials; - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.channel_credentials) -} - -// repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; -inline int GrpcService_GoogleGrpc::call_credentials_size() const { - return call_credentials_.size(); -} -inline void GrpcService_GoogleGrpc::clear_call_credentials() { - call_credentials_.Clear(); -} -inline ::GrpcService_GoogleGrpc_CallCredentials* GrpcService_GoogleGrpc::mutable_call_credentials(int index) { - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.call_credentials) - return call_credentials_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_GoogleGrpc_CallCredentials >* -GrpcService_GoogleGrpc::mutable_call_credentials() { - // @@protoc_insertion_point(field_mutable_list:GrpcService.GoogleGrpc.call_credentials) - return &call_credentials_; -} -inline const ::GrpcService_GoogleGrpc_CallCredentials& GrpcService_GoogleGrpc::call_credentials(int index) const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.call_credentials) - return call_credentials_.Get(index); -} -inline ::GrpcService_GoogleGrpc_CallCredentials* GrpcService_GoogleGrpc::add_call_credentials() { - // @@protoc_insertion_point(field_add:GrpcService.GoogleGrpc.call_credentials) - return call_credentials_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_GoogleGrpc_CallCredentials >& -GrpcService_GoogleGrpc::call_credentials() const { - // @@protoc_insertion_point(field_list:GrpcService.GoogleGrpc.call_credentials) - return call_credentials_; -} - -// string stat_prefix = 4; -inline void GrpcService_GoogleGrpc::clear_stat_prefix() { - stat_prefix_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc::stat_prefix() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.stat_prefix) - return stat_prefix_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc::set_stat_prefix(const std::string& value) { - - stat_prefix_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.stat_prefix) - return stat_prefix_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc::release_stat_prefix() { - // @@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); - // @@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()); -} -inline const std::string& GrpcService_GoogleGrpc::credentials_factory_name() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.credentials_factory_name) - return credentials_factory_name_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc::set_credentials_factory_name(const std::string& value) { - - credentials_factory_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.credentials_factory_name) - return credentials_factory_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc::release_credentials_factory_name() { - // @@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); - // @@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; -} -inline const PROTOBUF_NAMESPACE_ID::Struct& GrpcService_GoogleGrpc::config() const { - const PROTOBUF_NAMESPACE_ID::Struct* p = config_; - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.config) - return p != nullptr ? *p : *reinterpret_cast( - &PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); -} -inline PROTOBUF_NAMESPACE_ID::Struct* GrpcService_GoogleGrpc::release_config() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.config) - - PROTOBUF_NAMESPACE_ID::Struct* temp = config_; - config_ = nullptr; - return temp; -} -inline PROTOBUF_NAMESPACE_ID::Struct* GrpcService_GoogleGrpc::mutable_config() { - - if (config_ == nullptr) { - auto* p = CreateMaybeMessage(GetArenaNoVirtual()); - config_ = p; - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.config) - return config_; -} -inline void GrpcService_GoogleGrpc::set_allocated_config(PROTOBUF_NAMESPACE_ID::Struct* config) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(config_); - } - if (config) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config)->GetArena(); - if (message_arena != submessage_arena) { - config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, config, submessage_arena); - } - - } else { - - } - config_ = config; - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.config) -} - -// ------------------------------------------------------------------- - -// GrpcService_HeaderValue - -// string key = 1; -inline void GrpcService_HeaderValue::clear_key() { - key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_HeaderValue::key() const { - // @@protoc_insertion_point(field_get:GrpcService.HeaderValue.key) - return key_.GetNoArena(); -} -inline void GrpcService_HeaderValue::set_key(const std::string& value) { - - key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.HeaderValue.key) - return key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_HeaderValue::release_key() { - // @@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); - // @@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()); -} -inline const std::string& GrpcService_HeaderValue::value() const { - // @@protoc_insertion_point(field_get:GrpcService.HeaderValue.value) - return value_.GetNoArena(); -} -inline void GrpcService_HeaderValue::set_value(const std::string& value) { - - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.HeaderValue.value) - return value_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_HeaderValue::release_value() { - // @@protoc_insertion_point(field_release:GrpcService.HeaderValue.value) - - return value_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_HeaderValue::set_allocated_value(std::string* value) { - if (value != nullptr) { - - } else { - - } - value_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set_allocated:GrpcService.HeaderValue.value) -} - -// ------------------------------------------------------------------- - -// GrpcService - -// .GrpcService.EnvoyGrpc envoy_grpc = 1; -inline bool GrpcService::has_envoy_grpc() const { - return target_specifier_case() == kEnvoyGrpc; -} -inline void GrpcService::set_has_envoy_grpc() { - _oneof_case_[0] = kEnvoyGrpc; -} -inline void GrpcService::clear_envoy_grpc() { - if (has_envoy_grpc()) { - delete 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()) { - clear_has_target_specifier(); - ::GrpcService_EnvoyGrpc* temp = target_specifier_.envoy_grpc_; - target_specifier_.envoy_grpc_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_EnvoyGrpc& GrpcService::envoy_grpc() const { - // @@protoc_insertion_point(field_get:GrpcService.envoy_grpc) - return has_envoy_grpc() - ? *target_specifier_.envoy_grpc_ - : *reinterpret_cast< ::GrpcService_EnvoyGrpc*>(&::_GrpcService_EnvoyGrpc_default_instance_); -} -inline ::GrpcService_EnvoyGrpc* GrpcService::mutable_envoy_grpc() { - if (!has_envoy_grpc()) { - clear_target_specifier(); - set_has_envoy_grpc(); - target_specifier_.envoy_grpc_ = CreateMaybeMessage< ::GrpcService_EnvoyGrpc >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.envoy_grpc) - return target_specifier_.envoy_grpc_; -} - -// .GrpcService.GoogleGrpc google_grpc = 2; -inline bool GrpcService::has_google_grpc() const { - return target_specifier_case() == kGoogleGrpc; -} -inline void GrpcService::set_has_google_grpc() { - _oneof_case_[0] = kGoogleGrpc; -} -inline void GrpcService::clear_google_grpc() { - if (has_google_grpc()) { - delete 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()) { - clear_has_target_specifier(); - ::GrpcService_GoogleGrpc* temp = target_specifier_.google_grpc_; - target_specifier_.google_grpc_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc& GrpcService::google_grpc() const { - // @@protoc_insertion_point(field_get:GrpcService.google_grpc) - return has_google_grpc() - ? *target_specifier_.google_grpc_ - : *reinterpret_cast< ::GrpcService_GoogleGrpc*>(&::_GrpcService_GoogleGrpc_default_instance_); -} -inline ::GrpcService_GoogleGrpc* GrpcService::mutable_google_grpc() { - if (!has_google_grpc()) { - clear_target_specifier(); - set_has_google_grpc(); - target_specifier_.google_grpc_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.google_grpc) - return target_specifier_.google_grpc_; -} - -// .google.protobuf.Duration timeout = 3; -inline bool GrpcService::has_timeout() const { - return this != internal_default_instance() && timeout_ != nullptr; -} -inline const PROTOBUF_NAMESPACE_ID::Duration& GrpcService::timeout() const { - const PROTOBUF_NAMESPACE_ID::Duration* p = timeout_; - // @@protoc_insertion_point(field_get:GrpcService.timeout) - return p != nullptr ? *p : *reinterpret_cast( - &PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); -} -inline PROTOBUF_NAMESPACE_ID::Duration* GrpcService::release_timeout() { - // @@protoc_insertion_point(field_release:GrpcService.timeout) - - PROTOBUF_NAMESPACE_ID::Duration* temp = timeout_; - timeout_ = nullptr; - return temp; -} -inline PROTOBUF_NAMESPACE_ID::Duration* GrpcService::mutable_timeout() { - - if (timeout_ == nullptr) { - auto* p = CreateMaybeMessage(GetArenaNoVirtual()); - timeout_ = p; - } - // @@protoc_insertion_point(field_mutable:GrpcService.timeout) - return timeout_; -} -inline void GrpcService::set_allocated_timeout(PROTOBUF_NAMESPACE_ID::Duration* timeout) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(timeout_); - } - if (timeout) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(timeout)->GetArena(); - if (message_arena != submessage_arena) { - timeout = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, timeout, submessage_arena); - } - - } else { - - } - timeout_ = timeout; - // @@protoc_insertion_point(field_set_allocated:GrpcService.timeout) -} - -// repeated .GrpcService.HeaderValue initial_metadata = 5; -inline int GrpcService::initial_metadata_size() const { - return initial_metadata_.size(); -} -inline void GrpcService::clear_initial_metadata() { - initial_metadata_.Clear(); -} -inline ::GrpcService_HeaderValue* GrpcService::mutable_initial_metadata(int index) { - // @@protoc_insertion_point(field_mutable:GrpcService.initial_metadata) - return initial_metadata_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_HeaderValue >* -GrpcService::mutable_initial_metadata() { - // @@protoc_insertion_point(field_mutable_list:GrpcService.initial_metadata) - return &initial_metadata_; -} -inline const ::GrpcService_HeaderValue& GrpcService::initial_metadata(int index) const { - // @@protoc_insertion_point(field_get:GrpcService.initial_metadata) - return initial_metadata_.Get(index); -} -inline ::GrpcService_HeaderValue* GrpcService::add_initial_metadata() { - // @@protoc_insertion_point(field_add:GrpcService.initial_metadata) - return initial_metadata_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_HeaderValue >& -GrpcService::initial_metadata() const { - // @@protoc_insertion_point(field_list:GrpcService.initial_metadata) - return 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; -} -inline GrpcService::TargetSpecifierCase GrpcService::target_specifier_case() const { - return GrpcService::TargetSpecifierCase(_oneof_case_[0]); -} -#ifdef __GNUC__ - #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 diff --git a/proxy_wasm_intrinsics_lite.pb.cc b/proxy_wasm_intrinsics_lite.pb.cc deleted file mode 100644 index e882c5f..0000000 --- a/proxy_wasm_intrinsics_lite.pb.cc +++ /dev/null @@ -1,5956 +0,0 @@ -// 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 - -#include "proxy_wasm_intrinsics_lite.pb.h" - -#include - -#include -#include -#include -#include -#include -// @@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; - - { - void* ptr = &::_GrpcService_GoogleGrpc_Empty_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_Empty(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_Empty::InitAsDefaultInstance(); -} - -::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}, {}}; - -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_GoogleLocalCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_GoogleLocalCredentials(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_GoogleLocalCredentials::InitAsDefaultInstance(); -} - -::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}, {}}; - -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_SslCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_GoogleGrpc_SslCredentials_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_SslCredentials(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_SslCredentials::InitAsDefaultInstance(); -} - -::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,}}; - -static void InitDefaultsscc_info_GrpcService_HeaderValue_proxy_5fwasm_5fintrinsics_5flite_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_HeaderValue_default_instance_; - new (ptr) ::GrpcService_HeaderValue(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_HeaderValue::InitAsDefaultInstance(); -} - -::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}, {}}; - -static void InitDefaultsscc_info_WKT_proxy_5fwasm_5fintrinsics_5flite_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - 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_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,}}; - - -// =================================================================== - -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); -}; - -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; - } - // @@protoc_insertion_point(copy_constructor:WKT) -} - -void WKT::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_WKT_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - struct__ = nullptr; -} - -WKT::~WKT() { - // @@protoc_insertion_point(destructor:WKT) - 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_5flite_2eproto.base); - return *internal_default_instance(); -} - - -void WKT::Clear() { -// @@protoc_insertion_point(message_clear_start:WKT) - ::PROTOBUF_NAMESPACE_ID::uint32 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; - } - } - } -success: - // @@protoc_insertion_point(parse_success:WKT) - return true; -failure: - // @@protoc_insertion_point(parse_failure:WKT) - return false; -#undef DO_ -} -#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; - - // .google.protobuf.Struct struct = 1; - if (this->has_struct_()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 1, _Internal::struct_(this), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:WKT) -} - -size_t WKT::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:WKT) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - ::PROTOBUF_NAMESPACE_ID::uint32 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__); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WKT::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::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; - (void) cached_has_bits; - - if (from.has_struct_()) { - mutable_struct_()->::google::protobuf::Struct::MergeFrom(from.struct_()); - } -} - -void WKT::CopyFrom(const WKT& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:WKT) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WKT::IsInitialized() const { - return true; -} - -void WKT::InternalSwap(WKT* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(struct__, other->struct__); -} - -std::string WKT::GetTypeName() const { - return "WKT"; -} - - -// =================================================================== - -void DataSource::InitAsDefaultInstance() { -} -class DataSource::_Internal { - public: -}; - -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: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:DataSource) -} - -void DataSource::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DataSource_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - clear_has_specifier(); -} - -DataSource::~DataSource() { - // @@protoc_insertion_point(destructor:DataSource) - SharedDtor(); -} - -void DataSource::SharedDtor() { - if (has_specifier()) { - clear_specifier(); - } -} - -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) - switch (specifier_case()) { - case kFilename: { - specifier_.filename_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - break; - } - case kInlineBytes: { - specifier_.inline_bytes_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - break; - } - case kInlineString: { - specifier_.inline_string_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - break; - } - case SPECIFIER_NOT_SET: { - break; - } - } - _oneof_case_[0] = SPECIFIER_NOT_SET; -} - - -void DataSource::Clear() { -// @@protoc_insertion_point(message_clear_start:DataSource) - ::PROTOBUF_NAMESPACE_ID::uint32 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; - } - - 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_ -} -#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); - } - - // 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); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:DataSource) -} - -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(); - - ::PROTOBUF_NAMESPACE_ID::uint32 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()); - break; - } - // bytes inline_bytes = 2; - case kInlineBytes: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->inline_bytes()); - break; - } - // string inline_string = 3; - case kInlineString: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->inline_string()); - break; - } - case SPECIFIER_NOT_SET: { - break; - } - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DataSource::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::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; - (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; - } - } -} - -void DataSource::CopyFrom(const DataSource& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:DataSource) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DataSource::IsInitialized() const { - return true; -} - -void DataSource::InternalSwap(DataSource* 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"; -} - - -// =================================================================== - -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_); - } - // @@protoc_insertion_point(copy_constructor:Any) -} - -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()); -} - -Any::~Any() { - // @@protoc_insertion_point(destructor:Any) - SharedDtor(); -} - -void Any::SharedDtor() { - type_url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -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(); -} - - -void Any::Clear() { -// @@protoc_insertion_point(message_clear_start:Any) - ::PROTOBUF_NAMESPACE_ID::uint32 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: - 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 - -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; - - // 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); - } - - // bytes value = 2; - if (this->value().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased( - 2, this->value(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:Any) -} - -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(); - - ::PROTOBUF_NAMESPACE_ID::uint32 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()); - } - - // bytes value = 2; - if (this->value().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->value()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Any::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::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; - (void) cached_has_bits; - - if (from.type_url().size() > 0) { - - type_url_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.type_url_); - } - if (from.value().size() > 0) { - - value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); - } -} - -void Any::CopyFrom(const Any& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:Any) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Any::IsInitialized() const { - return true; -} - -void Any::InternalSwap(Any* 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"; -} - - -// =================================================================== - -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_); - } - // @@protoc_insertion_point(copy_constructor:GrpcService.EnvoyGrpc) -} - -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()); -} - -GrpcService_EnvoyGrpc::~GrpcService_EnvoyGrpc() { - // @@protoc_insertion_point(destructor:GrpcService.EnvoyGrpc) - 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_5flite_2eproto.base); - return *internal_default_instance(); -} - - -void GrpcService_EnvoyGrpc::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.EnvoyGrpc) - ::PROTOBUF_NAMESPACE_ID::uint32 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; - } - - 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_ -} -#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; - - // 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); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService.EnvoyGrpc) -} - -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(); - - ::PROTOBUF_NAMESPACE_ID::uint32 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()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GrpcService_EnvoyGrpc::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::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; - (void) cached_has_bits; - - if (from.cluster_name().size() > 0) { - - cluster_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.cluster_name_); - } -} - -void GrpcService_EnvoyGrpc::CopyFrom(const GrpcService_EnvoyGrpc& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.EnvoyGrpc) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GrpcService_EnvoyGrpc::IsInitialized() const { - return true; -} - -void GrpcService_EnvoyGrpc::InternalSwap(GrpcService_EnvoyGrpc* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - cluster_name_.Swap(&other->cluster_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -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); -}; - -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; - } - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.SslCredentials) -} - -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_)); -} - -GrpcService_GoogleGrpc_SslCredentials::~GrpcService_GoogleGrpc_SslCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.SslCredentials) - 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() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.SslCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 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; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc.SslCredentials) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.GoogleGrpc.SslCredentials) - return false; -#undef DO_ -} -#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::WriteMessage( - 1, _Internal::root_certs(this), output); - } - - // .DataSource private_key = 2; - if (this->has_private_key()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 2, _Internal::private_key(this), output); - } - - // .DataSource cert_chain = 3; - if (this->has_cert_chain()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 3, _Internal::cert_chain(this), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.SslCredentials) -} - -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(); - - ::PROTOBUF_NAMESPACE_ID::uint32 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_); - } - - // .DataSource cert_chain = 3; - if (this->has_cert_chain()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *cert_chain_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GrpcService_GoogleGrpc_SslCredentials::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::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; - (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()); - } -} - -void GrpcService_GoogleGrpc_SslCredentials::CopyFrom(const GrpcService_GoogleGrpc_SslCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.SslCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GrpcService_GoogleGrpc_SslCredentials::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_SslCredentials::InternalSwap(GrpcService_GoogleGrpc_SslCredentials* 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"; -} - - -// =================================================================== - -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(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) -} - -void GrpcService_GoogleGrpc_GoogleLocalCredentials::SharedCtor() { -} - -GrpcService_GoogleGrpc_GoogleLocalCredentials::~GrpcService_GoogleGrpc_GoogleLocalCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.GoogleLocalCredentials) - SharedDtor(); -} - -void GrpcService_GoogleGrpc_GoogleLocalCredentials::SharedDtor() { -} - -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(); -} - - -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; - ::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) -} - -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(); - - ::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::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::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; - (void) cached_has_bits; - -} - -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_); -} - -std::string GrpcService_GoogleGrpc_GoogleLocalCredentials::GetTypeName() const { - return "GrpcService.GoogleGrpc.GoogleLocalCredentials"; -} - - -// =================================================================== - -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(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) -} - -void GrpcService_GoogleGrpc_Empty::SharedCtor() { -} - -GrpcService_GoogleGrpc_Empty::~GrpcService_GoogleGrpc_Empty() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.Empty) - SharedDtor(); -} - -void GrpcService_GoogleGrpc_Empty::SharedDtor() { -} - -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(); -} - - -void GrpcService_GoogleGrpc_Empty::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.Empty) - ::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_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: - 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) -} - -size_t GrpcService_GoogleGrpc_Empty::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.Empty) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - ::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_Empty::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::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; - (void) cached_has_bits; - -} - -void GrpcService_GoogleGrpc_Empty::CopyFrom(const GrpcService_GoogleGrpc_Empty& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.Empty) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GrpcService_GoogleGrpc_Empty::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_Empty::InternalSwap(GrpcService_GoogleGrpc_Empty* other) { - using std::swap; - _internal_metadata_.Swap(&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); -}; - -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(); - clear_credential_specifier(); - if (ssl_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - ssl_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, ssl_credentials, submessage_arena); - } - set_has_ssl_credentials(); - 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(); - clear_credential_specifier(); - if (google_default) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - google_default = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, google_default, submessage_arena); - } - set_has_google_default(); - 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(); - clear_credential_specifier(); - if (local_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - local_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, local_credentials, submessage_arena); - } - set_has_local_credentials(); - 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: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.ChannelCredentials) -} - -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(); -} - -GrpcService_GoogleGrpc_ChannelCredentials::~GrpcService_GoogleGrpc_ChannelCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.ChannelCredentials) - SharedDtor(); -} - -void GrpcService_GoogleGrpc_ChannelCredentials::SharedDtor() { - if (has_credential_specifier()) { - clear_credential_specifier(); - } -} - -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) - switch (credential_specifier_case()) { - case kSslCredentials: { - delete credential_specifier_.ssl_credentials_; - break; - } - case kGoogleDefault: { - delete credential_specifier_.google_default_; - break; - } - case kLocalCredentials: { - delete credential_specifier_.local_credentials_; - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { - break; - } - } - _oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; -} - - -void GrpcService_GoogleGrpc_ChannelCredentials::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.ChannelCredentials) - ::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_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; - } - - 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_ -} -#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); - } - - // .GrpcService.GoogleGrpc.Empty google_default = 2; - if (has_google_default()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 2, _Internal::google_default(this), output); - } - - // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; - if (has_local_credentials()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 3, _Internal::local_credentials(this), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.ChannelCredentials) -} - -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(); - - ::PROTOBUF_NAMESPACE_ID::uint32 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_); - break; - } - // .GrpcService.GoogleGrpc.Empty google_default = 2; - case kGoogleDefault: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *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_); - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { - break; - } - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GrpcService_GoogleGrpc_ChannelCredentials::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::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; - (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; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { - break; - } - } -} - -void GrpcService_GoogleGrpc_ChannelCredentials::CopyFrom(const GrpcService_GoogleGrpc_ChannelCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.ChannelCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GrpcService_GoogleGrpc_ChannelCredentials::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_ChannelCredentials::InternalSwap(GrpcService_GoogleGrpc_ChannelCredentials* 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"; -} - - -// =================================================================== - -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_; - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) -} - -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); -} - -GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::~GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - 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_5flite_2eproto.base); - return *internal_default_instance(); -} - - -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 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; - } - - // 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::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 - -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); - } - - // uint64 token_lifetime_seconds = 2; - if (this->token_lifetime_seconds() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64(2, this->token_lifetime_seconds(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) -} - -size_t GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - ::PROTOBUF_NAMESPACE_ID::uint32 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()); - } - - // uint64 token_lifetime_seconds = 2; - if (this->token_lifetime_seconds() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->token_lifetime_seconds()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::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; - (void) cached_has_bits; - - if (from.json_key().size() > 0) { - - json_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.json_key_); - } - if (from.token_lifetime_seconds() != 0) { - set_token_lifetime_seconds(from.token_lifetime_seconds()); - } -} - -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* 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"; -} - - -// =================================================================== - -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_); - } - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) -} - -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()); -} - -GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::~GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - 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_5flite_2eproto.base); - return *internal_default_instance(); -} - - -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 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: - 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 - -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); - } - - // 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); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) -} - -size_t GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - ::PROTOBUF_NAMESPACE_ID::uint32 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()); - } - - // string authority_selector = 2; - if (this->authority_selector().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->authority_selector()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::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; - (void) cached_has_bits; - - if (from.authorization_token().size() > 0) { - - authorization_token_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.authorization_token_); - } - if (from.authority_selector().size() > 0) { - - authority_selector_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.authority_selector_); - } -} - -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* 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()); -} - -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); -}; - -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(); - clear_config_type(); - if (config) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config)->GetArena(); - if (message_arena != submessage_arena) { - config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, config, submessage_arena); - } - set_has_config(); - 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_; - clear_has_config_type(); - } -} -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_allocated_typed_config(::Any* typed_config) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - clear_config_type(); - if (typed_config) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - typed_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, typed_config, submessage_arena); - } - set_has_typed_config(); - 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: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) -} - -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(); -} - -GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::~GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - SharedDtor(); -} - -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::SharedDtor() { - name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (has_config_type()) { - clear_config_type(); - } -} - -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) - switch (config_type_case()) { - case kConfig: { - delete config_type_.config_; - break; - } - case kTypedConfig: { - delete config_type_.typed_config_; - break; - } - case CONFIG_TYPE_NOT_SET: { - break; - } - } - _oneof_case_[0] = CONFIG_TYPE_NOT_SET; -} - - -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - 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_ -} -#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) -} - -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_NAMESPACE_ID::uint32 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()); - } - - 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_); - break; - } - // .Any typed_config = 3; - case kTypedConfig: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *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; -} - -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -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) cached_has_bits; - - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); - } - 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: { - 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_); - } - 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(); -} - - -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; - } - - // 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::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - 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); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.CallCredentials.StsService) -} - -size_t GrpcService_GoogleGrpc_CallCredentials_StsService::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - ::PROTOBUF_NAMESPACE_ID::uint32 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()); - } - - // string resource = 2; - if (this->resource().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->resource()); - } - - // string audience = 3; - if (this->audience().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->audience()); - } - - // string scope = 4; - if (this->scope().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->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()); - } - - // 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()); - } - - // 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()); - } - - // 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()); - } - - // 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()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::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; - (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.resource().size() > 0) { - - resource_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.resource_); - } - if (from.audience().size() > 0) { - - audience_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.audience_); - } - if (from.scope().size() > 0) { - - scope_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.scope_); - } - if (from.requested_token_type().size() > 0) { - - requested_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.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.subject_token_type().size() > 0) { - - subject_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.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.actor_token_type().size() > 0) { - - actor_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.actor_token_type_); - } -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GrpcService_GoogleGrpc_CallCredentials_StsService::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_StsService* 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"; -} - - -// =================================================================== - -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); -}; - -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(); - clear_credential_specifier(); - if (google_compute_engine) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - google_compute_engine = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, google_compute_engine, submessage_arena); - } - set_has_google_compute_engine(); - 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(); - clear_credential_specifier(); - if (service_account_jwt_access) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - service_account_jwt_access = ::PROTOBUF_NAMESPACE_ID::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; - } - // @@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(); - clear_credential_specifier(); - if (google_iam) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - google_iam = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, google_iam, submessage_arena); - } - set_has_google_iam(); - 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(); - clear_credential_specifier(); - if (from_plugin) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - from_plugin = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, from_plugin, submessage_arena); - } - set_has_from_plugin(); - 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(); - clear_credential_specifier(); - if (sts_service) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - sts_service = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, sts_service, submessage_arena); - } - set_has_sts_service(); - 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()) { - 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; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials) -} - -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(); -} - -void GrpcService_GoogleGrpc_CallCredentials::SharedDtor() { - if (has_credential_specifier()) { - clear_credential_specifier(); - } -} - -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_5flite_2eproto.base); - return *internal_default_instance(); -} - - -void GrpcService_GoogleGrpc_CallCredentials::clear_credential_specifier() { -// @@protoc_insertion_point(one_of_clear_start:GrpcService.GoogleGrpc.CallCredentials) - switch (credential_specifier_case()) { - case kAccessToken: { - credential_specifier_.access_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - break; - } - case kGoogleComputeEngine: { - delete credential_specifier_.google_compute_engine_; - break; - } - case kGoogleRefreshToken: { - credential_specifier_.google_refresh_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - break; - } - case kServiceAccountJwtAccess: { - delete credential_specifier_.service_account_jwt_access_; - break; - } - case kGoogleIam: { - delete credential_specifier_.google_iam_; - break; - } - case kFromPlugin: { - delete credential_specifier_.from_plugin_; - break; - } - case kStsService: { - delete credential_specifier_.sts_service_; - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { - 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); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.CallCredentials) -} - -size_t GrpcService_GoogleGrpc_CallCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - ::PROTOBUF_NAMESPACE_ID::uint32 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()); - break; - } - // .GrpcService.GoogleGrpc.Empty google_compute_engine = 2; - case kGoogleComputeEngine: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *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()); - 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_); - break; - } - // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; - case kGoogleIam: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *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_); - break; - } - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - case kStsService: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *credential_specifier_.sts_service_); - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { - break; - } - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GrpcService_GoogleGrpc_CallCredentials::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::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; - (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; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { - break; - } - } -} - -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]); -} - -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); -}; - -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; - } - // @@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_)); -} - -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_5flite_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) 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; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc) - 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; - - // 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); - } - - // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - if (this->has_channel_credentials()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 2, _Internal::channel_credentials(this), output); - } - - // 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); - } - - // 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); - } - - // 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); - } - - // .google.protobuf.Struct config = 6; - if (this->has_config()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 6, _Internal::config(this), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc) -} - -size_t GrpcService_GoogleGrpc::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - ::PROTOBUF_NAMESPACE_ID::uint32 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))); - } - } - - // string target_uri = 1; - if (this->target_uri().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->target_uri()); - } - - // string stat_prefix = 4; - if (this->stat_prefix().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->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_); - } - - // .google.protobuf.Struct config = 6; - if (this->has_config()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *config_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GrpcService_GoogleGrpc::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::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; - (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()); - } -} - -void GrpcService_GoogleGrpc::CopyFrom(const GrpcService_GoogleGrpc& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GrpcService_GoogleGrpc::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc::InternalSwap(GrpcService_GoogleGrpc* 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"; -} - - -// =================================================================== - -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_); - } - // @@protoc_insertion_point(copy_constructor:GrpcService.HeaderValue) -} - -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()); -} - -GrpcService_HeaderValue::~GrpcService_HeaderValue() { - // @@protoc_insertion_point(destructor:GrpcService.HeaderValue) - 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_5flite_2eproto.base); - return *internal_default_instance(); -} - - -void GrpcService_HeaderValue::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.HeaderValue) - ::PROTOBUF_NAMESPACE_ID::uint32 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: - 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 - -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); - } - - // 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); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService.HeaderValue) -} - -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(); - - ::PROTOBUF_NAMESPACE_ID::uint32 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()); - } - - // string value = 2; - if (this->value().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->value()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GrpcService_HeaderValue::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::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; - (void) cached_has_bits; - - if (from.key().size() > 0) { - - key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_); - } - if (from.value().size() > 0) { - - value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); - } -} - -void GrpcService_HeaderValue::CopyFrom(const GrpcService_HeaderValue& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.HeaderValue) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GrpcService_HeaderValue::IsInitialized() const { - return true; -} - -void GrpcService_HeaderValue::InternalSwap(GrpcService_HeaderValue* 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"; -} - - -// =================================================================== - -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); -}; - -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(); - clear_target_specifier(); - if (envoy_grpc) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - envoy_grpc = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, envoy_grpc, submessage_arena); - } - set_has_envoy_grpc(); - 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(); - clear_target_specifier(); - if (google_grpc) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - google_grpc = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, google_grpc, submessage_arena); - } - set_has_google_grpc(); - 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: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:GrpcService) -} - -void GrpcService::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - clear_has_target_specifier(); -} - -GrpcService::~GrpcService() { - // @@protoc_insertion_point(destructor:GrpcService) - SharedDtor(); -} - -void GrpcService::SharedDtor() { - if (has_target_specifier()) { - clear_target_specifier(); - } -} - -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) - switch (target_specifier_case()) { - case kEnvoyGrpc: { - delete target_specifier_.envoy_grpc_; - break; - } - case kGoogleGrpc: { - delete target_specifier_.google_grpc_; - break; - } - case TARGET_SPECIFIER_NOT_SET: { - break; - } - } - _oneof_case_[0] = TARGET_SPECIFIER_NOT_SET; -} - - -void GrpcService::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - 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; - } - - 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_ -} -#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); - } - - // .GrpcService.GoogleGrpc google_grpc = 2; - if (has_google_grpc()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 2, _Internal::google_grpc(this), output); - } - - // 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); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService) -} - -size_t GrpcService::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - ::PROTOBUF_NAMESPACE_ID::uint32 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))); - } - } - - switch (target_specifier_case()) { - // .GrpcService.EnvoyGrpc envoy_grpc = 1; - case kEnvoyGrpc: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *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_); - break; - } - case TARGET_SPECIFIER_NOT_SET: { - break; - } - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GrpcService::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::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; - (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; - } - case TARGET_SPECIFIER_NOT_SET: { - break; - } - } -} - -void GrpcService::CopyFrom(const GrpcService& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GrpcService::IsInitialized() const { - return true; -} - -void GrpcService::InternalSwap(GrpcService* 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]); -} - -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 - -// @@protoc_insertion_point(global_scope) -#include diff --git a/proxy_wasm_intrinsics_lite.pb.h b/proxy_wasm_intrinsics_lite.pb.h deleted file mode 100644 index e83e680..0000000 --- a/proxy_wasm_intrinsics_lite.pb.h +++ /dev/null @@ -1,5065 +0,0 @@ -/* - * 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 - -#ifndef GOOGLE_PROTOBUF_INCLUDED_proxy_5fwasm_5fintrinsics_5flite_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_proxy_5fwasm_5fintrinsics_5flite_2eproto - -#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. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include "struct_lite.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// 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[]; -}; -class Any; -class AnyDefaultTypeInternal; -extern AnyDefaultTypeInternal _Any_default_instance_; -class DataSource; -class DataSourceDefaultTypeInternal; -extern DataSourceDefaultTypeInternal _DataSource_default_instance_; -class GrpcService; -class GrpcServiceDefaultTypeInternal; -extern GrpcServiceDefaultTypeInternal _GrpcService_default_instance_; -class GrpcService_EnvoyGrpc; -class GrpcService_EnvoyGrpcDefaultTypeInternal; -extern GrpcService_EnvoyGrpcDefaultTypeInternal _GrpcService_EnvoyGrpc_default_instance_; -class GrpcService_GoogleGrpc; -class GrpcService_GoogleGrpcDefaultTypeInternal; -extern GrpcService_GoogleGrpcDefaultTypeInternal _GrpcService_GoogleGrpc_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials; -class GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal; -extern GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials; -class 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; -extern GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials; -class 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; -extern GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_; -class GrpcService_GoogleGrpc_ChannelCredentials; -class GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal; -extern GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_ChannelCredentials_default_instance_; -class GrpcService_GoogleGrpc_Empty; -class GrpcService_GoogleGrpc_EmptyDefaultTypeInternal; -extern GrpcService_GoogleGrpc_EmptyDefaultTypeInternal _GrpcService_GoogleGrpc_Empty_default_instance_; -class GrpcService_GoogleGrpc_GoogleLocalCredentials; -class GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal; -extern GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_; -class GrpcService_GoogleGrpc_SslCredentials; -class GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal; -extern GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_SslCredentials_default_instance_; -class GrpcService_HeaderValue; -class GrpcService_HeaderValueDefaultTypeInternal; -extern GrpcService_HeaderValueDefaultTypeInternal _GrpcService_HeaderValue_default_instance_; -class WKT; -class 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 - -// =================================================================== - -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) { - CopyFrom(from); - return *this; - } - inline WKT& operator=(WKT&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) 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_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(WKT& a, WKT& b) { - a.Swap(&b); - } - inline void Swap(WKT* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline WKT* New() const final { - return CreateMaybeMessage(nullptr); - } - - WKT* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(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; - 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(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; - } - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStructFieldNumber = 1, - }; - // .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_); - - // @@protoc_insertion_point(class_scope:WKT) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::Struct* struct__; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class DataSource : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:DataSource) */ { - public: - DataSource(); - virtual ~DataSource(); - - DataSource(const DataSource& from); - DataSource(DataSource&& from) noexcept - : DataSource() { - *this = ::std::move(from); - } - - inline DataSource& operator=(const DataSource& from) { - CopyFrom(from); - return *this; - } - inline DataSource& operator=(DataSource&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) 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_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(DataSource& a, DataSource& b) { - a.Swap(&b); - } - inline void Swap(DataSource* other) { - if (other == this) return; - 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 CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& 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; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _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; - } - public: - - std::string GetTypeName() 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) - 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 struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class Any : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:Any) */ { - public: - Any(); - virtual ~Any(); - - Any(const Any& from); - Any(Any&& from) noexcept - : Any() { - *this = ::std::move(from); - } - - inline Any& operator=(const Any& from) { - CopyFrom(from); - return *this; - } - inline Any& operator=(Any&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) 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_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(Any& a, Any& b) { - a.Swap(&b); - } - inline void Swap(Any* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Any* New() const final { - return CreateMaybeMessage(nullptr); - } - - 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; - 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(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; - } - public: - - std::string GetTypeName() const final; - - // 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) - 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 struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_EnvoyGrpc : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GrpcService.EnvoyGrpc) */ { - 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) { - CopyFrom(from); - return *this; - } - inline GrpcService_EnvoyGrpc& operator=(GrpcService_EnvoyGrpc&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) 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_); - } - 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; - 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); - } - 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; - 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_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; - } - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kClusterNameFieldNumber = 1, - }; - // 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); - - // @@protoc_insertion_point(class_scope:GrpcService.EnvoyGrpc) - 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 struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc_SslCredentials : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.SslCredentials) */ { - 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) { - 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); - } - 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_); - } - 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; - 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); - } - 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; - 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_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; - } - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRootCertsFieldNumber = 1, - kPrivateKeyFieldNumber = 2, - kCertChainFieldNumber = 3, - }; - // .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); - - // .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); - - // .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); - - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.SslCredentials) - 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 struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc_GoogleLocalCredentials : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.GoogleLocalCredentials) */ { - 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) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc_GoogleLocalCredentials& operator=(GrpcService_GoogleGrpc_GoogleLocalCredentials&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) 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_); - } - 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; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GrpcService_GoogleGrpc_GoogleLocalCredentials* New() const final { - return CreateMaybeMessage(nullptr); - } - - 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; - 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_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; - } - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.GoogleLocalCredentials) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - 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) */ { - 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) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc_Empty& operator=(GrpcService_GoogleGrpc_Empty&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) 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_); - } - 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; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GrpcService_GoogleGrpc_Empty* New() const final { - return CreateMaybeMessage(nullptr); - } - - 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; - 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_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; - } - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.Empty) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - 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) */ { - 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) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc_ChannelCredentials& operator=(GrpcService_GoogleGrpc_ChannelCredentials&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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 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; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GrpcService_GoogleGrpc_ChannelCredentials* New() const final { - return CreateMaybeMessage(nullptr); - } - - 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; - 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_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; - } - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSslCredentialsFieldNumber = 1, - kGoogleDefaultFieldNumber = 2, - kLocalCredentialsFieldNumber = 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); - - // .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); - - // .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); - - 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(); - - inline bool has_credential_specifier() const; - inline void clear_has_credential_specifier(); - - ::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]; - - 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) */ { - 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) { - 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); - } 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_); - } - 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; - 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); - } - 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; - 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_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; - } - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kJsonKeyFieldNumber = 1, - kTokenLifetimeSecondsFieldNumber = 2, - }; - // 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); - - // 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); - - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - 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 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) */ { - 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) { - 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); - } 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_); - } - 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; - 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 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; - 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_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; - } - public: - - std::string GetTypeName() 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; - 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); - - // 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); - - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - 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 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) */ { - 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& 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); - } else { - CopyFrom(from); - } - return *this; - } - - 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 = - 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; - 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); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::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; - 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_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; - } - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNameFieldNumber = 1, - kConfigFieldNumber = 2, - kTypedConfigFieldNumber = 3, - }; - // string name = 1; - 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); - std::string* mutable_name(); - std::string* release_name(); - void set_allocated_name(std::string* name); - - // .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); - - // .Any typed_config = 3; - bool has_typed_config() const; - void clear_typed_config(); - const ::Any& typed_config() const; - ::Any* release_typed_config(); - ::Any* mutable_typed_config(); - void set_allocated_typed_config(::Any* typed_config); - - void clear_config_type(); - ConfigTypeCase config_type_case() const; - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - private: - 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 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) */ { - 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) { - 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); - } 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_); - } - 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; - 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); - } - 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; - 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_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; - } - public: - - std::string GetTypeName() 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, - }; - // 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); - - // 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); - - // 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); - - // 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); - - // 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); - - // 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); - - // 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); - - // 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); - - // 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); - - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.StsService) - 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_; - 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) */ { - 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& 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); - } else { - CopyFrom(from); - } - return *this; - } - - static const GrpcService_GoogleGrpc_CallCredentials& default_instance(); - - enum CredentialSpecifierCase { - kAccessToken = 1, - kGoogleComputeEngine = 2, - kGoogleRefreshToken = 3, - kServiceAccountJwtAccess = 4, - kGoogleIam = 5, - kFromPlugin = 6, - 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); - } - inline void Swap(GrpcService_GoogleGrpc_CallCredentials* other) { - if (other == this) return; - 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 CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& 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; - 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_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; - } - public: - - std::string GetTypeName() 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; - - // accessors ------------------------------------------------------- - - enum : int { - kAccessTokenFieldNumber = 1, - kGoogleComputeEngineFieldNumber = 2, - kGoogleRefreshTokenFieldNumber = 3, - kServiceAccountJwtAccessFieldNumber = 4, - kGoogleIamFieldNumber = 5, - kFromPluginFieldNumber = 6, - kStsServiceFieldNumber = 7, - }; - // string access_token = 1; - private: - bool has_access_token() const; - public: - 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); - std::string* mutable_access_token(); - std::string* release_access_token(); - void set_allocated_access_token(std::string* access_token); - - // .GrpcService.GoogleGrpc.Empty google_compute_engine = 2; - bool has_google_compute_engine() const; - void clear_google_compute_engine(); - const ::GrpcService_GoogleGrpc_Empty& google_compute_engine() const; - ::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); - - // string google_refresh_token = 3; - private: - bool has_google_refresh_token() const; - public: - 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); - std::string* mutable_google_refresh_token(); - std::string* release_google_refresh_token(); - void set_allocated_google_refresh_token(std::string* google_refresh_token); - - // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; - bool has_service_account_jwt_access() const; - 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(); - ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* mutable_service_account_jwt_access(); - void set_allocated_service_account_jwt_access(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* service_account_jwt_access); - - // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; - bool has_google_iam() const; - void clear_google_iam(); - const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& google_iam() const; - ::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); - - // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; - bool has_from_plugin() const; - void clear_from_plugin(); - const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from_plugin() const; - ::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); - - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - bool has_sts_service() const; - void clear_sts_service(); - const ::GrpcService_GoogleGrpc_CallCredentials_StsService& sts_service() const; - ::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 clear_credential_specifier(); - CredentialSpecifierCase credential_specifier_case() const; - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials) - private: - class _Internal; - void set_has_access_token(); - void set_has_google_compute_engine(); - void set_has_google_refresh_token(); - void set_has_service_account_jwt_access(); - 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 struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc : - public ::PROTOBUF_NAMESPACE_ID::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& 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); - } else { - CopyFrom(from); - } - return *this; - } - - 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 = - 13; - - friend void swap(GrpcService_GoogleGrpc& a, GrpcService_GoogleGrpc& b) { - a.Swap(&b); - } - inline void Swap(GrpcService_GoogleGrpc* other) { - if (other == this) return; - 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); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; - 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; - 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_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; - } - public: - - std::string GetTypeName() const final; - - // 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; - - // accessors ------------------------------------------------------- - - enum : int { - kCallCredentialsFieldNumber = 3, - kTargetUriFieldNumber = 1, - kStatPrefixFieldNumber = 4, - kCredentialsFactoryNameFieldNumber = 5, - kChannelCredentialsFieldNumber = 2, - kConfigFieldNumber = 6, - }; - // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; - int call_credentials_size() const; - void clear_call_credentials(); - ::GrpcService_GoogleGrpc_CallCredentials* mutable_call_credentials(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_GoogleGrpc_CallCredentials >* - mutable_call_credentials(); - 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; - - // string target_uri = 1; - 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); - std::string* mutable_target_uri(); - std::string* release_target_uri(); - void set_allocated_target_uri(std::string* target_uri); - - // string stat_prefix = 4; - 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); - std::string* mutable_stat_prefix(); - std::string* release_stat_prefix(); - void set_allocated_stat_prefix(std::string* stat_prefix); - - // string credentials_factory_name = 5; - 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); - std::string* mutable_credentials_factory_name(); - std::string* release_credentials_factory_name(); - void set_allocated_credentials_factory_name(std::string* credentials_factory_name); - - // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - bool has_channel_credentials() const; - void clear_channel_credentials(); - const ::GrpcService_GoogleGrpc_ChannelCredentials& channel_credentials() const; - ::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 ::google::protobuf::Struct& config() const; - ::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; - } - - 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 ---------------------------------------------------- - - // 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) - 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 struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService : - public ::PROTOBUF_NAMESPACE_ID::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& operator=(const GrpcService& from) { - CopyFrom(from); - return *this; - } - inline GrpcService& operator=(GrpcService&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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 = - 15; - - friend void swap(GrpcService& a, GrpcService& b) { - a.Swap(&b); - } - inline void Swap(GrpcService* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GrpcService* New() const final { - return CreateMaybeMessage(nullptr); - } - - GrpcService* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; - 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; - 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* 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; - } - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef GrpcService_EnvoyGrpc EnvoyGrpc; - typedef GrpcService_GoogleGrpc GoogleGrpc; - typedef GrpcService_HeaderValue HeaderValue; - - // accessors ------------------------------------------------------- - - enum : int { - kInitialMetadataFieldNumber = 5, - kEnvoyGrpcFieldNumber = 1, - kGoogleGrpcFieldNumber = 2, - }; - // repeated .GrpcService.HeaderValue initial_metadata = 5; - int initial_metadata_size() const; - void clear_initial_metadata(); - ::GrpcService_HeaderValue* mutable_initial_metadata(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_HeaderValue >* - mutable_initial_metadata(); - const ::GrpcService_HeaderValue& initial_metadata(int index) const; - ::GrpcService_HeaderValue* add_initial_metadata(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_HeaderValue >& - initial_metadata() const; - - // .GrpcService.EnvoyGrpc envoy_grpc = 1; - bool has_envoy_grpc() const; - void clear_envoy_grpc(); - const ::GrpcService_EnvoyGrpc& envoy_grpc() const; - ::GrpcService_EnvoyGrpc* release_envoy_grpc(); - ::GrpcService_EnvoyGrpc* mutable_envoy_grpc(); - void set_allocated_envoy_grpc(::GrpcService_EnvoyGrpc* envoy_grpc); - - // .GrpcService.GoogleGrpc google_grpc = 2; - bool has_google_grpc() const; - void clear_google_grpc(); - const ::GrpcService_GoogleGrpc& google_grpc() const; - ::GrpcService_GoogleGrpc* release_google_grpc(); - ::GrpcService_GoogleGrpc* mutable_google_grpc(); - void set_allocated_google_grpc(::GrpcService_GoogleGrpc* google_grpc); - - void clear_target_specifier(); - TargetSpecifierCase target_specifier_case() const; - // @@protoc_insertion_point(class_scope:GrpcService) - private: - 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 struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #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; -} -inline const ::google::protobuf::Struct& WKT::struct_() const { - const ::google::protobuf::Struct* p = struct__; - // @@protoc_insertion_point(field_get:WKT.struct) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Struct_default_instance_); -} -inline ::google::protobuf::Struct* WKT::release_struct_() { - // @@protoc_insertion_point(field_release:WKT.struct) - - ::google::protobuf::Struct* temp = struct__; - struct__ = nullptr; - return temp; -} -inline ::google::protobuf::Struct* WKT::mutable_struct_() { - - if (struct__ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual()); - struct__ = p; - } - // @@protoc_insertion_point(field_mutable:WKT.struct) - return struct__; -} -inline void WKT::set_allocated_struct_(::google::protobuf::Struct* struct_) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(struct__); - } - if (struct_) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(struct_)->GetArena(); - if (message_arena != submessage_arena) { - struct_ = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, struct_, submessage_arena); - } - - } else { - - } - struct__ = struct_; - // @@protoc_insertion_point(field_set_allocated:WKT.struct) -} - -// ------------------------------------------------------------------- - -// DataSource - -// string filename = 1; -inline bool DataSource::has_filename() const { - return specifier_case() == kFilename; -} -inline void DataSource::set_has_filename() { - _oneof_case_[0] = kFilename; -} -inline void DataSource::clear_filename() { - if (has_filename()) { - specifier_.filename_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - clear_has_specifier(); - } -} -inline const std::string& DataSource::filename() const { - // @@protoc_insertion_point(field_get:DataSource.filename) - if (has_filename()) { - return specifier_.filename_.GetNoArena(); - } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); -} -inline void DataSource::set_filename(const 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(), value); - // @@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 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()); - } - specifier_.filename_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:DataSource.filename) -} -inline void DataSource::set_filename(const char* value, size_t size) { - 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::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:DataSource.filename) -} -inline std::string* DataSource::mutable_filename() { - if (!has_filename()) { - clear_specifier(); - set_has_filename(); - specifier_.filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:DataSource.filename) - return specifier_.filename_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* DataSource::release_filename() { - // @@protoc_insertion_point(field_release:DataSource.filename) - if (has_filename()) { - clear_has_specifier(); - return specifier_.filename_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void DataSource::set_allocated_filename(std::string* filename) { - if (has_specifier()) { - clear_specifier(); - } - if (filename != nullptr) { - set_has_filename(); - specifier_.filename_.UnsafeSetDefault(filename); - } - // @@protoc_insertion_point(field_set_allocated:DataSource.filename) -} - -// bytes inline_bytes = 2; -inline bool DataSource::has_inline_bytes() const { - return specifier_case() == kInlineBytes; -} -inline void DataSource::set_has_inline_bytes() { - _oneof_case_[0] = kInlineBytes; -} -inline void DataSource::clear_inline_bytes() { - if (has_inline_bytes()) { - specifier_.inline_bytes_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - clear_has_specifier(); - } -} -inline const std::string& DataSource::inline_bytes() const { - // @@protoc_insertion_point(field_get:DataSource.inline_bytes) - if (has_inline_bytes()) { - return specifier_.inline_bytes_.GetNoArena(); - } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); -} -inline void DataSource::set_inline_bytes(const 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(), value); - // @@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 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()); - } - specifier_.inline_bytes_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:DataSource.inline_bytes) -} -inline void DataSource::set_inline_bytes(const void* value, size_t size) { - 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::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:DataSource.inline_bytes) -} -inline std::string* DataSource::mutable_inline_bytes() { - if (!has_inline_bytes()) { - clear_specifier(); - set_has_inline_bytes(); - specifier_.inline_bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:DataSource.inline_bytes) - return specifier_.inline_bytes_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* DataSource::release_inline_bytes() { - // @@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 { - return nullptr; - } -} -inline void DataSource::set_allocated_inline_bytes(std::string* inline_bytes) { - if (has_specifier()) { - clear_specifier(); - } - if (inline_bytes != nullptr) { - set_has_inline_bytes(); - specifier_.inline_bytes_.UnsafeSetDefault(inline_bytes); - } - // @@protoc_insertion_point(field_set_allocated:DataSource.inline_bytes) -} - -// string inline_string = 3; -inline bool DataSource::has_inline_string() const { - return specifier_case() == kInlineString; -} -inline void DataSource::set_has_inline_string() { - _oneof_case_[0] = kInlineString; -} -inline void DataSource::clear_inline_string() { - if (has_inline_string()) { - specifier_.inline_string_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - clear_has_specifier(); - } -} -inline const std::string& DataSource::inline_string() const { - // @@protoc_insertion_point(field_get:DataSource.inline_string) - if (has_inline_string()) { - return specifier_.inline_string_.GetNoArena(); - } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); -} -inline void DataSource::set_inline_string(const 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(), value); - // @@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 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()); - } - specifier_.inline_string_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:DataSource.inline_string) -} -inline void DataSource::set_inline_string(const char* value, size_t size) { - 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::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:DataSource.inline_string) -} -inline std::string* DataSource::mutable_inline_string() { - if (!has_inline_string()) { - clear_specifier(); - set_has_inline_string(); - specifier_.inline_string_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:DataSource.inline_string) - return specifier_.inline_string_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* DataSource::release_inline_string() { - // @@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 { - return nullptr; - } -} -inline void DataSource::set_allocated_inline_string(std::string* inline_string) { - if (has_specifier()) { - clear_specifier(); - } - if (inline_string != nullptr) { - set_has_inline_string(); - specifier_.inline_string_.UnsafeSetDefault(inline_string); - } - // @@protoc_insertion_point(field_set_allocated:DataSource.inline_string) -} - -inline bool DataSource::has_specifier() const { - return specifier_case() != SPECIFIER_NOT_SET; -} -inline void DataSource::clear_has_specifier() { - _oneof_case_[0] = SPECIFIER_NOT_SET; -} -inline DataSource::SpecifierCase DataSource::specifier_case() const { - return DataSource::SpecifierCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// Any - -// string type_url = 1; -inline void Any::clear_type_url() { - type_url_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& Any::type_url() const { - // @@protoc_insertion_point(field_get:Any.type_url) - return type_url_.GetNoArena(); -} -inline void Any::set_type_url(const std::string& value) { - - type_url_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:Any.type_url) - return type_url_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* Any::release_type_url() { - // @@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); - // @@protoc_insertion_point(field_set_allocated:Any.type_url) -} - -// bytes value = 2; -inline void Any::clear_value() { - value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& Any::value() const { - // @@protoc_insertion_point(field_get:Any.value) - return value_.GetNoArena(); -} -inline void Any::set_value(const std::string& value) { - - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:Any.value) - return value_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* Any::release_value() { - // @@protoc_insertion_point(field_release:Any.value) - - return value_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void Any::set_allocated_value(std::string* value) { - if (value != nullptr) { - - } else { - - } - value_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set_allocated:Any.value) -} - -// ------------------------------------------------------------------- - -// GrpcService_EnvoyGrpc - -// string cluster_name = 1; -inline void GrpcService_EnvoyGrpc::clear_cluster_name() { - cluster_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_EnvoyGrpc::cluster_name() const { - // @@protoc_insertion_point(field_get:GrpcService.EnvoyGrpc.cluster_name) - return cluster_name_.GetNoArena(); -} -inline void GrpcService_EnvoyGrpc::set_cluster_name(const std::string& value) { - - cluster_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.EnvoyGrpc.cluster_name) - return cluster_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_EnvoyGrpc::release_cluster_name() { - // @@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); - // @@protoc_insertion_point(field_set_allocated:GrpcService.EnvoyGrpc.cluster_name) -} - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_SslCredentials - -// .DataSource root_certs = 1; -inline bool GrpcService_GoogleGrpc_SslCredentials::has_root_certs() const { - return this != internal_default_instance() && root_certs_ != nullptr; -} -inline void GrpcService_GoogleGrpc_SslCredentials::clear_root_certs() { - if (GetArenaNoVirtual() == nullptr && root_certs_ != nullptr) { - delete root_certs_; - } - root_certs_ = nullptr; -} -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::root_certs() const { - const ::DataSource* p = root_certs_; - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.SslCredentials.root_certs) - return p != nullptr ? *p : *reinterpret_cast( - &::_DataSource_default_instance_); -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::release_root_certs() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.SslCredentials.root_certs) - - ::DataSource* temp = root_certs_; - 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; - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.SslCredentials.root_certs) - return root_certs_; -} -inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_root_certs(::DataSource* root_certs) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete root_certs_; - } - if (root_certs) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - root_certs = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, root_certs, submessage_arena); - } - - } else { - - } - root_certs_ = root_certs; - // @@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; -} -inline void GrpcService_GoogleGrpc_SslCredentials::clear_private_key() { - if (GetArenaNoVirtual() == nullptr && private_key_ != nullptr) { - delete private_key_; - } - private_key_ = nullptr; -} -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::private_key() const { - const ::DataSource* p = private_key_; - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.SslCredentials.private_key) - return p != nullptr ? *p : *reinterpret_cast( - &::_DataSource_default_instance_); -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::release_private_key() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.SslCredentials.private_key) - - ::DataSource* temp = private_key_; - 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; - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.SslCredentials.private_key) - return private_key_; -} -inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_private_key(::DataSource* private_key) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete private_key_; - } - if (private_key) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - private_key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, private_key, submessage_arena); - } - - } else { - - } - private_key_ = private_key; - // @@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; -} -inline void GrpcService_GoogleGrpc_SslCredentials::clear_cert_chain() { - if (GetArenaNoVirtual() == nullptr && cert_chain_ != nullptr) { - delete cert_chain_; - } - cert_chain_ = nullptr; -} -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::cert_chain() const { - const ::DataSource* p = cert_chain_; - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.SslCredentials.cert_chain) - return p != nullptr ? *p : *reinterpret_cast( - &::_DataSource_default_instance_); -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::release_cert_chain() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.SslCredentials.cert_chain) - - ::DataSource* temp = cert_chain_; - 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; - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.SslCredentials.cert_chain) - return cert_chain_; -} -inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_cert_chain(::DataSource* cert_chain) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete cert_chain_; - } - if (cert_chain) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - cert_chain = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, cert_chain, submessage_arena); - } - - } else { - - } - cert_chain_ = cert_chain; - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.SslCredentials.cert_chain) -} - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_GoogleLocalCredentials - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_Empty - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_ChannelCredentials - -// .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; -inline bool GrpcService_GoogleGrpc_ChannelCredentials::has_ssl_credentials() const { - return credential_specifier_case() == kSslCredentials; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::set_has_ssl_credentials() { - _oneof_case_[0] = kSslCredentials; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::clear_ssl_credentials() { - if (has_ssl_credentials()) { - delete 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()) { - clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_SslCredentials* temp = credential_specifier_.ssl_credentials_; - credential_specifier_.ssl_credentials_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_SslCredentials& GrpcService_GoogleGrpc_ChannelCredentials::ssl_credentials() const { - // @@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_); -} -inline ::GrpcService_GoogleGrpc_SslCredentials* GrpcService_GoogleGrpc_ChannelCredentials::mutable_ssl_credentials() { - if (!has_ssl_credentials()) { - clear_credential_specifier(); - set_has_ssl_credentials(); - credential_specifier_.ssl_credentials_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_SslCredentials >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) - return credential_specifier_.ssl_credentials_; -} - -// .GrpcService.GoogleGrpc.Empty google_default = 2; -inline bool GrpcService_GoogleGrpc_ChannelCredentials::has_google_default() const { - return credential_specifier_case() == kGoogleDefault; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::set_has_google_default() { - _oneof_case_[0] = kGoogleDefault; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::clear_google_default() { - if (has_google_default()) { - delete 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()) { - clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_Empty* temp = credential_specifier_.google_default_; - credential_specifier_.google_default_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_Empty& GrpcService_GoogleGrpc_ChannelCredentials::google_default() const { - // @@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_); -} -inline ::GrpcService_GoogleGrpc_Empty* GrpcService_GoogleGrpc_ChannelCredentials::mutable_google_default() { - if (!has_google_default()) { - clear_credential_specifier(); - set_has_google_default(); - credential_specifier_.google_default_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_Empty >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.ChannelCredentials.google_default) - return credential_specifier_.google_default_; -} - -// .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; -inline bool GrpcService_GoogleGrpc_ChannelCredentials::has_local_credentials() const { - return credential_specifier_case() == kLocalCredentials; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::set_has_local_credentials() { - _oneof_case_[0] = kLocalCredentials; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::clear_local_credentials() { - if (has_local_credentials()) { - delete 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()) { - clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_GoogleLocalCredentials* temp = credential_specifier_.local_credentials_; - credential_specifier_.local_credentials_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& GrpcService_GoogleGrpc_ChannelCredentials::local_credentials() const { - // @@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_); -} -inline ::GrpcService_GoogleGrpc_GoogleLocalCredentials* GrpcService_GoogleGrpc_ChannelCredentials::mutable_local_credentials() { - if (!has_local_credentials()) { - clear_credential_specifier(); - set_has_local_credentials(); - credential_specifier_.local_credentials_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_GoogleLocalCredentials >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) - return credential_specifier_.local_credentials_; -} - -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; -} -inline GrpcService_GoogleGrpc_ChannelCredentials::CredentialSpecifierCase GrpcService_GoogleGrpc_ChannelCredentials::credential_specifier_case() const { - return GrpcService_GoogleGrpc_ChannelCredentials::CredentialSpecifierCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials - -// string json_key = 1; -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::clear_json_key() { - json_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::json_key() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) - return json_key_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_json_key(const std::string& value) { - - json_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) - return json_key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::release_json_key() { - // @@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); - // @@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); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::token_lifetime_seconds() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.token_lifetime_seconds) - return token_lifetime_seconds_; -} -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_token_lifetime_seconds(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - token_lifetime_seconds_ = value; - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.token_lifetime_seconds) -} - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials - -// string authorization_token = 1; -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::clear_authorization_token() { - authorization_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::authorization_token() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) - return authorization_token_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authorization_token(const std::string& value) { - - authorization_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) - return authorization_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::release_authorization_token() { - // @@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); - // @@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()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::authority_selector() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) - return authority_selector_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authority_selector(const std::string& value) { - - authority_selector_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) - return authority_selector_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::release_authority_selector() { - // @@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); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) -} - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin - -// string name = 1; -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::clear_name() { - name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::name() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) - return name_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_name(const std::string& value) { - - name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) - return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::release_name() { - // @@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); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) -} - -// .google.protobuf.Struct config = 2 [deprecated = true]; -inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::has_config() const { - return config_type_case() == kConfig; -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_has_config() { - _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()) { - clear_has_config_type(); - ::google::protobuf::Struct* temp = config_type_.config_; - config_type_.config_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::google::protobuf::Struct& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::config() const { - // @@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_); -} -inline ::google::protobuf::Struct* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::mutable_config() { - if (!has_config()) { - clear_config_type(); - set_has_config(); - config_type_.config_ = CreateMaybeMessage< ::google::protobuf::Struct >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) - return config_type_.config_; -} - -// .Any typed_config = 3; -inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::has_typed_config() const { - return config_type_case() == kTypedConfig; -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_has_typed_config() { - _oneof_case_[0] = kTypedConfig; -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::clear_typed_config() { - if (has_typed_config()) { - delete 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()) { - clear_has_config_type(); - ::Any* temp = config_type_.typed_config_; - config_type_.typed_config_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::Any& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::typed_config() const { - // @@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_); -} -inline ::Any* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::mutable_typed_config() { - if (!has_typed_config()) { - clear_config_type(); - set_has_typed_config(); - config_type_.typed_config_ = CreateMaybeMessage< ::Any >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) - return config_type_.typed_config_; -} - -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; -} -inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::ConfigTypeCase GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::config_type_case() const { - return GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::ConfigTypeCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_CallCredentials_StsService - -// 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()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::token_exchange_service_uri() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) - return token_exchange_service_uri_.GetNoArena(); -} -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); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) - return token_exchange_service_uri_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_token_exchange_service_uri() { - // @@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); - // @@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()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::resource() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) - return resource_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_resource(const std::string& value) { - - resource_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) - return resource_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_resource() { - // @@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); - // @@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()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::audience() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) - return audience_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_audience(const std::string& value) { - - audience_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) - return audience_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_audience() { - // @@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); - // @@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()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::scope() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) - return scope_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_scope(const std::string& value) { - - scope_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) - return scope_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_scope() { - // @@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); - // @@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()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::requested_token_type() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) - return requested_token_type_.GetNoArena(); -} -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::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::release_requested_token_type() { - // @@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); - // @@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()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::subject_token_path() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) - return subject_token_path_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_path(const std::string& value) { - - subject_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) - return subject_token_path_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_subject_token_path() { - // @@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); - // @@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()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::subject_token_type() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) - return subject_token_type_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_type(const std::string& value) { - - subject_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) - return subject_token_type_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_subject_token_type() { - // @@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); - // @@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()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::actor_token_path() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) - return actor_token_path_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_path(const std::string& value) { - - actor_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) - return actor_token_path_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_actor_token_path() { - // @@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); - // @@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()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::actor_token_type() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) - return actor_token_type_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_type(const std::string& value) { - - actor_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) - return actor_token_type_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_actor_token_type() { - // @@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); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) -} - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_CallCredentials - -// string access_token = 1; -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; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_access_token() { - if (has_access_token()) { - credential_specifier_.access_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - clear_has_credential_specifier(); - } -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials::access_token() const { - // @@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(); -} -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()) { - 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(), value); - // @@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 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()); - } - credential_specifier_.access_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.access_token) -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_access_token(const char* value, size_t size) { - 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::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.access_token) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials::mutable_access_token() { - if (!has_access_token()) { - clear_credential_specifier(); - set_has_access_token(); - credential_specifier_.access_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.access_token) - return credential_specifier_.access_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials::release_access_token() { - // @@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 { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_allocated_access_token(std::string* access_token) { - if (has_credential_specifier()) { - clear_credential_specifier(); - } - if (access_token != nullptr) { - set_has_access_token(); - credential_specifier_.access_token_.UnsafeSetDefault(access_token); - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.access_token) -} - -// .GrpcService.GoogleGrpc.Empty google_compute_engine = 2; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_google_compute_engine() const { - return credential_specifier_case() == kGoogleComputeEngine; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_google_compute_engine() { - _oneof_case_[0] = kGoogleComputeEngine; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_google_compute_engine() { - if (has_google_compute_engine()) { - delete 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()) { - clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_Empty* temp = credential_specifier_.google_compute_engine_; - credential_specifier_.google_compute_engine_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_Empty& GrpcService_GoogleGrpc_CallCredentials::google_compute_engine() const { - // @@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_); -} -inline ::GrpcService_GoogleGrpc_Empty* GrpcService_GoogleGrpc_CallCredentials::mutable_google_compute_engine() { - if (!has_google_compute_engine()) { - clear_credential_specifier(); - set_has_google_compute_engine(); - credential_specifier_.google_compute_engine_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_Empty >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) - return credential_specifier_.google_compute_engine_; -} - -// string google_refresh_token = 3; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_google_refresh_token() const { - return credential_specifier_case() == kGoogleRefreshToken; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_google_refresh_token() { - _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()); - clear_has_credential_specifier(); - } -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials::google_refresh_token() const { - // @@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(); -} -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()) { - 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(), value); - // @@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 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()); - } - 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) -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_google_refresh_token(const char* value, size_t size) { - 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::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials::mutable_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()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) - return credential_specifier_.google_refresh_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials::release_google_refresh_token() { - // @@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 { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_allocated_google_refresh_token(std::string* google_refresh_token) { - if (has_credential_specifier()) { - clear_credential_specifier(); - } - if (google_refresh_token != nullptr) { - set_has_google_refresh_token(); - credential_specifier_.google_refresh_token_.UnsafeSetDefault(google_refresh_token); - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) -} - -// .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; -inline bool GrpcService_GoogleGrpc_CallCredentials::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; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_service_account_jwt_access() { - if (has_service_account_jwt_access()) { - delete 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()) { - clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* temp = credential_specifier_.service_account_jwt_access_; - 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 { - // @@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_); -} -inline ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* GrpcService_GoogleGrpc_CallCredentials::mutable_service_account_jwt_access() { - if (!has_service_account_jwt_access()) { - clear_credential_specifier(); - set_has_service_account_jwt_access(); - credential_specifier_.service_account_jwt_access_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) - return credential_specifier_.service_account_jwt_access_; -} - -// .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_google_iam() const { - return credential_specifier_case() == kGoogleIam; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_google_iam() { - _oneof_case_[0] = kGoogleIam; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_google_iam() { - if (has_google_iam()) { - delete 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()) { - clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* temp = credential_specifier_.google_iam_; - credential_specifier_.google_iam_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& GrpcService_GoogleGrpc_CallCredentials::google_iam() const { - // @@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_); -} -inline ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* GrpcService_GoogleGrpc_CallCredentials::mutable_google_iam() { - if (!has_google_iam()) { - clear_credential_specifier(); - set_has_google_iam(); - credential_specifier_.google_iam_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.google_iam) - return credential_specifier_.google_iam_; -} - -// .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_from_plugin() const { - return credential_specifier_case() == kFromPlugin; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_from_plugin() { - _oneof_case_[0] = kFromPlugin; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_from_plugin() { - if (has_from_plugin()) { - delete 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()) { - clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* temp = credential_specifier_.from_plugin_; - credential_specifier_.from_plugin_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& GrpcService_GoogleGrpc_CallCredentials::from_plugin() const { - // @@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_); -} -inline ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* GrpcService_GoogleGrpc_CallCredentials::mutable_from_plugin() { - if (!has_from_plugin()) { - clear_credential_specifier(); - set_has_from_plugin(); - credential_specifier_.from_plugin_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.from_plugin) - return credential_specifier_.from_plugin_; -} - -// .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_sts_service() const { - return credential_specifier_case() == kStsService; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_sts_service() { - _oneof_case_[0] = kStsService; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_sts_service() { - if (has_sts_service()) { - delete 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()) { - clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_CallCredentials_StsService* temp = credential_specifier_.sts_service_; - credential_specifier_.sts_service_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_StsService& GrpcService_GoogleGrpc_CallCredentials::sts_service() const { - // @@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_); -} -inline ::GrpcService_GoogleGrpc_CallCredentials_StsService* GrpcService_GoogleGrpc_CallCredentials::mutable_sts_service() { - if (!has_sts_service()) { - clear_credential_specifier(); - set_has_sts_service(); - credential_specifier_.sts_service_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_StsService >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.sts_service) - return credential_specifier_.sts_service_; -} - -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; -} -inline GrpcService_GoogleGrpc_CallCredentials::CredentialSpecifierCase GrpcService_GoogleGrpc_CallCredentials::credential_specifier_case() const { - return GrpcService_GoogleGrpc_CallCredentials::CredentialSpecifierCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc - -// string target_uri = 1; -inline void GrpcService_GoogleGrpc::clear_target_uri() { - target_uri_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc::target_uri() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.target_uri) - return target_uri_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc::set_target_uri(const std::string& value) { - - target_uri_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.target_uri) - return target_uri_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc::release_target_uri() { - // @@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); - // @@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; -} -inline void GrpcService_GoogleGrpc::clear_channel_credentials() { - if (GetArenaNoVirtual() == nullptr && channel_credentials_ != nullptr) { - delete channel_credentials_; - } - channel_credentials_ = nullptr; -} -inline const ::GrpcService_GoogleGrpc_ChannelCredentials& GrpcService_GoogleGrpc::channel_credentials() const { - const ::GrpcService_GoogleGrpc_ChannelCredentials* p = channel_credentials_; - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.channel_credentials) - return p != nullptr ? *p : *reinterpret_cast( - &::_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_); -} -inline ::GrpcService_GoogleGrpc_ChannelCredentials* GrpcService_GoogleGrpc::release_channel_credentials() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.channel_credentials) - - ::GrpcService_GoogleGrpc_ChannelCredentials* temp = channel_credentials_; - 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; - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.channel_credentials) - return channel_credentials_; -} -inline void GrpcService_GoogleGrpc::set_allocated_channel_credentials(::GrpcService_GoogleGrpc_ChannelCredentials* channel_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete channel_credentials_; - } - if (channel_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - channel_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, channel_credentials, submessage_arena); - } - - } else { - - } - channel_credentials_ = channel_credentials; - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.channel_credentials) -} - -// repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; -inline int GrpcService_GoogleGrpc::call_credentials_size() const { - return call_credentials_.size(); -} -inline void GrpcService_GoogleGrpc::clear_call_credentials() { - call_credentials_.Clear(); -} -inline ::GrpcService_GoogleGrpc_CallCredentials* GrpcService_GoogleGrpc::mutable_call_credentials(int index) { - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.call_credentials) - return call_credentials_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_GoogleGrpc_CallCredentials >* -GrpcService_GoogleGrpc::mutable_call_credentials() { - // @@protoc_insertion_point(field_mutable_list:GrpcService.GoogleGrpc.call_credentials) - return &call_credentials_; -} -inline const ::GrpcService_GoogleGrpc_CallCredentials& GrpcService_GoogleGrpc::call_credentials(int index) const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.call_credentials) - return call_credentials_.Get(index); -} -inline ::GrpcService_GoogleGrpc_CallCredentials* GrpcService_GoogleGrpc::add_call_credentials() { - // @@protoc_insertion_point(field_add:GrpcService.GoogleGrpc.call_credentials) - return call_credentials_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_GoogleGrpc_CallCredentials >& -GrpcService_GoogleGrpc::call_credentials() const { - // @@protoc_insertion_point(field_list:GrpcService.GoogleGrpc.call_credentials) - return call_credentials_; -} - -// string stat_prefix = 4; -inline void GrpcService_GoogleGrpc::clear_stat_prefix() { - stat_prefix_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc::stat_prefix() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.stat_prefix) - return stat_prefix_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc::set_stat_prefix(const std::string& value) { - - stat_prefix_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.stat_prefix) - return stat_prefix_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc::release_stat_prefix() { - // @@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); - // @@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()); -} -inline const std::string& GrpcService_GoogleGrpc::credentials_factory_name() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.credentials_factory_name) - return credentials_factory_name_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc::set_credentials_factory_name(const std::string& value) { - - credentials_factory_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.credentials_factory_name) - return credentials_factory_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc::release_credentials_factory_name() { - // @@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); - // @@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; -} -inline const ::google::protobuf::Struct& GrpcService_GoogleGrpc::config() const { - const ::google::protobuf::Struct* p = config_; - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.config) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Struct_default_instance_); -} -inline ::google::protobuf::Struct* GrpcService_GoogleGrpc::release_config() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.config) - - ::google::protobuf::Struct* temp = config_; - config_ = nullptr; - return temp; -} -inline ::google::protobuf::Struct* GrpcService_GoogleGrpc::mutable_config() { - - if (config_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual()); - config_ = p; - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.config) - return config_; -} -inline void GrpcService_GoogleGrpc::set_allocated_config(::google::protobuf::Struct* config) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(config_); - } - if (config) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config)->GetArena(); - if (message_arena != submessage_arena) { - config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, config, submessage_arena); - } - - } else { - - } - config_ = config; - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.config) -} - -// ------------------------------------------------------------------- - -// GrpcService_HeaderValue - -// string key = 1; -inline void GrpcService_HeaderValue::clear_key() { - key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_HeaderValue::key() const { - // @@protoc_insertion_point(field_get:GrpcService.HeaderValue.key) - return key_.GetNoArena(); -} -inline void GrpcService_HeaderValue::set_key(const std::string& value) { - - key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.HeaderValue.key) - return key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_HeaderValue::release_key() { - // @@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); - // @@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()); -} -inline const std::string& GrpcService_HeaderValue::value() const { - // @@protoc_insertion_point(field_get:GrpcService.HeaderValue.value) - return value_.GetNoArena(); -} -inline void GrpcService_HeaderValue::set_value(const std::string& value) { - - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@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() { - - // @@protoc_insertion_point(field_mutable:GrpcService.HeaderValue.value) - return value_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_HeaderValue::release_value() { - // @@protoc_insertion_point(field_release:GrpcService.HeaderValue.value) - - return value_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_HeaderValue::set_allocated_value(std::string* value) { - if (value != nullptr) { - - } else { - - } - value_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set_allocated:GrpcService.HeaderValue.value) -} - -// ------------------------------------------------------------------- - -// GrpcService - -// .GrpcService.EnvoyGrpc envoy_grpc = 1; -inline bool GrpcService::has_envoy_grpc() const { - return target_specifier_case() == kEnvoyGrpc; -} -inline void GrpcService::set_has_envoy_grpc() { - _oneof_case_[0] = kEnvoyGrpc; -} -inline void GrpcService::clear_envoy_grpc() { - if (has_envoy_grpc()) { - delete 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()) { - clear_has_target_specifier(); - ::GrpcService_EnvoyGrpc* temp = target_specifier_.envoy_grpc_; - target_specifier_.envoy_grpc_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_EnvoyGrpc& GrpcService::envoy_grpc() const { - // @@protoc_insertion_point(field_get:GrpcService.envoy_grpc) - return has_envoy_grpc() - ? *target_specifier_.envoy_grpc_ - : *reinterpret_cast< ::GrpcService_EnvoyGrpc*>(&::_GrpcService_EnvoyGrpc_default_instance_); -} -inline ::GrpcService_EnvoyGrpc* GrpcService::mutable_envoy_grpc() { - if (!has_envoy_grpc()) { - clear_target_specifier(); - set_has_envoy_grpc(); - target_specifier_.envoy_grpc_ = CreateMaybeMessage< ::GrpcService_EnvoyGrpc >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.envoy_grpc) - return target_specifier_.envoy_grpc_; -} - -// .GrpcService.GoogleGrpc google_grpc = 2; -inline bool GrpcService::has_google_grpc() const { - return target_specifier_case() == kGoogleGrpc; -} -inline void GrpcService::set_has_google_grpc() { - _oneof_case_[0] = kGoogleGrpc; -} -inline void GrpcService::clear_google_grpc() { - if (has_google_grpc()) { - delete 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()) { - clear_has_target_specifier(); - ::GrpcService_GoogleGrpc* temp = target_specifier_.google_grpc_; - target_specifier_.google_grpc_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc& GrpcService::google_grpc() const { - // @@protoc_insertion_point(field_get:GrpcService.google_grpc) - return has_google_grpc() - ? *target_specifier_.google_grpc_ - : *reinterpret_cast< ::GrpcService_GoogleGrpc*>(&::_GrpcService_GoogleGrpc_default_instance_); -} -inline ::GrpcService_GoogleGrpc* GrpcService::mutable_google_grpc() { - if (!has_google_grpc()) { - clear_target_specifier(); - set_has_google_grpc(); - target_specifier_.google_grpc_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.google_grpc) - return target_specifier_.google_grpc_; -} - -// repeated .GrpcService.HeaderValue initial_metadata = 5; -inline int GrpcService::initial_metadata_size() const { - return initial_metadata_.size(); -} -inline void GrpcService::clear_initial_metadata() { - initial_metadata_.Clear(); -} -inline ::GrpcService_HeaderValue* GrpcService::mutable_initial_metadata(int index) { - // @@protoc_insertion_point(field_mutable:GrpcService.initial_metadata) - return initial_metadata_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_HeaderValue >* -GrpcService::mutable_initial_metadata() { - // @@protoc_insertion_point(field_mutable_list:GrpcService.initial_metadata) - return &initial_metadata_; -} -inline const ::GrpcService_HeaderValue& GrpcService::initial_metadata(int index) const { - // @@protoc_insertion_point(field_get:GrpcService.initial_metadata) - return initial_metadata_.Get(index); -} -inline ::GrpcService_HeaderValue* GrpcService::add_initial_metadata() { - // @@protoc_insertion_point(field_add:GrpcService.initial_metadata) - return initial_metadata_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GrpcService_HeaderValue >& -GrpcService::initial_metadata() const { - // @@protoc_insertion_point(field_list:GrpcService.initial_metadata) - return 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; -} -inline GrpcService::TargetSpecifierCase GrpcService::target_specifier_case() const { - return GrpcService::TargetSpecifierCase(_oneof_case_[0]); -} -#ifdef __GNUC__ - #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 diff --git a/source/BUILD b/source/BUILD new file mode 100644 index 0000000..3c3991b --- /dev/null +++ b/source/BUILD @@ -0,0 +1,63 @@ +licenses(["notice"]) # Apache 2 + +package(default_visibility = ["//visibility:public"]) + +cc_library( + name = "api_lib", + hdrs = ["proxy_wasm_api.h"], +) + +cc_library( + name = "common_lib", + hdrs = [ + "proxy_wasm_common.h", + "proxy_wasm_enums.h", + ], +) + +cc_library( + name = "proxy_wasm_intrinsics_lite", + srcs = [ + "proxy_wasm_intrinsics.cc", + ], + hdrs = [ + "proxy_wasm_api.h", + "proxy_wasm_common.h", + "proxy_wasm_enums.h", + "proxy_wasm_externs.h", + "proxy_wasm_intrinsics.h", + ], + copts = ["-DPROXY_WASM_PROTOBUF_LITE=1"], + visibility = ["//visibility:public"], + deps = [ + "//api:proxy_wasm_intrinsics_lite_cc_proto", + "@com_google_protobuf//:protobuf_lite", + ], +) + +cc_library( + name = "proxy_wasm_intrinsics", + srcs = [ + "proxy_wasm_intrinsics.cc", + ], + hdrs = [ + "proxy_wasm_api.h", + "proxy_wasm_common.h", + "proxy_wasm_enums.h", + "proxy_wasm_externs.h", + "proxy_wasm_intrinsics.h", + ], + visibility = ["//visibility:public"], + deps = [ + "//api:proxy_wasm_intrinsics_cc_proto", + "@com_google_protobuf//:protobuf", + ], +) + +filegroup( + name = "jslib", + srcs = [ + "proxy_wasm_intrinsics.js", + ], + visibility = ["//visibility:public"], +) diff --git a/proxy_wasm_api.h b/source/proxy_wasm_api.h similarity index 100% rename from proxy_wasm_api.h rename to source/proxy_wasm_api.h diff --git a/proxy_wasm_common.h b/source/proxy_wasm_common.h similarity index 100% rename from proxy_wasm_common.h rename to source/proxy_wasm_common.h diff --git a/proxy_wasm_enums.h b/source/proxy_wasm_enums.h similarity index 100% rename from proxy_wasm_enums.h rename to source/proxy_wasm_enums.h diff --git a/proxy_wasm_externs.h b/source/proxy_wasm_externs.h similarity index 100% rename from proxy_wasm_externs.h rename to source/proxy_wasm_externs.h diff --git a/proxy_wasm_intrinsics.cc b/source/proxy_wasm_intrinsics.cc similarity index 100% rename from proxy_wasm_intrinsics.cc rename to source/proxy_wasm_intrinsics.cc diff --git a/proxy_wasm_intrinsics.h b/source/proxy_wasm_intrinsics.h similarity index 92% rename from proxy_wasm_intrinsics.h rename to source/proxy_wasm_intrinsics.h index 4898341..86bed16 100644 --- a/proxy_wasm_intrinsics.h +++ b/source/proxy_wasm_intrinsics.h @@ -36,13 +36,12 @@ using StringView = std::string_view; #include template using Optional = std::optional; -#include "proxy_wasm_enums.h" #include "proxy_wasm_common.h" #include "proxy_wasm_enums.h" #include "proxy_wasm_externs.h" #ifndef PROXY_WASM_PROTOBUF_LITE -#include "proxy_wasm_intrinsics.pb.h" +#include "api/proxy_wasm_intrinsics.pb.h" #else -#include "proxy_wasm_intrinsics_lite.pb.h" +#include "api/proxy_wasm_intrinsics_lite.pb.h" #endif #include "proxy_wasm_api.h" diff --git a/proxy_wasm_intrinsics.js b/source/proxy_wasm_intrinsics.js similarity index 100% rename from proxy_wasm_intrinsics.js rename to source/proxy_wasm_intrinsics.js diff --git a/struct_lite.pb.cc b/struct_lite.pb.cc deleted file mode 100644 index f1051d1..0000000 --- a/struct_lite.pb.cc +++ /dev/null @@ -1,1226 +0,0 @@ -// 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 - -#include "struct_lite.pb.h" - -#include - -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_struct_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ListValue_struct_5flite_2eproto; -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(); -} - -::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}, {}}; - -namespace google { -namespace protobuf { -bool NullValue_IsValid(int value) { - switch (value) { - case 0: - return true; - default: - return false; - } -} - -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed NullValue_strings[1] = {}; - -static const char NullValue_names[] = - "NULL_VALUE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry NullValue_entries[] = { - { {NullValue_names + 0, 10}, 0 }, -}; - -static const int NullValue_entries_by_number[] = { - 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, - 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(); -} -bool NullValue_Parse( - const std::string& name, NullValue* value) { - int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::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); - // @@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_); - // @@protoc_insertion_point(copy_constructor:google.protobuf.Struct) -} - -void Struct::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListValue_struct_5flite_2eproto.base); -} - -Struct::~Struct() { - // @@protoc_insertion_point(destructor:google.protobuf.Struct) - SharedDtor(); -} - -void Struct::SharedDtor() { - GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); -} - -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(); -} - - -void Struct::Clear() { -// @@protoc_insertion_point(message_clear_start:google.protobuf.Struct) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - 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: - 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; - - // 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)])); - } - } 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)); - } - } - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:google.protobuf.Struct) -} - -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(); - - ::PROTOBUF_NAMESPACE_ID::uint32 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); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Struct::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::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; - (void) cached_has_bits; - - fields_.MergeFrom(from.fields_); -} - -void Struct::CopyFrom(const Struct& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Struct) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Struct::IsInitialized() const { - return true; -} - -void Struct::InternalSwap(Struct* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - fields_.Swap(&other->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); -}; - -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(); - clear_kind(); - if (struct_value) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(struct_value); - if (message_arena != submessage_arena) { - struct_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, struct_value, submessage_arena); - } - set_has_struct_value(); - 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(); - clear_kind(); - if (list_value) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(list_value); - if (message_arena != submessage_arena) { - list_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, list_value, submessage_arena); - } - set_has_list_value(); - 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); - // @@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: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:google.protobuf.Value) -} - -void Value::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListValue_struct_5flite_2eproto.base); - clear_has_kind(); -} - -Value::~Value() { - // @@protoc_insertion_point(destructor:google.protobuf.Value) - SharedDtor(); -} - -void Value::SharedDtor() { - GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); - if (has_kind()) { - clear_kind(); - } -} - -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) - switch (kind_case()) { - case kNullValue: { - // No need to clear - break; - } - case kNumberValue: { - // No need to clear - break; - } - case kStringValue: { - kind_.string_value_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - break; - } - case kBoolValue: { - // No need to clear - break; - } - case kStructValue: { - if (GetArenaNoVirtual() == nullptr) { - delete kind_.struct_value_; - } - break; - } - case kListValue: { - if (GetArenaNoVirtual() == nullptr) { - delete kind_.list_value_; - } - break; - } - case KIND_NOT_SET: { - break; - } - } - _oneof_case_[0] = KIND_NOT_SET; -} - - -void Value::Clear() { -// @@protoc_insertion_point(message_clear_start:google.protobuf.Value) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_kind(); - _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: - 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; - } - - // .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; - } - - 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.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); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:google.protobuf.Value) -} - -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(); - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - switch (kind_case()) { - // .google.protobuf.NullValue null_value = 1; - case kNullValue: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->null_value()); - break; - } - // double number_value = 2; - case kNumberValue: { - total_size += 1 + 8; - break; - } - // string string_value = 3; - case kStringValue: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->string_value()); - break; - } - // bool bool_value = 4; - case kBoolValue: { - total_size += 1 + 1; - break; - } - // .google.protobuf.Struct struct_value = 5; - case kStructValue: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *kind_.struct_value_); - break; - } - // .google.protobuf.ListValue list_value = 6; - case kListValue: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *kind_.list_value_); - break; - } - case KIND_NOT_SET: { - break; - } - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Value::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::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; - (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; - } - case KIND_NOT_SET: { - break; - } - } -} - -void Value::CopyFrom(const Value& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Value) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Value::IsInitialized() const { - return true; -} - -void Value::InternalSwap(Value* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(kind_, other->kind_); - swap(_oneof_case_[0], other->_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); - // @@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_); - // @@protoc_insertion_point(copy_constructor:google.protobuf.ListValue) -} - -void ListValue::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListValue_struct_5flite_2eproto.base); -} - -ListValue::~ListValue() { - // @@protoc_insertion_point(destructor:google.protobuf.ListValue) - SharedDtor(); -} - -void ListValue::SharedDtor() { - GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); -} - -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(); -} - - -void ListValue::Clear() { -// @@protoc_insertion_point(message_clear_start:google.protobuf.ListValue) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - 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: - 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; - - // 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); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:google.protobuf.ListValue) -} - -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(); - - ::PROTOBUF_NAMESPACE_ID::uint32 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))); - } - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ListValue::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::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; - (void) cached_has_bits; - - values_.MergeFrom(from.values_); -} - -void ListValue::CopyFrom(const ListValue& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.ListValue) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ListValue::IsInitialized() const { - return true; -} - -void ListValue::InternalSwap(ListValue* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&values_)->InternalSwap(CastToBase(&other->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 - -// @@protoc_insertion_point(global_scope) -#include diff --git a/struct_lite.pb.h b/struct_lite.pb.h deleted file mode 100644 index 10f8fde..0000000 --- a/struct_lite.pb.h +++ /dev/null @@ -1,1107 +0,0 @@ -/* - * 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 - -#ifndef GOOGLE_PROTOBUF_INCLUDED_struct_5flite_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_struct_5flite_2eproto - -#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. -#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 -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_struct_5flite_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// 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[]; -}; -namespace google { -namespace protobuf { -class ListValue; -class ListValueDefaultTypeInternal; -extern ListValueDefaultTypeInternal _ListValue_default_instance_; -class Struct; -class 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; -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() -}; -bool NullValue_IsValid(int value); -constexpr NullValue NullValue_MIN = NULL_VALUE; -constexpr NullValue NullValue_MAX = NULL_VALUE; -constexpr int NullValue_ARRAYSIZE = NullValue_MAX + 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); -// =================================================================== - -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) */ { - public: - Struct(); - virtual ~Struct(); - - Struct(const Struct& from); - Struct(Struct&& from) noexcept - : Struct() { - *this = ::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); - } else { - CopyFrom(from); - } - return *this; - } - - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const Struct& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - 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); - } - inline void Swap(Struct* other) { - if (other == this) return; - if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Struct* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Struct* New() const final { - return CreateMaybeMessage(nullptr); - } - - Struct* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; - void CopyFrom(const Struct& from); - void MergeFrom(const Struct& 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(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(); - } - public: - - std::string GetTypeName() const final; - - // 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(); - - // @@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 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); - } - - 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); - } else { - CopyFrom(from); - } - return *this; - } - - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const Value& default_instance(); - - enum KindCase { - kNullValue = 1, - kNumberValue = 2, - kStringValue = 3, - kBoolValue = 4, - kStructValue = 5, - 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); - } - inline void Swap(Value* other) { - if (other == this) return; - if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Value* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Value* New() const final { - return CreateMaybeMessage(nullptr); - } - - Value* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; - void CopyFrom(const Value& from); - void MergeFrom(const Value& 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(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(); - } - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNullValueFieldNumber = 1, - kNumberValueFieldNumber = 2, - kStringValueFieldNumber = 3, - kBoolValueFieldNumber = 4, - kStructValueFieldNumber = 5, - kListValueFieldNumber = 6, - }; - // .google.protobuf.NullValue null_value = 1; - private: - bool has_null_value() const; - public: - 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; - public: - void clear_number_value(); - double number_value() const; - void set_number_value(double value); - - // string string_value = 3; - private: - bool has_string_value() const; - public: - 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); - 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); - - // bool bool_value = 4; - private: - bool has_bool_value() const; - public: - void clear_bool_value(); - bool bool_value() const; - void set_bool_value(bool value); - - // .google.protobuf.Struct struct_value = 5; - bool has_struct_value() const; - void clear_struct_value(); - const ::google::protobuf::Struct& struct_value() const; - ::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); - ::google::protobuf::Struct* unsafe_arena_release_struct_value(); - - // .google.protobuf.ListValue list_value = 6; - bool has_list_value() const; - void clear_list_value(); - const ::google::protobuf::ListValue& list_value() const; - ::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); - ::google::protobuf::ListValue* unsafe_arena_release_list_value(); - - void clear_kind(); - KindCase kind_case() const; - // @@protoc_insertion_point(class_scope:google.protobuf.Value) - private: - class _Internal; - void set_has_null_value(); - void set_has_number_value(); - void set_has_string_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 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" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// Struct - -// map fields = 1; -inline int Struct::fields_size() const { - return fields_.size(); -} -inline void Struct::clear_fields() { - fields_.Clear(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::protobuf::Value >& -Struct::fields() const { - // @@protoc_insertion_point(field_map:google.protobuf.Struct.fields) - return fields_.GetMap(); -} -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::protobuf::Value >* -Struct::mutable_fields() { - // @@protoc_insertion_point(field_mutable_map:google.protobuf.Struct.fields) - return fields_.MutableMap(); -} - -// ------------------------------------------------------------------- - -// Value - -// .google.protobuf.NullValue null_value = 1; -inline bool Value::has_null_value() const { - return kind_case() == kNullValue; -} -inline void Value::set_has_null_value() { - _oneof_case_[0] = kNullValue; -} -inline void Value::clear_null_value() { - if (has_null_value()) { - 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); -} -inline void Value::set_null_value(::google::protobuf::NullValue value) { - if (!has_null_value()) { - clear_kind(); - set_has_null_value(); - } - kind_.null_value_ = value; - // @@protoc_insertion_point(field_set:google.protobuf.Value.null_value) -} - -// 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; -} -inline void Value::clear_number_value() { - if (has_number_value()) { - 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; -} -inline void Value::set_number_value(double value) { - if (!has_number_value()) { - clear_kind(); - set_has_number_value(); - } - kind_.number_value_ = value; - // @@protoc_insertion_point(field_set:google.protobuf.Value.number_value) -} - -// 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; -} -inline void Value::clear_string_value() { - if (has_string_value()) { - kind_.string_value_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - clear_has_kind(); - } -} -inline const std::string& Value::string_value() const { - // @@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(); -} -inline void Value::set_string_value(const std::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(), value, - GetArenaNoVirtual()); - // @@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 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()); - } - kind_.string_value_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:google.protobuf.Value.string_value) -} -inline void Value::set_string_value(const char* value, - size_t size) { - 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::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()) { - clear_kind(); - set_has_string_value(); - kind_.string_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - return kind_.string_value_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_mutable:google.protobuf.Value.string_value) -} -inline std::string* Value::release_string_value() { - // @@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 { - return nullptr; - } -} -inline void Value::set_allocated_string_value(std::string* string_value) { - if (has_kind()) { - clear_kind(); - } - if (string_value != nullptr) { - set_has_string_value(); - kind_.string_value_.UnsafeSetDefault(string_value); - } - // @@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; -} -inline void Value::clear_bool_value() { - if (has_bool_value()) { - 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; -} -inline void Value::set_bool_value(bool value) { - if (!has_bool_value()) { - clear_kind(); - set_has_bool_value(); - } - kind_.bool_value_ = value; - // @@protoc_insertion_point(field_set:google.protobuf.Value.bool_value) -} - -// .google.protobuf.Struct struct_value = 5; -inline bool Value::has_struct_value() const { - return kind_case() == kStructValue; -} -inline void Value::set_has_struct_value() { - _oneof_case_[0] = kStructValue; -} -inline void Value::clear_struct_value() { - if (has_struct_value()) { - if (GetArenaNoVirtual() == nullptr) { - delete 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()) { - clear_has_kind(); - ::google::protobuf::Struct* temp = kind_.struct_value_; - if (GetArenaNoVirtual() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - kind_.struct_value_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::google::protobuf::Struct& Value::struct_value() const { - // @@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_); -} -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()) { - clear_has_kind(); - ::google::protobuf::Struct* temp = kind_.struct_value_; - kind_.struct_value_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Value::unsafe_arena_set_allocated_struct_value(::google::protobuf::Struct* struct_value) { - clear_kind(); - if (struct_value) { - set_has_struct_value(); - kind_.struct_value_ = struct_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()) { - clear_kind(); - set_has_struct_value(); - kind_.struct_value_ = CreateMaybeMessage< ::google::protobuf::Struct >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:google.protobuf.Value.struct_value) - return kind_.struct_value_; -} - -// .google.protobuf.ListValue list_value = 6; -inline bool Value::has_list_value() const { - return kind_case() == kListValue; -} -inline void Value::set_has_list_value() { - _oneof_case_[0] = kListValue; -} -inline void Value::clear_list_value() { - if (has_list_value()) { - if (GetArenaNoVirtual() == nullptr) { - delete 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()) { - clear_has_kind(); - ::google::protobuf::ListValue* temp = kind_.list_value_; - if (GetArenaNoVirtual() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - kind_.list_value_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::google::protobuf::ListValue& Value::list_value() const { - // @@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_); -} -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()) { - clear_has_kind(); - ::google::protobuf::ListValue* temp = kind_.list_value_; - kind_.list_value_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Value::unsafe_arena_set_allocated_list_value(::google::protobuf::ListValue* list_value) { - clear_kind(); - if (list_value) { - set_has_list_value(); - kind_.list_value_ = list_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()) { - clear_kind(); - set_has_list_value(); - kind_.list_value_ = CreateMaybeMessage< ::google::protobuf::ListValue >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:google.protobuf.Value.list_value) - return kind_.list_value_; -} - -inline bool Value::has_kind() const { - return kind_case() != KIND_NOT_SET; -} -inline void Value::clear_has_kind() { - _oneof_case_[0] = KIND_NOT_SET; -} -inline Value::KindCase Value::kind_case() const { - return Value::KindCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ListValue - -// repeated .google.protobuf.Value values = 1; -inline int ListValue::values_size() const { - return values_.size(); -} -inline void ListValue::clear_values() { - values_.Clear(); -} -inline ::google::protobuf::Value* ListValue::mutable_values(int index) { - // @@protoc_insertion_point(field_mutable:google.protobuf.ListValue.values) - return values_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::protobuf::Value >* -ListValue::mutable_values() { - // @@protoc_insertion_point(field_mutable_list:google.protobuf.ListValue.values) - return &values_; -} -inline const ::google::protobuf::Value& ListValue::values(int index) const { - // @@protoc_insertion_point(field_get:google.protobuf.ListValue.values) - return values_.Get(index); -} -inline ::google::protobuf::Value* ListValue::add_values() { - // @@protoc_insertion_point(field_add:google.protobuf.ListValue.values) - return values_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::protobuf::Value >& -ListValue::values() const { - // @@protoc_insertion_point(field_list:google.protobuf.ListValue.values) - return values_; -} - -#ifdef __GNUC__ - #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 {}; - -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) - -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_struct_5flite_2eproto