mirror of https://github.com/grpc/grpc.git
commit
a1b2a982d4
541 changed files with 32520 additions and 29441 deletions
@ -0,0 +1,165 @@ |
||||
# gRPC Bazel BUILD file. |
||||
# |
||||
# Copyright 2020 The gRPC authors. |
||||
# |
||||
# Licensed under the Apache License, Version 2.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. |
||||
|
||||
load("@rules_proto//proto:defs.bzl", "proto_library") |
||||
load( |
||||
"@com_github_grpc_grpc//bazel:python_rules.bzl", |
||||
"py2and3_test", |
||||
"py_grpc_library", |
||||
"py_proto_library", |
||||
) |
||||
|
||||
_IMPORT_PREFIX = "foo/bar" |
||||
|
||||
_STRIP_PREFIX = "/%s" % package_name() |
||||
|
||||
proto_library( |
||||
name = "import_no_strip_proto", |
||||
srcs = ["namespaced_example.proto"], |
||||
import_prefix = _IMPORT_PREFIX, |
||||
strip_import_prefix = None, |
||||
) |
||||
|
||||
proto_library( |
||||
name = "import_strip_proto", |
||||
srcs = ["namespaced_example.proto"], |
||||
import_prefix = _IMPORT_PREFIX, |
||||
strip_import_prefix = _STRIP_PREFIX, |
||||
) |
||||
|
||||
proto_library( |
||||
name = "no_import_no_strip_proto", |
||||
srcs = ["namespaced_example.proto"], |
||||
import_prefix = None, |
||||
strip_import_prefix = None, |
||||
) |
||||
|
||||
proto_library( |
||||
name = "no_import_strip_proto", |
||||
srcs = ["namespaced_example.proto"], |
||||
import_prefix = None, |
||||
strip_import_prefix = _STRIP_PREFIX, |
||||
) |
||||
|
||||
py_proto_library( |
||||
name = "import_no_strip_py_pb2", |
||||
deps = ["import_no_strip_proto"], |
||||
) |
||||
|
||||
py_grpc_library( |
||||
name = "import_no_strip_py_pb2_grpc", |
||||
srcs = ["import_no_strip_proto"], |
||||
deps = ["import_no_strip_py_pb2"], |
||||
) |
||||
|
||||
py_proto_library( |
||||
name = "import_strip_py_pb2", |
||||
deps = ["import_strip_proto"], |
||||
) |
||||
|
||||
py_grpc_library( |
||||
name = "import_strip_py_pb2_grpc", |
||||
srcs = ["import_strip_proto"], |
||||
deps = ["import_strip_py_pb2"], |
||||
) |
||||
|
||||
py_proto_library( |
||||
name = "no_import_no_strip_py_pb2", |
||||
deps = ["no_import_no_strip_proto"], |
||||
) |
||||
|
||||
py_grpc_library( |
||||
name = "no_import_no_strip_py_pb2_grpc", |
||||
srcs = ["no_import_no_strip_proto"], |
||||
deps = ["no_import_no_strip_py_pb2"], |
||||
) |
||||
|
||||
py_proto_library( |
||||
name = "no_import_strip_py_pb2", |
||||
deps = ["no_import_strip_proto"], |
||||
) |
||||
|
||||
py_grpc_library( |
||||
name = "no_import_strip_py_pb2_grpc", |
||||
srcs = ["no_import_strip_proto"], |
||||
deps = ["no_import_strip_py_pb2"], |
||||
) |
||||
|
||||
################# |
||||
# Namespace Tests |
||||
################# |
||||
|
||||
# Most examples with protos have all proto packages rooted at the workspace root. i.e. google/api has |
||||
# a directory structure: |
||||
# - WORKSPACE |
||||
# - /google |
||||
# - /api |
||||
# - files.proto |
||||
# |
||||
# But if you can't anchor the protos at the root, you have to use strip and import prefixes. This results |
||||
# in the following directory layout for python, which needs to properly be added to the imports. |
||||
# |
||||
# No Import or Strip (Can't compile if there are any proto dependencies) |
||||
# bazel-out/darwin-fastbuild/bin/namespaced/upper/example/namespaced_example_pb2.py |
||||
# |
||||
# No import Prefix (Can't compile if there are any proto dependencies) |
||||
# bazel-out/darwin-fastbuild/bin/namespaced/upper/example/_virtual_imports/namespaced_example_proto/namespaced_example_pb2.py |
||||
# |
||||
# No strip prefix (Can't compile if there are any proto dependencies) |
||||
# bazel-out/darwin-fastbuild/bin/namespaced/upper/example/_virtual_imports/namespaced_example_proto/upper/example/namespaced/upper/example/namespaced_example_pb2.py |
||||
# |
||||
# Both Import and Strip |
||||
# bazel-out/darwin-fastbuild/bin/namespaced/upper/example/_virtual_imports/namespaced_example_proto/upper/example/namespaced_example_pb2.py |
||||
|
||||
py2and3_test( |
||||
"import_no_strip_test", |
||||
srcs = ["import_no_strip_test.py"], |
||||
main = "import_no_strip_test.py", |
||||
deps = [ |
||||
":import_no_strip_py_pb2", |
||||
":import_no_strip_py_pb2_grpc", |
||||
], |
||||
) |
||||
|
||||
py2and3_test( |
||||
"import_strip_test", |
||||
srcs = ["import_strip_test.py"], |
||||
main = "import_strip_test.py", |
||||
deps = [ |
||||
":import_strip_py_pb2", |
||||
":import_strip_py_pb2_grpc", |
||||
], |
||||
) |
||||
|
||||
py2and3_test( |
||||
"no_import_no_strip_test", |
||||
srcs = ["no_import_no_strip_test.py"], |
||||
main = "no_import_no_strip_test.py", |
||||
deps = [ |
||||
":no_import_no_strip_py_pb2", |
||||
":no_import_no_strip_py_pb2_grpc", |
||||
], |
||||
) |
||||
|
||||
py2and3_test( |
||||
"no_import_strip_test", |
||||
srcs = ["no_import_strip_test.py"], |
||||
main = "no_import_strip_test.py", |
||||
deps = [ |
||||
":no_import_strip_py_pb2", |
||||
":no_import_strip_py_pb2_grpc", |
||||
], |
||||
) |
@ -0,0 +1,35 @@ |
||||
# Copyright 2020 the gRPC authors. |
||||
# |
||||
# Licensed under the Apache License, Version 2.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. |
||||
|
||||
import logging |
||||
import unittest |
||||
|
||||
|
||||
class ImportTest(unittest.TestCase): |
||||
def test_import(self): |
||||
from foo.bar.namespaced.upper.example.namespaced_example_pb2 import NamespacedExample |
||||
namespaced_example = NamespacedExample() |
||||
namespaced_example.value = "hello" |
||||
# Dummy assert, important part is namespaced example was imported. |
||||
self.assertEqual(namespaced_example.value, "hello") |
||||
|
||||
def test_grpc(self): |
||||
from foo.bar.namespaced.upper.example.namespaced_example_pb2_grpc import NamespacedServiceStub |
||||
# No error from import |
||||
self.assertEqual(1, 1) |
||||
|
||||
|
||||
if __name__ == '__main__': |
||||
logging.basicConfig() |
||||
unittest.main() |
@ -0,0 +1,35 @@ |
||||
# Copyright 2020 the gRPC authors. |
||||
# |
||||
# Licensed under the Apache License, Version 2.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. |
||||
|
||||
import logging |
||||
import unittest |
||||
|
||||
|
||||
class ImportTest(unittest.TestCase): |
||||
def test_import(self): |
||||
from foo.bar.namespaced_example_pb2 import NamespacedExample |
||||
namespaced_example = NamespacedExample() |
||||
namespaced_example.value = "hello" |
||||
# Dummy assert, important part is namespaced example was imported. |
||||
self.assertEqual(namespaced_example.value, "hello") |
||||
|
||||
def test_grpc(self): |
||||
from foo.bar.namespaced_example_pb2_grpc import NamespacedServiceStub |
||||
# No error from import |
||||
self.assertEqual(1, 1) |
||||
|
||||
|
||||
if __name__ == '__main__': |
||||
logging.basicConfig() |
||||
unittest.main() |
@ -0,0 +1,27 @@ |
||||
// Copyright 2020 The gRPC authors. |
||||
// |
||||
// Licensed under the Apache License, Version 2.0 (the "License"); |
||||
// you may not use this file except in compliance with the License. |
||||
// You may obtain a copy of the License at |
||||
// |
||||
// http://www.apache.org/licenses/LICENSE-2.0 |
||||
// |
||||
// Unless required by applicable law or agreed to in writing, software |
||||
// distributed under the License is distributed on an "AS IS" BASIS, |
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
// See the License for the specific language governing permissions and |
||||
// limitations under the License. |
||||
|
||||
syntax = "proto3"; |
||||
|
||||
option java_multiple_files = true; |
||||
option java_package = "io.grpc.examples.namespaced"; |
||||
option java_outer_classname = "NamespacedDependencyProtos"; |
||||
option objc_class_prefix = "NEP"; |
||||
|
||||
package upper.example; |
||||
|
||||
|
||||
message NamespacedDependency { |
||||
int32 value = 1; |
||||
} |
@ -0,0 +1,38 @@ |
||||
// Copyright 2020 The gRPC authors. |
||||
// |
||||
// Licensed under the Apache License, Version 2.0 (the "License"); |
||||
// you may not use this file except in compliance with the License. |
||||
// You may obtain a copy of the License at |
||||
// |
||||
// http://www.apache.org/licenses/LICENSE-2.0 |
||||
// |
||||
// Unless required by applicable law or agreed to in writing, software |
||||
// distributed under the License is distributed on an "AS IS" BASIS, |
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
// See the License for the specific language governing permissions and |
||||
// limitations under the License. |
||||
|
||||
syntax = "proto3"; |
||||
|
||||
option java_multiple_files = true; |
||||
option java_package = "io.grpc.examples.namespaced"; |
||||
option java_outer_classname = "NamespacedExampleProtos"; |
||||
option objc_class_prefix = "NEP"; |
||||
|
||||
package upper.example; |
||||
|
||||
// TODO: dependencies are still broken |
||||
// Need to do something like this: https://packaging.python.org/guides/packaging-namespace-packages/ |
||||
// import "upper/example/namespaced_dependency.proto"; |
||||
|
||||
message NamespacedExample { |
||||
string value = 1; |
||||
|
||||
// TODO: dependencies are still broken |
||||
// NamespacedDependency dependency = 2; |
||||
} |
||||
|
||||
service NamespacedService { |
||||
rpc SayHello (NamespacedExample) returns (NamespacedExample) {} |
||||
} |
||||
|
@ -0,0 +1,35 @@ |
||||
# Copyright 2020 the gRPC authors. |
||||
# |
||||
# Licensed under the Apache License, Version 2.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. |
||||
|
||||
import logging |
||||
import unittest |
||||
|
||||
|
||||
class ImportTest(unittest.TestCase): |
||||
def test_import(self): |
||||
from namespaced.upper.example.namespaced_example_pb2 import NamespacedExample |
||||
namespaced_example = NamespacedExample() |
||||
namespaced_example.value = "hello" |
||||
# Dummy assert, important part is namespaced example was imported. |
||||
self.assertEqual(namespaced_example.value, "hello") |
||||
|
||||
def test_grpc(self): |
||||
from namespaced.upper.example.namespaced_example_pb2_grpc import NamespacedServiceStub |
||||
# No error from import |
||||
self.assertEqual(1, 1) |
||||
|
||||
|
||||
if __name__ == '__main__': |
||||
logging.basicConfig() |
||||
unittest.main() |
@ -0,0 +1,35 @@ |
||||
# Copyright 2020 the gRPC authors. |
||||
# |
||||
# Licensed under the Apache License, Version 2.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. |
||||
|
||||
import logging |
||||
import unittest |
||||
|
||||
|
||||
class ImportTest(unittest.TestCase): |
||||
def test_import(self): |
||||
from namespaced_example_pb2 import NamespacedExample |
||||
namespaced_example = NamespacedExample() |
||||
namespaced_example.value = "hello" |
||||
# Dummy assert, important part is namespaced example was imported. |
||||
self.assertEqual(namespaced_example.value, "hello") |
||||
|
||||
def test_grpc(self): |
||||
from namespaced_example_pb2_grpc import NamespacedServiceStub |
||||
# No error from import |
||||
self.assertEqual(1, 1) |
||||
|
||||
|
||||
if __name__ == '__main__': |
||||
logging.basicConfig() |
||||
unittest.main() |
@ -1,78 +0,0 @@ |
||||
/*
|
||||
* |
||||
* Copyright 2015 gRPC authors. |
||||
* |
||||
* Licensed under the Apache License, Version 2.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. |
||||
* |
||||
*/ |
||||
|
||||
#ifndef GRPCPP_CREATE_CHANNEL_IMPL_H |
||||
#define GRPCPP_CREATE_CHANNEL_IMPL_H |
||||
|
||||
#include <memory> |
||||
|
||||
#include <grpcpp/channel.h> |
||||
#include <grpcpp/impl/codegen/client_interceptor.h> |
||||
#include <grpcpp/security/credentials.h> |
||||
#include <grpcpp/support/channel_arguments.h> |
||||
#include <grpcpp/support/config.h> |
||||
|
||||
namespace grpc_impl { |
||||
/// Create a new \a Channel pointing to \a target.
|
||||
///
|
||||
/// \param target The URI of the endpoint to connect to.
|
||||
/// \param creds Credentials to use for the created channel. If it does not
|
||||
/// hold an object or is invalid, a lame channel (one on which all operations
|
||||
/// fail) is returned.
|
||||
std::shared_ptr<::grpc::Channel> CreateChannelImpl( |
||||
const std::string& target, |
||||
const std::shared_ptr<::grpc::ChannelCredentials>& creds); |
||||
|
||||
/// Create a new \em custom \a Channel pointing to \a target.
|
||||
///
|
||||
/// \warning For advanced use and testing ONLY. Override default channel
|
||||
/// arguments only if necessary.
|
||||
///
|
||||
/// \param target The URI of the endpoint to connect to.
|
||||
/// \param creds Credentials to use for the created channel. If it does not
|
||||
/// hold an object or is invalid, a lame channel (one on which all operations
|
||||
/// fail) is returned.
|
||||
/// \param args Options for channel creation.
|
||||
std::shared_ptr<::grpc::Channel> CreateCustomChannelImpl( |
||||
const std::string& target, |
||||
const std::shared_ptr<::grpc::ChannelCredentials>& creds, |
||||
const ::grpc::ChannelArguments& args); |
||||
|
||||
namespace experimental { |
||||
/// Create a new \em custom \a Channel pointing to \a target with \a
|
||||
/// interceptors being invoked per call.
|
||||
///
|
||||
/// \warning For advanced use and testing ONLY. Override default channel
|
||||
/// arguments only if necessary.
|
||||
///
|
||||
/// \param target The URI of the endpoint to connect to.
|
||||
/// \param creds Credentials to use for the created channel. If it does not
|
||||
/// hold an object or is invalid, a lame channel (one on which all operations
|
||||
/// fail) is returned.
|
||||
/// \param args Options for channel creation.
|
||||
std::shared_ptr<::grpc::Channel> CreateCustomChannelWithInterceptors( |
||||
const std::string& target, |
||||
const std::shared_ptr<grpc::ChannelCredentials>& creds, |
||||
const ::grpc::ChannelArguments& args, |
||||
std::vector< |
||||
std::unique_ptr<grpc::experimental::ClientInterceptorFactoryInterface>> |
||||
interceptor_creators); |
||||
} // namespace experimental
|
||||
} // namespace grpc_impl
|
||||
|
||||
#endif // GRPCPP_CREATE_CHANNEL_IMPL_H
|
@ -1,356 +0,0 @@ |
||||
/*
|
||||
* |
||||
* Copyright 2015 gRPC authors. |
||||
* |
||||
* Licensed under the Apache License, Version 2.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. |
||||
* |
||||
*/ |
||||
|
||||
#ifndef GRPCPP_SECURITY_CREDENTIALS_IMPL_H |
||||
#define GRPCPP_SECURITY_CREDENTIALS_IMPL_H |
||||
|
||||
#include <map> |
||||
#include <memory> |
||||
#include <vector> |
||||
|
||||
#include <grpc/grpc_security_constants.h> |
||||
#include <grpcpp/channel_impl.h> |
||||
#include <grpcpp/impl/codegen/client_interceptor.h> |
||||
#include <grpcpp/impl/codegen/grpc_library.h> |
||||
#include <grpcpp/security/auth_context.h> |
||||
#include <grpcpp/security/tls_credentials_options.h> |
||||
#include <grpcpp/support/channel_arguments_impl.h> |
||||
#include <grpcpp/support/status.h> |
||||
#include <grpcpp/support/string_ref.h> |
||||
|
||||
struct grpc_call; |
||||
|
||||
namespace grpc_impl { |
||||
|
||||
class ChannelCredentials; |
||||
class CallCredentials; |
||||
class SecureCallCredentials; |
||||
class SecureChannelCredentials; |
||||
|
||||
std::shared_ptr<Channel> CreateCustomChannelImpl( |
||||
const std::string& target, const std::shared_ptr<ChannelCredentials>& creds, |
||||
const ChannelArguments& args); |
||||
|
||||
namespace experimental { |
||||
std::shared_ptr<Channel> CreateCustomChannelWithInterceptors( |
||||
const std::string& target, const std::shared_ptr<ChannelCredentials>& creds, |
||||
const ChannelArguments& args, |
||||
std::vector< |
||||
std::unique_ptr<grpc::experimental::ClientInterceptorFactoryInterface>> |
||||
interceptor_creators); |
||||
} |
||||
|
||||
/// A channel credentials object encapsulates all the state needed by a client
|
||||
/// to authenticate with a server for a given channel.
|
||||
/// It can make various assertions, e.g., about the client’s identity, role
|
||||
/// for all the calls on that channel.
|
||||
///
|
||||
/// \see https://grpc.io/docs/guides/auth
|
||||
class ChannelCredentials : private grpc::GrpcLibraryCodegen { |
||||
public: |
||||
ChannelCredentials(); |
||||
~ChannelCredentials(); |
||||
|
||||
protected: |
||||
friend std::shared_ptr<ChannelCredentials> CompositeChannelCredentials( |
||||
const std::shared_ptr<ChannelCredentials>& channel_creds, |
||||
const std::shared_ptr<CallCredentials>& call_creds); |
||||
|
||||
virtual SecureChannelCredentials* AsSecureCredentials() = 0; |
||||
|
||||
private: |
||||
friend std::shared_ptr<Channel> CreateCustomChannelImpl( |
||||
const std::string& target, |
||||
const std::shared_ptr<ChannelCredentials>& creds, |
||||
const ChannelArguments& args); |
||||
|
||||
friend std::shared_ptr<Channel> |
||||
grpc_impl::experimental::CreateCustomChannelWithInterceptors( |
||||
const std::string& target, |
||||
const std::shared_ptr<ChannelCredentials>& creds, |
||||
const ChannelArguments& args, |
||||
std::vector<std::unique_ptr< |
||||
grpc::experimental::ClientInterceptorFactoryInterface>> |
||||
interceptor_creators); |
||||
|
||||
virtual std::shared_ptr<Channel> CreateChannelImpl( |
||||
const std::string& target, const ChannelArguments& args) = 0; |
||||
|
||||
// This function should have been a pure virtual function, but it is
|
||||
// implemented as a virtual function so that it does not break API.
|
||||
virtual std::shared_ptr<Channel> CreateChannelWithInterceptors( |
||||
const std::string& /*target*/, const ChannelArguments& /*args*/, |
||||
std::vector<std::unique_ptr< |
||||
grpc::experimental::ClientInterceptorFactoryInterface>> |
||||
/*interceptor_creators*/) { |
||||
return nullptr; |
||||
} |
||||
}; |
||||
|
||||
/// A call credentials object encapsulates the state needed by a client to
|
||||
/// authenticate with a server for a given call on a channel.
|
||||
///
|
||||
/// \see https://grpc.io/docs/guides/auth
|
||||
class CallCredentials : private grpc::GrpcLibraryCodegen { |
||||
public: |
||||
CallCredentials(); |
||||
~CallCredentials(); |
||||
|
||||
/// Apply this instance's credentials to \a call.
|
||||
virtual bool ApplyToCall(grpc_call* call) = 0; |
||||
virtual std::string DebugString() { |
||||
return "CallCredentials did not provide a debug string"; |
||||
} |
||||
|
||||
protected: |
||||
friend std::shared_ptr<ChannelCredentials> CompositeChannelCredentials( |
||||
const std::shared_ptr<ChannelCredentials>& channel_creds, |
||||
const std::shared_ptr<CallCredentials>& call_creds); |
||||
|
||||
friend std::shared_ptr<CallCredentials> CompositeCallCredentials( |
||||
const std::shared_ptr<CallCredentials>& creds1, |
||||
const std::shared_ptr<CallCredentials>& creds2); |
||||
|
||||
virtual SecureCallCredentials* AsSecureCredentials() = 0; |
||||
}; |
||||
|
||||
/// Options used to build SslCredentials.
|
||||
struct SslCredentialsOptions { |
||||
/// The buffer containing the PEM encoding of the server root certificates. If
|
||||
/// this parameter is empty, the default roots will be used. The default
|
||||
/// roots can be overridden using the \a GRPC_DEFAULT_SSL_ROOTS_FILE_PATH
|
||||
/// environment variable pointing to a file on the file system containing the
|
||||
/// roots.
|
||||
std::string pem_root_certs; |
||||
|
||||
/// The buffer containing the PEM encoding of the client's private key. This
|
||||
/// parameter can be empty if the client does not have a private key.
|
||||
std::string pem_private_key; |
||||
|
||||
/// The buffer containing the PEM encoding of the client's certificate chain.
|
||||
/// This parameter can be empty if the client does not have a certificate
|
||||
/// chain.
|
||||
std::string pem_cert_chain; |
||||
}; |
||||
|
||||
// Factories for building different types of Credentials The functions may
|
||||
// return empty shared_ptr when credentials cannot be created. If a
|
||||
// Credentials pointer is returned, it can still be invalid when used to create
|
||||
// a channel. A lame channel will be created then and all rpcs will fail on it.
|
||||
|
||||
/// Builds credentials with reasonable defaults.
|
||||
///
|
||||
/// \warning Only use these credentials when connecting to a Google endpoint.
|
||||
/// Using these credentials to connect to any other service may result in this
|
||||
/// service being able to impersonate your client for requests to Google
|
||||
/// services.
|
||||
std::shared_ptr<ChannelCredentials> GoogleDefaultCredentials(); |
||||
|
||||
/// Builds SSL Credentials given SSL specific options
|
||||
std::shared_ptr<ChannelCredentials> SslCredentials( |
||||
const SslCredentialsOptions& options); |
||||
|
||||
/// Builds credentials for use when running in GCE
|
||||
///
|
||||
/// \warning Only use these credentials when connecting to a Google endpoint.
|
||||
/// Using these credentials to connect to any other service may result in this
|
||||
/// service being able to impersonate your client for requests to Google
|
||||
/// services.
|
||||
std::shared_ptr<CallCredentials> GoogleComputeEngineCredentials(); |
||||
|
||||
constexpr long kMaxAuthTokenLifetimeSecs = 3600; |
||||
|
||||
/// Builds Service Account JWT Access credentials.
|
||||
/// json_key is the JSON key string containing the client's private key.
|
||||
/// token_lifetime_seconds is the lifetime in seconds of each Json Web Token
|
||||
/// (JWT) created with this credentials. It should not exceed
|
||||
/// \a kMaxAuthTokenLifetimeSecs or will be cropped to this value.
|
||||
std::shared_ptr<CallCredentials> ServiceAccountJWTAccessCredentials( |
||||
const std::string& json_key, |
||||
long token_lifetime_seconds = grpc_impl::kMaxAuthTokenLifetimeSecs); |
||||
|
||||
/// Builds refresh token credentials.
|
||||
/// json_refresh_token is the JSON string containing the refresh token along
|
||||
/// with a client_id and client_secret.
|
||||
///
|
||||
/// \warning Only use these credentials when connecting to a Google endpoint.
|
||||
/// Using these credentials to connect to any other service may result in this
|
||||
/// service being able to impersonate your client for requests to Google
|
||||
/// services.
|
||||
std::shared_ptr<CallCredentials> GoogleRefreshTokenCredentials( |
||||
const std::string& json_refresh_token); |
||||
|
||||
/// Builds access token credentials.
|
||||
/// access_token is an oauth2 access token that was fetched using an out of band
|
||||
/// mechanism.
|
||||
///
|
||||
/// \warning Only use these credentials when connecting to a Google endpoint.
|
||||
/// Using these credentials to connect to any other service may result in this
|
||||
/// service being able to impersonate your client for requests to Google
|
||||
/// services.
|
||||
std::shared_ptr<CallCredentials> AccessTokenCredentials( |
||||
const std::string& access_token); |
||||
|
||||
/// Builds IAM credentials.
|
||||
///
|
||||
/// \warning Only use these credentials when connecting to a Google endpoint.
|
||||
/// Using these credentials to connect to any other service may result in this
|
||||
/// service being able to impersonate your client for requests to Google
|
||||
/// services.
|
||||
std::shared_ptr<CallCredentials> GoogleIAMCredentials( |
||||
const std::string& authorization_token, |
||||
const std::string& authority_selector); |
||||
|
||||
/// Combines a channel credentials and a call credentials into a composite
|
||||
/// channel credentials.
|
||||
std::shared_ptr<ChannelCredentials> CompositeChannelCredentials( |
||||
const std::shared_ptr<ChannelCredentials>& channel_creds, |
||||
const std::shared_ptr<CallCredentials>& call_creds); |
||||
|
||||
/// Combines two call credentials objects into a composite call credentials.
|
||||
std::shared_ptr<CallCredentials> CompositeCallCredentials( |
||||
const std::shared_ptr<CallCredentials>& creds1, |
||||
const std::shared_ptr<CallCredentials>& creds2); |
||||
|
||||
/// Credentials for an unencrypted, unauthenticated channel
|
||||
std::shared_ptr<ChannelCredentials> InsecureChannelCredentials(); |
||||
|
||||
/// User defined metadata credentials.
|
||||
class MetadataCredentialsPlugin { |
||||
public: |
||||
virtual ~MetadataCredentialsPlugin() {} |
||||
|
||||
/// If this method returns true, the Process function will be scheduled in
|
||||
/// a different thread from the one processing the call.
|
||||
virtual bool IsBlocking() const { return true; } |
||||
|
||||
/// Type of credentials this plugin is implementing.
|
||||
virtual const char* GetType() const { return ""; } |
||||
|
||||
/// Gets the auth metatada produced by this plugin.
|
||||
/// The fully qualified method name is:
|
||||
/// service_url + "/" + method_name.
|
||||
/// The channel_auth_context contains (among other things), the identity of
|
||||
/// the server.
|
||||
virtual grpc::Status GetMetadata( |
||||
grpc::string_ref service_url, grpc::string_ref method_name, |
||||
const grpc::AuthContext& channel_auth_context, |
||||
std::multimap<std::string, std::string>* metadata) = 0; |
||||
|
||||
virtual std::string DebugString() { |
||||
return "MetadataCredentialsPlugin did not provide a debug string"; |
||||
} |
||||
}; |
||||
|
||||
std::shared_ptr<CallCredentials> MetadataCredentialsFromPlugin( |
||||
std::unique_ptr<MetadataCredentialsPlugin> plugin); |
||||
|
||||
namespace experimental { |
||||
|
||||
/// Options for creating STS Oauth Token Exchange credentials following the IETF
|
||||
/// draft https://tools.ietf.org/html/draft-ietf-oauth-token-exchange-16.
|
||||
/// Optional fields may be set to empty string. It is the responsibility of the
|
||||
/// caller to ensure that the subject and actor tokens are refreshed on disk at
|
||||
/// the specified paths.
|
||||
struct StsCredentialsOptions { |
||||
std::string token_exchange_service_uri; // Required.
|
||||
std::string resource; // Optional.
|
||||
std::string audience; // Optional.
|
||||
std::string scope; // Optional.
|
||||
std::string requested_token_type; // Optional.
|
||||
std::string subject_token_path; // Required.
|
||||
std::string subject_token_type; // Required.
|
||||
std::string actor_token_path; // Optional.
|
||||
std::string actor_token_type; // Optional.
|
||||
}; |
||||
|
||||
/// Creates STS Options from a JSON string. The JSON schema is as follows:
|
||||
/// {
|
||||
/// "title": "STS Credentials Config",
|
||||
/// "type": "object",
|
||||
/// "required": ["token_exchange_service_uri", "subject_token_path",
|
||||
/// "subject_token_type"],
|
||||
/// "properties": {
|
||||
/// "token_exchange_service_uri": {
|
||||
/// "type": "string"
|
||||
/// },
|
||||
/// "resource": {
|
||||
/// "type": "string"
|
||||
/// },
|
||||
/// "audience": {
|
||||
/// "type": "string"
|
||||
/// },
|
||||
/// "scope": {
|
||||
/// "type": "string"
|
||||
/// },
|
||||
/// "requested_token_type": {
|
||||
/// "type": "string"
|
||||
/// },
|
||||
/// "subject_token_path": {
|
||||
/// "type": "string"
|
||||
/// },
|
||||
/// "subject_token_type": {
|
||||
/// "type": "string"
|
||||
/// },
|
||||
/// "actor_token_path" : {
|
||||
/// "type": "string"
|
||||
/// },
|
||||
/// "actor_token_type": {
|
||||
/// "type": "string"
|
||||
/// }
|
||||
/// }
|
||||
/// }
|
||||
grpc::Status StsCredentialsOptionsFromJson(const std::string& json_string, |
||||
StsCredentialsOptions* options); |
||||
|
||||
/// Creates STS credentials options from the $STS_CREDENTIALS environment
|
||||
/// variable. This environment variable points to the path of a JSON file
|
||||
/// comforming to the schema described above.
|
||||
grpc::Status StsCredentialsOptionsFromEnv(StsCredentialsOptions* options); |
||||
|
||||
std::shared_ptr<CallCredentials> StsCredentials( |
||||
const StsCredentialsOptions& options); |
||||
|
||||
std::shared_ptr<CallCredentials> MetadataCredentialsFromPlugin( |
||||
std::unique_ptr<MetadataCredentialsPlugin> plugin, |
||||
grpc_security_level min_security_level); |
||||
|
||||
/// Options used to build AltsCredentials.
|
||||
struct AltsCredentialsOptions { |
||||
/// service accounts of target endpoint that will be acceptable
|
||||
/// by the client. If service accounts are provided and none of them matches
|
||||
/// that of the server, authentication will fail.
|
||||
std::vector<std::string> target_service_accounts; |
||||
}; |
||||
|
||||
/// Builds ALTS Credentials given ALTS specific options
|
||||
std::shared_ptr<ChannelCredentials> AltsCredentials( |
||||
const AltsCredentialsOptions& options); |
||||
|
||||
/// Builds Local Credentials.
|
||||
std::shared_ptr<ChannelCredentials> LocalCredentials( |
||||
grpc_local_connect_type type); |
||||
|
||||
/// Builds TLS Credentials given TLS options.
|
||||
std::shared_ptr<ChannelCredentials> TlsCredentials( |
||||
const TlsCredentialsOptions& options); |
||||
|
||||
} // namespace experimental
|
||||
} // namespace grpc_impl
|
||||
|
||||
#endif // GRPCPP_SECURITY_CREDENTIALS_IMPL_H
|
@ -1,89 +0,0 @@ |
||||
/*
|
||||
* |
||||
* Copyright 2015 gRPC authors. |
||||
* |
||||
* Licensed under the Apache License, Version 2.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. |
||||
* |
||||
*/ |
||||
|
||||
#ifndef GRPCPP_SECURITY_SERVER_CREDENTIALS_IMPL_H |
||||
#define GRPCPP_SECURITY_SERVER_CREDENTIALS_IMPL_H |
||||
|
||||
#include <memory> |
||||
#include <vector> |
||||
|
||||
#include <grpc/grpc_security_constants.h> |
||||
#include <grpcpp/security/auth_metadata_processor.h> |
||||
#include <grpcpp/security/tls_credentials_options.h> |
||||
#include <grpcpp/support/config.h> |
||||
|
||||
struct grpc_server; |
||||
|
||||
namespace grpc { |
||||
|
||||
struct SslServerCredentialsOptions; |
||||
} // namespace grpc
|
||||
namespace grpc_impl { |
||||
class Server; |
||||
|
||||
/// Wrapper around \a grpc_server_credentials, a way to authenticate a server.
|
||||
class ServerCredentials { |
||||
public: |
||||
virtual ~ServerCredentials(); |
||||
|
||||
/// This method is not thread-safe and has to be called before the server is
|
||||
/// started. The last call to this function wins.
|
||||
virtual void SetAuthMetadataProcessor( |
||||
const std::shared_ptr<grpc::AuthMetadataProcessor>& processor) = 0; |
||||
|
||||
private: |
||||
friend class ::grpc_impl::Server; |
||||
|
||||
/// Tries to bind \a server to the given \a addr (eg, localhost:1234,
|
||||
/// 192.168.1.1:31416, [::1]:27182, etc.)
|
||||
///
|
||||
/// \return bound port number on success, 0 on failure.
|
||||
// TODO(dgq): the "port" part seems to be a misnomer.
|
||||
virtual int AddPortToServer(const std::string& addr, grpc_server* server) = 0; |
||||
}; |
||||
|
||||
/// Builds SSL ServerCredentials given SSL specific options
|
||||
std::shared_ptr<ServerCredentials> SslServerCredentials( |
||||
const grpc::SslServerCredentialsOptions& options); |
||||
|
||||
/// Builds insecure server credentials.
|
||||
std::shared_ptr<ServerCredentials> InsecureServerCredentials(); |
||||
|
||||
namespace experimental { |
||||
|
||||
/// Options to create ServerCredentials with ALTS
|
||||
struct AltsServerCredentialsOptions { |
||||
/// Add fields if needed.
|
||||
}; |
||||
|
||||
/// Builds ALTS ServerCredentials given ALTS specific options
|
||||
std::shared_ptr<ServerCredentials> AltsServerCredentials( |
||||
const AltsServerCredentialsOptions& options); |
||||
|
||||
/// Builds Local ServerCredentials.
|
||||
std::shared_ptr<ServerCredentials> LocalServerCredentials( |
||||
grpc_local_connect_type type); |
||||
|
||||
/// Builds TLS ServerCredentials given TLS options.
|
||||
std::shared_ptr<ServerCredentials> TlsServerCredentials( |
||||
const TlsCredentialsOptions& options); |
||||
|
||||
} // namespace experimental
|
||||
} // namespace grpc_impl
|
||||
|
||||
#endif // GRPCPP_SECURITY_SERVER_CREDENTIALS_IMPL_H
|
@ -1,48 +0,0 @@ |
||||
/*
|
||||
* |
||||
* Copyright 2017 gRPC authors. |
||||
* |
||||
* Licensed under the Apache License, Version 2.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. |
||||
* |
||||
*/ |
||||
|
||||
#ifndef GRPCPP_SUPPORT_ERROR_DETAILS_IMPL_H |
||||
#define GRPCPP_SUPPORT_ERROR_DETAILS_IMPL_H |
||||
|
||||
#include <grpcpp/support/status.h> |
||||
|
||||
namespace google { |
||||
namespace rpc { |
||||
class Status; |
||||
} // namespace rpc
|
||||
} // namespace google
|
||||
|
||||
namespace grpc_impl { |
||||
|
||||
/// Map a \a grpc::Status to a \a google::rpc::Status.
|
||||
/// The given \a to object will be cleared.
|
||||
/// On success, returns status with OK.
|
||||
/// Returns status with \a INVALID_ARGUMENT, if failed to deserialize.
|
||||
/// Returns status with \a FAILED_PRECONDITION, if \a to is nullptr.
|
||||
grpc::Status ExtractErrorDetails(const grpc::Status& from, |
||||
::google::rpc::Status* to); |
||||
|
||||
/// Map \a google::rpc::Status to a \a grpc::Status.
|
||||
/// Returns OK on success.
|
||||
/// Returns status with \a FAILED_PRECONDITION if \a to is nullptr.
|
||||
grpc::Status SetErrorDetails(const ::google::rpc::Status& from, |
||||
grpc::Status* to); |
||||
|
||||
} // namespace grpc_impl
|
||||
|
||||
#endif // GRPCPP_SUPPORT_ERROR_DETAILS_IMPL_H
|
File diff suppressed because it is too large
Load Diff
@ -1,21 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/api/v2/auth/cert.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg.h" |
||||
#include "envoy/api/v2/auth/cert.upb.h" |
||||
#include "udpa/annotations/migrate.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "envoy/api/v2/auth/common.upb.h" |
||||
#include "envoy/api/v2/auth/secret.upb.h" |
||||
#include "envoy/api/v2/auth/tls.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -1,34 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/api/v2/auth/cert.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_API_V2_AUTH_CERT_PROTO_UPB_H_ |
||||
#define ENVOY_API_V2_AUTH_CERT_PROTO_UPB_H_ |
||||
|
||||
#include "upb/msg.h" |
||||
#include "upb/decode.h" |
||||
#include "upb/encode.h" |
||||
|
||||
/* Public Imports. */ |
||||
#include "envoy/api/v2/auth/common.upb.h" |
||||
#include "envoy/api/v2/auth/secret.upb.h" |
||||
#include "envoy/api/v2/auth/tls.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_API_V2_AUTH_CERT_PROTO_UPB_H_ */ |
@ -1,114 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/api/v2/auth/common.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg.h" |
||||
#include "envoy/api/v2/auth/common.upb.h" |
||||
#include "envoy/api/v2/core/base.upb.h" |
||||
#include "envoy/type/matcher/string.upb.h" |
||||
#include "google/protobuf/any.upb.h" |
||||
#include "google/protobuf/struct.upb.h" |
||||
#include "google/protobuf/wrappers.upb.h" |
||||
#include "udpa/annotations/migrate.upb.h" |
||||
#include "udpa/annotations/sensitive.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_auth_TlsParameters__fields[4] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 14, 1}, |
||||
{2, UPB_SIZE(8, 8), 0, 0, 14, 1}, |
||||
{3, UPB_SIZE(16, 16), 0, 0, 9, 3}, |
||||
{4, UPB_SIZE(20, 24), 0, 0, 9, 3}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_auth_TlsParameters_msginit = { |
||||
NULL, |
||||
&envoy_api_v2_auth_TlsParameters__fields[0], |
||||
UPB_SIZE(24, 32), 4, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_auth_PrivateKeyProvider_submsgs[2] = { |
||||
&google_protobuf_Any_msginit, |
||||
&google_protobuf_Struct_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_auth_PrivateKeyProvider__fields[3] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 9, 1}, |
||||
{2, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 1, 11, 1}, |
||||
{3, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 0, 11, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_auth_PrivateKeyProvider_msginit = { |
||||
&envoy_api_v2_auth_PrivateKeyProvider_submsgs[0], |
||||
&envoy_api_v2_auth_PrivateKeyProvider__fields[0], |
||||
UPB_SIZE(16, 32), 3, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_auth_TlsCertificate_submsgs[6] = { |
||||
&envoy_api_v2_auth_PrivateKeyProvider_msginit, |
||||
&envoy_api_v2_core_DataSource_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_auth_TlsCertificate__fields[6] = { |
||||
{1, UPB_SIZE(0, 0), 0, 1, 11, 1}, |
||||
{2, UPB_SIZE(4, 8), 0, 1, 11, 1}, |
||||
{3, UPB_SIZE(8, 16), 0, 1, 11, 1}, |
||||
{4, UPB_SIZE(12, 24), 0, 1, 11, 1}, |
||||
{5, UPB_SIZE(20, 40), 0, 1, 11, 3}, |
||||
{6, UPB_SIZE(16, 32), 0, 0, 11, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_auth_TlsCertificate_msginit = { |
||||
&envoy_api_v2_auth_TlsCertificate_submsgs[0], |
||||
&envoy_api_v2_auth_TlsCertificate__fields[0], |
||||
UPB_SIZE(24, 48), 6, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_auth_TlsSessionTicketKeys_submsgs[1] = { |
||||
&envoy_api_v2_core_DataSource_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_auth_TlsSessionTicketKeys__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, 3}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_auth_TlsSessionTicketKeys_msginit = { |
||||
&envoy_api_v2_auth_TlsSessionTicketKeys_submsgs[0], |
||||
&envoy_api_v2_auth_TlsSessionTicketKeys__fields[0], |
||||
UPB_SIZE(4, 8), 1, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_auth_CertificateValidationContext_submsgs[5] = { |
||||
&envoy_api_v2_core_DataSource_msginit, |
||||
&envoy_type_matcher_StringMatcher_msginit, |
||||
&google_protobuf_BoolValue_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_auth_CertificateValidationContext__fields[10] = { |
||||
{1, UPB_SIZE(12, 16), 0, 0, 11, 1}, |
||||
{2, UPB_SIZE(28, 48), 0, 0, 9, 3}, |
||||
{3, UPB_SIZE(32, 56), 0, 0, 9, 3}, |
||||
{4, UPB_SIZE(36, 64), 0, 0, 9, 3}, |
||||
{5, UPB_SIZE(16, 24), 0, 2, 11, 1}, |
||||
{6, UPB_SIZE(20, 32), 0, 2, 11, 1}, |
||||
{7, UPB_SIZE(24, 40), 0, 0, 11, 1}, |
||||
{8, UPB_SIZE(8, 8), 0, 0, 8, 1}, |
||||
{9, UPB_SIZE(40, 72), 0, 1, 11, 3}, |
||||
{10, UPB_SIZE(0, 0), 0, 0, 14, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_auth_CertificateValidationContext_msginit = { |
||||
&envoy_api_v2_auth_CertificateValidationContext_submsgs[0], |
||||
&envoy_api_v2_auth_CertificateValidationContext__fields[0], |
||||
UPB_SIZE(48, 80), 10, false, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -1,429 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/api/v2/auth/common.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_API_V2_AUTH_COMMON_PROTO_UPB_H_ |
||||
#define ENVOY_API_V2_AUTH_COMMON_PROTO_UPB_H_ |
||||
|
||||
#include "upb/msg.h" |
||||
#include "upb/decode.h" |
||||
#include "upb/encode.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
struct envoy_api_v2_auth_TlsParameters; |
||||
struct envoy_api_v2_auth_PrivateKeyProvider; |
||||
struct envoy_api_v2_auth_TlsCertificate; |
||||
struct envoy_api_v2_auth_TlsSessionTicketKeys; |
||||
struct envoy_api_v2_auth_CertificateValidationContext; |
||||
typedef struct envoy_api_v2_auth_TlsParameters envoy_api_v2_auth_TlsParameters; |
||||
typedef struct envoy_api_v2_auth_PrivateKeyProvider envoy_api_v2_auth_PrivateKeyProvider; |
||||
typedef struct envoy_api_v2_auth_TlsCertificate envoy_api_v2_auth_TlsCertificate; |
||||
typedef struct envoy_api_v2_auth_TlsSessionTicketKeys envoy_api_v2_auth_TlsSessionTicketKeys; |
||||
typedef struct envoy_api_v2_auth_CertificateValidationContext envoy_api_v2_auth_CertificateValidationContext; |
||||
extern const upb_msglayout envoy_api_v2_auth_TlsParameters_msginit; |
||||
extern const upb_msglayout envoy_api_v2_auth_PrivateKeyProvider_msginit; |
||||
extern const upb_msglayout envoy_api_v2_auth_TlsCertificate_msginit; |
||||
extern const upb_msglayout envoy_api_v2_auth_TlsSessionTicketKeys_msginit; |
||||
extern const upb_msglayout envoy_api_v2_auth_CertificateValidationContext_msginit; |
||||
struct envoy_api_v2_core_DataSource; |
||||
struct envoy_type_matcher_StringMatcher; |
||||
struct google_protobuf_Any; |
||||
struct google_protobuf_BoolValue; |
||||
struct google_protobuf_Struct; |
||||
extern const upb_msglayout envoy_api_v2_core_DataSource_msginit; |
||||
extern const upb_msglayout envoy_type_matcher_StringMatcher_msginit; |
||||
extern const upb_msglayout google_protobuf_Any_msginit; |
||||
extern const upb_msglayout google_protobuf_BoolValue_msginit; |
||||
extern const upb_msglayout google_protobuf_Struct_msginit; |
||||
|
||||
typedef enum { |
||||
envoy_api_v2_auth_CertificateValidationContext_VERIFY_TRUST_CHAIN = 0, |
||||
envoy_api_v2_auth_CertificateValidationContext_ACCEPT_UNTRUSTED = 1 |
||||
} envoy_api_v2_auth_CertificateValidationContext_TrustChainVerification; |
||||
|
||||
typedef enum { |
||||
envoy_api_v2_auth_TlsParameters_TLS_AUTO = 0, |
||||
envoy_api_v2_auth_TlsParameters_TLSv1_0 = 1, |
||||
envoy_api_v2_auth_TlsParameters_TLSv1_1 = 2, |
||||
envoy_api_v2_auth_TlsParameters_TLSv1_2 = 3, |
||||
envoy_api_v2_auth_TlsParameters_TLSv1_3 = 4 |
||||
} envoy_api_v2_auth_TlsParameters_TlsProtocol; |
||||
|
||||
|
||||
/* envoy.api.v2.auth.TlsParameters */ |
||||
|
||||
UPB_INLINE envoy_api_v2_auth_TlsParameters *envoy_api_v2_auth_TlsParameters_new(upb_arena *arena) { |
||||
return (envoy_api_v2_auth_TlsParameters *)_upb_msg_new(&envoy_api_v2_auth_TlsParameters_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_api_v2_auth_TlsParameters *envoy_api_v2_auth_TlsParameters_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_api_v2_auth_TlsParameters *ret = envoy_api_v2_auth_TlsParameters_new(arena); |
||||
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_auth_TlsParameters_msginit, arena)) ? ret : NULL; |
||||
} |
||||
UPB_INLINE char *envoy_api_v2_auth_TlsParameters_serialize(const envoy_api_v2_auth_TlsParameters *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_api_v2_auth_TlsParameters_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE int32_t envoy_api_v2_auth_TlsParameters_tls_minimum_protocol_version(const envoy_api_v2_auth_TlsParameters *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t); } |
||||
UPB_INLINE int32_t envoy_api_v2_auth_TlsParameters_tls_maximum_protocol_version(const envoy_api_v2_auth_TlsParameters *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t); } |
||||
UPB_INLINE upb_strview const* envoy_api_v2_auth_TlsParameters_cipher_suites(const envoy_api_v2_auth_TlsParameters *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(16, 16), len); } |
||||
UPB_INLINE upb_strview const* envoy_api_v2_auth_TlsParameters_ecdh_curves(const envoy_api_v2_auth_TlsParameters *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(20, 24), len); } |
||||
|
||||
UPB_INLINE void envoy_api_v2_auth_TlsParameters_set_tls_minimum_protocol_version(envoy_api_v2_auth_TlsParameters *msg, int32_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_TlsParameters_set_tls_maximum_protocol_version(envoy_api_v2_auth_TlsParameters *msg, int32_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t) = value; |
||||
} |
||||
UPB_INLINE upb_strview* envoy_api_v2_auth_TlsParameters_mutable_cipher_suites(envoy_api_v2_auth_TlsParameters *msg, size_t *len) { |
||||
return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(16, 16), len); |
||||
} |
||||
UPB_INLINE upb_strview* envoy_api_v2_auth_TlsParameters_resize_cipher_suites(envoy_api_v2_auth_TlsParameters *msg, size_t len, upb_arena *arena) { |
||||
return (upb_strview*)_upb_array_resize_accessor(msg, UPB_SIZE(16, 16), len, UPB_TYPE_STRING, arena); |
||||
} |
||||
UPB_INLINE bool envoy_api_v2_auth_TlsParameters_add_cipher_suites(envoy_api_v2_auth_TlsParameters *msg, upb_strview val, upb_arena *arena) { |
||||
return _upb_array_append_accessor(msg, UPB_SIZE(16, 16), UPB_SIZE(8, 16), UPB_TYPE_STRING, &val, |
||||
arena); |
||||
} |
||||
UPB_INLINE upb_strview* envoy_api_v2_auth_TlsParameters_mutable_ecdh_curves(envoy_api_v2_auth_TlsParameters *msg, size_t *len) { |
||||
return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(20, 24), len); |
||||
} |
||||
UPB_INLINE upb_strview* envoy_api_v2_auth_TlsParameters_resize_ecdh_curves(envoy_api_v2_auth_TlsParameters *msg, size_t len, upb_arena *arena) { |
||||
return (upb_strview*)_upb_array_resize_accessor(msg, UPB_SIZE(20, 24), len, UPB_TYPE_STRING, arena); |
||||
} |
||||
UPB_INLINE bool envoy_api_v2_auth_TlsParameters_add_ecdh_curves(envoy_api_v2_auth_TlsParameters *msg, upb_strview val, upb_arena *arena) { |
||||
return _upb_array_append_accessor(msg, UPB_SIZE(20, 24), UPB_SIZE(8, 16), UPB_TYPE_STRING, &val, |
||||
arena); |
||||
} |
||||
|
||||
/* envoy.api.v2.auth.PrivateKeyProvider */ |
||||
|
||||
UPB_INLINE envoy_api_v2_auth_PrivateKeyProvider *envoy_api_v2_auth_PrivateKeyProvider_new(upb_arena *arena) { |
||||
return (envoy_api_v2_auth_PrivateKeyProvider *)_upb_msg_new(&envoy_api_v2_auth_PrivateKeyProvider_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_api_v2_auth_PrivateKeyProvider *envoy_api_v2_auth_PrivateKeyProvider_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_api_v2_auth_PrivateKeyProvider *ret = envoy_api_v2_auth_PrivateKeyProvider_new(arena); |
||||
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_auth_PrivateKeyProvider_msginit, arena)) ? ret : NULL; |
||||
} |
||||
UPB_INLINE char *envoy_api_v2_auth_PrivateKeyProvider_serialize(const envoy_api_v2_auth_PrivateKeyProvider *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_api_v2_auth_PrivateKeyProvider_msginit, arena, len); |
||||
} |
||||
|
||||
typedef enum { |
||||
envoy_api_v2_auth_PrivateKeyProvider_config_type_config = 2, |
||||
envoy_api_v2_auth_PrivateKeyProvider_config_type_typed_config = 3, |
||||
envoy_api_v2_auth_PrivateKeyProvider_config_type_NOT_SET = 0 |
||||
} envoy_api_v2_auth_PrivateKeyProvider_config_type_oneofcases; |
||||
UPB_INLINE envoy_api_v2_auth_PrivateKeyProvider_config_type_oneofcases envoy_api_v2_auth_PrivateKeyProvider_config_type_case(const envoy_api_v2_auth_PrivateKeyProvider* msg) { return (envoy_api_v2_auth_PrivateKeyProvider_config_type_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(12, 24), int32_t); } |
||||
|
||||
UPB_INLINE upb_strview envoy_api_v2_auth_PrivateKeyProvider_provider_name(const envoy_api_v2_auth_PrivateKeyProvider *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); } |
||||
UPB_INLINE bool envoy_api_v2_auth_PrivateKeyProvider_has_config(const envoy_api_v2_auth_PrivateKeyProvider *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 2; } |
||||
UPB_INLINE const struct google_protobuf_Struct* envoy_api_v2_auth_PrivateKeyProvider_config(const envoy_api_v2_auth_PrivateKeyProvider *msg) { return UPB_READ_ONEOF(msg, const struct google_protobuf_Struct*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 2, NULL); } |
||||
UPB_INLINE bool envoy_api_v2_auth_PrivateKeyProvider_has_typed_config(const envoy_api_v2_auth_PrivateKeyProvider *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 3; } |
||||
UPB_INLINE const struct google_protobuf_Any* envoy_api_v2_auth_PrivateKeyProvider_typed_config(const envoy_api_v2_auth_PrivateKeyProvider *msg) { return UPB_READ_ONEOF(msg, const struct google_protobuf_Any*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 3, NULL); } |
||||
|
||||
UPB_INLINE void envoy_api_v2_auth_PrivateKeyProvider_set_provider_name(envoy_api_v2_auth_PrivateKeyProvider *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_PrivateKeyProvider_set_config(envoy_api_v2_auth_PrivateKeyProvider *msg, struct google_protobuf_Struct* value) { |
||||
UPB_WRITE_ONEOF(msg, struct google_protobuf_Struct*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 2); |
||||
} |
||||
UPB_INLINE struct google_protobuf_Struct* envoy_api_v2_auth_PrivateKeyProvider_mutable_config(envoy_api_v2_auth_PrivateKeyProvider *msg, upb_arena *arena) { |
||||
struct google_protobuf_Struct* sub = (struct google_protobuf_Struct*)envoy_api_v2_auth_PrivateKeyProvider_config(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_Struct*)_upb_msg_new(&google_protobuf_Struct_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_PrivateKeyProvider_set_config(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_PrivateKeyProvider_set_typed_config(envoy_api_v2_auth_PrivateKeyProvider *msg, struct google_protobuf_Any* value) { |
||||
UPB_WRITE_ONEOF(msg, struct google_protobuf_Any*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 3); |
||||
} |
||||
UPB_INLINE struct google_protobuf_Any* envoy_api_v2_auth_PrivateKeyProvider_mutable_typed_config(envoy_api_v2_auth_PrivateKeyProvider *msg, upb_arena *arena) { |
||||
struct google_protobuf_Any* sub = (struct google_protobuf_Any*)envoy_api_v2_auth_PrivateKeyProvider_typed_config(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_Any*)_upb_msg_new(&google_protobuf_Any_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_PrivateKeyProvider_set_typed_config(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
/* envoy.api.v2.auth.TlsCertificate */ |
||||
|
||||
UPB_INLINE envoy_api_v2_auth_TlsCertificate *envoy_api_v2_auth_TlsCertificate_new(upb_arena *arena) { |
||||
return (envoy_api_v2_auth_TlsCertificate *)_upb_msg_new(&envoy_api_v2_auth_TlsCertificate_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_api_v2_auth_TlsCertificate *envoy_api_v2_auth_TlsCertificate_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_api_v2_auth_TlsCertificate *ret = envoy_api_v2_auth_TlsCertificate_new(arena); |
||||
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_auth_TlsCertificate_msginit, arena)) ? ret : NULL; |
||||
} |
||||
UPB_INLINE char *envoy_api_v2_auth_TlsCertificate_serialize(const envoy_api_v2_auth_TlsCertificate *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_api_v2_auth_TlsCertificate_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_api_v2_auth_TlsCertificate_has_certificate_chain(const envoy_api_v2_auth_TlsCertificate *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); } |
||||
UPB_INLINE const struct envoy_api_v2_core_DataSource* envoy_api_v2_auth_TlsCertificate_certificate_chain(const envoy_api_v2_auth_TlsCertificate *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), const struct envoy_api_v2_core_DataSource*); } |
||||
UPB_INLINE bool envoy_api_v2_auth_TlsCertificate_has_private_key(const envoy_api_v2_auth_TlsCertificate *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8)); } |
||||
UPB_INLINE const struct envoy_api_v2_core_DataSource* envoy_api_v2_auth_TlsCertificate_private_key(const envoy_api_v2_auth_TlsCertificate *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct envoy_api_v2_core_DataSource*); } |
||||
UPB_INLINE bool envoy_api_v2_auth_TlsCertificate_has_password(const envoy_api_v2_auth_TlsCertificate *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(8, 16)); } |
||||
UPB_INLINE const struct envoy_api_v2_core_DataSource* envoy_api_v2_auth_TlsCertificate_password(const envoy_api_v2_auth_TlsCertificate *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct envoy_api_v2_core_DataSource*); } |
||||
UPB_INLINE bool envoy_api_v2_auth_TlsCertificate_has_ocsp_staple(const envoy_api_v2_auth_TlsCertificate *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(12, 24)); } |
||||
UPB_INLINE const struct envoy_api_v2_core_DataSource* envoy_api_v2_auth_TlsCertificate_ocsp_staple(const envoy_api_v2_auth_TlsCertificate *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct envoy_api_v2_core_DataSource*); } |
||||
UPB_INLINE bool envoy_api_v2_auth_TlsCertificate_has_signed_certificate_timestamp(const envoy_api_v2_auth_TlsCertificate *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(20, 40)); } |
||||
UPB_INLINE const struct envoy_api_v2_core_DataSource* const* envoy_api_v2_auth_TlsCertificate_signed_certificate_timestamp(const envoy_api_v2_auth_TlsCertificate *msg, size_t *len) { return (const struct envoy_api_v2_core_DataSource* const*)_upb_array_accessor(msg, UPB_SIZE(20, 40), len); } |
||||
UPB_INLINE bool envoy_api_v2_auth_TlsCertificate_has_private_key_provider(const envoy_api_v2_auth_TlsCertificate *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(16, 32)); } |
||||
UPB_INLINE const envoy_api_v2_auth_PrivateKeyProvider* envoy_api_v2_auth_TlsCertificate_private_key_provider(const envoy_api_v2_auth_TlsCertificate *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 32), const envoy_api_v2_auth_PrivateKeyProvider*); } |
||||
|
||||
UPB_INLINE void envoy_api_v2_auth_TlsCertificate_set_certificate_chain(envoy_api_v2_auth_TlsCertificate *msg, struct envoy_api_v2_core_DataSource* value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), struct envoy_api_v2_core_DataSource*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_core_DataSource* envoy_api_v2_auth_TlsCertificate_mutable_certificate_chain(envoy_api_v2_auth_TlsCertificate *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_core_DataSource* sub = (struct envoy_api_v2_core_DataSource*)envoy_api_v2_auth_TlsCertificate_certificate_chain(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_api_v2_core_DataSource*)_upb_msg_new(&envoy_api_v2_core_DataSource_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_TlsCertificate_set_certificate_chain(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_TlsCertificate_set_private_key(envoy_api_v2_auth_TlsCertificate *msg, struct envoy_api_v2_core_DataSource* value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct envoy_api_v2_core_DataSource*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_core_DataSource* envoy_api_v2_auth_TlsCertificate_mutable_private_key(envoy_api_v2_auth_TlsCertificate *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_core_DataSource* sub = (struct envoy_api_v2_core_DataSource*)envoy_api_v2_auth_TlsCertificate_private_key(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_api_v2_core_DataSource*)_upb_msg_new(&envoy_api_v2_core_DataSource_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_TlsCertificate_set_private_key(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_TlsCertificate_set_password(envoy_api_v2_auth_TlsCertificate *msg, struct envoy_api_v2_core_DataSource* value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct envoy_api_v2_core_DataSource*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_core_DataSource* envoy_api_v2_auth_TlsCertificate_mutable_password(envoy_api_v2_auth_TlsCertificate *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_core_DataSource* sub = (struct envoy_api_v2_core_DataSource*)envoy_api_v2_auth_TlsCertificate_password(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_api_v2_core_DataSource*)_upb_msg_new(&envoy_api_v2_core_DataSource_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_TlsCertificate_set_password(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_TlsCertificate_set_ocsp_staple(envoy_api_v2_auth_TlsCertificate *msg, struct envoy_api_v2_core_DataSource* value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct envoy_api_v2_core_DataSource*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_core_DataSource* envoy_api_v2_auth_TlsCertificate_mutable_ocsp_staple(envoy_api_v2_auth_TlsCertificate *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_core_DataSource* sub = (struct envoy_api_v2_core_DataSource*)envoy_api_v2_auth_TlsCertificate_ocsp_staple(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_api_v2_core_DataSource*)_upb_msg_new(&envoy_api_v2_core_DataSource_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_TlsCertificate_set_ocsp_staple(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_core_DataSource** envoy_api_v2_auth_TlsCertificate_mutable_signed_certificate_timestamp(envoy_api_v2_auth_TlsCertificate *msg, size_t *len) { |
||||
return (struct envoy_api_v2_core_DataSource**)_upb_array_mutable_accessor(msg, UPB_SIZE(20, 40), len); |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_core_DataSource** envoy_api_v2_auth_TlsCertificate_resize_signed_certificate_timestamp(envoy_api_v2_auth_TlsCertificate *msg, size_t len, upb_arena *arena) { |
||||
return (struct envoy_api_v2_core_DataSource**)_upb_array_resize_accessor(msg, UPB_SIZE(20, 40), len, UPB_TYPE_MESSAGE, arena); |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_core_DataSource* envoy_api_v2_auth_TlsCertificate_add_signed_certificate_timestamp(envoy_api_v2_auth_TlsCertificate *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_core_DataSource* sub = (struct envoy_api_v2_core_DataSource*)_upb_msg_new(&envoy_api_v2_core_DataSource_msginit, arena); |
||||
bool ok = _upb_array_append_accessor( |
||||
msg, UPB_SIZE(20, 40), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena); |
||||
if (!ok) return NULL; |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_TlsCertificate_set_private_key_provider(envoy_api_v2_auth_TlsCertificate *msg, envoy_api_v2_auth_PrivateKeyProvider* value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(16, 32), envoy_api_v2_auth_PrivateKeyProvider*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_auth_PrivateKeyProvider* envoy_api_v2_auth_TlsCertificate_mutable_private_key_provider(envoy_api_v2_auth_TlsCertificate *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_auth_PrivateKeyProvider* sub = (struct envoy_api_v2_auth_PrivateKeyProvider*)envoy_api_v2_auth_TlsCertificate_private_key_provider(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_api_v2_auth_PrivateKeyProvider*)_upb_msg_new(&envoy_api_v2_auth_PrivateKeyProvider_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_TlsCertificate_set_private_key_provider(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
/* envoy.api.v2.auth.TlsSessionTicketKeys */ |
||||
|
||||
UPB_INLINE envoy_api_v2_auth_TlsSessionTicketKeys *envoy_api_v2_auth_TlsSessionTicketKeys_new(upb_arena *arena) { |
||||
return (envoy_api_v2_auth_TlsSessionTicketKeys *)_upb_msg_new(&envoy_api_v2_auth_TlsSessionTicketKeys_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_api_v2_auth_TlsSessionTicketKeys *envoy_api_v2_auth_TlsSessionTicketKeys_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_api_v2_auth_TlsSessionTicketKeys *ret = envoy_api_v2_auth_TlsSessionTicketKeys_new(arena); |
||||
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_auth_TlsSessionTicketKeys_msginit, arena)) ? ret : NULL; |
||||
} |
||||
UPB_INLINE char *envoy_api_v2_auth_TlsSessionTicketKeys_serialize(const envoy_api_v2_auth_TlsSessionTicketKeys *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_api_v2_auth_TlsSessionTicketKeys_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_api_v2_auth_TlsSessionTicketKeys_has_keys(const envoy_api_v2_auth_TlsSessionTicketKeys *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); } |
||||
UPB_INLINE const struct envoy_api_v2_core_DataSource* const* envoy_api_v2_auth_TlsSessionTicketKeys_keys(const envoy_api_v2_auth_TlsSessionTicketKeys *msg, size_t *len) { return (const struct envoy_api_v2_core_DataSource* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); } |
||||
|
||||
UPB_INLINE struct envoy_api_v2_core_DataSource** envoy_api_v2_auth_TlsSessionTicketKeys_mutable_keys(envoy_api_v2_auth_TlsSessionTicketKeys *msg, size_t *len) { |
||||
return (struct envoy_api_v2_core_DataSource**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_core_DataSource** envoy_api_v2_auth_TlsSessionTicketKeys_resize_keys(envoy_api_v2_auth_TlsSessionTicketKeys *msg, size_t len, upb_arena *arena) { |
||||
return (struct envoy_api_v2_core_DataSource**)_upb_array_resize_accessor(msg, UPB_SIZE(0, 0), len, UPB_TYPE_MESSAGE, arena); |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_core_DataSource* envoy_api_v2_auth_TlsSessionTicketKeys_add_keys(envoy_api_v2_auth_TlsSessionTicketKeys *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_core_DataSource* sub = (struct envoy_api_v2_core_DataSource*)_upb_msg_new(&envoy_api_v2_core_DataSource_msginit, arena); |
||||
bool ok = _upb_array_append_accessor( |
||||
msg, UPB_SIZE(0, 0), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena); |
||||
if (!ok) return NULL; |
||||
return sub; |
||||
} |
||||
|
||||
/* envoy.api.v2.auth.CertificateValidationContext */ |
||||
|
||||
UPB_INLINE envoy_api_v2_auth_CertificateValidationContext *envoy_api_v2_auth_CertificateValidationContext_new(upb_arena *arena) { |
||||
return (envoy_api_v2_auth_CertificateValidationContext *)_upb_msg_new(&envoy_api_v2_auth_CertificateValidationContext_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_api_v2_auth_CertificateValidationContext *envoy_api_v2_auth_CertificateValidationContext_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_api_v2_auth_CertificateValidationContext *ret = envoy_api_v2_auth_CertificateValidationContext_new(arena); |
||||
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_auth_CertificateValidationContext_msginit, arena)) ? ret : NULL; |
||||
} |
||||
UPB_INLINE char *envoy_api_v2_auth_CertificateValidationContext_serialize(const envoy_api_v2_auth_CertificateValidationContext *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_api_v2_auth_CertificateValidationContext_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_api_v2_auth_CertificateValidationContext_has_trusted_ca(const envoy_api_v2_auth_CertificateValidationContext *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(12, 16)); } |
||||
UPB_INLINE const struct envoy_api_v2_core_DataSource* envoy_api_v2_auth_CertificateValidationContext_trusted_ca(const envoy_api_v2_auth_CertificateValidationContext *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 16), const struct envoy_api_v2_core_DataSource*); } |
||||
UPB_INLINE upb_strview const* envoy_api_v2_auth_CertificateValidationContext_verify_certificate_hash(const envoy_api_v2_auth_CertificateValidationContext *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(28, 48), len); } |
||||
UPB_INLINE upb_strview const* envoy_api_v2_auth_CertificateValidationContext_verify_certificate_spki(const envoy_api_v2_auth_CertificateValidationContext *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(32, 56), len); } |
||||
UPB_INLINE upb_strview const* envoy_api_v2_auth_CertificateValidationContext_verify_subject_alt_name(const envoy_api_v2_auth_CertificateValidationContext *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(36, 64), len); } |
||||
UPB_INLINE bool envoy_api_v2_auth_CertificateValidationContext_has_require_ocsp_staple(const envoy_api_v2_auth_CertificateValidationContext *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(16, 24)); } |
||||
UPB_INLINE const struct google_protobuf_BoolValue* envoy_api_v2_auth_CertificateValidationContext_require_ocsp_staple(const envoy_api_v2_auth_CertificateValidationContext *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 24), const struct google_protobuf_BoolValue*); } |
||||
UPB_INLINE bool envoy_api_v2_auth_CertificateValidationContext_has_require_signed_certificate_timestamp(const envoy_api_v2_auth_CertificateValidationContext *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(20, 32)); } |
||||
UPB_INLINE const struct google_protobuf_BoolValue* envoy_api_v2_auth_CertificateValidationContext_require_signed_certificate_timestamp(const envoy_api_v2_auth_CertificateValidationContext *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 32), const struct google_protobuf_BoolValue*); } |
||||
UPB_INLINE bool envoy_api_v2_auth_CertificateValidationContext_has_crl(const envoy_api_v2_auth_CertificateValidationContext *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(24, 40)); } |
||||
UPB_INLINE const struct envoy_api_v2_core_DataSource* envoy_api_v2_auth_CertificateValidationContext_crl(const envoy_api_v2_auth_CertificateValidationContext *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 40), const struct envoy_api_v2_core_DataSource*); } |
||||
UPB_INLINE bool envoy_api_v2_auth_CertificateValidationContext_allow_expired_certificate(const envoy_api_v2_auth_CertificateValidationContext *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), bool); } |
||||
UPB_INLINE bool envoy_api_v2_auth_CertificateValidationContext_has_match_subject_alt_names(const envoy_api_v2_auth_CertificateValidationContext *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(40, 72)); } |
||||
UPB_INLINE const struct envoy_type_matcher_StringMatcher* const* envoy_api_v2_auth_CertificateValidationContext_match_subject_alt_names(const envoy_api_v2_auth_CertificateValidationContext *msg, size_t *len) { return (const struct envoy_type_matcher_StringMatcher* const*)_upb_array_accessor(msg, UPB_SIZE(40, 72), len); } |
||||
UPB_INLINE int32_t envoy_api_v2_auth_CertificateValidationContext_trust_chain_verification(const envoy_api_v2_auth_CertificateValidationContext *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t); } |
||||
|
||||
UPB_INLINE void envoy_api_v2_auth_CertificateValidationContext_set_trusted_ca(envoy_api_v2_auth_CertificateValidationContext *msg, struct envoy_api_v2_core_DataSource* value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(12, 16), struct envoy_api_v2_core_DataSource*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_core_DataSource* envoy_api_v2_auth_CertificateValidationContext_mutable_trusted_ca(envoy_api_v2_auth_CertificateValidationContext *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_core_DataSource* sub = (struct envoy_api_v2_core_DataSource*)envoy_api_v2_auth_CertificateValidationContext_trusted_ca(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_api_v2_core_DataSource*)_upb_msg_new(&envoy_api_v2_core_DataSource_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_CertificateValidationContext_set_trusted_ca(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE upb_strview* envoy_api_v2_auth_CertificateValidationContext_mutable_verify_certificate_hash(envoy_api_v2_auth_CertificateValidationContext *msg, size_t *len) { |
||||
return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 48), len); |
||||
} |
||||
UPB_INLINE upb_strview* envoy_api_v2_auth_CertificateValidationContext_resize_verify_certificate_hash(envoy_api_v2_auth_CertificateValidationContext *msg, size_t len, upb_arena *arena) { |
||||
return (upb_strview*)_upb_array_resize_accessor(msg, UPB_SIZE(28, 48), len, UPB_TYPE_STRING, arena); |
||||
} |
||||
UPB_INLINE bool envoy_api_v2_auth_CertificateValidationContext_add_verify_certificate_hash(envoy_api_v2_auth_CertificateValidationContext *msg, upb_strview val, upb_arena *arena) { |
||||
return _upb_array_append_accessor(msg, UPB_SIZE(28, 48), UPB_SIZE(8, 16), UPB_TYPE_STRING, &val, |
||||
arena); |
||||
} |
||||
UPB_INLINE upb_strview* envoy_api_v2_auth_CertificateValidationContext_mutable_verify_certificate_spki(envoy_api_v2_auth_CertificateValidationContext *msg, size_t *len) { |
||||
return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(32, 56), len); |
||||
} |
||||
UPB_INLINE upb_strview* envoy_api_v2_auth_CertificateValidationContext_resize_verify_certificate_spki(envoy_api_v2_auth_CertificateValidationContext *msg, size_t len, upb_arena *arena) { |
||||
return (upb_strview*)_upb_array_resize_accessor(msg, UPB_SIZE(32, 56), len, UPB_TYPE_STRING, arena); |
||||
} |
||||
UPB_INLINE bool envoy_api_v2_auth_CertificateValidationContext_add_verify_certificate_spki(envoy_api_v2_auth_CertificateValidationContext *msg, upb_strview val, upb_arena *arena) { |
||||
return _upb_array_append_accessor(msg, UPB_SIZE(32, 56), UPB_SIZE(8, 16), UPB_TYPE_STRING, &val, |
||||
arena); |
||||
} |
||||
UPB_INLINE upb_strview* envoy_api_v2_auth_CertificateValidationContext_mutable_verify_subject_alt_name(envoy_api_v2_auth_CertificateValidationContext *msg, size_t *len) { |
||||
return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(36, 64), len); |
||||
} |
||||
UPB_INLINE upb_strview* envoy_api_v2_auth_CertificateValidationContext_resize_verify_subject_alt_name(envoy_api_v2_auth_CertificateValidationContext *msg, size_t len, upb_arena *arena) { |
||||
return (upb_strview*)_upb_array_resize_accessor(msg, UPB_SIZE(36, 64), len, UPB_TYPE_STRING, arena); |
||||
} |
||||
UPB_INLINE bool envoy_api_v2_auth_CertificateValidationContext_add_verify_subject_alt_name(envoy_api_v2_auth_CertificateValidationContext *msg, upb_strview val, upb_arena *arena) { |
||||
return _upb_array_append_accessor(msg, UPB_SIZE(36, 64), UPB_SIZE(8, 16), UPB_TYPE_STRING, &val, |
||||
arena); |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_CertificateValidationContext_set_require_ocsp_staple(envoy_api_v2_auth_CertificateValidationContext *msg, struct google_protobuf_BoolValue* value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(16, 24), struct google_protobuf_BoolValue*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_BoolValue* envoy_api_v2_auth_CertificateValidationContext_mutable_require_ocsp_staple(envoy_api_v2_auth_CertificateValidationContext *msg, upb_arena *arena) { |
||||
struct google_protobuf_BoolValue* sub = (struct google_protobuf_BoolValue*)envoy_api_v2_auth_CertificateValidationContext_require_ocsp_staple(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_BoolValue*)_upb_msg_new(&google_protobuf_BoolValue_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_CertificateValidationContext_set_require_ocsp_staple(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_CertificateValidationContext_set_require_signed_certificate_timestamp(envoy_api_v2_auth_CertificateValidationContext *msg, struct google_protobuf_BoolValue* value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(20, 32), struct google_protobuf_BoolValue*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_BoolValue* envoy_api_v2_auth_CertificateValidationContext_mutable_require_signed_certificate_timestamp(envoy_api_v2_auth_CertificateValidationContext *msg, upb_arena *arena) { |
||||
struct google_protobuf_BoolValue* sub = (struct google_protobuf_BoolValue*)envoy_api_v2_auth_CertificateValidationContext_require_signed_certificate_timestamp(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_BoolValue*)_upb_msg_new(&google_protobuf_BoolValue_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_CertificateValidationContext_set_require_signed_certificate_timestamp(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_CertificateValidationContext_set_crl(envoy_api_v2_auth_CertificateValidationContext *msg, struct envoy_api_v2_core_DataSource* value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(24, 40), struct envoy_api_v2_core_DataSource*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_core_DataSource* envoy_api_v2_auth_CertificateValidationContext_mutable_crl(envoy_api_v2_auth_CertificateValidationContext *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_core_DataSource* sub = (struct envoy_api_v2_core_DataSource*)envoy_api_v2_auth_CertificateValidationContext_crl(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_api_v2_core_DataSource*)_upb_msg_new(&envoy_api_v2_core_DataSource_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_CertificateValidationContext_set_crl(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_CertificateValidationContext_set_allow_expired_certificate(envoy_api_v2_auth_CertificateValidationContext *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), bool) = value; |
||||
} |
||||
UPB_INLINE struct envoy_type_matcher_StringMatcher** envoy_api_v2_auth_CertificateValidationContext_mutable_match_subject_alt_names(envoy_api_v2_auth_CertificateValidationContext *msg, size_t *len) { |
||||
return (struct envoy_type_matcher_StringMatcher**)_upb_array_mutable_accessor(msg, UPB_SIZE(40, 72), len); |
||||
} |
||||
UPB_INLINE struct envoy_type_matcher_StringMatcher** envoy_api_v2_auth_CertificateValidationContext_resize_match_subject_alt_names(envoy_api_v2_auth_CertificateValidationContext *msg, size_t len, upb_arena *arena) { |
||||
return (struct envoy_type_matcher_StringMatcher**)_upb_array_resize_accessor(msg, UPB_SIZE(40, 72), len, UPB_TYPE_MESSAGE, arena); |
||||
} |
||||
UPB_INLINE struct envoy_type_matcher_StringMatcher* envoy_api_v2_auth_CertificateValidationContext_add_match_subject_alt_names(envoy_api_v2_auth_CertificateValidationContext *msg, upb_arena *arena) { |
||||
struct envoy_type_matcher_StringMatcher* sub = (struct envoy_type_matcher_StringMatcher*)_upb_msg_new(&envoy_type_matcher_StringMatcher_msginit, arena); |
||||
bool ok = _upb_array_append_accessor( |
||||
msg, UPB_SIZE(40, 72), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena); |
||||
if (!ok) return NULL; |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_CertificateValidationContext_set_trust_chain_verification(envoy_api_v2_auth_CertificateValidationContext *msg, int32_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t) = value; |
||||
} |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_API_V2_AUTH_COMMON_PROTO_UPB_H_ */ |
@ -1,72 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/api/v2/auth/secret.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg.h" |
||||
#include "envoy/api/v2/auth/secret.upb.h" |
||||
#include "envoy/api/v2/auth/common.upb.h" |
||||
#include "envoy/api/v2/core/base.upb.h" |
||||
#include "envoy/api/v2/core/config_source.upb.h" |
||||
#include "udpa/annotations/migrate.upb.h" |
||||
#include "udpa/annotations/sensitive.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_auth_GenericSecret_submsgs[1] = { |
||||
&envoy_api_v2_core_DataSource_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_auth_GenericSecret__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_auth_GenericSecret_msginit = { |
||||
&envoy_api_v2_auth_GenericSecret_submsgs[0], |
||||
&envoy_api_v2_auth_GenericSecret__fields[0], |
||||
UPB_SIZE(4, 8), 1, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_auth_SdsSecretConfig_submsgs[1] = { |
||||
&envoy_api_v2_core_ConfigSource_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_auth_SdsSecretConfig__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 9, 1}, |
||||
{2, UPB_SIZE(8, 16), 0, 0, 11, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_auth_SdsSecretConfig_msginit = { |
||||
&envoy_api_v2_auth_SdsSecretConfig_submsgs[0], |
||||
&envoy_api_v2_auth_SdsSecretConfig__fields[0], |
||||
UPB_SIZE(16, 32), 2, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_auth_Secret_submsgs[4] = { |
||||
&envoy_api_v2_auth_CertificateValidationContext_msginit, |
||||
&envoy_api_v2_auth_GenericSecret_msginit, |
||||
&envoy_api_v2_auth_TlsCertificate_msginit, |
||||
&envoy_api_v2_auth_TlsSessionTicketKeys_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_auth_Secret__fields[5] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 9, 1}, |
||||
{2, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 2, 11, 1}, |
||||
{3, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 3, 11, 1}, |
||||
{4, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 0, 11, 1}, |
||||
{5, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 1, 11, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_auth_Secret_msginit = { |
||||
&envoy_api_v2_auth_Secret_submsgs[0], |
||||
&envoy_api_v2_auth_Secret__fields[0], |
||||
UPB_SIZE(16, 32), 5, false, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -1,198 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/api/v2/auth/secret.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_API_V2_AUTH_SECRET_PROTO_UPB_H_ |
||||
#define ENVOY_API_V2_AUTH_SECRET_PROTO_UPB_H_ |
||||
|
||||
#include "upb/msg.h" |
||||
#include "upb/decode.h" |
||||
#include "upb/encode.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
struct envoy_api_v2_auth_GenericSecret; |
||||
struct envoy_api_v2_auth_SdsSecretConfig; |
||||
struct envoy_api_v2_auth_Secret; |
||||
typedef struct envoy_api_v2_auth_GenericSecret envoy_api_v2_auth_GenericSecret; |
||||
typedef struct envoy_api_v2_auth_SdsSecretConfig envoy_api_v2_auth_SdsSecretConfig; |
||||
typedef struct envoy_api_v2_auth_Secret envoy_api_v2_auth_Secret; |
||||
extern const upb_msglayout envoy_api_v2_auth_GenericSecret_msginit; |
||||
extern const upb_msglayout envoy_api_v2_auth_SdsSecretConfig_msginit; |
||||
extern const upb_msglayout envoy_api_v2_auth_Secret_msginit; |
||||
struct envoy_api_v2_auth_CertificateValidationContext; |
||||
struct envoy_api_v2_auth_TlsCertificate; |
||||
struct envoy_api_v2_auth_TlsSessionTicketKeys; |
||||
struct envoy_api_v2_core_ConfigSource; |
||||
struct envoy_api_v2_core_DataSource; |
||||
extern const upb_msglayout envoy_api_v2_auth_CertificateValidationContext_msginit; |
||||
extern const upb_msglayout envoy_api_v2_auth_TlsCertificate_msginit; |
||||
extern const upb_msglayout envoy_api_v2_auth_TlsSessionTicketKeys_msginit; |
||||
extern const upb_msglayout envoy_api_v2_core_ConfigSource_msginit; |
||||
extern const upb_msglayout envoy_api_v2_core_DataSource_msginit; |
||||
|
||||
|
||||
/* envoy.api.v2.auth.GenericSecret */ |
||||
|
||||
UPB_INLINE envoy_api_v2_auth_GenericSecret *envoy_api_v2_auth_GenericSecret_new(upb_arena *arena) { |
||||
return (envoy_api_v2_auth_GenericSecret *)_upb_msg_new(&envoy_api_v2_auth_GenericSecret_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_api_v2_auth_GenericSecret *envoy_api_v2_auth_GenericSecret_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_api_v2_auth_GenericSecret *ret = envoy_api_v2_auth_GenericSecret_new(arena); |
||||
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_auth_GenericSecret_msginit, arena)) ? ret : NULL; |
||||
} |
||||
UPB_INLINE char *envoy_api_v2_auth_GenericSecret_serialize(const envoy_api_v2_auth_GenericSecret *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_api_v2_auth_GenericSecret_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_api_v2_auth_GenericSecret_has_secret(const envoy_api_v2_auth_GenericSecret *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); } |
||||
UPB_INLINE const struct envoy_api_v2_core_DataSource* envoy_api_v2_auth_GenericSecret_secret(const envoy_api_v2_auth_GenericSecret *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), const struct envoy_api_v2_core_DataSource*); } |
||||
|
||||
UPB_INLINE void envoy_api_v2_auth_GenericSecret_set_secret(envoy_api_v2_auth_GenericSecret *msg, struct envoy_api_v2_core_DataSource* value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), struct envoy_api_v2_core_DataSource*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_core_DataSource* envoy_api_v2_auth_GenericSecret_mutable_secret(envoy_api_v2_auth_GenericSecret *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_core_DataSource* sub = (struct envoy_api_v2_core_DataSource*)envoy_api_v2_auth_GenericSecret_secret(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_api_v2_core_DataSource*)_upb_msg_new(&envoy_api_v2_core_DataSource_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_GenericSecret_set_secret(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
/* envoy.api.v2.auth.SdsSecretConfig */ |
||||
|
||||
UPB_INLINE envoy_api_v2_auth_SdsSecretConfig *envoy_api_v2_auth_SdsSecretConfig_new(upb_arena *arena) { |
||||
return (envoy_api_v2_auth_SdsSecretConfig *)_upb_msg_new(&envoy_api_v2_auth_SdsSecretConfig_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_api_v2_auth_SdsSecretConfig *envoy_api_v2_auth_SdsSecretConfig_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_api_v2_auth_SdsSecretConfig *ret = envoy_api_v2_auth_SdsSecretConfig_new(arena); |
||||
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_auth_SdsSecretConfig_msginit, arena)) ? ret : NULL; |
||||
} |
||||
UPB_INLINE char *envoy_api_v2_auth_SdsSecretConfig_serialize(const envoy_api_v2_auth_SdsSecretConfig *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_api_v2_auth_SdsSecretConfig_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview envoy_api_v2_auth_SdsSecretConfig_name(const envoy_api_v2_auth_SdsSecretConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); } |
||||
UPB_INLINE bool envoy_api_v2_auth_SdsSecretConfig_has_sds_config(const envoy_api_v2_auth_SdsSecretConfig *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(8, 16)); } |
||||
UPB_INLINE const struct envoy_api_v2_core_ConfigSource* envoy_api_v2_auth_SdsSecretConfig_sds_config(const envoy_api_v2_auth_SdsSecretConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct envoy_api_v2_core_ConfigSource*); } |
||||
|
||||
UPB_INLINE void envoy_api_v2_auth_SdsSecretConfig_set_name(envoy_api_v2_auth_SdsSecretConfig *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_SdsSecretConfig_set_sds_config(envoy_api_v2_auth_SdsSecretConfig *msg, struct envoy_api_v2_core_ConfigSource* value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct envoy_api_v2_core_ConfigSource*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_core_ConfigSource* envoy_api_v2_auth_SdsSecretConfig_mutable_sds_config(envoy_api_v2_auth_SdsSecretConfig *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_core_ConfigSource* sub = (struct envoy_api_v2_core_ConfigSource*)envoy_api_v2_auth_SdsSecretConfig_sds_config(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_api_v2_core_ConfigSource*)_upb_msg_new(&envoy_api_v2_core_ConfigSource_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_SdsSecretConfig_set_sds_config(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
/* envoy.api.v2.auth.Secret */ |
||||
|
||||
UPB_INLINE envoy_api_v2_auth_Secret *envoy_api_v2_auth_Secret_new(upb_arena *arena) { |
||||
return (envoy_api_v2_auth_Secret *)_upb_msg_new(&envoy_api_v2_auth_Secret_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_api_v2_auth_Secret *envoy_api_v2_auth_Secret_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_api_v2_auth_Secret *ret = envoy_api_v2_auth_Secret_new(arena); |
||||
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_auth_Secret_msginit, arena)) ? ret : NULL; |
||||
} |
||||
UPB_INLINE char *envoy_api_v2_auth_Secret_serialize(const envoy_api_v2_auth_Secret *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_api_v2_auth_Secret_msginit, arena, len); |
||||
} |
||||
|
||||
typedef enum { |
||||
envoy_api_v2_auth_Secret_type_tls_certificate = 2, |
||||
envoy_api_v2_auth_Secret_type_session_ticket_keys = 3, |
||||
envoy_api_v2_auth_Secret_type_validation_context = 4, |
||||
envoy_api_v2_auth_Secret_type_generic_secret = 5, |
||||
envoy_api_v2_auth_Secret_type_NOT_SET = 0 |
||||
} envoy_api_v2_auth_Secret_type_oneofcases; |
||||
UPB_INLINE envoy_api_v2_auth_Secret_type_oneofcases envoy_api_v2_auth_Secret_type_case(const envoy_api_v2_auth_Secret* msg) { return (envoy_api_v2_auth_Secret_type_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(12, 24), int32_t); } |
||||
|
||||
UPB_INLINE upb_strview envoy_api_v2_auth_Secret_name(const envoy_api_v2_auth_Secret *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); } |
||||
UPB_INLINE bool envoy_api_v2_auth_Secret_has_tls_certificate(const envoy_api_v2_auth_Secret *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 2; } |
||||
UPB_INLINE const struct envoy_api_v2_auth_TlsCertificate* envoy_api_v2_auth_Secret_tls_certificate(const envoy_api_v2_auth_Secret *msg) { return UPB_READ_ONEOF(msg, const struct envoy_api_v2_auth_TlsCertificate*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 2, NULL); } |
||||
UPB_INLINE bool envoy_api_v2_auth_Secret_has_session_ticket_keys(const envoy_api_v2_auth_Secret *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 3; } |
||||
UPB_INLINE const struct envoy_api_v2_auth_TlsSessionTicketKeys* envoy_api_v2_auth_Secret_session_ticket_keys(const envoy_api_v2_auth_Secret *msg) { return UPB_READ_ONEOF(msg, const struct envoy_api_v2_auth_TlsSessionTicketKeys*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 3, NULL); } |
||||
UPB_INLINE bool envoy_api_v2_auth_Secret_has_validation_context(const envoy_api_v2_auth_Secret *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 4; } |
||||
UPB_INLINE const struct envoy_api_v2_auth_CertificateValidationContext* envoy_api_v2_auth_Secret_validation_context(const envoy_api_v2_auth_Secret *msg) { return UPB_READ_ONEOF(msg, const struct envoy_api_v2_auth_CertificateValidationContext*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 4, NULL); } |
||||
UPB_INLINE bool envoy_api_v2_auth_Secret_has_generic_secret(const envoy_api_v2_auth_Secret *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 5; } |
||||
UPB_INLINE const envoy_api_v2_auth_GenericSecret* envoy_api_v2_auth_Secret_generic_secret(const envoy_api_v2_auth_Secret *msg) { return UPB_READ_ONEOF(msg, const envoy_api_v2_auth_GenericSecret*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 5, NULL); } |
||||
|
||||
UPB_INLINE void envoy_api_v2_auth_Secret_set_name(envoy_api_v2_auth_Secret *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_Secret_set_tls_certificate(envoy_api_v2_auth_Secret *msg, struct envoy_api_v2_auth_TlsCertificate* value) { |
||||
UPB_WRITE_ONEOF(msg, struct envoy_api_v2_auth_TlsCertificate*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 2); |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_auth_TlsCertificate* envoy_api_v2_auth_Secret_mutable_tls_certificate(envoy_api_v2_auth_Secret *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_auth_TlsCertificate* sub = (struct envoy_api_v2_auth_TlsCertificate*)envoy_api_v2_auth_Secret_tls_certificate(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_api_v2_auth_TlsCertificate*)_upb_msg_new(&envoy_api_v2_auth_TlsCertificate_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_Secret_set_tls_certificate(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_Secret_set_session_ticket_keys(envoy_api_v2_auth_Secret *msg, struct envoy_api_v2_auth_TlsSessionTicketKeys* value) { |
||||
UPB_WRITE_ONEOF(msg, struct envoy_api_v2_auth_TlsSessionTicketKeys*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 3); |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_auth_TlsSessionTicketKeys* envoy_api_v2_auth_Secret_mutable_session_ticket_keys(envoy_api_v2_auth_Secret *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_auth_TlsSessionTicketKeys* sub = (struct envoy_api_v2_auth_TlsSessionTicketKeys*)envoy_api_v2_auth_Secret_session_ticket_keys(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_api_v2_auth_TlsSessionTicketKeys*)_upb_msg_new(&envoy_api_v2_auth_TlsSessionTicketKeys_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_Secret_set_session_ticket_keys(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_Secret_set_validation_context(envoy_api_v2_auth_Secret *msg, struct envoy_api_v2_auth_CertificateValidationContext* value) { |
||||
UPB_WRITE_ONEOF(msg, struct envoy_api_v2_auth_CertificateValidationContext*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 4); |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_auth_CertificateValidationContext* envoy_api_v2_auth_Secret_mutable_validation_context(envoy_api_v2_auth_Secret *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_auth_CertificateValidationContext* sub = (struct envoy_api_v2_auth_CertificateValidationContext*)envoy_api_v2_auth_Secret_validation_context(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_api_v2_auth_CertificateValidationContext*)_upb_msg_new(&envoy_api_v2_auth_CertificateValidationContext_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_Secret_set_validation_context(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_Secret_set_generic_secret(envoy_api_v2_auth_Secret *msg, envoy_api_v2_auth_GenericSecret* value) { |
||||
UPB_WRITE_ONEOF(msg, envoy_api_v2_auth_GenericSecret*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 5); |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_auth_GenericSecret* envoy_api_v2_auth_Secret_mutable_generic_secret(envoy_api_v2_auth_Secret *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_auth_GenericSecret* sub = (struct envoy_api_v2_auth_GenericSecret*)envoy_api_v2_auth_Secret_generic_secret(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_api_v2_auth_GenericSecret*)_upb_msg_new(&envoy_api_v2_auth_GenericSecret_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_Secret_set_generic_secret(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_API_V2_AUTH_SECRET_PROTO_UPB_H_ */ |
@ -1,105 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/api/v2/auth/tls.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg.h" |
||||
#include "envoy/api/v2/auth/tls.upb.h" |
||||
#include "envoy/api/v2/auth/common.upb.h" |
||||
#include "envoy/api/v2/auth/secret.upb.h" |
||||
#include "google/protobuf/duration.upb.h" |
||||
#include "google/protobuf/wrappers.upb.h" |
||||
#include "udpa/annotations/migrate.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_auth_UpstreamTlsContext_submsgs[2] = { |
||||
&envoy_api_v2_auth_CommonTlsContext_msginit, |
||||
&google_protobuf_UInt32Value_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_auth_UpstreamTlsContext__fields[4] = { |
||||
{1, UPB_SIZE(12, 24), 0, 0, 11, 1}, |
||||
{2, UPB_SIZE(4, 8), 0, 0, 9, 1}, |
||||
{3, UPB_SIZE(0, 0), 0, 0, 8, 1}, |
||||
{4, UPB_SIZE(16, 32), 0, 1, 11, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_auth_UpstreamTlsContext_msginit = { |
||||
&envoy_api_v2_auth_UpstreamTlsContext_submsgs[0], |
||||
&envoy_api_v2_auth_UpstreamTlsContext__fields[0], |
||||
UPB_SIZE(24, 48), 4, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_auth_DownstreamTlsContext_submsgs[6] = { |
||||
&envoy_api_v2_auth_CommonTlsContext_msginit, |
||||
&envoy_api_v2_auth_SdsSecretConfig_msginit, |
||||
&envoy_api_v2_auth_TlsSessionTicketKeys_msginit, |
||||
&google_protobuf_BoolValue_msginit, |
||||
&google_protobuf_Duration_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_auth_DownstreamTlsContext__fields[7] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, 1}, |
||||
{2, UPB_SIZE(4, 8), 0, 3, 11, 1}, |
||||
{3, UPB_SIZE(8, 16), 0, 3, 11, 1}, |
||||
{4, UPB_SIZE(16, 32), UPB_SIZE(-21, -41), 2, 11, 1}, |
||||
{5, UPB_SIZE(16, 32), UPB_SIZE(-21, -41), 1, 11, 1}, |
||||
{6, UPB_SIZE(12, 24), 0, 4, 11, 1}, |
||||
{7, UPB_SIZE(16, 32), UPB_SIZE(-21, -41), 0, 8, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_auth_DownstreamTlsContext_msginit = { |
||||
&envoy_api_v2_auth_DownstreamTlsContext_submsgs[0], |
||||
&envoy_api_v2_auth_DownstreamTlsContext__fields[0], |
||||
UPB_SIZE(24, 48), 7, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_auth_CommonTlsContext_submsgs[6] = { |
||||
&envoy_api_v2_auth_CertificateValidationContext_msginit, |
||||
&envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_msginit, |
||||
&envoy_api_v2_auth_SdsSecretConfig_msginit, |
||||
&envoy_api_v2_auth_TlsCertificate_msginit, |
||||
&envoy_api_v2_auth_TlsParameters_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_auth_CommonTlsContext__fields[7] = { |
||||
{1, UPB_SIZE(0, 0), 0, 4, 11, 1}, |
||||
{2, UPB_SIZE(4, 8), 0, 3, 11, 3}, |
||||
{3, UPB_SIZE(16, 32), UPB_SIZE(-21, -41), 0, 11, 1}, |
||||
{4, UPB_SIZE(8, 16), 0, 0, 9, 3}, |
||||
{6, UPB_SIZE(12, 24), 0, 2, 11, 3}, |
||||
{7, UPB_SIZE(16, 32), UPB_SIZE(-21, -41), 2, 11, 1}, |
||||
{8, UPB_SIZE(16, 32), UPB_SIZE(-21, -41), 1, 11, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_auth_CommonTlsContext_msginit = { |
||||
&envoy_api_v2_auth_CommonTlsContext_submsgs[0], |
||||
&envoy_api_v2_auth_CommonTlsContext__fields[0], |
||||
UPB_SIZE(24, 48), 7, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_submsgs[2] = { |
||||
&envoy_api_v2_auth_CertificateValidationContext_msginit, |
||||
&envoy_api_v2_auth_SdsSecretConfig_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, 1}, |
||||
{2, UPB_SIZE(4, 8), 0, 1, 11, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_msginit = { |
||||
&envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_submsgs[0], |
||||
&envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext__fields[0], |
||||
UPB_SIZE(8, 16), 2, false, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -1,388 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/api/v2/auth/tls.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_API_V2_AUTH_TLS_PROTO_UPB_H_ |
||||
#define ENVOY_API_V2_AUTH_TLS_PROTO_UPB_H_ |
||||
|
||||
#include "upb/msg.h" |
||||
#include "upb/decode.h" |
||||
#include "upb/encode.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
struct envoy_api_v2_auth_UpstreamTlsContext; |
||||
struct envoy_api_v2_auth_DownstreamTlsContext; |
||||
struct envoy_api_v2_auth_CommonTlsContext; |
||||
struct envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext; |
||||
typedef struct envoy_api_v2_auth_UpstreamTlsContext envoy_api_v2_auth_UpstreamTlsContext; |
||||
typedef struct envoy_api_v2_auth_DownstreamTlsContext envoy_api_v2_auth_DownstreamTlsContext; |
||||
typedef struct envoy_api_v2_auth_CommonTlsContext envoy_api_v2_auth_CommonTlsContext; |
||||
typedef struct envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext; |
||||
extern const upb_msglayout envoy_api_v2_auth_UpstreamTlsContext_msginit; |
||||
extern const upb_msglayout envoy_api_v2_auth_DownstreamTlsContext_msginit; |
||||
extern const upb_msglayout envoy_api_v2_auth_CommonTlsContext_msginit; |
||||
extern const upb_msglayout envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_msginit; |
||||
struct envoy_api_v2_auth_CertificateValidationContext; |
||||
struct envoy_api_v2_auth_SdsSecretConfig; |
||||
struct envoy_api_v2_auth_TlsCertificate; |
||||
struct envoy_api_v2_auth_TlsParameters; |
||||
struct envoy_api_v2_auth_TlsSessionTicketKeys; |
||||
struct google_protobuf_BoolValue; |
||||
struct google_protobuf_Duration; |
||||
struct google_protobuf_UInt32Value; |
||||
extern const upb_msglayout envoy_api_v2_auth_CertificateValidationContext_msginit; |
||||
extern const upb_msglayout envoy_api_v2_auth_SdsSecretConfig_msginit; |
||||
extern const upb_msglayout envoy_api_v2_auth_TlsCertificate_msginit; |
||||
extern const upb_msglayout envoy_api_v2_auth_TlsParameters_msginit; |
||||
extern const upb_msglayout envoy_api_v2_auth_TlsSessionTicketKeys_msginit; |
||||
extern const upb_msglayout google_protobuf_BoolValue_msginit; |
||||
extern const upb_msglayout google_protobuf_Duration_msginit; |
||||
extern const upb_msglayout google_protobuf_UInt32Value_msginit; |
||||
|
||||
|
||||
/* envoy.api.v2.auth.UpstreamTlsContext */ |
||||
|
||||
UPB_INLINE envoy_api_v2_auth_UpstreamTlsContext *envoy_api_v2_auth_UpstreamTlsContext_new(upb_arena *arena) { |
||||
return (envoy_api_v2_auth_UpstreamTlsContext *)_upb_msg_new(&envoy_api_v2_auth_UpstreamTlsContext_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_api_v2_auth_UpstreamTlsContext *envoy_api_v2_auth_UpstreamTlsContext_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_api_v2_auth_UpstreamTlsContext *ret = envoy_api_v2_auth_UpstreamTlsContext_new(arena); |
||||
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_auth_UpstreamTlsContext_msginit, arena)) ? ret : NULL; |
||||
} |
||||
UPB_INLINE char *envoy_api_v2_auth_UpstreamTlsContext_serialize(const envoy_api_v2_auth_UpstreamTlsContext *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_api_v2_auth_UpstreamTlsContext_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_api_v2_auth_UpstreamTlsContext_has_common_tls_context(const envoy_api_v2_auth_UpstreamTlsContext *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(12, 24)); } |
||||
UPB_INLINE const envoy_api_v2_auth_CommonTlsContext* envoy_api_v2_auth_UpstreamTlsContext_common_tls_context(const envoy_api_v2_auth_UpstreamTlsContext *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const envoy_api_v2_auth_CommonTlsContext*); } |
||||
UPB_INLINE upb_strview envoy_api_v2_auth_UpstreamTlsContext_sni(const envoy_api_v2_auth_UpstreamTlsContext *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); } |
||||
UPB_INLINE bool envoy_api_v2_auth_UpstreamTlsContext_allow_renegotiation(const envoy_api_v2_auth_UpstreamTlsContext *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), bool); } |
||||
UPB_INLINE bool envoy_api_v2_auth_UpstreamTlsContext_has_max_session_keys(const envoy_api_v2_auth_UpstreamTlsContext *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(16, 32)); } |
||||
UPB_INLINE const struct google_protobuf_UInt32Value* envoy_api_v2_auth_UpstreamTlsContext_max_session_keys(const envoy_api_v2_auth_UpstreamTlsContext *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 32), const struct google_protobuf_UInt32Value*); } |
||||
|
||||
UPB_INLINE void envoy_api_v2_auth_UpstreamTlsContext_set_common_tls_context(envoy_api_v2_auth_UpstreamTlsContext *msg, envoy_api_v2_auth_CommonTlsContext* value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), envoy_api_v2_auth_CommonTlsContext*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_auth_CommonTlsContext* envoy_api_v2_auth_UpstreamTlsContext_mutable_common_tls_context(envoy_api_v2_auth_UpstreamTlsContext *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_auth_CommonTlsContext* sub = (struct envoy_api_v2_auth_CommonTlsContext*)envoy_api_v2_auth_UpstreamTlsContext_common_tls_context(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_api_v2_auth_CommonTlsContext*)_upb_msg_new(&envoy_api_v2_auth_CommonTlsContext_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_UpstreamTlsContext_set_common_tls_context(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_UpstreamTlsContext_set_sni(envoy_api_v2_auth_UpstreamTlsContext *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_UpstreamTlsContext_set_allow_renegotiation(envoy_api_v2_auth_UpstreamTlsContext *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), bool) = value; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_UpstreamTlsContext_set_max_session_keys(envoy_api_v2_auth_UpstreamTlsContext *msg, struct google_protobuf_UInt32Value* value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(16, 32), struct google_protobuf_UInt32Value*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_UInt32Value* envoy_api_v2_auth_UpstreamTlsContext_mutable_max_session_keys(envoy_api_v2_auth_UpstreamTlsContext *msg, upb_arena *arena) { |
||||
struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_api_v2_auth_UpstreamTlsContext_max_session_keys(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_UInt32Value*)_upb_msg_new(&google_protobuf_UInt32Value_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_UpstreamTlsContext_set_max_session_keys(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
/* envoy.api.v2.auth.DownstreamTlsContext */ |
||||
|
||||
UPB_INLINE envoy_api_v2_auth_DownstreamTlsContext *envoy_api_v2_auth_DownstreamTlsContext_new(upb_arena *arena) { |
||||
return (envoy_api_v2_auth_DownstreamTlsContext *)_upb_msg_new(&envoy_api_v2_auth_DownstreamTlsContext_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_api_v2_auth_DownstreamTlsContext *envoy_api_v2_auth_DownstreamTlsContext_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_api_v2_auth_DownstreamTlsContext *ret = envoy_api_v2_auth_DownstreamTlsContext_new(arena); |
||||
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_auth_DownstreamTlsContext_msginit, arena)) ? ret : NULL; |
||||
} |
||||
UPB_INLINE char *envoy_api_v2_auth_DownstreamTlsContext_serialize(const envoy_api_v2_auth_DownstreamTlsContext *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_api_v2_auth_DownstreamTlsContext_msginit, arena, len); |
||||
} |
||||
|
||||
typedef enum { |
||||
envoy_api_v2_auth_DownstreamTlsContext_session_ticket_keys_type_session_ticket_keys = 4, |
||||
envoy_api_v2_auth_DownstreamTlsContext_session_ticket_keys_type_session_ticket_keys_sds_secret_config = 5, |
||||
envoy_api_v2_auth_DownstreamTlsContext_session_ticket_keys_type_disable_stateless_session_resumption = 7, |
||||
envoy_api_v2_auth_DownstreamTlsContext_session_ticket_keys_type_NOT_SET = 0 |
||||
} envoy_api_v2_auth_DownstreamTlsContext_session_ticket_keys_type_oneofcases; |
||||
UPB_INLINE envoy_api_v2_auth_DownstreamTlsContext_session_ticket_keys_type_oneofcases envoy_api_v2_auth_DownstreamTlsContext_session_ticket_keys_type_case(const envoy_api_v2_auth_DownstreamTlsContext* msg) { return (envoy_api_v2_auth_DownstreamTlsContext_session_ticket_keys_type_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(20, 40), int32_t); } |
||||
|
||||
UPB_INLINE bool envoy_api_v2_auth_DownstreamTlsContext_has_common_tls_context(const envoy_api_v2_auth_DownstreamTlsContext *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); } |
||||
UPB_INLINE const envoy_api_v2_auth_CommonTlsContext* envoy_api_v2_auth_DownstreamTlsContext_common_tls_context(const envoy_api_v2_auth_DownstreamTlsContext *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), const envoy_api_v2_auth_CommonTlsContext*); } |
||||
UPB_INLINE bool envoy_api_v2_auth_DownstreamTlsContext_has_require_client_certificate(const envoy_api_v2_auth_DownstreamTlsContext *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8)); } |
||||
UPB_INLINE const struct google_protobuf_BoolValue* envoy_api_v2_auth_DownstreamTlsContext_require_client_certificate(const envoy_api_v2_auth_DownstreamTlsContext *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct google_protobuf_BoolValue*); } |
||||
UPB_INLINE bool envoy_api_v2_auth_DownstreamTlsContext_has_require_sni(const envoy_api_v2_auth_DownstreamTlsContext *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(8, 16)); } |
||||
UPB_INLINE const struct google_protobuf_BoolValue* envoy_api_v2_auth_DownstreamTlsContext_require_sni(const envoy_api_v2_auth_DownstreamTlsContext *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct google_protobuf_BoolValue*); } |
||||
UPB_INLINE bool envoy_api_v2_auth_DownstreamTlsContext_has_session_ticket_keys(const envoy_api_v2_auth_DownstreamTlsContext *msg) { return _upb_getoneofcase(msg, UPB_SIZE(20, 40)) == 4; } |
||||
UPB_INLINE const struct envoy_api_v2_auth_TlsSessionTicketKeys* envoy_api_v2_auth_DownstreamTlsContext_session_ticket_keys(const envoy_api_v2_auth_DownstreamTlsContext *msg) { return UPB_READ_ONEOF(msg, const struct envoy_api_v2_auth_TlsSessionTicketKeys*, UPB_SIZE(16, 32), UPB_SIZE(20, 40), 4, NULL); } |
||||
UPB_INLINE bool envoy_api_v2_auth_DownstreamTlsContext_has_session_ticket_keys_sds_secret_config(const envoy_api_v2_auth_DownstreamTlsContext *msg) { return _upb_getoneofcase(msg, UPB_SIZE(20, 40)) == 5; } |
||||
UPB_INLINE const struct envoy_api_v2_auth_SdsSecretConfig* envoy_api_v2_auth_DownstreamTlsContext_session_ticket_keys_sds_secret_config(const envoy_api_v2_auth_DownstreamTlsContext *msg) { return UPB_READ_ONEOF(msg, const struct envoy_api_v2_auth_SdsSecretConfig*, UPB_SIZE(16, 32), UPB_SIZE(20, 40), 5, NULL); } |
||||
UPB_INLINE bool envoy_api_v2_auth_DownstreamTlsContext_has_session_timeout(const envoy_api_v2_auth_DownstreamTlsContext *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(12, 24)); } |
||||
UPB_INLINE const struct google_protobuf_Duration* envoy_api_v2_auth_DownstreamTlsContext_session_timeout(const envoy_api_v2_auth_DownstreamTlsContext *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct google_protobuf_Duration*); } |
||||
UPB_INLINE bool envoy_api_v2_auth_DownstreamTlsContext_has_disable_stateless_session_resumption(const envoy_api_v2_auth_DownstreamTlsContext *msg) { return _upb_getoneofcase(msg, UPB_SIZE(20, 40)) == 7; } |
||||
UPB_INLINE bool envoy_api_v2_auth_DownstreamTlsContext_disable_stateless_session_resumption(const envoy_api_v2_auth_DownstreamTlsContext *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(16, 32), UPB_SIZE(20, 40), 7, false); } |
||||
|
||||
UPB_INLINE void envoy_api_v2_auth_DownstreamTlsContext_set_common_tls_context(envoy_api_v2_auth_DownstreamTlsContext *msg, envoy_api_v2_auth_CommonTlsContext* value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), envoy_api_v2_auth_CommonTlsContext*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_auth_CommonTlsContext* envoy_api_v2_auth_DownstreamTlsContext_mutable_common_tls_context(envoy_api_v2_auth_DownstreamTlsContext *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_auth_CommonTlsContext* sub = (struct envoy_api_v2_auth_CommonTlsContext*)envoy_api_v2_auth_DownstreamTlsContext_common_tls_context(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_api_v2_auth_CommonTlsContext*)_upb_msg_new(&envoy_api_v2_auth_CommonTlsContext_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_DownstreamTlsContext_set_common_tls_context(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_DownstreamTlsContext_set_require_client_certificate(envoy_api_v2_auth_DownstreamTlsContext *msg, struct google_protobuf_BoolValue* value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct google_protobuf_BoolValue*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_BoolValue* envoy_api_v2_auth_DownstreamTlsContext_mutable_require_client_certificate(envoy_api_v2_auth_DownstreamTlsContext *msg, upb_arena *arena) { |
||||
struct google_protobuf_BoolValue* sub = (struct google_protobuf_BoolValue*)envoy_api_v2_auth_DownstreamTlsContext_require_client_certificate(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_BoolValue*)_upb_msg_new(&google_protobuf_BoolValue_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_DownstreamTlsContext_set_require_client_certificate(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_DownstreamTlsContext_set_require_sni(envoy_api_v2_auth_DownstreamTlsContext *msg, struct google_protobuf_BoolValue* value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct google_protobuf_BoolValue*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_BoolValue* envoy_api_v2_auth_DownstreamTlsContext_mutable_require_sni(envoy_api_v2_auth_DownstreamTlsContext *msg, upb_arena *arena) { |
||||
struct google_protobuf_BoolValue* sub = (struct google_protobuf_BoolValue*)envoy_api_v2_auth_DownstreamTlsContext_require_sni(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_BoolValue*)_upb_msg_new(&google_protobuf_BoolValue_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_DownstreamTlsContext_set_require_sni(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_DownstreamTlsContext_set_session_ticket_keys(envoy_api_v2_auth_DownstreamTlsContext *msg, struct envoy_api_v2_auth_TlsSessionTicketKeys* value) { |
||||
UPB_WRITE_ONEOF(msg, struct envoy_api_v2_auth_TlsSessionTicketKeys*, UPB_SIZE(16, 32), value, UPB_SIZE(20, 40), 4); |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_auth_TlsSessionTicketKeys* envoy_api_v2_auth_DownstreamTlsContext_mutable_session_ticket_keys(envoy_api_v2_auth_DownstreamTlsContext *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_auth_TlsSessionTicketKeys* sub = (struct envoy_api_v2_auth_TlsSessionTicketKeys*)envoy_api_v2_auth_DownstreamTlsContext_session_ticket_keys(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_api_v2_auth_TlsSessionTicketKeys*)_upb_msg_new(&envoy_api_v2_auth_TlsSessionTicketKeys_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_DownstreamTlsContext_set_session_ticket_keys(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_DownstreamTlsContext_set_session_ticket_keys_sds_secret_config(envoy_api_v2_auth_DownstreamTlsContext *msg, struct envoy_api_v2_auth_SdsSecretConfig* value) { |
||||
UPB_WRITE_ONEOF(msg, struct envoy_api_v2_auth_SdsSecretConfig*, UPB_SIZE(16, 32), value, UPB_SIZE(20, 40), 5); |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_auth_SdsSecretConfig* envoy_api_v2_auth_DownstreamTlsContext_mutable_session_ticket_keys_sds_secret_config(envoy_api_v2_auth_DownstreamTlsContext *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_auth_SdsSecretConfig* sub = (struct envoy_api_v2_auth_SdsSecretConfig*)envoy_api_v2_auth_DownstreamTlsContext_session_ticket_keys_sds_secret_config(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_api_v2_auth_SdsSecretConfig*)_upb_msg_new(&envoy_api_v2_auth_SdsSecretConfig_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_DownstreamTlsContext_set_session_ticket_keys_sds_secret_config(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_DownstreamTlsContext_set_session_timeout(envoy_api_v2_auth_DownstreamTlsContext *msg, struct google_protobuf_Duration* value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct google_protobuf_Duration*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_Duration* envoy_api_v2_auth_DownstreamTlsContext_mutable_session_timeout(envoy_api_v2_auth_DownstreamTlsContext *msg, upb_arena *arena) { |
||||
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_api_v2_auth_DownstreamTlsContext_session_timeout(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_DownstreamTlsContext_set_session_timeout(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_DownstreamTlsContext_set_disable_stateless_session_resumption(envoy_api_v2_auth_DownstreamTlsContext *msg, bool value) { |
||||
UPB_WRITE_ONEOF(msg, bool, UPB_SIZE(16, 32), value, UPB_SIZE(20, 40), 7); |
||||
} |
||||
|
||||
/* envoy.api.v2.auth.CommonTlsContext */ |
||||
|
||||
UPB_INLINE envoy_api_v2_auth_CommonTlsContext *envoy_api_v2_auth_CommonTlsContext_new(upb_arena *arena) { |
||||
return (envoy_api_v2_auth_CommonTlsContext *)_upb_msg_new(&envoy_api_v2_auth_CommonTlsContext_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_api_v2_auth_CommonTlsContext *envoy_api_v2_auth_CommonTlsContext_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_api_v2_auth_CommonTlsContext *ret = envoy_api_v2_auth_CommonTlsContext_new(arena); |
||||
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_auth_CommonTlsContext_msginit, arena)) ? ret : NULL; |
||||
} |
||||
UPB_INLINE char *envoy_api_v2_auth_CommonTlsContext_serialize(const envoy_api_v2_auth_CommonTlsContext *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_api_v2_auth_CommonTlsContext_msginit, arena, len); |
||||
} |
||||
|
||||
typedef enum { |
||||
envoy_api_v2_auth_CommonTlsContext_validation_context_type_validation_context = 3, |
||||
envoy_api_v2_auth_CommonTlsContext_validation_context_type_validation_context_sds_secret_config = 7, |
||||
envoy_api_v2_auth_CommonTlsContext_validation_context_type_combined_validation_context = 8, |
||||
envoy_api_v2_auth_CommonTlsContext_validation_context_type_NOT_SET = 0 |
||||
} envoy_api_v2_auth_CommonTlsContext_validation_context_type_oneofcases; |
||||
UPB_INLINE envoy_api_v2_auth_CommonTlsContext_validation_context_type_oneofcases envoy_api_v2_auth_CommonTlsContext_validation_context_type_case(const envoy_api_v2_auth_CommonTlsContext* msg) { return (envoy_api_v2_auth_CommonTlsContext_validation_context_type_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(20, 40), int32_t); } |
||||
|
||||
UPB_INLINE bool envoy_api_v2_auth_CommonTlsContext_has_tls_params(const envoy_api_v2_auth_CommonTlsContext *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); } |
||||
UPB_INLINE const struct envoy_api_v2_auth_TlsParameters* envoy_api_v2_auth_CommonTlsContext_tls_params(const envoy_api_v2_auth_CommonTlsContext *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), const struct envoy_api_v2_auth_TlsParameters*); } |
||||
UPB_INLINE bool envoy_api_v2_auth_CommonTlsContext_has_tls_certificates(const envoy_api_v2_auth_CommonTlsContext *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8)); } |
||||
UPB_INLINE const struct envoy_api_v2_auth_TlsCertificate* const* envoy_api_v2_auth_CommonTlsContext_tls_certificates(const envoy_api_v2_auth_CommonTlsContext *msg, size_t *len) { return (const struct envoy_api_v2_auth_TlsCertificate* const*)_upb_array_accessor(msg, UPB_SIZE(4, 8), len); } |
||||
UPB_INLINE bool envoy_api_v2_auth_CommonTlsContext_has_validation_context(const envoy_api_v2_auth_CommonTlsContext *msg) { return _upb_getoneofcase(msg, UPB_SIZE(20, 40)) == 3; } |
||||
UPB_INLINE const struct envoy_api_v2_auth_CertificateValidationContext* envoy_api_v2_auth_CommonTlsContext_validation_context(const envoy_api_v2_auth_CommonTlsContext *msg) { return UPB_READ_ONEOF(msg, const struct envoy_api_v2_auth_CertificateValidationContext*, UPB_SIZE(16, 32), UPB_SIZE(20, 40), 3, NULL); } |
||||
UPB_INLINE upb_strview const* envoy_api_v2_auth_CommonTlsContext_alpn_protocols(const envoy_api_v2_auth_CommonTlsContext *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(8, 16), len); } |
||||
UPB_INLINE bool envoy_api_v2_auth_CommonTlsContext_has_tls_certificate_sds_secret_configs(const envoy_api_v2_auth_CommonTlsContext *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(12, 24)); } |
||||
UPB_INLINE const struct envoy_api_v2_auth_SdsSecretConfig* const* envoy_api_v2_auth_CommonTlsContext_tls_certificate_sds_secret_configs(const envoy_api_v2_auth_CommonTlsContext *msg, size_t *len) { return (const struct envoy_api_v2_auth_SdsSecretConfig* const*)_upb_array_accessor(msg, UPB_SIZE(12, 24), len); } |
||||
UPB_INLINE bool envoy_api_v2_auth_CommonTlsContext_has_validation_context_sds_secret_config(const envoy_api_v2_auth_CommonTlsContext *msg) { return _upb_getoneofcase(msg, UPB_SIZE(20, 40)) == 7; } |
||||
UPB_INLINE const struct envoy_api_v2_auth_SdsSecretConfig* envoy_api_v2_auth_CommonTlsContext_validation_context_sds_secret_config(const envoy_api_v2_auth_CommonTlsContext *msg) { return UPB_READ_ONEOF(msg, const struct envoy_api_v2_auth_SdsSecretConfig*, UPB_SIZE(16, 32), UPB_SIZE(20, 40), 7, NULL); } |
||||
UPB_INLINE bool envoy_api_v2_auth_CommonTlsContext_has_combined_validation_context(const envoy_api_v2_auth_CommonTlsContext *msg) { return _upb_getoneofcase(msg, UPB_SIZE(20, 40)) == 8; } |
||||
UPB_INLINE const envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext* envoy_api_v2_auth_CommonTlsContext_combined_validation_context(const envoy_api_v2_auth_CommonTlsContext *msg) { return UPB_READ_ONEOF(msg, const envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext*, UPB_SIZE(16, 32), UPB_SIZE(20, 40), 8, NULL); } |
||||
|
||||
UPB_INLINE void envoy_api_v2_auth_CommonTlsContext_set_tls_params(envoy_api_v2_auth_CommonTlsContext *msg, struct envoy_api_v2_auth_TlsParameters* value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), struct envoy_api_v2_auth_TlsParameters*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_auth_TlsParameters* envoy_api_v2_auth_CommonTlsContext_mutable_tls_params(envoy_api_v2_auth_CommonTlsContext *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_auth_TlsParameters* sub = (struct envoy_api_v2_auth_TlsParameters*)envoy_api_v2_auth_CommonTlsContext_tls_params(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_api_v2_auth_TlsParameters*)_upb_msg_new(&envoy_api_v2_auth_TlsParameters_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_CommonTlsContext_set_tls_params(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_auth_TlsCertificate** envoy_api_v2_auth_CommonTlsContext_mutable_tls_certificates(envoy_api_v2_auth_CommonTlsContext *msg, size_t *len) { |
||||
return (struct envoy_api_v2_auth_TlsCertificate**)_upb_array_mutable_accessor(msg, UPB_SIZE(4, 8), len); |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_auth_TlsCertificate** envoy_api_v2_auth_CommonTlsContext_resize_tls_certificates(envoy_api_v2_auth_CommonTlsContext *msg, size_t len, upb_arena *arena) { |
||||
return (struct envoy_api_v2_auth_TlsCertificate**)_upb_array_resize_accessor(msg, UPB_SIZE(4, 8), len, UPB_TYPE_MESSAGE, arena); |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_auth_TlsCertificate* envoy_api_v2_auth_CommonTlsContext_add_tls_certificates(envoy_api_v2_auth_CommonTlsContext *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_auth_TlsCertificate* sub = (struct envoy_api_v2_auth_TlsCertificate*)_upb_msg_new(&envoy_api_v2_auth_TlsCertificate_msginit, arena); |
||||
bool ok = _upb_array_append_accessor( |
||||
msg, UPB_SIZE(4, 8), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena); |
||||
if (!ok) return NULL; |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_CommonTlsContext_set_validation_context(envoy_api_v2_auth_CommonTlsContext *msg, struct envoy_api_v2_auth_CertificateValidationContext* value) { |
||||
UPB_WRITE_ONEOF(msg, struct envoy_api_v2_auth_CertificateValidationContext*, UPB_SIZE(16, 32), value, UPB_SIZE(20, 40), 3); |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_auth_CertificateValidationContext* envoy_api_v2_auth_CommonTlsContext_mutable_validation_context(envoy_api_v2_auth_CommonTlsContext *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_auth_CertificateValidationContext* sub = (struct envoy_api_v2_auth_CertificateValidationContext*)envoy_api_v2_auth_CommonTlsContext_validation_context(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_api_v2_auth_CertificateValidationContext*)_upb_msg_new(&envoy_api_v2_auth_CertificateValidationContext_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_CommonTlsContext_set_validation_context(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE upb_strview* envoy_api_v2_auth_CommonTlsContext_mutable_alpn_protocols(envoy_api_v2_auth_CommonTlsContext *msg, size_t *len) { |
||||
return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(8, 16), len); |
||||
} |
||||
UPB_INLINE upb_strview* envoy_api_v2_auth_CommonTlsContext_resize_alpn_protocols(envoy_api_v2_auth_CommonTlsContext *msg, size_t len, upb_arena *arena) { |
||||
return (upb_strview*)_upb_array_resize_accessor(msg, UPB_SIZE(8, 16), len, UPB_TYPE_STRING, arena); |
||||
} |
||||
UPB_INLINE bool envoy_api_v2_auth_CommonTlsContext_add_alpn_protocols(envoy_api_v2_auth_CommonTlsContext *msg, upb_strview val, upb_arena *arena) { |
||||
return _upb_array_append_accessor(msg, UPB_SIZE(8, 16), UPB_SIZE(8, 16), UPB_TYPE_STRING, &val, |
||||
arena); |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_auth_SdsSecretConfig** envoy_api_v2_auth_CommonTlsContext_mutable_tls_certificate_sds_secret_configs(envoy_api_v2_auth_CommonTlsContext *msg, size_t *len) { |
||||
return (struct envoy_api_v2_auth_SdsSecretConfig**)_upb_array_mutable_accessor(msg, UPB_SIZE(12, 24), len); |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_auth_SdsSecretConfig** envoy_api_v2_auth_CommonTlsContext_resize_tls_certificate_sds_secret_configs(envoy_api_v2_auth_CommonTlsContext *msg, size_t len, upb_arena *arena) { |
||||
return (struct envoy_api_v2_auth_SdsSecretConfig**)_upb_array_resize_accessor(msg, UPB_SIZE(12, 24), len, UPB_TYPE_MESSAGE, arena); |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_auth_SdsSecretConfig* envoy_api_v2_auth_CommonTlsContext_add_tls_certificate_sds_secret_configs(envoy_api_v2_auth_CommonTlsContext *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_auth_SdsSecretConfig* sub = (struct envoy_api_v2_auth_SdsSecretConfig*)_upb_msg_new(&envoy_api_v2_auth_SdsSecretConfig_msginit, arena); |
||||
bool ok = _upb_array_append_accessor( |
||||
msg, UPB_SIZE(12, 24), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena); |
||||
if (!ok) return NULL; |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_CommonTlsContext_set_validation_context_sds_secret_config(envoy_api_v2_auth_CommonTlsContext *msg, struct envoy_api_v2_auth_SdsSecretConfig* value) { |
||||
UPB_WRITE_ONEOF(msg, struct envoy_api_v2_auth_SdsSecretConfig*, UPB_SIZE(16, 32), value, UPB_SIZE(20, 40), 7); |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_auth_SdsSecretConfig* envoy_api_v2_auth_CommonTlsContext_mutable_validation_context_sds_secret_config(envoy_api_v2_auth_CommonTlsContext *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_auth_SdsSecretConfig* sub = (struct envoy_api_v2_auth_SdsSecretConfig*)envoy_api_v2_auth_CommonTlsContext_validation_context_sds_secret_config(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_api_v2_auth_SdsSecretConfig*)_upb_msg_new(&envoy_api_v2_auth_SdsSecretConfig_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_CommonTlsContext_set_validation_context_sds_secret_config(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_CommonTlsContext_set_combined_validation_context(envoy_api_v2_auth_CommonTlsContext *msg, envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext* value) { |
||||
UPB_WRITE_ONEOF(msg, envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext*, UPB_SIZE(16, 32), value, UPB_SIZE(20, 40), 8); |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext* envoy_api_v2_auth_CommonTlsContext_mutable_combined_validation_context(envoy_api_v2_auth_CommonTlsContext *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext* sub = (struct envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext*)envoy_api_v2_auth_CommonTlsContext_combined_validation_context(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext*)_upb_msg_new(&envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_CommonTlsContext_set_combined_validation_context(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
/* envoy.api.v2.auth.CommonTlsContext.CombinedCertificateValidationContext */ |
||||
|
||||
UPB_INLINE envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext *envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_new(upb_arena *arena) { |
||||
return (envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext *)_upb_msg_new(&envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext *envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext *ret = envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_new(arena); |
||||
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_msginit, arena)) ? ret : NULL; |
||||
} |
||||
UPB_INLINE char *envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_serialize(const envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_has_default_validation_context(const envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); } |
||||
UPB_INLINE const struct envoy_api_v2_auth_CertificateValidationContext* envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_default_validation_context(const envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), const struct envoy_api_v2_auth_CertificateValidationContext*); } |
||||
UPB_INLINE bool envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_has_validation_context_sds_secret_config(const envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8)); } |
||||
UPB_INLINE const struct envoy_api_v2_auth_SdsSecretConfig* envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_validation_context_sds_secret_config(const envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct envoy_api_v2_auth_SdsSecretConfig*); } |
||||
|
||||
UPB_INLINE void envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_set_default_validation_context(envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext *msg, struct envoy_api_v2_auth_CertificateValidationContext* value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), struct envoy_api_v2_auth_CertificateValidationContext*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_auth_CertificateValidationContext* envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_mutable_default_validation_context(envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_auth_CertificateValidationContext* sub = (struct envoy_api_v2_auth_CertificateValidationContext*)envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_default_validation_context(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_api_v2_auth_CertificateValidationContext*)_upb_msg_new(&envoy_api_v2_auth_CertificateValidationContext_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_set_default_validation_context(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_set_validation_context_sds_secret_config(envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext *msg, struct envoy_api_v2_auth_SdsSecretConfig* value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct envoy_api_v2_auth_SdsSecretConfig*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_api_v2_auth_SdsSecretConfig* envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_mutable_validation_context_sds_secret_config(envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext *msg, upb_arena *arena) { |
||||
struct envoy_api_v2_auth_SdsSecretConfig* sub = (struct envoy_api_v2_auth_SdsSecretConfig*)envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_validation_context_sds_secret_config(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_api_v2_auth_SdsSecretConfig*)_upb_msg_new(&envoy_api_v2_auth_SdsSecretConfig_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_api_v2_auth_CommonTlsContext_CombinedCertificateValidationContext_set_validation_context_sds_secret_config(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_API_V2_AUTH_TLS_PROTO_UPB_H_ */ |
@ -1,52 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/api/v2/cds.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_API_V2_CDS_PROTO_UPB_H_ |
||||
#define ENVOY_API_V2_CDS_PROTO_UPB_H_ |
||||
|
||||
#include "upb/msg.h" |
||||
#include "upb/decode.h" |
||||
#include "upb/encode.h" |
||||
|
||||
/* Public Imports. */ |
||||
#include "envoy/api/v2/cluster.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
struct envoy_api_v2_CdsDummy; |
||||
typedef struct envoy_api_v2_CdsDummy envoy_api_v2_CdsDummy; |
||||
extern const upb_msglayout envoy_api_v2_CdsDummy_msginit; |
||||
|
||||
|
||||
/* envoy.api.v2.CdsDummy */ |
||||
|
||||
UPB_INLINE envoy_api_v2_CdsDummy *envoy_api_v2_CdsDummy_new(upb_arena *arena) { |
||||
return (envoy_api_v2_CdsDummy *)_upb_msg_new(&envoy_api_v2_CdsDummy_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_api_v2_CdsDummy *envoy_api_v2_CdsDummy_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_api_v2_CdsDummy *ret = envoy_api_v2_CdsDummy_new(arena); |
||||
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_CdsDummy_msginit, arena)) ? ret : NULL; |
||||
} |
||||
UPB_INLINE char *envoy_api_v2_CdsDummy_serialize(const envoy_api_v2_CdsDummy *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_api_v2_CdsDummy_msginit, arena, len); |
||||
} |
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_API_V2_CDS_PROTO_UPB_H_ */ |
@ -1,403 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/api/v2/cluster.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg.h" |
||||
#include "envoy/api/v2/cluster.upb.h" |
||||
#include "envoy/api/v2/auth/tls.upb.h" |
||||
#include "envoy/api/v2/cluster/circuit_breaker.upb.h" |
||||
#include "envoy/api/v2/cluster/filter.upb.h" |
||||
#include "envoy/api/v2/cluster/outlier_detection.upb.h" |
||||
#include "envoy/api/v2/core/address.upb.h" |
||||
#include "envoy/api/v2/core/base.upb.h" |
||||
#include "envoy/api/v2/core/config_source.upb.h" |
||||
#include "envoy/api/v2/core/health_check.upb.h" |
||||
#include "envoy/api/v2/core/protocol.upb.h" |
||||
#include "envoy/api/v2/endpoint.upb.h" |
||||
#include "envoy/type/percent.upb.h" |
||||
#include "google/protobuf/any.upb.h" |
||||
#include "google/protobuf/duration.upb.h" |
||||
#include "google/protobuf/struct.upb.h" |
||||
#include "google/protobuf/wrappers.upb.h" |
||||
#include "envoy/annotations/deprecation.upb.h" |
||||
#include "udpa/annotations/migrate.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_Cluster_submsgs[34] = { |
||||
&envoy_api_v2_Cluster_CommonLbConfig_msginit, |
||||
&envoy_api_v2_Cluster_CustomClusterType_msginit, |
||||
&envoy_api_v2_Cluster_EdsClusterConfig_msginit, |
||||
&envoy_api_v2_Cluster_ExtensionProtocolOptionsEntry_msginit, |
||||
&envoy_api_v2_Cluster_LbSubsetConfig_msginit, |
||||
&envoy_api_v2_Cluster_LeastRequestLbConfig_msginit, |
||||
&envoy_api_v2_Cluster_OriginalDstLbConfig_msginit, |
||||
&envoy_api_v2_Cluster_RefreshRate_msginit, |
||||
&envoy_api_v2_Cluster_RingHashLbConfig_msginit, |
||||
&envoy_api_v2_Cluster_TransportSocketMatch_msginit, |
||||
&envoy_api_v2_Cluster_TypedExtensionProtocolOptionsEntry_msginit, |
||||
&envoy_api_v2_ClusterLoadAssignment_msginit, |
||||
&envoy_api_v2_LoadBalancingPolicy_msginit, |
||||
&envoy_api_v2_UpstreamConnectionOptions_msginit, |
||||
&envoy_api_v2_auth_UpstreamTlsContext_msginit, |
||||
&envoy_api_v2_cluster_CircuitBreakers_msginit, |
||||
&envoy_api_v2_cluster_Filter_msginit, |
||||
&envoy_api_v2_cluster_OutlierDetection_msginit, |
||||
&envoy_api_v2_core_Address_msginit, |
||||
&envoy_api_v2_core_BindConfig_msginit, |
||||
&envoy_api_v2_core_ConfigSource_msginit, |
||||
&envoy_api_v2_core_HealthCheck_msginit, |
||||
&envoy_api_v2_core_Http1ProtocolOptions_msginit, |
||||
&envoy_api_v2_core_Http2ProtocolOptions_msginit, |
||||
&envoy_api_v2_core_HttpProtocolOptions_msginit, |
||||
&envoy_api_v2_core_Metadata_msginit, |
||||
&envoy_api_v2_core_TransportSocket_msginit, |
||||
&envoy_api_v2_core_UpstreamHttpProtocolOptions_msginit, |
||||
&google_protobuf_Duration_msginit, |
||||
&google_protobuf_UInt32Value_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_Cluster__fields[45] = { |
||||
{1, UPB_SIZE(32, 32), 0, 0, 9, 1}, |
||||
{2, UPB_SIZE(168, 304), UPB_SIZE(-177, -313), 0, 14, 1}, |
||||
{3, UPB_SIZE(48, 64), 0, 2, 11, 1}, |
||||
{4, UPB_SIZE(52, 72), 0, 28, 11, 1}, |
||||
{5, UPB_SIZE(56, 80), 0, 29, 11, 1}, |
||||
{6, UPB_SIZE(0, 0), 0, 0, 14, 1}, |
||||
{7, UPB_SIZE(140, 248), 0, 18, 11, 3}, |
||||
{8, UPB_SIZE(144, 256), 0, 21, 11, 3}, |
||||
{9, UPB_SIZE(60, 88), 0, 29, 11, 1}, |
||||
{10, UPB_SIZE(64, 96), 0, 15, 11, 1}, |
||||
{11, UPB_SIZE(68, 104), 0, 14, 11, 1}, |
||||
{13, UPB_SIZE(72, 112), 0, 22, 11, 1}, |
||||
{14, UPB_SIZE(76, 120), 0, 23, 11, 1}, |
||||
{16, UPB_SIZE(80, 128), 0, 28, 11, 1}, |
||||
{17, UPB_SIZE(8, 8), 0, 0, 14, 1}, |
||||
{18, UPB_SIZE(148, 264), 0, 18, 11, 3}, |
||||
{19, UPB_SIZE(84, 136), 0, 17, 11, 1}, |
||||
{20, UPB_SIZE(88, 144), 0, 28, 11, 1}, |
||||
{21, UPB_SIZE(92, 152), 0, 19, 11, 1}, |
||||
{22, UPB_SIZE(96, 160), 0, 4, 11, 1}, |
||||
{23, UPB_SIZE(180, 320), UPB_SIZE(-185, -329), 8, 11, 1}, |
||||
{24, UPB_SIZE(100, 168), 0, 26, 11, 1}, |
||||
{25, UPB_SIZE(104, 176), 0, 25, 11, 1}, |
||||
{26, UPB_SIZE(16, 16), 0, 0, 14, 1}, |
||||
{27, UPB_SIZE(108, 184), 0, 0, 11, 1}, |
||||
{28, UPB_SIZE(40, 48), 0, 0, 9, 1}, |
||||
{29, UPB_SIZE(112, 192), 0, 24, 11, 1}, |
||||
{30, UPB_SIZE(116, 200), 0, 13, 11, 1}, |
||||
{31, UPB_SIZE(24, 24), 0, 0, 8, 1}, |
||||
{32, UPB_SIZE(25, 25), 0, 0, 8, 1}, |
||||
{33, UPB_SIZE(120, 208), 0, 11, 11, 1}, |
||||
{34, UPB_SIZE(180, 320), UPB_SIZE(-185, -329), 6, 11, 1}, |
||||
{35, UPB_SIZE(152, 272), 0, 3, 11, _UPB_LABEL_MAP}, |
||||
{36, UPB_SIZE(156, 280), 0, 10, 11, _UPB_LABEL_MAP}, |
||||
{37, UPB_SIZE(180, 320), UPB_SIZE(-185, -329), 5, 11, 1}, |
||||
{38, UPB_SIZE(168, 304), UPB_SIZE(-177, -313), 1, 11, 1}, |
||||
{39, UPB_SIZE(26, 26), 0, 0, 8, 1}, |
||||
{40, UPB_SIZE(160, 288), 0, 16, 11, 3}, |
||||
{41, UPB_SIZE(124, 216), 0, 12, 11, 1}, |
||||
{42, UPB_SIZE(128, 224), 0, 20, 11, 1}, |
||||
{43, UPB_SIZE(164, 296), 0, 9, 11, 3}, |
||||
{44, UPB_SIZE(132, 232), 0, 7, 11, 1}, |
||||
{45, UPB_SIZE(27, 27), 0, 0, 8, 1}, |
||||
{46, UPB_SIZE(136, 240), 0, 27, 11, 1}, |
||||
{47, UPB_SIZE(28, 28), 0, 0, 8, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_Cluster_msginit = { |
||||
&envoy_api_v2_Cluster_submsgs[0], |
||||
&envoy_api_v2_Cluster__fields[0], |
||||
UPB_SIZE(192, 336), 45, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_Cluster_TransportSocketMatch_submsgs[2] = { |
||||
&envoy_api_v2_core_TransportSocket_msginit, |
||||
&google_protobuf_Struct_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_Cluster_TransportSocketMatch__fields[3] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 9, 1}, |
||||
{2, UPB_SIZE(8, 16), 0, 1, 11, 1}, |
||||
{3, UPB_SIZE(12, 24), 0, 0, 11, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_Cluster_TransportSocketMatch_msginit = { |
||||
&envoy_api_v2_Cluster_TransportSocketMatch_submsgs[0], |
||||
&envoy_api_v2_Cluster_TransportSocketMatch__fields[0], |
||||
UPB_SIZE(16, 32), 3, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_Cluster_CustomClusterType_submsgs[1] = { |
||||
&google_protobuf_Any_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_Cluster_CustomClusterType__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 9, 1}, |
||||
{2, UPB_SIZE(8, 16), 0, 0, 11, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_Cluster_CustomClusterType_msginit = { |
||||
&envoy_api_v2_Cluster_CustomClusterType_submsgs[0], |
||||
&envoy_api_v2_Cluster_CustomClusterType__fields[0], |
||||
UPB_SIZE(16, 32), 2, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_Cluster_EdsClusterConfig_submsgs[1] = { |
||||
&envoy_api_v2_core_ConfigSource_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_Cluster_EdsClusterConfig__fields[2] = { |
||||
{1, UPB_SIZE(8, 16), 0, 0, 11, 1}, |
||||
{2, UPB_SIZE(0, 0), 0, 0, 9, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_Cluster_EdsClusterConfig_msginit = { |
||||
&envoy_api_v2_Cluster_EdsClusterConfig_submsgs[0], |
||||
&envoy_api_v2_Cluster_EdsClusterConfig__fields[0], |
||||
UPB_SIZE(16, 32), 2, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_Cluster_LbSubsetConfig_submsgs[2] = { |
||||
&envoy_api_v2_Cluster_LbSubsetConfig_LbSubsetSelector_msginit, |
||||
&google_protobuf_Struct_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_Cluster_LbSubsetConfig__fields[7] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 14, 1}, |
||||
{2, UPB_SIZE(12, 16), 0, 1, 11, 1}, |
||||
{3, UPB_SIZE(16, 24), 0, 0, 11, 3}, |
||||
{4, UPB_SIZE(8, 8), 0, 0, 8, 1}, |
||||
{5, UPB_SIZE(9, 9), 0, 0, 8, 1}, |
||||
{6, UPB_SIZE(10, 10), 0, 0, 8, 1}, |
||||
{7, UPB_SIZE(11, 11), 0, 0, 8, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_Cluster_LbSubsetConfig_msginit = { |
||||
&envoy_api_v2_Cluster_LbSubsetConfig_submsgs[0], |
||||
&envoy_api_v2_Cluster_LbSubsetConfig__fields[0], |
||||
UPB_SIZE(24, 32), 7, false, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_Cluster_LbSubsetConfig_LbSubsetSelector__fields[3] = { |
||||
{1, UPB_SIZE(8, 8), 0, 0, 9, 3}, |
||||
{2, UPB_SIZE(0, 0), 0, 0, 14, 1}, |
||||
{3, UPB_SIZE(12, 16), 0, 0, 9, 3}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_Cluster_LbSubsetConfig_LbSubsetSelector_msginit = { |
||||
NULL, |
||||
&envoy_api_v2_Cluster_LbSubsetConfig_LbSubsetSelector__fields[0], |
||||
UPB_SIZE(16, 24), 3, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_Cluster_LeastRequestLbConfig_submsgs[1] = { |
||||
&google_protobuf_UInt32Value_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_Cluster_LeastRequestLbConfig__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_Cluster_LeastRequestLbConfig_msginit = { |
||||
&envoy_api_v2_Cluster_LeastRequestLbConfig_submsgs[0], |
||||
&envoy_api_v2_Cluster_LeastRequestLbConfig__fields[0], |
||||
UPB_SIZE(4, 8), 1, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_Cluster_RingHashLbConfig_submsgs[2] = { |
||||
&google_protobuf_UInt64Value_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_Cluster_RingHashLbConfig__fields[3] = { |
||||
{1, UPB_SIZE(8, 8), 0, 0, 11, 1}, |
||||
{3, UPB_SIZE(0, 0), 0, 0, 14, 1}, |
||||
{4, UPB_SIZE(12, 16), 0, 0, 11, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_Cluster_RingHashLbConfig_msginit = { |
||||
&envoy_api_v2_Cluster_RingHashLbConfig_submsgs[0], |
||||
&envoy_api_v2_Cluster_RingHashLbConfig__fields[0], |
||||
UPB_SIZE(16, 24), 3, false, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_Cluster_OriginalDstLbConfig__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 8, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_Cluster_OriginalDstLbConfig_msginit = { |
||||
NULL, |
||||
&envoy_api_v2_Cluster_OriginalDstLbConfig__fields[0], |
||||
UPB_SIZE(1, 1), 1, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_Cluster_CommonLbConfig_submsgs[5] = { |
||||
&envoy_api_v2_Cluster_CommonLbConfig_ConsistentHashingLbConfig_msginit, |
||||
&envoy_api_v2_Cluster_CommonLbConfig_LocalityWeightedLbConfig_msginit, |
||||
&envoy_api_v2_Cluster_CommonLbConfig_ZoneAwareLbConfig_msginit, |
||||
&envoy_type_Percent_msginit, |
||||
&google_protobuf_Duration_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_Cluster_CommonLbConfig__fields[7] = { |
||||
{1, UPB_SIZE(4, 8), 0, 3, 11, 1}, |
||||
{2, UPB_SIZE(16, 32), UPB_SIZE(-21, -41), 2, 11, 1}, |
||||
{3, UPB_SIZE(16, 32), UPB_SIZE(-21, -41), 1, 11, 1}, |
||||
{4, UPB_SIZE(8, 16), 0, 4, 11, 1}, |
||||
{5, UPB_SIZE(0, 0), 0, 0, 8, 1}, |
||||
{6, UPB_SIZE(1, 1), 0, 0, 8, 1}, |
||||
{7, UPB_SIZE(12, 24), 0, 0, 11, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_Cluster_CommonLbConfig_msginit = { |
||||
&envoy_api_v2_Cluster_CommonLbConfig_submsgs[0], |
||||
&envoy_api_v2_Cluster_CommonLbConfig__fields[0], |
||||
UPB_SIZE(24, 48), 7, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_Cluster_CommonLbConfig_ZoneAwareLbConfig_submsgs[2] = { |
||||
&envoy_type_Percent_msginit, |
||||
&google_protobuf_UInt64Value_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_Cluster_CommonLbConfig_ZoneAwareLbConfig__fields[3] = { |
||||
{1, UPB_SIZE(4, 8), 0, 0, 11, 1}, |
||||
{2, UPB_SIZE(8, 16), 0, 1, 11, 1}, |
||||
{3, UPB_SIZE(0, 0), 0, 0, 8, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_Cluster_CommonLbConfig_ZoneAwareLbConfig_msginit = { |
||||
&envoy_api_v2_Cluster_CommonLbConfig_ZoneAwareLbConfig_submsgs[0], |
||||
&envoy_api_v2_Cluster_CommonLbConfig_ZoneAwareLbConfig__fields[0], |
||||
UPB_SIZE(12, 24), 3, false, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_Cluster_CommonLbConfig_LocalityWeightedLbConfig_msginit = { |
||||
NULL, |
||||
NULL, |
||||
UPB_SIZE(0, 0), 0, false, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_Cluster_CommonLbConfig_ConsistentHashingLbConfig__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 8, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_Cluster_CommonLbConfig_ConsistentHashingLbConfig_msginit = { |
||||
NULL, |
||||
&envoy_api_v2_Cluster_CommonLbConfig_ConsistentHashingLbConfig__fields[0], |
||||
UPB_SIZE(1, 1), 1, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_Cluster_RefreshRate_submsgs[2] = { |
||||
&google_protobuf_Duration_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_Cluster_RefreshRate__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, 1}, |
||||
{2, UPB_SIZE(4, 8), 0, 0, 11, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_Cluster_RefreshRate_msginit = { |
||||
&envoy_api_v2_Cluster_RefreshRate_submsgs[0], |
||||
&envoy_api_v2_Cluster_RefreshRate__fields[0], |
||||
UPB_SIZE(8, 16), 2, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_Cluster_ExtensionProtocolOptionsEntry_submsgs[1] = { |
||||
&google_protobuf_Struct_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_Cluster_ExtensionProtocolOptionsEntry__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 9, 1}, |
||||
{2, UPB_SIZE(8, 16), 0, 0, 11, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_Cluster_ExtensionProtocolOptionsEntry_msginit = { |
||||
&envoy_api_v2_Cluster_ExtensionProtocolOptionsEntry_submsgs[0], |
||||
&envoy_api_v2_Cluster_ExtensionProtocolOptionsEntry__fields[0], |
||||
UPB_SIZE(16, 32), 2, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_Cluster_TypedExtensionProtocolOptionsEntry_submsgs[1] = { |
||||
&google_protobuf_Any_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_Cluster_TypedExtensionProtocolOptionsEntry__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 9, 1}, |
||||
{2, UPB_SIZE(8, 16), 0, 0, 11, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_Cluster_TypedExtensionProtocolOptionsEntry_msginit = { |
||||
&envoy_api_v2_Cluster_TypedExtensionProtocolOptionsEntry_submsgs[0], |
||||
&envoy_api_v2_Cluster_TypedExtensionProtocolOptionsEntry__fields[0], |
||||
UPB_SIZE(16, 32), 2, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_LoadBalancingPolicy_submsgs[1] = { |
||||
&envoy_api_v2_LoadBalancingPolicy_Policy_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_LoadBalancingPolicy__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, 3}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_LoadBalancingPolicy_msginit = { |
||||
&envoy_api_v2_LoadBalancingPolicy_submsgs[0], |
||||
&envoy_api_v2_LoadBalancingPolicy__fields[0], |
||||
UPB_SIZE(4, 8), 1, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_LoadBalancingPolicy_Policy_submsgs[2] = { |
||||
&google_protobuf_Any_msginit, |
||||
&google_protobuf_Struct_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_LoadBalancingPolicy_Policy__fields[3] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 9, 1}, |
||||
{2, UPB_SIZE(8, 16), 0, 1, 11, 1}, |
||||
{3, UPB_SIZE(12, 24), 0, 0, 11, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_LoadBalancingPolicy_Policy_msginit = { |
||||
&envoy_api_v2_LoadBalancingPolicy_Policy_submsgs[0], |
||||
&envoy_api_v2_LoadBalancingPolicy_Policy__fields[0], |
||||
UPB_SIZE(16, 32), 3, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_UpstreamBindConfig_submsgs[1] = { |
||||
&envoy_api_v2_core_Address_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_UpstreamBindConfig__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_UpstreamBindConfig_msginit = { |
||||
&envoy_api_v2_UpstreamBindConfig_submsgs[0], |
||||
&envoy_api_v2_UpstreamBindConfig__fields[0], |
||||
UPB_SIZE(4, 8), 1, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_UpstreamConnectionOptions_submsgs[1] = { |
||||
&envoy_api_v2_core_TcpKeepalive_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_UpstreamConnectionOptions__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_UpstreamConnectionOptions_msginit = { |
||||
&envoy_api_v2_UpstreamConnectionOptions_submsgs[0], |
||||
&envoy_api_v2_UpstreamConnectionOptions__fields[0], |
||||
UPB_SIZE(4, 8), 1, false, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,74 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/api/v2/cluster/circuit_breaker.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg.h" |
||||
#include "envoy/api/v2/cluster/circuit_breaker.upb.h" |
||||
#include "envoy/api/v2/core/base.upb.h" |
||||
#include "envoy/type/percent.upb.h" |
||||
#include "google/protobuf/wrappers.upb.h" |
||||
#include "udpa/annotations/migrate.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_cluster_CircuitBreakers_submsgs[1] = { |
||||
&envoy_api_v2_cluster_CircuitBreakers_Thresholds_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_cluster_CircuitBreakers__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, 3}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_cluster_CircuitBreakers_msginit = { |
||||
&envoy_api_v2_cluster_CircuitBreakers_submsgs[0], |
||||
&envoy_api_v2_cluster_CircuitBreakers__fields[0], |
||||
UPB_SIZE(4, 8), 1, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_cluster_CircuitBreakers_Thresholds_submsgs[6] = { |
||||
&envoy_api_v2_cluster_CircuitBreakers_Thresholds_RetryBudget_msginit, |
||||
&google_protobuf_UInt32Value_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_cluster_CircuitBreakers_Thresholds__fields[8] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 14, 1}, |
||||
{2, UPB_SIZE(12, 16), 0, 1, 11, 1}, |
||||
{3, UPB_SIZE(16, 24), 0, 1, 11, 1}, |
||||
{4, UPB_SIZE(20, 32), 0, 1, 11, 1}, |
||||
{5, UPB_SIZE(24, 40), 0, 1, 11, 1}, |
||||
{6, UPB_SIZE(8, 8), 0, 0, 8, 1}, |
||||
{7, UPB_SIZE(28, 48), 0, 1, 11, 1}, |
||||
{8, UPB_SIZE(32, 56), 0, 0, 11, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_cluster_CircuitBreakers_Thresholds_msginit = { |
||||
&envoy_api_v2_cluster_CircuitBreakers_Thresholds_submsgs[0], |
||||
&envoy_api_v2_cluster_CircuitBreakers_Thresholds__fields[0], |
||||
UPB_SIZE(40, 64), 8, false, |
||||
}; |
||||
|
||||
static const upb_msglayout *const envoy_api_v2_cluster_CircuitBreakers_Thresholds_RetryBudget_submsgs[2] = { |
||||
&envoy_type_Percent_msginit, |
||||
&google_protobuf_UInt32Value_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_api_v2_cluster_CircuitBreakers_Thresholds_RetryBudget__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, 1}, |
||||
{2, UPB_SIZE(4, 8), 0, 1, 11, 1}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_api_v2_cluster_CircuitBreakers_Thresholds_RetryBudget_msginit = { |
||||
&envoy_api_v2_cluster_CircuitBreakers_Thresholds_RetryBudget_submsgs[0], |
||||
&envoy_api_v2_cluster_CircuitBreakers_Thresholds_RetryBudget__fields[0], |
||||
UPB_SIZE(8, 16), 2, false, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue