aggregation_result.pb.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  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. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto
  19. #define GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto
  20. #include <limits>
  21. #include <string>
  22. #include <google/protobuf/port_def.inc>
  23. #if PROTOBUF_VERSION < 3011000
  24. #error This file was generated by a newer version of protoc which is
  25. #error incompatible with your Protocol Buffer headers. Please update
  26. #error your headers.
  27. #endif
  28. #if 3011002 < PROTOBUF_MIN_PROTOC_VERSION
  29. #error This file was generated by an older version of protoc which is
  30. #error incompatible with your Protocol Buffer headers. Please
  31. #error regenerate this file with a newer version of protoc.
  32. #endif
  33. #include <google/protobuf/port_undef.inc>
  34. #include <google/protobuf/io/coded_stream.h>
  35. #include <google/protobuf/arena.h>
  36. #include <google/protobuf/arenastring.h>
  37. #include <google/protobuf/generated_message_table_driven.h>
  38. #include <google/protobuf/generated_message_util.h>
  39. #include <google/protobuf/inlined_string_field.h>
  40. #include <google/protobuf/metadata.h>
  41. #include <google/protobuf/generated_message_reflection.h>
  42. #include <google/protobuf/message.h>
  43. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  44. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  45. #include <google/protobuf/map.h> // IWYU pragma: export
  46. #include <google/protobuf/map_entry.h>
  47. #include <google/protobuf/map_field_inl.h>
  48. #include <google/protobuf/unknown_field_set.h>
  49. #include "google/firestore/v1/document.pb.h"
  50. // @@protoc_insertion_point(includes)
  51. #include <google/protobuf/port_def.inc>
  52. #define PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto
  53. PROTOBUF_NAMESPACE_OPEN
  54. namespace internal {
  55. class AnyMetadata;
  56. } // namespace internal
  57. PROTOBUF_NAMESPACE_CLOSE
  58. // Internal implementation detail -- do not use these members.
  59. struct TableStruct_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto {
  60. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  61. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  62. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
  63. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  64. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2]
  65. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  66. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  67. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  68. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  69. };
  70. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto;
  71. namespace google {
  72. namespace firestore {
  73. namespace v1 {
  74. class AggregationResult;
  75. class AggregationResultDefaultTypeInternal;
  76. extern AggregationResultDefaultTypeInternal _AggregationResult_default_instance_;
  77. class AggregationResult_AggregateFieldsEntry_DoNotUse;
  78. class AggregationResult_AggregateFieldsEntry_DoNotUseDefaultTypeInternal;
  79. extern AggregationResult_AggregateFieldsEntry_DoNotUseDefaultTypeInternal _AggregationResult_AggregateFieldsEntry_DoNotUse_default_instance_;
  80. } // namespace v1
  81. } // namespace firestore
  82. } // namespace google
  83. PROTOBUF_NAMESPACE_OPEN
  84. template<> ::google::firestore::v1::AggregationResult* Arena::CreateMaybeMessage<::google::firestore::v1::AggregationResult>(Arena*);
  85. template<> ::google::firestore::v1::AggregationResult_AggregateFieldsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::firestore::v1::AggregationResult_AggregateFieldsEntry_DoNotUse>(Arena*);
  86. PROTOBUF_NAMESPACE_CLOSE
  87. namespace google {
  88. namespace firestore {
  89. namespace v1 {
  90. // ===================================================================
  91. class AggregationResult_AggregateFieldsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<AggregationResult_AggregateFieldsEntry_DoNotUse,
  92. std::string, ::google::firestore::v1::Value,
  93. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  94. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
  95. 0 > {
  96. public:
  97. typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<AggregationResult_AggregateFieldsEntry_DoNotUse,
  98. std::string, ::google::firestore::v1::Value,
  99. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  100. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
  101. 0 > SuperType;
  102. AggregationResult_AggregateFieldsEntry_DoNotUse();
  103. AggregationResult_AggregateFieldsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  104. void MergeFrom(const AggregationResult_AggregateFieldsEntry_DoNotUse& other);
  105. static const AggregationResult_AggregateFieldsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const AggregationResult_AggregateFieldsEntry_DoNotUse*>(&_AggregationResult_AggregateFieldsEntry_DoNotUse_default_instance_); }
  106. static bool ValidateKey(std::string* s) {
  107. return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "google.firestore.v1.AggregationResult.AggregateFieldsEntry.key");
  108. }
  109. static bool ValidateValue(void*) { return true; }
  110. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final;
  111. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  112. private:
  113. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  114. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto);
  115. return ::descriptor_table_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto.file_level_metadata[0];
  116. }
  117. public:
  118. };
  119. // -------------------------------------------------------------------
  120. class AggregationResult :
  121. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.AggregationResult) */ {
  122. public:
  123. AggregationResult();
  124. virtual ~AggregationResult();
  125. AggregationResult(const AggregationResult& from);
  126. AggregationResult(AggregationResult&& from) noexcept
  127. : AggregationResult() {
  128. *this = ::std::move(from);
  129. }
  130. inline AggregationResult& operator=(const AggregationResult& from) {
  131. CopyFrom(from);
  132. return *this;
  133. }
  134. inline AggregationResult& operator=(AggregationResult&& from) noexcept {
  135. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  136. if (this != &from) InternalSwap(&from);
  137. } else {
  138. CopyFrom(from);
  139. }
  140. return *this;
  141. }
  142. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  143. return GetDescriptor();
  144. }
  145. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  146. return GetMetadataStatic().descriptor;
  147. }
  148. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  149. return GetMetadataStatic().reflection;
  150. }
  151. static const AggregationResult& default_instance();
  152. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  153. static inline const AggregationResult* internal_default_instance() {
  154. return reinterpret_cast<const AggregationResult*>(
  155. &_AggregationResult_default_instance_);
  156. }
  157. static constexpr int kIndexInFileMessages =
  158. 1;
  159. friend void swap(AggregationResult& a, AggregationResult& b) {
  160. a.Swap(&b);
  161. }
  162. inline void Swap(AggregationResult* other) {
  163. if (other == this) return;
  164. InternalSwap(other);
  165. }
  166. // implements Message ----------------------------------------------
  167. inline AggregationResult* New() const final {
  168. return CreateMaybeMessage<AggregationResult>(nullptr);
  169. }
  170. AggregationResult* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  171. return CreateMaybeMessage<AggregationResult>(arena);
  172. }
  173. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  174. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  175. void CopyFrom(const AggregationResult& from);
  176. void MergeFrom(const AggregationResult& from);
  177. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  178. bool IsInitialized() const final;
  179. size_t ByteSizeLong() const final;
  180. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  181. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  182. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  183. int GetCachedSize() const final { return _cached_size_.Get(); }
  184. private:
  185. inline void SharedCtor();
  186. inline void SharedDtor();
  187. void SetCachedSize(int size) const final;
  188. void InternalSwap(AggregationResult* other);
  189. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  190. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  191. return "google.firestore.v1.AggregationResult";
  192. }
  193. private:
  194. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  195. return nullptr;
  196. }
  197. inline void* MaybeArenaPtr() const {
  198. return nullptr;
  199. }
  200. public:
  201. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  202. private:
  203. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  204. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto);
  205. return ::descriptor_table_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto.file_level_metadata[kIndexInFileMessages];
  206. }
  207. public:
  208. // nested types ----------------------------------------------------
  209. // accessors -------------------------------------------------------
  210. enum : int {
  211. kAggregateFieldsFieldNumber = 2,
  212. };
  213. // map<string, .google.firestore.v1.Value> aggregate_fields = 2;
  214. int aggregate_fields_size() const;
  215. private:
  216. int _internal_aggregate_fields_size() const;
  217. public:
  218. void clear_aggregate_fields();
  219. private:
  220. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >&
  221. _internal_aggregate_fields() const;
  222. ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >*
  223. _internal_mutable_aggregate_fields();
  224. public:
  225. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >&
  226. aggregate_fields() const;
  227. ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >*
  228. mutable_aggregate_fields();
  229. // @@protoc_insertion_point(class_scope:google.firestore.v1.AggregationResult)
  230. private:
  231. class _Internal;
  232. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  233. ::PROTOBUF_NAMESPACE_ID::internal::MapField<
  234. AggregationResult_AggregateFieldsEntry_DoNotUse,
  235. std::string, ::google::firestore::v1::Value,
  236. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  237. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
  238. 0 > aggregate_fields_;
  239. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  240. friend struct ::TableStruct_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto;
  241. };
  242. // ===================================================================
  243. // ===================================================================
  244. #ifdef __GNUC__
  245. #pragma GCC diagnostic push
  246. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  247. #endif // __GNUC__
  248. // -------------------------------------------------------------------
  249. // AggregationResult
  250. // map<string, .google.firestore.v1.Value> aggregate_fields = 2;
  251. inline int AggregationResult::_internal_aggregate_fields_size() const {
  252. return aggregate_fields_.size();
  253. }
  254. inline int AggregationResult::aggregate_fields_size() const {
  255. return _internal_aggregate_fields_size();
  256. }
  257. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >&
  258. AggregationResult::_internal_aggregate_fields() const {
  259. return aggregate_fields_.GetMap();
  260. }
  261. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >&
  262. AggregationResult::aggregate_fields() const {
  263. // @@protoc_insertion_point(field_map:google.firestore.v1.AggregationResult.aggregate_fields)
  264. return _internal_aggregate_fields();
  265. }
  266. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >*
  267. AggregationResult::_internal_mutable_aggregate_fields() {
  268. return aggregate_fields_.MutableMap();
  269. }
  270. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >*
  271. AggregationResult::mutable_aggregate_fields() {
  272. // @@protoc_insertion_point(field_mutable_map:google.firestore.v1.AggregationResult.aggregate_fields)
  273. return _internal_mutable_aggregate_fields();
  274. }
  275. #ifdef __GNUC__
  276. #pragma GCC diagnostic pop
  277. #endif // __GNUC__
  278. // -------------------------------------------------------------------
  279. // @@protoc_insertion_point(namespace_scope)
  280. } // namespace v1
  281. } // namespace firestore
  282. } // namespace google
  283. // @@protoc_insertion_point(global_scope)
  284. #include <google/protobuf/port_undef.inc>
  285. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto