index.pb.cc 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871
  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/admin/index.proto
  18. #include "google/firestore/admin/index.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. #include "google/protobuf/generated_message_tctable_impl.h"
  28. // @@protoc_insertion_point(includes)
  29. // Must be included last.
  30. #include "google/protobuf/port_def.inc"
  31. PROTOBUF_PRAGMA_INIT_SEG
  32. namespace _pb = ::google::protobuf;
  33. namespace _pbi = ::google::protobuf::internal;
  34. namespace _fl = ::google::protobuf::internal::field_layout;
  35. namespace google {
  36. namespace firestore {
  37. namespace admin {
  38. namespace v1 {
  39. inline constexpr Index_IndexField::Impl_::Impl_(
  40. ::_pbi::ConstantInitialized) noexcept
  41. : field_path_(
  42. &::google::protobuf::internal::fixed_address_empty_string,
  43. ::_pbi::ConstantInitialized()),
  44. value_mode_{},
  45. _cached_size_{0},
  46. _oneof_case_{} {}
  47. template <typename>
  48. PROTOBUF_CONSTEXPR Index_IndexField::Index_IndexField(::_pbi::ConstantInitialized)
  49. : _impl_(::_pbi::ConstantInitialized()) {}
  50. struct Index_IndexFieldDefaultTypeInternal {
  51. PROTOBUF_CONSTEXPR Index_IndexFieldDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  52. ~Index_IndexFieldDefaultTypeInternal() {}
  53. union {
  54. Index_IndexField _instance;
  55. };
  56. };
  57. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  58. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Index_IndexFieldDefaultTypeInternal _Index_IndexField_default_instance_;
  59. inline constexpr Index::Impl_::Impl_(
  60. ::_pbi::ConstantInitialized) noexcept
  61. : fields_{},
  62. name_(
  63. &::google::protobuf::internal::fixed_address_empty_string,
  64. ::_pbi::ConstantInitialized()),
  65. query_scope_{static_cast< ::google::firestore::admin::v1::Index_QueryScope >(0)},
  66. state_{static_cast< ::google::firestore::admin::v1::Index_State >(0)},
  67. _cached_size_{0} {}
  68. template <typename>
  69. PROTOBUF_CONSTEXPR Index::Index(::_pbi::ConstantInitialized)
  70. : _impl_(::_pbi::ConstantInitialized()) {}
  71. struct IndexDefaultTypeInternal {
  72. PROTOBUF_CONSTEXPR IndexDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  73. ~IndexDefaultTypeInternal() {}
  74. union {
  75. Index _instance;
  76. };
  77. };
  78. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  79. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IndexDefaultTypeInternal _Index_default_instance_;
  80. } // namespace v1
  81. } // namespace admin
  82. } // namespace firestore
  83. } // namespace google
  84. static ::_pb::Metadata file_level_metadata_google_2ffirestore_2fadmin_2findex_2eproto[2];
  85. static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2ffirestore_2fadmin_2findex_2eproto[4];
  86. static constexpr const ::_pb::ServiceDescriptor**
  87. file_level_service_descriptors_google_2ffirestore_2fadmin_2findex_2eproto = nullptr;
  88. const ::uint32_t TableStruct_google_2ffirestore_2fadmin_2findex_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
  89. protodesc_cold) = {
  90. ~0u, // no _has_bits_
  91. PROTOBUF_FIELD_OFFSET(::google::firestore::admin::v1::Index_IndexField, _internal_metadata_),
  92. ~0u, // no _extensions_
  93. PROTOBUF_FIELD_OFFSET(::google::firestore::admin::v1::Index_IndexField, _impl_._oneof_case_[0]),
  94. ~0u, // no _weak_field_map_
  95. ~0u, // no _inlined_string_donated_
  96. ~0u, // no _split_
  97. ~0u, // no sizeof(Split)
  98. PROTOBUF_FIELD_OFFSET(::google::firestore::admin::v1::Index_IndexField, _impl_.field_path_),
  99. ::_pbi::kInvalidFieldOffsetTag,
  100. ::_pbi::kInvalidFieldOffsetTag,
  101. PROTOBUF_FIELD_OFFSET(::google::firestore::admin::v1::Index_IndexField, _impl_.value_mode_),
  102. ~0u, // no _has_bits_
  103. PROTOBUF_FIELD_OFFSET(::google::firestore::admin::v1::Index, _internal_metadata_),
  104. ~0u, // no _extensions_
  105. ~0u, // no _oneof_case_
  106. ~0u, // no _weak_field_map_
  107. ~0u, // no _inlined_string_donated_
  108. ~0u, // no _split_
  109. ~0u, // no sizeof(Split)
  110. PROTOBUF_FIELD_OFFSET(::google::firestore::admin::v1::Index, _impl_.name_),
  111. PROTOBUF_FIELD_OFFSET(::google::firestore::admin::v1::Index, _impl_.query_scope_),
  112. PROTOBUF_FIELD_OFFSET(::google::firestore::admin::v1::Index, _impl_.fields_),
  113. PROTOBUF_FIELD_OFFSET(::google::firestore::admin::v1::Index, _impl_.state_),
  114. };
  115. static const ::_pbi::MigrationSchema
  116. schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  117. {0, -1, -1, sizeof(::google::firestore::admin::v1::Index_IndexField)},
  118. {12, -1, -1, sizeof(::google::firestore::admin::v1::Index)},
  119. };
  120. static const ::_pb::Message* const file_default_instances[] = {
  121. &::google::firestore::admin::v1::_Index_IndexField_default_instance_._instance,
  122. &::google::firestore::admin::v1::_Index_default_instance_._instance,
  123. };
  124. const char descriptor_table_protodef_google_2ffirestore_2fadmin_2findex_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  125. "\n\"google/firestore/admin/index.proto\022\031go"
  126. "ogle.firestore.admin.v1\032\031google/api/reso"
  127. "urce.proto\"\243\006\n\005Index\022\014\n\004name\030\001 \001(\t\022@\n\013qu"
  128. "ery_scope\030\002 \001(\0162+.google.firestore.admin"
  129. ".v1.Index.QueryScope\022;\n\006fields\030\003 \003(\0132+.g"
  130. "oogle.firestore.admin.v1.Index.IndexFiel"
  131. "d\0225\n\005state\030\004 \001(\0162&.google.firestore.admi"
  132. "n.v1.Index.State\032\275\002\n\nIndexField\022\022\n\nfield"
  133. "_path\030\001 \001(\t\022B\n\005order\030\002 \001(\01621.google.fire"
  134. "store.admin.v1.Index.IndexField.OrderH\000\022"
  135. "O\n\014array_config\030\003 \001(\01627.google.firestore"
  136. ".admin.v1.Index.IndexField.ArrayConfigH\000"
  137. "\"=\n\005Order\022\025\n\021ORDER_UNSPECIFIED\020\000\022\r\n\tASCE"
  138. "NDING\020\001\022\016\n\nDESCENDING\020\002\"9\n\013ArrayConfig\022\034"
  139. "\n\030ARRAY_CONFIG_UNSPECIFIED\020\000\022\014\n\010CONTAINS"
  140. "\020\001B\014\n\nvalue_mode\"O\n\nQueryScope\022\033\n\027QUERY_"
  141. "SCOPE_UNSPECIFIED\020\000\022\016\n\nCOLLECTION\020\001\022\024\n\020C"
  142. "OLLECTION_GROUP\020\002\"I\n\005State\022\025\n\021STATE_UNSP"
  143. "ECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\020\n\014NE"
  144. "EDS_REPAIR\020\003:z\352Aw\n\036firestore.googleapis."
  145. "com/Index\022Uprojects/{project}/databases/"
  146. "{database}/collectionGroups/{collection}"
  147. "/indexes/{index}B\336\001\n\035com.google.firestor"
  148. "e.admin.v1B\nIndexProtoP\001Z>google.golang."
  149. "org/genproto/googleapis/firestore/admin/"
  150. "v1;admin\242\002\004GCFS\252\002\037Google.Cloud.Firestore"
  151. ".Admin.V1\312\002\037Google\\Cloud\\Firestore\\Admin"
  152. "\\V1\352\002#Google::Cloud::Firestore::Admin::V"
  153. "1b\006proto3"
  154. };
  155. static const ::_pbi::DescriptorTable* const descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto_deps[1] =
  156. {
  157. &::descriptor_table_google_2fapi_2fresource_2eproto,
  158. };
  159. static ::absl::once_flag descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto_once;
  160. const ::_pbi::DescriptorTable descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto = {
  161. false,
  162. false,
  163. 1129,
  164. descriptor_table_protodef_google_2ffirestore_2fadmin_2findex_2eproto,
  165. "google/firestore/admin/index.proto",
  166. &descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto_once,
  167. descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto_deps,
  168. 1,
  169. 2,
  170. schemas,
  171. file_default_instances,
  172. TableStruct_google_2ffirestore_2fadmin_2findex_2eproto::offsets,
  173. file_level_metadata_google_2ffirestore_2fadmin_2findex_2eproto,
  174. file_level_enum_descriptors_google_2ffirestore_2fadmin_2findex_2eproto,
  175. file_level_service_descriptors_google_2ffirestore_2fadmin_2findex_2eproto,
  176. };
  177. // This function exists to be marked as weak.
  178. // It can significantly speed up compilation by breaking up LLVM's SCC
  179. // in the .pb.cc translation units. Large translation units see a
  180. // reduction of more than 35% of walltime for optimized builds. Without
  181. // the weak attribute all the messages in the file, including all the
  182. // vtables and everything they use become part of the same SCC through
  183. // a cycle like:
  184. // GetMetadata -> descriptor table -> default instances ->
  185. // vtables -> GetMetadata
  186. // By adding a weak function here we break the connection from the
  187. // individual vtables back into the descriptor table.
  188. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto_getter() {
  189. return &descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto;
  190. }
  191. // Force running AddDescriptors() at dynamic initialization time.
  192. PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
  193. static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2ffirestore_2fadmin_2findex_2eproto(&descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto);
  194. namespace google {
  195. namespace firestore {
  196. namespace admin {
  197. namespace v1 {
  198. const ::google::protobuf::EnumDescriptor* Index_IndexField_Order_descriptor() {
  199. ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto);
  200. return file_level_enum_descriptors_google_2ffirestore_2fadmin_2findex_2eproto[0];
  201. }
  202. PROTOBUF_CONSTINIT const uint32_t Index_IndexField_Order_internal_data_[] = {
  203. 196608u, 0u, };
  204. bool Index_IndexField_Order_IsValid(int value) {
  205. return 0 <= value && value <= 2;
  206. }
  207. #if (__cplusplus < 201703) && \
  208. (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  209. constexpr Index_IndexField_Order Index_IndexField::ORDER_UNSPECIFIED;
  210. constexpr Index_IndexField_Order Index_IndexField::ASCENDING;
  211. constexpr Index_IndexField_Order Index_IndexField::DESCENDING;
  212. constexpr Index_IndexField_Order Index_IndexField::Order_MIN;
  213. constexpr Index_IndexField_Order Index_IndexField::Order_MAX;
  214. constexpr int Index_IndexField::Order_ARRAYSIZE;
  215. #endif // (__cplusplus < 201703) &&
  216. // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  217. const ::google::protobuf::EnumDescriptor* Index_IndexField_ArrayConfig_descriptor() {
  218. ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto);
  219. return file_level_enum_descriptors_google_2ffirestore_2fadmin_2findex_2eproto[1];
  220. }
  221. PROTOBUF_CONSTINIT const uint32_t Index_IndexField_ArrayConfig_internal_data_[] = {
  222. 131072u, 0u, };
  223. bool Index_IndexField_ArrayConfig_IsValid(int value) {
  224. return 0 <= value && value <= 1;
  225. }
  226. #if (__cplusplus < 201703) && \
  227. (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  228. constexpr Index_IndexField_ArrayConfig Index_IndexField::ARRAY_CONFIG_UNSPECIFIED;
  229. constexpr Index_IndexField_ArrayConfig Index_IndexField::CONTAINS;
  230. constexpr Index_IndexField_ArrayConfig Index_IndexField::ArrayConfig_MIN;
  231. constexpr Index_IndexField_ArrayConfig Index_IndexField::ArrayConfig_MAX;
  232. constexpr int Index_IndexField::ArrayConfig_ARRAYSIZE;
  233. #endif // (__cplusplus < 201703) &&
  234. // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  235. const ::google::protobuf::EnumDescriptor* Index_QueryScope_descriptor() {
  236. ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto);
  237. return file_level_enum_descriptors_google_2ffirestore_2fadmin_2findex_2eproto[2];
  238. }
  239. PROTOBUF_CONSTINIT const uint32_t Index_QueryScope_internal_data_[] = {
  240. 196608u, 0u, };
  241. bool Index_QueryScope_IsValid(int value) {
  242. return 0 <= value && value <= 2;
  243. }
  244. #if (__cplusplus < 201703) && \
  245. (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  246. constexpr Index_QueryScope Index::QUERY_SCOPE_UNSPECIFIED;
  247. constexpr Index_QueryScope Index::COLLECTION;
  248. constexpr Index_QueryScope Index::COLLECTION_GROUP;
  249. constexpr Index_QueryScope Index::QueryScope_MIN;
  250. constexpr Index_QueryScope Index::QueryScope_MAX;
  251. constexpr int Index::QueryScope_ARRAYSIZE;
  252. #endif // (__cplusplus < 201703) &&
  253. // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  254. const ::google::protobuf::EnumDescriptor* Index_State_descriptor() {
  255. ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto);
  256. return file_level_enum_descriptors_google_2ffirestore_2fadmin_2findex_2eproto[3];
  257. }
  258. PROTOBUF_CONSTINIT const uint32_t Index_State_internal_data_[] = {
  259. 262144u, 0u, };
  260. bool Index_State_IsValid(int value) {
  261. return 0 <= value && value <= 3;
  262. }
  263. #if (__cplusplus < 201703) && \
  264. (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  265. constexpr Index_State Index::STATE_UNSPECIFIED;
  266. constexpr Index_State Index::CREATING;
  267. constexpr Index_State Index::READY;
  268. constexpr Index_State Index::NEEDS_REPAIR;
  269. constexpr Index_State Index::State_MIN;
  270. constexpr Index_State Index::State_MAX;
  271. constexpr int Index::State_ARRAYSIZE;
  272. #endif // (__cplusplus < 201703) &&
  273. // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  274. // ===================================================================
  275. class Index_IndexField::_Internal {
  276. public:
  277. static constexpr ::int32_t kOneofCaseOffset =
  278. PROTOBUF_FIELD_OFFSET(::google::firestore::admin::v1::Index_IndexField, _impl_._oneof_case_);
  279. };
  280. Index_IndexField::Index_IndexField(::google::protobuf::Arena* arena)
  281. : ::google::protobuf::Message(arena) {
  282. SharedCtor(arena);
  283. // @@protoc_insertion_point(arena_constructor:google.firestore.admin.v1.Index.IndexField)
  284. }
  285. inline PROTOBUF_NDEBUG_INLINE Index_IndexField::Impl_::Impl_(
  286. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  287. const Impl_& from)
  288. : field_path_(arena, from.field_path_),
  289. value_mode_{},
  290. _cached_size_{0},
  291. _oneof_case_{from._oneof_case_[0]} {}
  292. Index_IndexField::Index_IndexField(
  293. ::google::protobuf::Arena* arena,
  294. const Index_IndexField& from)
  295. : ::google::protobuf::Message(arena) {
  296. Index_IndexField* const _this = this;
  297. (void)_this;
  298. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  299. from._internal_metadata_);
  300. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  301. switch (value_mode_case()) {
  302. case VALUE_MODE_NOT_SET:
  303. break;
  304. case kOrder:
  305. _impl_.value_mode_.order_ = from._impl_.value_mode_.order_;
  306. break;
  307. case kArrayConfig:
  308. _impl_.value_mode_.array_config_ = from._impl_.value_mode_.array_config_;
  309. break;
  310. }
  311. // @@protoc_insertion_point(copy_constructor:google.firestore.admin.v1.Index.IndexField)
  312. }
  313. inline PROTOBUF_NDEBUG_INLINE Index_IndexField::Impl_::Impl_(
  314. ::google::protobuf::internal::InternalVisibility visibility,
  315. ::google::protobuf::Arena* arena)
  316. : field_path_(arena),
  317. value_mode_{},
  318. _cached_size_{0},
  319. _oneof_case_{} {}
  320. inline void Index_IndexField::SharedCtor(::_pb::Arena* arena) {
  321. new (&_impl_) Impl_(internal_visibility(), arena);
  322. }
  323. Index_IndexField::~Index_IndexField() {
  324. // @@protoc_insertion_point(destructor:google.firestore.admin.v1.Index.IndexField)
  325. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  326. SharedDtor();
  327. }
  328. inline void Index_IndexField::SharedDtor() {
  329. ABSL_DCHECK(GetArena() == nullptr);
  330. _impl_.field_path_.Destroy();
  331. if (has_value_mode()) {
  332. clear_value_mode();
  333. }
  334. _impl_.~Impl_();
  335. }
  336. void Index_IndexField::clear_value_mode() {
  337. // @@protoc_insertion_point(one_of_clear_start:google.firestore.admin.v1.Index.IndexField)
  338. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  339. switch (value_mode_case()) {
  340. case kOrder: {
  341. // No need to clear
  342. break;
  343. }
  344. case kArrayConfig: {
  345. // No need to clear
  346. break;
  347. }
  348. case VALUE_MODE_NOT_SET: {
  349. break;
  350. }
  351. }
  352. _impl_._oneof_case_[0] = VALUE_MODE_NOT_SET;
  353. }
  354. PROTOBUF_NOINLINE void Index_IndexField::Clear() {
  355. // @@protoc_insertion_point(message_clear_start:google.firestore.admin.v1.Index.IndexField)
  356. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  357. ::uint32_t cached_has_bits = 0;
  358. // Prevent compiler warnings about cached_has_bits being unused
  359. (void) cached_has_bits;
  360. _impl_.field_path_.ClearToEmpty();
  361. clear_value_mode();
  362. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  363. }
  364. const char* Index_IndexField::_InternalParse(
  365. const char* ptr, ::_pbi::ParseContext* ctx) {
  366. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  367. return ptr;
  368. }
  369. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  370. const ::_pbi::TcParseTable<0, 3, 0, 61, 2> Index_IndexField::_table_ = {
  371. {
  372. 0, // no _has_bits_
  373. 0, // no _extensions_
  374. 3, 0, // max_field_number, fast_idx_mask
  375. offsetof(decltype(_table_), field_lookup_table),
  376. 4294967288, // skipmap
  377. offsetof(decltype(_table_), field_entries),
  378. 3, // num_field_entries
  379. 0, // num_aux_entries
  380. offsetof(decltype(_table_), field_names), // no aux_entries
  381. &_Index_IndexField_default_instance_._instance,
  382. ::_pbi::TcParser::GenericFallback, // fallback
  383. }, {{
  384. // string field_path = 1;
  385. {::_pbi::TcParser::FastUS1,
  386. {10, 63, 0, PROTOBUF_FIELD_OFFSET(Index_IndexField, _impl_.field_path_)}},
  387. }}, {{
  388. 65535, 65535
  389. }}, {{
  390. // string field_path = 1;
  391. {PROTOBUF_FIELD_OFFSET(Index_IndexField, _impl_.field_path_), 0, 0,
  392. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  393. // .google.firestore.admin.v1.Index.IndexField.Order order = 2;
  394. {PROTOBUF_FIELD_OFFSET(Index_IndexField, _impl_.value_mode_.order_), _Internal::kOneofCaseOffset + 0, 0,
  395. (0 | ::_fl::kFcOneof | ::_fl::kOpenEnum)},
  396. // .google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;
  397. {PROTOBUF_FIELD_OFFSET(Index_IndexField, _impl_.value_mode_.array_config_), _Internal::kOneofCaseOffset + 0, 0,
  398. (0 | ::_fl::kFcOneof | ::_fl::kOpenEnum)},
  399. }},
  400. // no aux_entries
  401. {{
  402. "\52\12\0\0\0\0\0\0"
  403. "google.firestore.admin.v1.Index.IndexField"
  404. "field_path"
  405. }},
  406. };
  407. ::uint8_t* Index_IndexField::_InternalSerialize(
  408. ::uint8_t* target,
  409. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  410. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.admin.v1.Index.IndexField)
  411. ::uint32_t cached_has_bits = 0;
  412. (void)cached_has_bits;
  413. // string field_path = 1;
  414. if (!this->_internal_field_path().empty()) {
  415. const std::string& _s = this->_internal_field_path();
  416. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  417. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.admin.v1.Index.IndexField.field_path");
  418. target = stream->WriteStringMaybeAliased(1, _s, target);
  419. }
  420. switch (value_mode_case()) {
  421. case kOrder: {
  422. target = stream->EnsureSpace(target);
  423. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  424. 2, this->_internal_order(), target);
  425. break;
  426. }
  427. case kArrayConfig: {
  428. target = stream->EnsureSpace(target);
  429. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  430. 3, this->_internal_array_config(), target);
  431. break;
  432. }
  433. default:
  434. break;
  435. }
  436. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  437. target =
  438. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  439. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  440. }
  441. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.admin.v1.Index.IndexField)
  442. return target;
  443. }
  444. ::size_t Index_IndexField::ByteSizeLong() const {
  445. // @@protoc_insertion_point(message_byte_size_start:google.firestore.admin.v1.Index.IndexField)
  446. ::size_t total_size = 0;
  447. ::uint32_t cached_has_bits = 0;
  448. // Prevent compiler warnings about cached_has_bits being unused
  449. (void) cached_has_bits;
  450. // string field_path = 1;
  451. if (!this->_internal_field_path().empty()) {
  452. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  453. this->_internal_field_path());
  454. }
  455. switch (value_mode_case()) {
  456. // .google.firestore.admin.v1.Index.IndexField.Order order = 2;
  457. case kOrder: {
  458. total_size += 1 +
  459. ::_pbi::WireFormatLite::EnumSize(this->_internal_order());
  460. break;
  461. }
  462. // .google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;
  463. case kArrayConfig: {
  464. total_size += 1 +
  465. ::_pbi::WireFormatLite::EnumSize(this->_internal_array_config());
  466. break;
  467. }
  468. case VALUE_MODE_NOT_SET: {
  469. break;
  470. }
  471. }
  472. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  473. }
  474. const ::google::protobuf::Message::ClassData Index_IndexField::_class_data_ = {
  475. Index_IndexField::MergeImpl,
  476. nullptr, // OnDemandRegisterArenaDtor
  477. };
  478. const ::google::protobuf::Message::ClassData* Index_IndexField::GetClassData() const {
  479. return &_class_data_;
  480. }
  481. void Index_IndexField::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  482. auto* const _this = static_cast<Index_IndexField*>(&to_msg);
  483. auto& from = static_cast<const Index_IndexField&>(from_msg);
  484. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.admin.v1.Index.IndexField)
  485. ABSL_DCHECK_NE(&from, _this);
  486. ::uint32_t cached_has_bits = 0;
  487. (void) cached_has_bits;
  488. if (!from._internal_field_path().empty()) {
  489. _this->_internal_set_field_path(from._internal_field_path());
  490. }
  491. switch (from.value_mode_case()) {
  492. case kOrder: {
  493. _this->_internal_set_order(from._internal_order());
  494. break;
  495. }
  496. case kArrayConfig: {
  497. _this->_internal_set_array_config(from._internal_array_config());
  498. break;
  499. }
  500. case VALUE_MODE_NOT_SET: {
  501. break;
  502. }
  503. }
  504. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  505. }
  506. void Index_IndexField::CopyFrom(const Index_IndexField& from) {
  507. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.admin.v1.Index.IndexField)
  508. if (&from == this) return;
  509. Clear();
  510. MergeFrom(from);
  511. }
  512. PROTOBUF_NOINLINE bool Index_IndexField::IsInitialized() const {
  513. return true;
  514. }
  515. ::_pbi::CachedSize* Index_IndexField::AccessCachedSize() const {
  516. return &_impl_._cached_size_;
  517. }
  518. void Index_IndexField::InternalSwap(Index_IndexField* PROTOBUF_RESTRICT other) {
  519. using std::swap;
  520. auto* arena = GetArena();
  521. ABSL_DCHECK_EQ(arena, other->GetArena());
  522. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  523. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.field_path_, &other->_impl_.field_path_, arena);
  524. swap(_impl_.value_mode_, other->_impl_.value_mode_);
  525. swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
  526. }
  527. ::google::protobuf::Metadata Index_IndexField::GetMetadata() const {
  528. return ::_pbi::AssignDescriptors(
  529. &descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto_getter, &descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto_once,
  530. file_level_metadata_google_2ffirestore_2fadmin_2findex_2eproto[0]);
  531. }
  532. // ===================================================================
  533. class Index::_Internal {
  534. public:
  535. };
  536. Index::Index(::google::protobuf::Arena* arena)
  537. : ::google::protobuf::Message(arena) {
  538. SharedCtor(arena);
  539. // @@protoc_insertion_point(arena_constructor:google.firestore.admin.v1.Index)
  540. }
  541. inline PROTOBUF_NDEBUG_INLINE Index::Impl_::Impl_(
  542. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  543. const Impl_& from)
  544. : fields_{visibility, arena, from.fields_},
  545. name_(arena, from.name_),
  546. _cached_size_{0} {}
  547. Index::Index(
  548. ::google::protobuf::Arena* arena,
  549. const Index& from)
  550. : ::google::protobuf::Message(arena) {
  551. Index* const _this = this;
  552. (void)_this;
  553. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  554. from._internal_metadata_);
  555. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  556. ::memcpy(reinterpret_cast<char *>(&_impl_) +
  557. offsetof(Impl_, query_scope_),
  558. reinterpret_cast<const char *>(&from._impl_) +
  559. offsetof(Impl_, query_scope_),
  560. offsetof(Impl_, state_) -
  561. offsetof(Impl_, query_scope_) +
  562. sizeof(Impl_::state_));
  563. // @@protoc_insertion_point(copy_constructor:google.firestore.admin.v1.Index)
  564. }
  565. inline PROTOBUF_NDEBUG_INLINE Index::Impl_::Impl_(
  566. ::google::protobuf::internal::InternalVisibility visibility,
  567. ::google::protobuf::Arena* arena)
  568. : fields_{visibility, arena},
  569. name_(arena),
  570. _cached_size_{0} {}
  571. inline void Index::SharedCtor(::_pb::Arena* arena) {
  572. new (&_impl_) Impl_(internal_visibility(), arena);
  573. ::memset(reinterpret_cast<char *>(&_impl_) +
  574. offsetof(Impl_, query_scope_),
  575. 0,
  576. offsetof(Impl_, state_) -
  577. offsetof(Impl_, query_scope_) +
  578. sizeof(Impl_::state_));
  579. }
  580. Index::~Index() {
  581. // @@protoc_insertion_point(destructor:google.firestore.admin.v1.Index)
  582. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  583. SharedDtor();
  584. }
  585. inline void Index::SharedDtor() {
  586. ABSL_DCHECK(GetArena() == nullptr);
  587. _impl_.name_.Destroy();
  588. _impl_.~Impl_();
  589. }
  590. PROTOBUF_NOINLINE void Index::Clear() {
  591. // @@protoc_insertion_point(message_clear_start:google.firestore.admin.v1.Index)
  592. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  593. ::uint32_t cached_has_bits = 0;
  594. // Prevent compiler warnings about cached_has_bits being unused
  595. (void) cached_has_bits;
  596. _impl_.fields_.Clear();
  597. _impl_.name_.ClearToEmpty();
  598. ::memset(&_impl_.query_scope_, 0, static_cast<::size_t>(
  599. reinterpret_cast<char*>(&_impl_.state_) -
  600. reinterpret_cast<char*>(&_impl_.query_scope_)) + sizeof(_impl_.state_));
  601. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  602. }
  603. const char* Index::_InternalParse(
  604. const char* ptr, ::_pbi::ParseContext* ctx) {
  605. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  606. return ptr;
  607. }
  608. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  609. const ::_pbi::TcParseTable<2, 4, 1, 44, 2> Index::_table_ = {
  610. {
  611. 0, // no _has_bits_
  612. 0, // no _extensions_
  613. 4, 24, // max_field_number, fast_idx_mask
  614. offsetof(decltype(_table_), field_lookup_table),
  615. 4294967280, // skipmap
  616. offsetof(decltype(_table_), field_entries),
  617. 4, // num_field_entries
  618. 1, // num_aux_entries
  619. offsetof(decltype(_table_), aux_entries),
  620. &_Index_default_instance_._instance,
  621. ::_pbi::TcParser::GenericFallback, // fallback
  622. }, {{
  623. // .google.firestore.admin.v1.Index.State state = 4;
  624. {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Index, _impl_.state_), 63>(),
  625. {32, 63, 0, PROTOBUF_FIELD_OFFSET(Index, _impl_.state_)}},
  626. // string name = 1;
  627. {::_pbi::TcParser::FastUS1,
  628. {10, 63, 0, PROTOBUF_FIELD_OFFSET(Index, _impl_.name_)}},
  629. // .google.firestore.admin.v1.Index.QueryScope query_scope = 2;
  630. {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Index, _impl_.query_scope_), 63>(),
  631. {16, 63, 0, PROTOBUF_FIELD_OFFSET(Index, _impl_.query_scope_)}},
  632. // repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
  633. {::_pbi::TcParser::FastMtR1,
  634. {26, 63, 0, PROTOBUF_FIELD_OFFSET(Index, _impl_.fields_)}},
  635. }}, {{
  636. 65535, 65535
  637. }}, {{
  638. // string name = 1;
  639. {PROTOBUF_FIELD_OFFSET(Index, _impl_.name_), 0, 0,
  640. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  641. // .google.firestore.admin.v1.Index.QueryScope query_scope = 2;
  642. {PROTOBUF_FIELD_OFFSET(Index, _impl_.query_scope_), 0, 0,
  643. (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
  644. // repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
  645. {PROTOBUF_FIELD_OFFSET(Index, _impl_.fields_), 0, 0,
  646. (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
  647. // .google.firestore.admin.v1.Index.State state = 4;
  648. {PROTOBUF_FIELD_OFFSET(Index, _impl_.state_), 0, 0,
  649. (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
  650. }}, {{
  651. {::_pbi::TcParser::GetTable<::google::firestore::admin::v1::Index_IndexField>()},
  652. }}, {{
  653. "\37\4\0\0\0\0\0\0"
  654. "google.firestore.admin.v1.Index"
  655. "name"
  656. }},
  657. };
  658. ::uint8_t* Index::_InternalSerialize(
  659. ::uint8_t* target,
  660. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  661. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.admin.v1.Index)
  662. ::uint32_t cached_has_bits = 0;
  663. (void)cached_has_bits;
  664. // string name = 1;
  665. if (!this->_internal_name().empty()) {
  666. const std::string& _s = this->_internal_name();
  667. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  668. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.admin.v1.Index.name");
  669. target = stream->WriteStringMaybeAliased(1, _s, target);
  670. }
  671. // .google.firestore.admin.v1.Index.QueryScope query_scope = 2;
  672. if (this->_internal_query_scope() != 0) {
  673. target = stream->EnsureSpace(target);
  674. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  675. 2, this->_internal_query_scope(), target);
  676. }
  677. // repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
  678. for (unsigned i = 0,
  679. n = static_cast<unsigned>(this->_internal_fields_size()); i < n; i++) {
  680. const auto& repfield = this->_internal_fields().Get(i);
  681. target = ::google::protobuf::internal::WireFormatLite::
  682. InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
  683. }
  684. // .google.firestore.admin.v1.Index.State state = 4;
  685. if (this->_internal_state() != 0) {
  686. target = stream->EnsureSpace(target);
  687. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  688. 4, this->_internal_state(), target);
  689. }
  690. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  691. target =
  692. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  693. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  694. }
  695. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.admin.v1.Index)
  696. return target;
  697. }
  698. ::size_t Index::ByteSizeLong() const {
  699. // @@protoc_insertion_point(message_byte_size_start:google.firestore.admin.v1.Index)
  700. ::size_t total_size = 0;
  701. ::uint32_t cached_has_bits = 0;
  702. // Prevent compiler warnings about cached_has_bits being unused
  703. (void) cached_has_bits;
  704. // repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
  705. total_size += 1UL * this->_internal_fields_size();
  706. for (const auto& msg : this->_internal_fields()) {
  707. total_size +=
  708. ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
  709. }
  710. // string name = 1;
  711. if (!this->_internal_name().empty()) {
  712. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  713. this->_internal_name());
  714. }
  715. // .google.firestore.admin.v1.Index.QueryScope query_scope = 2;
  716. if (this->_internal_query_scope() != 0) {
  717. total_size += 1 +
  718. ::_pbi::WireFormatLite::EnumSize(this->_internal_query_scope());
  719. }
  720. // .google.firestore.admin.v1.Index.State state = 4;
  721. if (this->_internal_state() != 0) {
  722. total_size += 1 +
  723. ::_pbi::WireFormatLite::EnumSize(this->_internal_state());
  724. }
  725. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  726. }
  727. const ::google::protobuf::Message::ClassData Index::_class_data_ = {
  728. Index::MergeImpl,
  729. nullptr, // OnDemandRegisterArenaDtor
  730. };
  731. const ::google::protobuf::Message::ClassData* Index::GetClassData() const {
  732. return &_class_data_;
  733. }
  734. void Index::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  735. auto* const _this = static_cast<Index*>(&to_msg);
  736. auto& from = static_cast<const Index&>(from_msg);
  737. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.admin.v1.Index)
  738. ABSL_DCHECK_NE(&from, _this);
  739. ::uint32_t cached_has_bits = 0;
  740. (void) cached_has_bits;
  741. _this->_internal_mutable_fields()->MergeFrom(
  742. from._internal_fields());
  743. if (!from._internal_name().empty()) {
  744. _this->_internal_set_name(from._internal_name());
  745. }
  746. if (from._internal_query_scope() != 0) {
  747. _this->_internal_set_query_scope(from._internal_query_scope());
  748. }
  749. if (from._internal_state() != 0) {
  750. _this->_internal_set_state(from._internal_state());
  751. }
  752. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  753. }
  754. void Index::CopyFrom(const Index& from) {
  755. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.admin.v1.Index)
  756. if (&from == this) return;
  757. Clear();
  758. MergeFrom(from);
  759. }
  760. PROTOBUF_NOINLINE bool Index::IsInitialized() const {
  761. return true;
  762. }
  763. ::_pbi::CachedSize* Index::AccessCachedSize() const {
  764. return &_impl_._cached_size_;
  765. }
  766. void Index::InternalSwap(Index* PROTOBUF_RESTRICT other) {
  767. using std::swap;
  768. auto* arena = GetArena();
  769. ABSL_DCHECK_EQ(arena, other->GetArena());
  770. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  771. _impl_.fields_.InternalSwap(&other->_impl_.fields_);
  772. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
  773. ::google::protobuf::internal::memswap<
  774. PROTOBUF_FIELD_OFFSET(Index, _impl_.state_)
  775. + sizeof(Index::_impl_.state_)
  776. - PROTOBUF_FIELD_OFFSET(Index, _impl_.query_scope_)>(
  777. reinterpret_cast<char*>(&_impl_.query_scope_),
  778. reinterpret_cast<char*>(&other->_impl_.query_scope_));
  779. }
  780. ::google::protobuf::Metadata Index::GetMetadata() const {
  781. return ::_pbi::AssignDescriptors(
  782. &descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto_getter, &descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto_once,
  783. file_level_metadata_google_2ffirestore_2fadmin_2findex_2eproto[1]);
  784. }
  785. // @@protoc_insertion_point(namespace_scope)
  786. } // namespace v1
  787. } // namespace admin
  788. } // namespace firestore
  789. } // namespace google
  790. namespace google {
  791. namespace protobuf {
  792. } // namespace protobuf
  793. } // namespace google
  794. // @@protoc_insertion_point(global_scope)
  795. #include "google/protobuf/port_undef.inc"