aggregation_result.pb.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. /*
  2. * Copyright 2024 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. // Protobuf C++ Version: 4.25.1
  19. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto_2epb_2eh
  20. #define GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto_2epb_2eh
  21. #include <limits>
  22. #include <string>
  23. #include <type_traits>
  24. #include <utility>
  25. #include "google/protobuf/port_def.inc"
  26. #if PROTOBUF_VERSION < 4025000
  27. #error "This file was generated by a newer version of protoc which is"
  28. #error "incompatible with your Protocol Buffer headers. Please update"
  29. #error "your headers."
  30. #endif // PROTOBUF_VERSION
  31. #if 4025001 < PROTOBUF_MIN_PROTOC_VERSION
  32. #error "This file was generated by an older version of protoc which is"
  33. #error "incompatible with your Protocol Buffer headers. Please"
  34. #error "regenerate this file with a newer version of protoc."
  35. #endif // PROTOBUF_MIN_PROTOC_VERSION
  36. #include "google/protobuf/port_undef.inc"
  37. #include "google/protobuf/io/coded_stream.h"
  38. #include "google/protobuf/arena.h"
  39. #include "google/protobuf/arenastring.h"
  40. #include "google/protobuf/generated_message_tctable_decl.h"
  41. #include "google/protobuf/generated_message_util.h"
  42. #include "google/protobuf/metadata_lite.h"
  43. #include "google/protobuf/generated_message_reflection.h"
  44. #include "google/protobuf/message.h"
  45. #include "google/protobuf/repeated_field.h" // IWYU pragma: export
  46. #include "google/protobuf/extension_set.h" // IWYU pragma: export
  47. #include "google/protobuf/map.h" // IWYU pragma: export
  48. #include "google/protobuf/map_entry.h"
  49. #include "google/protobuf/map_field_inl.h"
  50. #include "google/protobuf/unknown_field_set.h"
  51. #include "google/firestore/v1/document.pb.h"
  52. // @@protoc_insertion_point(includes)
  53. // Must be included last.
  54. #include "google/protobuf/port_def.inc"
  55. #define PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto
  56. namespace google {
  57. namespace protobuf {
  58. namespace internal {
  59. class AnyMetadata;
  60. } // namespace internal
  61. } // namespace protobuf
  62. } // namespace google
  63. // Internal implementation detail -- do not use these members.
  64. struct TableStruct_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto {
  65. static const ::uint32_t offsets[];
  66. };
  67. extern const ::google::protobuf::internal::DescriptorTable
  68. descriptor_table_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto;
  69. namespace google {
  70. namespace firestore {
  71. namespace v1 {
  72. class AggregationResult;
  73. struct AggregationResultDefaultTypeInternal;
  74. extern AggregationResultDefaultTypeInternal _AggregationResult_default_instance_;
  75. class AggregationResult_AggregateFieldsEntry_DoNotUse;
  76. struct AggregationResult_AggregateFieldsEntry_DoNotUseDefaultTypeInternal;
  77. extern AggregationResult_AggregateFieldsEntry_DoNotUseDefaultTypeInternal _AggregationResult_AggregateFieldsEntry_DoNotUse_default_instance_;
  78. } // namespace v1
  79. } // namespace firestore
  80. namespace protobuf {
  81. } // namespace protobuf
  82. } // namespace google
  83. namespace google {
  84. namespace firestore {
  85. namespace v1 {
  86. // ===================================================================
  87. // -------------------------------------------------------------------
  88. class AggregationResult_AggregateFieldsEntry_DoNotUse final
  89. : public ::google::protobuf::internal::MapEntry<
  90. AggregationResult_AggregateFieldsEntry_DoNotUse, std::string, ::google::firestore::v1::Value,
  91. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  92. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> {
  93. public:
  94. using SuperType = ::google::protobuf::internal::MapEntry<
  95. AggregationResult_AggregateFieldsEntry_DoNotUse, std::string, ::google::firestore::v1::Value,
  96. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  97. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>;
  98. AggregationResult_AggregateFieldsEntry_DoNotUse();
  99. template <typename = void>
  100. explicit PROTOBUF_CONSTEXPR AggregationResult_AggregateFieldsEntry_DoNotUse(
  101. ::google::protobuf::internal::ConstantInitialized);
  102. explicit AggregationResult_AggregateFieldsEntry_DoNotUse(::google::protobuf::Arena* arena);
  103. static const AggregationResult_AggregateFieldsEntry_DoNotUse* internal_default_instance() {
  104. return reinterpret_cast<const AggregationResult_AggregateFieldsEntry_DoNotUse*>(
  105. &_AggregationResult_AggregateFieldsEntry_DoNotUse_default_instance_);
  106. }
  107. static bool ValidateKey(std::string* s) {
  108. return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.firestore.v1.AggregationResult.AggregateFieldsEntry.key");
  109. }
  110. static bool ValidateValue(void*) { return true; }
  111. ::google::protobuf::Metadata GetMetadata() const final;
  112. friend struct ::TableStruct_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto;
  113. };
  114. // -------------------------------------------------------------------
  115. class AggregationResult final :
  116. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.AggregationResult) */ {
  117. public:
  118. inline AggregationResult() : AggregationResult(nullptr) {}
  119. ~AggregationResult() override;
  120. template<typename = void>
  121. explicit PROTOBUF_CONSTEXPR AggregationResult(::google::protobuf::internal::ConstantInitialized);
  122. inline AggregationResult(const AggregationResult& from)
  123. : AggregationResult(nullptr, from) {}
  124. AggregationResult(AggregationResult&& from) noexcept
  125. : AggregationResult() {
  126. *this = ::std::move(from);
  127. }
  128. inline AggregationResult& operator=(const AggregationResult& from) {
  129. CopyFrom(from);
  130. return *this;
  131. }
  132. inline AggregationResult& operator=(AggregationResult&& from) noexcept {
  133. if (this == &from) return *this;
  134. if (GetArena() == from.GetArena()
  135. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  136. && GetArena() != nullptr
  137. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  138. ) {
  139. InternalSwap(&from);
  140. } else {
  141. CopyFrom(from);
  142. }
  143. return *this;
  144. }
  145. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  146. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  147. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  148. }
  149. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  150. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  151. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  152. }
  153. static const ::google::protobuf::Descriptor* descriptor() {
  154. return GetDescriptor();
  155. }
  156. static const ::google::protobuf::Descriptor* GetDescriptor() {
  157. return default_instance().GetMetadata().descriptor;
  158. }
  159. static const ::google::protobuf::Reflection* GetReflection() {
  160. return default_instance().GetMetadata().reflection;
  161. }
  162. static const AggregationResult& default_instance() {
  163. return *internal_default_instance();
  164. }
  165. static inline const AggregationResult* internal_default_instance() {
  166. return reinterpret_cast<const AggregationResult*>(
  167. &_AggregationResult_default_instance_);
  168. }
  169. static constexpr int kIndexInFileMessages =
  170. 1;
  171. friend void swap(AggregationResult& a, AggregationResult& b) {
  172. a.Swap(&b);
  173. }
  174. inline void Swap(AggregationResult* other) {
  175. if (other == this) return;
  176. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  177. if (GetArena() != nullptr &&
  178. GetArena() == other->GetArena()) {
  179. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  180. if (GetArena() == other->GetArena()) {
  181. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  182. InternalSwap(other);
  183. } else {
  184. ::google::protobuf::internal::GenericSwap(this, other);
  185. }
  186. }
  187. void UnsafeArenaSwap(AggregationResult* other) {
  188. if (other == this) return;
  189. ABSL_DCHECK(GetArena() == other->GetArena());
  190. InternalSwap(other);
  191. }
  192. // implements Message ----------------------------------------------
  193. AggregationResult* New(::google::protobuf::Arena* arena = nullptr) const final {
  194. return CreateMaybeMessage<AggregationResult>(arena);
  195. }
  196. using ::google::protobuf::Message::CopyFrom;
  197. void CopyFrom(const AggregationResult& from);
  198. using ::google::protobuf::Message::MergeFrom;
  199. void MergeFrom( const AggregationResult& from) {
  200. AggregationResult::MergeImpl(*this, from);
  201. }
  202. private:
  203. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  204. public:
  205. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  206. bool IsInitialized() const final;
  207. ::size_t ByteSizeLong() const final;
  208. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  209. ::uint8_t* _InternalSerialize(
  210. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  211. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  212. private:
  213. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  214. void SharedCtor(::google::protobuf::Arena* arena);
  215. void SharedDtor();
  216. void InternalSwap(AggregationResult* other);
  217. private:
  218. friend class ::google::protobuf::internal::AnyMetadata;
  219. static ::absl::string_view FullMessageName() {
  220. return "google.firestore.v1.AggregationResult";
  221. }
  222. protected:
  223. explicit AggregationResult(::google::protobuf::Arena* arena);
  224. AggregationResult(::google::protobuf::Arena* arena, const AggregationResult& from);
  225. public:
  226. static const ClassData _class_data_;
  227. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  228. ::google::protobuf::Metadata GetMetadata() const final;
  229. // nested types ----------------------------------------------------
  230. // accessors -------------------------------------------------------
  231. enum : int {
  232. kAggregateFieldsFieldNumber = 2,
  233. };
  234. // map<string, .google.firestore.v1.Value> aggregate_fields = 2;
  235. int aggregate_fields_size() const;
  236. private:
  237. int _internal_aggregate_fields_size() const;
  238. public:
  239. void clear_aggregate_fields() ;
  240. const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& aggregate_fields() const;
  241. ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* mutable_aggregate_fields();
  242. private:
  243. const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& _internal_aggregate_fields() const;
  244. ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* _internal_mutable_aggregate_fields();
  245. public:
  246. // @@protoc_insertion_point(class_scope:google.firestore.v1.AggregationResult)
  247. private:
  248. class _Internal;
  249. friend class ::google::protobuf::internal::TcParser;
  250. static const ::google::protobuf::internal::TcParseTable<
  251. 0, 1, 2,
  252. 62, 2>
  253. _table_;
  254. friend class ::google::protobuf::MessageLite;
  255. friend class ::google::protobuf::Arena;
  256. template <typename T>
  257. friend class ::google::protobuf::Arena::InternalHelper;
  258. using InternalArenaConstructable_ = void;
  259. using DestructorSkippable_ = void;
  260. struct Impl_ {
  261. inline explicit constexpr Impl_(
  262. ::google::protobuf::internal::ConstantInitialized) noexcept;
  263. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  264. ::google::protobuf::Arena* arena);
  265. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  266. ::google::protobuf::Arena* arena, const Impl_& from);
  267. ::google::protobuf::internal::MapField<AggregationResult_AggregateFieldsEntry_DoNotUse, std::string, ::google::firestore::v1::Value,
  268. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  269. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>
  270. aggregate_fields_;
  271. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  272. PROTOBUF_TSAN_DECLARE_MEMBER
  273. };
  274. union { Impl_ _impl_; };
  275. friend struct ::TableStruct_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto;
  276. };
  277. // ===================================================================
  278. // ===================================================================
  279. #ifdef __GNUC__
  280. #pragma GCC diagnostic push
  281. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  282. #endif // __GNUC__
  283. // -------------------------------------------------------------------
  284. // -------------------------------------------------------------------
  285. // AggregationResult
  286. // map<string, .google.firestore.v1.Value> aggregate_fields = 2;
  287. inline int AggregationResult::_internal_aggregate_fields_size() const {
  288. return _internal_aggregate_fields().size();
  289. }
  290. inline int AggregationResult::aggregate_fields_size() const {
  291. return _internal_aggregate_fields_size();
  292. }
  293. inline const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& AggregationResult::_internal_aggregate_fields() const {
  294. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  295. return _impl_.aggregate_fields_.GetMap();
  296. }
  297. inline const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& AggregationResult::aggregate_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  298. // @@protoc_insertion_point(field_map:google.firestore.v1.AggregationResult.aggregate_fields)
  299. return _internal_aggregate_fields();
  300. }
  301. inline ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* AggregationResult::_internal_mutable_aggregate_fields() {
  302. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  303. return _impl_.aggregate_fields_.MutableMap();
  304. }
  305. inline ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* AggregationResult::mutable_aggregate_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  306. // @@protoc_insertion_point(field_mutable_map:google.firestore.v1.AggregationResult.aggregate_fields)
  307. return _internal_mutable_aggregate_fields();
  308. }
  309. #ifdef __GNUC__
  310. #pragma GCC diagnostic pop
  311. #endif // __GNUC__
  312. // @@protoc_insertion_point(namespace_scope)
  313. } // namespace v1
  314. } // namespace firestore
  315. } // namespace google
  316. // @@protoc_insertion_point(global_scope)
  317. #include "google/protobuf/port_undef.inc"
  318. #endif // GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto_2epb_2eh