aggregation_result.pb.cc 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  1. /*
  2. * Copyright 2023 Google LLC
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. // Generated by the protocol buffer compiler. DO NOT EDIT!
  17. // source: google/firestore/v1/aggregation_result.proto
  18. #include "google/firestore/v1/aggregation_result.pb.h"
  19. #include <algorithm>
  20. #include <google/protobuf/io/coded_stream.h>
  21. #include <google/protobuf/extension_set.h>
  22. #include <google/protobuf/wire_format_lite.h>
  23. #include <google/protobuf/descriptor.h>
  24. #include <google/protobuf/generated_message_reflection.h>
  25. #include <google/protobuf/reflection_ops.h>
  26. #include <google/protobuf/wire_format.h>
  27. // @@protoc_insertion_point(includes)
  28. #include <google/protobuf/port_def.inc>
  29. extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AggregationResult_AggregateFieldsEntry_DoNotUse_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto;
  30. extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fdocument_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_ArrayValue_google_2ffirestore_2fv1_2fdocument_2eproto;
  31. namespace google {
  32. namespace firestore {
  33. namespace v1 {
  34. class AggregationResult_AggregateFieldsEntry_DoNotUseDefaultTypeInternal {
  35. public:
  36. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<AggregationResult_AggregateFieldsEntry_DoNotUse> _instance;
  37. } _AggregationResult_AggregateFieldsEntry_DoNotUse_default_instance_;
  38. class AggregationResultDefaultTypeInternal {
  39. public:
  40. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<AggregationResult> _instance;
  41. } _AggregationResult_default_instance_;
  42. } // namespace v1
  43. } // namespace firestore
  44. } // namespace google
  45. static void InitDefaultsscc_info_AggregationResult_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto() {
  46. GOOGLE_PROTOBUF_VERIFY_VERSION;
  47. {
  48. void* ptr = &::google::firestore::v1::_AggregationResult_default_instance_;
  49. new (ptr) ::google::firestore::v1::AggregationResult();
  50. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  51. }
  52. ::google::firestore::v1::AggregationResult::InitAsDefaultInstance();
  53. }
  54. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AggregationResult_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto =
  55. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_AggregationResult_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto}, {
  56. &scc_info_AggregationResult_AggregateFieldsEntry_DoNotUse_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto.base,}};
  57. static void InitDefaultsscc_info_AggregationResult_AggregateFieldsEntry_DoNotUse_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto() {
  58. GOOGLE_PROTOBUF_VERIFY_VERSION;
  59. {
  60. void* ptr = &::google::firestore::v1::_AggregationResult_AggregateFieldsEntry_DoNotUse_default_instance_;
  61. new (ptr) ::google::firestore::v1::AggregationResult_AggregateFieldsEntry_DoNotUse();
  62. }
  63. ::google::firestore::v1::AggregationResult_AggregateFieldsEntry_DoNotUse::InitAsDefaultInstance();
  64. }
  65. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AggregationResult_AggregateFieldsEntry_DoNotUse_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto =
  66. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_AggregationResult_AggregateFieldsEntry_DoNotUse_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto}, {
  67. &scc_info_ArrayValue_google_2ffirestore_2fv1_2fdocument_2eproto.base,}};
  68. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto[2];
  69. static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto = nullptr;
  70. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto = nullptr;
  71. const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  72. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::AggregationResult_AggregateFieldsEntry_DoNotUse, _has_bits_),
  73. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::AggregationResult_AggregateFieldsEntry_DoNotUse, _internal_metadata_),
  74. ~0u, // no _extensions_
  75. ~0u, // no _oneof_case_
  76. ~0u, // no _weak_field_map_
  77. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::AggregationResult_AggregateFieldsEntry_DoNotUse, key_),
  78. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::AggregationResult_AggregateFieldsEntry_DoNotUse, value_),
  79. 0,
  80. 1,
  81. ~0u, // no _has_bits_
  82. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::AggregationResult, _internal_metadata_),
  83. ~0u, // no _extensions_
  84. ~0u, // no _oneof_case_
  85. ~0u, // no _weak_field_map_
  86. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::AggregationResult, aggregate_fields_),
  87. };
  88. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  89. { 0, 7, sizeof(::google::firestore::v1::AggregationResult_AggregateFieldsEntry_DoNotUse)},
  90. { 9, -1, sizeof(::google::firestore::v1::AggregationResult)},
  91. };
  92. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  93. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::google::firestore::v1::_AggregationResult_AggregateFieldsEntry_DoNotUse_default_instance_),
  94. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::google::firestore::v1::_AggregationResult_default_instance_),
  95. };
  96. const char descriptor_table_protodef_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  97. "\n,google/firestore/v1/aggregation_result"
  98. ".proto\022\023google.firestore.v1\032\"google/fire"
  99. "store/v1/document.proto\"\276\001\n\021AggregationR"
  100. "esult\022U\n\020aggregate_fields\030\002 \003(\0132;.google"
  101. ".firestore.v1.AggregationResult.Aggregat"
  102. "eFieldsEntry\032R\n\024AggregateFieldsEntry\022\013\n\003"
  103. "key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.google.firest"
  104. "ore.v1.Value:\0028\001B\317\001\n\027com.google.firestor"
  105. "e.v1B\026AggregationResultProtoP\001Z<google.g"
  106. "olang.org/genproto/googleapis/firestore/"
  107. "v1;firestore\242\002\004GCFS\252\002\031Google.Cloud.Fires"
  108. "tore.V1\312\002\031Google\\Cloud\\Firestore\\V1\352\002\034Go"
  109. "ogle::Cloud::Firestore::V1b\006proto3"
  110. ;
  111. static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto_deps[1] = {
  112. &::descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto,
  113. };
  114. static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto_sccs[2] = {
  115. &scc_info_AggregationResult_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto.base,
  116. &scc_info_AggregationResult_AggregateFieldsEntry_DoNotUse_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto.base,
  117. };
  118. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto_once;
  119. static bool descriptor_table_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto_initialized = false;
  120. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto = {
  121. &descriptor_table_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto_initialized, descriptor_table_protodef_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto, "google/firestore/v1/aggregation_result.proto", 514,
  122. &descriptor_table_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto_once, descriptor_table_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto_sccs, descriptor_table_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto_deps, 2, 1,
  123. schemas, file_default_instances, TableStruct_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto::offsets,
  124. file_level_metadata_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto, 2, file_level_enum_descriptors_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto, file_level_service_descriptors_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto,
  125. };
  126. // Force running AddDescriptors() at dynamic initialization time.
  127. static bool dynamic_init_dummy_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto), true);
  128. namespace google {
  129. namespace firestore {
  130. namespace v1 {
  131. // ===================================================================
  132. AggregationResult_AggregateFieldsEntry_DoNotUse::AggregationResult_AggregateFieldsEntry_DoNotUse() {}
  133. AggregationResult_AggregateFieldsEntry_DoNotUse::AggregationResult_AggregateFieldsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  134. : SuperType(arena) {}
  135. void AggregationResult_AggregateFieldsEntry_DoNotUse::MergeFrom(const AggregationResult_AggregateFieldsEntry_DoNotUse& other) {
  136. MergeFromInternal(other);
  137. }
  138. ::PROTOBUF_NAMESPACE_ID::Metadata AggregationResult_AggregateFieldsEntry_DoNotUse::GetMetadata() const {
  139. return GetMetadataStatic();
  140. }
  141. void AggregationResult_AggregateFieldsEntry_DoNotUse::MergeFrom(
  142. const ::PROTOBUF_NAMESPACE_ID::Message& other) {
  143. ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
  144. }
  145. // ===================================================================
  146. void AggregationResult::InitAsDefaultInstance() {
  147. }
  148. class AggregationResult::_Internal {
  149. public:
  150. };
  151. void AggregationResult::clear_aggregate_fields() {
  152. aggregate_fields_.Clear();
  153. }
  154. AggregationResult::AggregationResult()
  155. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  156. SharedCtor();
  157. // @@protoc_insertion_point(constructor:google.firestore.v1.AggregationResult)
  158. }
  159. AggregationResult::AggregationResult(const AggregationResult& from)
  160. : ::PROTOBUF_NAMESPACE_ID::Message(),
  161. _internal_metadata_(nullptr) {
  162. _internal_metadata_.MergeFrom(from._internal_metadata_);
  163. aggregate_fields_.MergeFrom(from.aggregate_fields_);
  164. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.AggregationResult)
  165. }
  166. void AggregationResult::SharedCtor() {
  167. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AggregationResult_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto.base);
  168. }
  169. AggregationResult::~AggregationResult() {
  170. // @@protoc_insertion_point(destructor:google.firestore.v1.AggregationResult)
  171. SharedDtor();
  172. }
  173. void AggregationResult::SharedDtor() {
  174. }
  175. void AggregationResult::SetCachedSize(int size) const {
  176. _cached_size_.Set(size);
  177. }
  178. const AggregationResult& AggregationResult::default_instance() {
  179. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AggregationResult_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto.base);
  180. return *internal_default_instance();
  181. }
  182. void AggregationResult::Clear() {
  183. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.AggregationResult)
  184. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  185. // Prevent compiler warnings about cached_has_bits being unused
  186. (void) cached_has_bits;
  187. aggregate_fields_.Clear();
  188. _internal_metadata_.Clear();
  189. }
  190. const char* AggregationResult::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  191. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  192. while (!ctx->Done(&ptr)) {
  193. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  194. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  195. CHK_(ptr);
  196. switch (tag >> 3) {
  197. // map<string, .google.firestore.v1.Value> aggregate_fields = 2;
  198. case 2:
  199. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
  200. ptr -= 1;
  201. do {
  202. ptr += 1;
  203. ptr = ctx->ParseMessage(&aggregate_fields_, ptr);
  204. CHK_(ptr);
  205. if (!ctx->DataAvailable(ptr)) break;
  206. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
  207. } else goto handle_unusual;
  208. continue;
  209. default: {
  210. handle_unusual:
  211. if ((tag & 7) == 4 || tag == 0) {
  212. ctx->SetLastTag(tag);
  213. goto success;
  214. }
  215. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  216. CHK_(ptr != nullptr);
  217. continue;
  218. }
  219. } // switch
  220. } // while
  221. success:
  222. return ptr;
  223. failure:
  224. ptr = nullptr;
  225. goto success;
  226. #undef CHK_
  227. }
  228. ::PROTOBUF_NAMESPACE_ID::uint8* AggregationResult::_InternalSerialize(
  229. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  230. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.AggregationResult)
  231. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  232. (void) cached_has_bits;
  233. // map<string, .google.firestore.v1.Value> aggregate_fields = 2;
  234. if (!this->_internal_aggregate_fields().empty()) {
  235. typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >::const_pointer
  236. ConstPtr;
  237. typedef ConstPtr SortItem;
  238. typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
  239. struct Utf8Check {
  240. static void Check(ConstPtr p) {
  241. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  242. p->first.data(), static_cast<int>(p->first.length()),
  243. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  244. "google.firestore.v1.AggregationResult.AggregateFieldsEntry.key");
  245. }
  246. };
  247. if (stream->IsSerializationDeterministic() &&
  248. this->_internal_aggregate_fields().size() > 1) {
  249. ::std::unique_ptr<SortItem[]> items(
  250. new SortItem[this->_internal_aggregate_fields().size()]);
  251. typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >::size_type size_type;
  252. size_type n = 0;
  253. for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >::const_iterator
  254. it = this->_internal_aggregate_fields().begin();
  255. it != this->_internal_aggregate_fields().end(); ++it, ++n) {
  256. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  257. }
  258. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  259. for (size_type i = 0; i < n; i++) {
  260. target = AggregationResult_AggregateFieldsEntry_DoNotUse::Funcs::InternalSerialize(2, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target, stream);
  261. Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)]));
  262. }
  263. } else {
  264. for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >::const_iterator
  265. it = this->_internal_aggregate_fields().begin();
  266. it != this->_internal_aggregate_fields().end(); ++it) {
  267. target = AggregationResult_AggregateFieldsEntry_DoNotUse::Funcs::InternalSerialize(2, it->first, it->second, target, stream);
  268. Utf8Check::Check(&(*it));
  269. }
  270. }
  271. }
  272. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  273. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  274. _internal_metadata_.unknown_fields(), target, stream);
  275. }
  276. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.AggregationResult)
  277. return target;
  278. }
  279. size_t AggregationResult::ByteSizeLong() const {
  280. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.AggregationResult)
  281. size_t total_size = 0;
  282. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  283. // Prevent compiler warnings about cached_has_bits being unused
  284. (void) cached_has_bits;
  285. // map<string, .google.firestore.v1.Value> aggregate_fields = 2;
  286. total_size += 1 *
  287. ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_aggregate_fields_size());
  288. for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >::const_iterator
  289. it = this->_internal_aggregate_fields().begin();
  290. it != this->_internal_aggregate_fields().end(); ++it) {
  291. total_size += AggregationResult_AggregateFieldsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
  292. }
  293. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  294. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  295. _internal_metadata_, total_size, &_cached_size_);
  296. }
  297. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  298. SetCachedSize(cached_size);
  299. return total_size;
  300. }
  301. void AggregationResult::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  302. // @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1.AggregationResult)
  303. GOOGLE_DCHECK_NE(&from, this);
  304. const AggregationResult* source =
  305. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<AggregationResult>(
  306. &from);
  307. if (source == nullptr) {
  308. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1.AggregationResult)
  309. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  310. } else {
  311. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1.AggregationResult)
  312. MergeFrom(*source);
  313. }
  314. }
  315. void AggregationResult::MergeFrom(const AggregationResult& from) {
  316. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.AggregationResult)
  317. GOOGLE_DCHECK_NE(&from, this);
  318. _internal_metadata_.MergeFrom(from._internal_metadata_);
  319. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  320. (void) cached_has_bits;
  321. aggregate_fields_.MergeFrom(from.aggregate_fields_);
  322. }
  323. void AggregationResult::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  324. // @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1.AggregationResult)
  325. if (&from == this) return;
  326. Clear();
  327. MergeFrom(from);
  328. }
  329. void AggregationResult::CopyFrom(const AggregationResult& from) {
  330. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.AggregationResult)
  331. if (&from == this) return;
  332. Clear();
  333. MergeFrom(from);
  334. }
  335. bool AggregationResult::IsInitialized() const {
  336. return true;
  337. }
  338. void AggregationResult::InternalSwap(AggregationResult* other) {
  339. using std::swap;
  340. _internal_metadata_.Swap(&other->_internal_metadata_);
  341. aggregate_fields_.Swap(&other->aggregate_fields_);
  342. }
  343. ::PROTOBUF_NAMESPACE_ID::Metadata AggregationResult::GetMetadata() const {
  344. return GetMetadataStatic();
  345. }
  346. // @@protoc_insertion_point(namespace_scope)
  347. } // namespace v1
  348. } // namespace firestore
  349. } // namespace google
  350. PROTOBUF_NAMESPACE_OPEN
  351. template<> PROTOBUF_NOINLINE ::google::firestore::v1::AggregationResult_AggregateFieldsEntry_DoNotUse* Arena::CreateMaybeMessage< ::google::firestore::v1::AggregationResult_AggregateFieldsEntry_DoNotUse >(Arena* arena) {
  352. return Arena::CreateInternal< ::google::firestore::v1::AggregationResult_AggregateFieldsEntry_DoNotUse >(arena);
  353. }
  354. template<> PROTOBUF_NOINLINE ::google::firestore::v1::AggregationResult* Arena::CreateMaybeMessage< ::google::firestore::v1::AggregationResult >(Arena* arena) {
  355. return Arena::CreateInternal< ::google::firestore::v1::AggregationResult >(arena);
  356. }
  357. PROTOBUF_NAMESPACE_CLOSE
  358. // @@protoc_insertion_point(global_scope)
  359. #include <google/protobuf/port_undef.inc>