aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Protos/cpp/google/api/annotations.pb.cc
diff options
context:
space:
mode:
authorGravatar rsgowman <rgowman@google.com>2018-04-24 11:31:58 -0400
committerGravatar GitHub <noreply@github.com>2018-04-24 11:31:58 -0400
commit6dfc142888410ef6906970d8cb90f69c0992852a (patch)
tree72b1287cc6143f1d005d03cb710c60a9f3414fd8 /Firestore/Protos/cpp/google/api/annotations.pb.cc
parenta04e782db87b86bacc6a232fae38dcd8d203f5b6 (diff)
Adjust serializer test to verify via libprotobuf. (#1039)
Previously, the tests would compare serialization results against a precomputed (via protoc) array of bytes. Now they serialize via our nanopb based class and deserialize via libprotobuf (and vice versa) and then ensure the result is the same as the input
Diffstat (limited to 'Firestore/Protos/cpp/google/api/annotations.pb.cc')
-rw-r--r--Firestore/Protos/cpp/google/api/annotations.pb.cc106
1 files changed, 106 insertions, 0 deletions
diff --git a/Firestore/Protos/cpp/google/api/annotations.pb.cc b/Firestore/Protos/cpp/google/api/annotations.pb.cc
new file mode 100644
index 0000000..bfc3456
--- /dev/null
+++ b/Firestore/Protos/cpp/google/api/annotations.pb.cc
@@ -0,0 +1,106 @@
+/*
+ * Copyright 2018 Google
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/api/annotations.proto
+
+#include "google/api/annotations.pb.h"
+
+#include <algorithm>
+
+#include <google/protobuf/stubs/common.h>
+#include <google/protobuf/stubs/port.h>
+#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/wire_format_lite_inl.h>
+#include <google/protobuf/descriptor.h>
+#include <google/protobuf/generated_message_reflection.h>
+#include <google/protobuf/reflection_ops.h>
+#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
+// @@protoc_insertion_point(includes)
+namespace google {
+namespace api {
+} // namespace api
+} // namespace google
+namespace protobuf_google_2fapi_2fannotations_2eproto {
+const ::google::protobuf::uint32 TableStruct::offsets[1] = {};
+static const ::google::protobuf::internal::MigrationSchema* schemas = NULL;
+static const ::google::protobuf::Message* const* file_default_instances = NULL;
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ ::google::protobuf::MessageFactory* factory = NULL;
+ AssignDescriptors(
+ "google/api/annotations.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+ NULL, NULL, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\034google/api/annotations.proto\022\ngoogle.a"
+ "pi\032\025google/api/http.proto\032 google/protob"
+ "uf/descriptor.proto:E\n\004http\022\036.google.pro"
+ "tobuf.MethodOptions\030\260\312\274\" \001(\0132\024.google.ap"
+ "i.HttpRuleBn\n\016com.google.apiB\020Annotation"
+ "sProtoP\001ZAgoogle.golang.org/genproto/goo"
+ "gleapis/api/annotations;annotations\242\002\004GA"
+ "PIb\006proto3"
+ };
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
+ descriptor, 290);
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
+ "google/api/annotations.proto", &protobuf_RegisterTypes);
+ ::protobuf_google_2fapi_2fhttp_2eproto::AddDescriptors();
+ ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::AddDescriptors();
+}
+
+void AddDescriptors() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_google_2fapi_2fannotations_2eproto
+namespace google {
+namespace api {
+::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,
+ ::google::protobuf::internal::MessageTypeTraits< ::google::api::HttpRule >, 11, false >
+ http(kHttpFieldNumber, *::google::api::HttpRule::internal_default_instance());
+
+// @@protoc_insertion_point(namespace_scope)
+} // namespace api
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)