index.pb.h 40 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024
  1. /*
  2. * Copyright 2022 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. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fadmin_2findex_2eproto
  19. #define GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fadmin_2findex_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/generated_enum_reflection.h>
  46. #include <google/protobuf/unknown_field_set.h>
  47. #include "google/api/resource.pb.h"
  48. // @@protoc_insertion_point(includes)
  49. #include <google/protobuf/port_def.inc>
  50. #define PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fadmin_2findex_2eproto
  51. PROTOBUF_NAMESPACE_OPEN
  52. namespace internal {
  53. class AnyMetadata;
  54. } // namespace internal
  55. PROTOBUF_NAMESPACE_CLOSE
  56. // Internal implementation detail -- do not use these members.
  57. struct TableStruct_google_2ffirestore_2fadmin_2findex_2eproto {
  58. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  59. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  60. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
  61. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  62. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2]
  63. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  64. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  65. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  66. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  67. };
  68. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto;
  69. namespace google {
  70. namespace firestore {
  71. namespace admin {
  72. namespace v1 {
  73. class Index;
  74. class IndexDefaultTypeInternal;
  75. extern IndexDefaultTypeInternal _Index_default_instance_;
  76. class Index_IndexField;
  77. class Index_IndexFieldDefaultTypeInternal;
  78. extern Index_IndexFieldDefaultTypeInternal _Index_IndexField_default_instance_;
  79. } // namespace v1
  80. } // namespace admin
  81. } // namespace firestore
  82. } // namespace google
  83. PROTOBUF_NAMESPACE_OPEN
  84. template<> ::google::firestore::admin::v1::Index* Arena::CreateMaybeMessage<::google::firestore::admin::v1::Index>(Arena*);
  85. template<> ::google::firestore::admin::v1::Index_IndexField* Arena::CreateMaybeMessage<::google::firestore::admin::v1::Index_IndexField>(Arena*);
  86. PROTOBUF_NAMESPACE_CLOSE
  87. namespace google {
  88. namespace firestore {
  89. namespace admin {
  90. namespace v1 {
  91. enum Index_IndexField_Order : int {
  92. Index_IndexField_Order_ORDER_UNSPECIFIED = 0,
  93. Index_IndexField_Order_ASCENDING = 1,
  94. Index_IndexField_Order_DESCENDING = 2,
  95. Index_IndexField_Order_Index_IndexField_Order_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
  96. Index_IndexField_Order_Index_IndexField_Order_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
  97. };
  98. bool Index_IndexField_Order_IsValid(int value);
  99. constexpr Index_IndexField_Order Index_IndexField_Order_Order_MIN = Index_IndexField_Order_ORDER_UNSPECIFIED;
  100. constexpr Index_IndexField_Order Index_IndexField_Order_Order_MAX = Index_IndexField_Order_DESCENDING;
  101. constexpr int Index_IndexField_Order_Order_ARRAYSIZE = Index_IndexField_Order_Order_MAX + 1;
  102. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Index_IndexField_Order_descriptor();
  103. template<typename T>
  104. inline const std::string& Index_IndexField_Order_Name(T enum_t_value) {
  105. static_assert(::std::is_same<T, Index_IndexField_Order>::value ||
  106. ::std::is_integral<T>::value,
  107. "Incorrect type passed to function Index_IndexField_Order_Name.");
  108. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  109. Index_IndexField_Order_descriptor(), enum_t_value);
  110. }
  111. inline bool Index_IndexField_Order_Parse(
  112. const std::string& name, Index_IndexField_Order* value) {
  113. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Index_IndexField_Order>(
  114. Index_IndexField_Order_descriptor(), name, value);
  115. }
  116. enum Index_IndexField_ArrayConfig : int {
  117. Index_IndexField_ArrayConfig_ARRAY_CONFIG_UNSPECIFIED = 0,
  118. Index_IndexField_ArrayConfig_CONTAINS = 1,
  119. Index_IndexField_ArrayConfig_Index_IndexField_ArrayConfig_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
  120. Index_IndexField_ArrayConfig_Index_IndexField_ArrayConfig_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
  121. };
  122. bool Index_IndexField_ArrayConfig_IsValid(int value);
  123. constexpr Index_IndexField_ArrayConfig Index_IndexField_ArrayConfig_ArrayConfig_MIN = Index_IndexField_ArrayConfig_ARRAY_CONFIG_UNSPECIFIED;
  124. constexpr Index_IndexField_ArrayConfig Index_IndexField_ArrayConfig_ArrayConfig_MAX = Index_IndexField_ArrayConfig_CONTAINS;
  125. constexpr int Index_IndexField_ArrayConfig_ArrayConfig_ARRAYSIZE = Index_IndexField_ArrayConfig_ArrayConfig_MAX + 1;
  126. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Index_IndexField_ArrayConfig_descriptor();
  127. template<typename T>
  128. inline const std::string& Index_IndexField_ArrayConfig_Name(T enum_t_value) {
  129. static_assert(::std::is_same<T, Index_IndexField_ArrayConfig>::value ||
  130. ::std::is_integral<T>::value,
  131. "Incorrect type passed to function Index_IndexField_ArrayConfig_Name.");
  132. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  133. Index_IndexField_ArrayConfig_descriptor(), enum_t_value);
  134. }
  135. inline bool Index_IndexField_ArrayConfig_Parse(
  136. const std::string& name, Index_IndexField_ArrayConfig* value) {
  137. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Index_IndexField_ArrayConfig>(
  138. Index_IndexField_ArrayConfig_descriptor(), name, value);
  139. }
  140. enum Index_QueryScope : int {
  141. Index_QueryScope_QUERY_SCOPE_UNSPECIFIED = 0,
  142. Index_QueryScope_COLLECTION = 1,
  143. Index_QueryScope_COLLECTION_GROUP = 2,
  144. Index_QueryScope_Index_QueryScope_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
  145. Index_QueryScope_Index_QueryScope_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
  146. };
  147. bool Index_QueryScope_IsValid(int value);
  148. constexpr Index_QueryScope Index_QueryScope_QueryScope_MIN = Index_QueryScope_QUERY_SCOPE_UNSPECIFIED;
  149. constexpr Index_QueryScope Index_QueryScope_QueryScope_MAX = Index_QueryScope_COLLECTION_GROUP;
  150. constexpr int Index_QueryScope_QueryScope_ARRAYSIZE = Index_QueryScope_QueryScope_MAX + 1;
  151. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Index_QueryScope_descriptor();
  152. template<typename T>
  153. inline const std::string& Index_QueryScope_Name(T enum_t_value) {
  154. static_assert(::std::is_same<T, Index_QueryScope>::value ||
  155. ::std::is_integral<T>::value,
  156. "Incorrect type passed to function Index_QueryScope_Name.");
  157. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  158. Index_QueryScope_descriptor(), enum_t_value);
  159. }
  160. inline bool Index_QueryScope_Parse(
  161. const std::string& name, Index_QueryScope* value) {
  162. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Index_QueryScope>(
  163. Index_QueryScope_descriptor(), name, value);
  164. }
  165. enum Index_State : int {
  166. Index_State_STATE_UNSPECIFIED = 0,
  167. Index_State_CREATING = 1,
  168. Index_State_READY = 2,
  169. Index_State_NEEDS_REPAIR = 3,
  170. Index_State_Index_State_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
  171. Index_State_Index_State_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
  172. };
  173. bool Index_State_IsValid(int value);
  174. constexpr Index_State Index_State_State_MIN = Index_State_STATE_UNSPECIFIED;
  175. constexpr Index_State Index_State_State_MAX = Index_State_NEEDS_REPAIR;
  176. constexpr int Index_State_State_ARRAYSIZE = Index_State_State_MAX + 1;
  177. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Index_State_descriptor();
  178. template<typename T>
  179. inline const std::string& Index_State_Name(T enum_t_value) {
  180. static_assert(::std::is_same<T, Index_State>::value ||
  181. ::std::is_integral<T>::value,
  182. "Incorrect type passed to function Index_State_Name.");
  183. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  184. Index_State_descriptor(), enum_t_value);
  185. }
  186. inline bool Index_State_Parse(
  187. const std::string& name, Index_State* value) {
  188. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Index_State>(
  189. Index_State_descriptor(), name, value);
  190. }
  191. // ===================================================================
  192. class Index_IndexField :
  193. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.admin.v1.Index.IndexField) */ {
  194. public:
  195. Index_IndexField();
  196. virtual ~Index_IndexField();
  197. Index_IndexField(const Index_IndexField& from);
  198. Index_IndexField(Index_IndexField&& from) noexcept
  199. : Index_IndexField() {
  200. *this = ::std::move(from);
  201. }
  202. inline Index_IndexField& operator=(const Index_IndexField& from) {
  203. CopyFrom(from);
  204. return *this;
  205. }
  206. inline Index_IndexField& operator=(Index_IndexField&& from) noexcept {
  207. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  208. if (this != &from) InternalSwap(&from);
  209. } else {
  210. CopyFrom(from);
  211. }
  212. return *this;
  213. }
  214. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  215. return GetDescriptor();
  216. }
  217. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  218. return GetMetadataStatic().descriptor;
  219. }
  220. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  221. return GetMetadataStatic().reflection;
  222. }
  223. static const Index_IndexField& default_instance();
  224. enum ValueModeCase {
  225. kOrder = 2,
  226. kArrayConfig = 3,
  227. VALUE_MODE_NOT_SET = 0,
  228. };
  229. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  230. static inline const Index_IndexField* internal_default_instance() {
  231. return reinterpret_cast<const Index_IndexField*>(
  232. &_Index_IndexField_default_instance_);
  233. }
  234. static constexpr int kIndexInFileMessages =
  235. 0;
  236. friend void swap(Index_IndexField& a, Index_IndexField& b) {
  237. a.Swap(&b);
  238. }
  239. inline void Swap(Index_IndexField* other) {
  240. if (other == this) return;
  241. InternalSwap(other);
  242. }
  243. // implements Message ----------------------------------------------
  244. inline Index_IndexField* New() const final {
  245. return CreateMaybeMessage<Index_IndexField>(nullptr);
  246. }
  247. Index_IndexField* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  248. return CreateMaybeMessage<Index_IndexField>(arena);
  249. }
  250. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  251. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  252. void CopyFrom(const Index_IndexField& from);
  253. void MergeFrom(const Index_IndexField& from);
  254. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  255. bool IsInitialized() const final;
  256. size_t ByteSizeLong() const final;
  257. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  258. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  259. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  260. int GetCachedSize() const final { return _cached_size_.Get(); }
  261. private:
  262. inline void SharedCtor();
  263. inline void SharedDtor();
  264. void SetCachedSize(int size) const final;
  265. void InternalSwap(Index_IndexField* other);
  266. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  267. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  268. return "google.firestore.admin.v1.Index.IndexField";
  269. }
  270. private:
  271. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  272. return nullptr;
  273. }
  274. inline void* MaybeArenaPtr() const {
  275. return nullptr;
  276. }
  277. public:
  278. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  279. private:
  280. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  281. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto);
  282. return ::descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto.file_level_metadata[kIndexInFileMessages];
  283. }
  284. public:
  285. // nested types ----------------------------------------------------
  286. typedef Index_IndexField_Order Order;
  287. static constexpr Order ORDER_UNSPECIFIED =
  288. Index_IndexField_Order_ORDER_UNSPECIFIED;
  289. static constexpr Order ASCENDING =
  290. Index_IndexField_Order_ASCENDING;
  291. static constexpr Order DESCENDING =
  292. Index_IndexField_Order_DESCENDING;
  293. static inline bool Order_IsValid(int value) {
  294. return Index_IndexField_Order_IsValid(value);
  295. }
  296. static constexpr Order Order_MIN =
  297. Index_IndexField_Order_Order_MIN;
  298. static constexpr Order Order_MAX =
  299. Index_IndexField_Order_Order_MAX;
  300. static constexpr int Order_ARRAYSIZE =
  301. Index_IndexField_Order_Order_ARRAYSIZE;
  302. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  303. Order_descriptor() {
  304. return Index_IndexField_Order_descriptor();
  305. }
  306. template<typename T>
  307. static inline const std::string& Order_Name(T enum_t_value) {
  308. static_assert(::std::is_same<T, Order>::value ||
  309. ::std::is_integral<T>::value,
  310. "Incorrect type passed to function Order_Name.");
  311. return Index_IndexField_Order_Name(enum_t_value);
  312. }
  313. static inline bool Order_Parse(const std::string& name,
  314. Order* value) {
  315. return Index_IndexField_Order_Parse(name, value);
  316. }
  317. typedef Index_IndexField_ArrayConfig ArrayConfig;
  318. static constexpr ArrayConfig ARRAY_CONFIG_UNSPECIFIED =
  319. Index_IndexField_ArrayConfig_ARRAY_CONFIG_UNSPECIFIED;
  320. static constexpr ArrayConfig CONTAINS =
  321. Index_IndexField_ArrayConfig_CONTAINS;
  322. static inline bool ArrayConfig_IsValid(int value) {
  323. return Index_IndexField_ArrayConfig_IsValid(value);
  324. }
  325. static constexpr ArrayConfig ArrayConfig_MIN =
  326. Index_IndexField_ArrayConfig_ArrayConfig_MIN;
  327. static constexpr ArrayConfig ArrayConfig_MAX =
  328. Index_IndexField_ArrayConfig_ArrayConfig_MAX;
  329. static constexpr int ArrayConfig_ARRAYSIZE =
  330. Index_IndexField_ArrayConfig_ArrayConfig_ARRAYSIZE;
  331. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  332. ArrayConfig_descriptor() {
  333. return Index_IndexField_ArrayConfig_descriptor();
  334. }
  335. template<typename T>
  336. static inline const std::string& ArrayConfig_Name(T enum_t_value) {
  337. static_assert(::std::is_same<T, ArrayConfig>::value ||
  338. ::std::is_integral<T>::value,
  339. "Incorrect type passed to function ArrayConfig_Name.");
  340. return Index_IndexField_ArrayConfig_Name(enum_t_value);
  341. }
  342. static inline bool ArrayConfig_Parse(const std::string& name,
  343. ArrayConfig* value) {
  344. return Index_IndexField_ArrayConfig_Parse(name, value);
  345. }
  346. // accessors -------------------------------------------------------
  347. enum : int {
  348. kFieldPathFieldNumber = 1,
  349. kOrderFieldNumber = 2,
  350. kArrayConfigFieldNumber = 3,
  351. };
  352. // string field_path = 1;
  353. void clear_field_path();
  354. const std::string& field_path() const;
  355. void set_field_path(const std::string& value);
  356. void set_field_path(std::string&& value);
  357. void set_field_path(const char* value);
  358. void set_field_path(const char* value, size_t size);
  359. std::string* mutable_field_path();
  360. std::string* release_field_path();
  361. void set_allocated_field_path(std::string* field_path);
  362. private:
  363. const std::string& _internal_field_path() const;
  364. void _internal_set_field_path(const std::string& value);
  365. std::string* _internal_mutable_field_path();
  366. public:
  367. // .google.firestore.admin.v1.Index.IndexField.Order order = 2;
  368. private:
  369. bool _internal_has_order() const;
  370. public:
  371. void clear_order();
  372. ::google::firestore::admin::v1::Index_IndexField_Order order() const;
  373. void set_order(::google::firestore::admin::v1::Index_IndexField_Order value);
  374. private:
  375. ::google::firestore::admin::v1::Index_IndexField_Order _internal_order() const;
  376. void _internal_set_order(::google::firestore::admin::v1::Index_IndexField_Order value);
  377. public:
  378. // .google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;
  379. private:
  380. bool _internal_has_array_config() const;
  381. public:
  382. void clear_array_config();
  383. ::google::firestore::admin::v1::Index_IndexField_ArrayConfig array_config() const;
  384. void set_array_config(::google::firestore::admin::v1::Index_IndexField_ArrayConfig value);
  385. private:
  386. ::google::firestore::admin::v1::Index_IndexField_ArrayConfig _internal_array_config() const;
  387. void _internal_set_array_config(::google::firestore::admin::v1::Index_IndexField_ArrayConfig value);
  388. public:
  389. void clear_value_mode();
  390. ValueModeCase value_mode_case() const;
  391. // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.Index.IndexField)
  392. private:
  393. class _Internal;
  394. void set_has_order();
  395. void set_has_array_config();
  396. inline bool has_value_mode() const;
  397. inline void clear_has_value_mode();
  398. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  399. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_path_;
  400. union ValueModeUnion {
  401. ValueModeUnion() {}
  402. int order_;
  403. int array_config_;
  404. } value_mode_;
  405. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  406. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  407. friend struct ::TableStruct_google_2ffirestore_2fadmin_2findex_2eproto;
  408. };
  409. // -------------------------------------------------------------------
  410. class Index :
  411. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.admin.v1.Index) */ {
  412. public:
  413. Index();
  414. virtual ~Index();
  415. Index(const Index& from);
  416. Index(Index&& from) noexcept
  417. : Index() {
  418. *this = ::std::move(from);
  419. }
  420. inline Index& operator=(const Index& from) {
  421. CopyFrom(from);
  422. return *this;
  423. }
  424. inline Index& operator=(Index&& from) noexcept {
  425. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  426. if (this != &from) InternalSwap(&from);
  427. } else {
  428. CopyFrom(from);
  429. }
  430. return *this;
  431. }
  432. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  433. return GetDescriptor();
  434. }
  435. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  436. return GetMetadataStatic().descriptor;
  437. }
  438. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  439. return GetMetadataStatic().reflection;
  440. }
  441. static const Index& default_instance();
  442. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  443. static inline const Index* internal_default_instance() {
  444. return reinterpret_cast<const Index*>(
  445. &_Index_default_instance_);
  446. }
  447. static constexpr int kIndexInFileMessages =
  448. 1;
  449. friend void swap(Index& a, Index& b) {
  450. a.Swap(&b);
  451. }
  452. inline void Swap(Index* other) {
  453. if (other == this) return;
  454. InternalSwap(other);
  455. }
  456. // implements Message ----------------------------------------------
  457. inline Index* New() const final {
  458. return CreateMaybeMessage<Index>(nullptr);
  459. }
  460. Index* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  461. return CreateMaybeMessage<Index>(arena);
  462. }
  463. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  464. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  465. void CopyFrom(const Index& from);
  466. void MergeFrom(const Index& from);
  467. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  468. bool IsInitialized() const final;
  469. size_t ByteSizeLong() const final;
  470. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  471. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  472. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  473. int GetCachedSize() const final { return _cached_size_.Get(); }
  474. private:
  475. inline void SharedCtor();
  476. inline void SharedDtor();
  477. void SetCachedSize(int size) const final;
  478. void InternalSwap(Index* other);
  479. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  480. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  481. return "google.firestore.admin.v1.Index";
  482. }
  483. private:
  484. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  485. return nullptr;
  486. }
  487. inline void* MaybeArenaPtr() const {
  488. return nullptr;
  489. }
  490. public:
  491. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  492. private:
  493. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  494. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto);
  495. return ::descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto.file_level_metadata[kIndexInFileMessages];
  496. }
  497. public:
  498. // nested types ----------------------------------------------------
  499. typedef Index_IndexField IndexField;
  500. typedef Index_QueryScope QueryScope;
  501. static constexpr QueryScope QUERY_SCOPE_UNSPECIFIED =
  502. Index_QueryScope_QUERY_SCOPE_UNSPECIFIED;
  503. static constexpr QueryScope COLLECTION =
  504. Index_QueryScope_COLLECTION;
  505. static constexpr QueryScope COLLECTION_GROUP =
  506. Index_QueryScope_COLLECTION_GROUP;
  507. static inline bool QueryScope_IsValid(int value) {
  508. return Index_QueryScope_IsValid(value);
  509. }
  510. static constexpr QueryScope QueryScope_MIN =
  511. Index_QueryScope_QueryScope_MIN;
  512. static constexpr QueryScope QueryScope_MAX =
  513. Index_QueryScope_QueryScope_MAX;
  514. static constexpr int QueryScope_ARRAYSIZE =
  515. Index_QueryScope_QueryScope_ARRAYSIZE;
  516. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  517. QueryScope_descriptor() {
  518. return Index_QueryScope_descriptor();
  519. }
  520. template<typename T>
  521. static inline const std::string& QueryScope_Name(T enum_t_value) {
  522. static_assert(::std::is_same<T, QueryScope>::value ||
  523. ::std::is_integral<T>::value,
  524. "Incorrect type passed to function QueryScope_Name.");
  525. return Index_QueryScope_Name(enum_t_value);
  526. }
  527. static inline bool QueryScope_Parse(const std::string& name,
  528. QueryScope* value) {
  529. return Index_QueryScope_Parse(name, value);
  530. }
  531. typedef Index_State State;
  532. static constexpr State STATE_UNSPECIFIED =
  533. Index_State_STATE_UNSPECIFIED;
  534. static constexpr State CREATING =
  535. Index_State_CREATING;
  536. static constexpr State READY =
  537. Index_State_READY;
  538. static constexpr State NEEDS_REPAIR =
  539. Index_State_NEEDS_REPAIR;
  540. static inline bool State_IsValid(int value) {
  541. return Index_State_IsValid(value);
  542. }
  543. static constexpr State State_MIN =
  544. Index_State_State_MIN;
  545. static constexpr State State_MAX =
  546. Index_State_State_MAX;
  547. static constexpr int State_ARRAYSIZE =
  548. Index_State_State_ARRAYSIZE;
  549. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  550. State_descriptor() {
  551. return Index_State_descriptor();
  552. }
  553. template<typename T>
  554. static inline const std::string& State_Name(T enum_t_value) {
  555. static_assert(::std::is_same<T, State>::value ||
  556. ::std::is_integral<T>::value,
  557. "Incorrect type passed to function State_Name.");
  558. return Index_State_Name(enum_t_value);
  559. }
  560. static inline bool State_Parse(const std::string& name,
  561. State* value) {
  562. return Index_State_Parse(name, value);
  563. }
  564. // accessors -------------------------------------------------------
  565. enum : int {
  566. kFieldsFieldNumber = 3,
  567. kNameFieldNumber = 1,
  568. kQueryScopeFieldNumber = 2,
  569. kStateFieldNumber = 4,
  570. };
  571. // repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
  572. int fields_size() const;
  573. private:
  574. int _internal_fields_size() const;
  575. public:
  576. void clear_fields();
  577. ::google::firestore::admin::v1::Index_IndexField* mutable_fields(int index);
  578. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::admin::v1::Index_IndexField >*
  579. mutable_fields();
  580. private:
  581. const ::google::firestore::admin::v1::Index_IndexField& _internal_fields(int index) const;
  582. ::google::firestore::admin::v1::Index_IndexField* _internal_add_fields();
  583. public:
  584. const ::google::firestore::admin::v1::Index_IndexField& fields(int index) const;
  585. ::google::firestore::admin::v1::Index_IndexField* add_fields();
  586. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::admin::v1::Index_IndexField >&
  587. fields() const;
  588. // string name = 1;
  589. void clear_name();
  590. const std::string& name() const;
  591. void set_name(const std::string& value);
  592. void set_name(std::string&& value);
  593. void set_name(const char* value);
  594. void set_name(const char* value, size_t size);
  595. std::string* mutable_name();
  596. std::string* release_name();
  597. void set_allocated_name(std::string* name);
  598. private:
  599. const std::string& _internal_name() const;
  600. void _internal_set_name(const std::string& value);
  601. std::string* _internal_mutable_name();
  602. public:
  603. // .google.firestore.admin.v1.Index.QueryScope query_scope = 2;
  604. void clear_query_scope();
  605. ::google::firestore::admin::v1::Index_QueryScope query_scope() const;
  606. void set_query_scope(::google::firestore::admin::v1::Index_QueryScope value);
  607. private:
  608. ::google::firestore::admin::v1::Index_QueryScope _internal_query_scope() const;
  609. void _internal_set_query_scope(::google::firestore::admin::v1::Index_QueryScope value);
  610. public:
  611. // .google.firestore.admin.v1.Index.State state = 4;
  612. void clear_state();
  613. ::google::firestore::admin::v1::Index_State state() const;
  614. void set_state(::google::firestore::admin::v1::Index_State value);
  615. private:
  616. ::google::firestore::admin::v1::Index_State _internal_state() const;
  617. void _internal_set_state(::google::firestore::admin::v1::Index_State value);
  618. public:
  619. // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.Index)
  620. private:
  621. class _Internal;
  622. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  623. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::admin::v1::Index_IndexField > fields_;
  624. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  625. int query_scope_;
  626. int state_;
  627. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  628. friend struct ::TableStruct_google_2ffirestore_2fadmin_2findex_2eproto;
  629. };
  630. // ===================================================================
  631. // ===================================================================
  632. #ifdef __GNUC__
  633. #pragma GCC diagnostic push
  634. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  635. #endif // __GNUC__
  636. // Index_IndexField
  637. // string field_path = 1;
  638. inline void Index_IndexField::clear_field_path() {
  639. field_path_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  640. }
  641. inline const std::string& Index_IndexField::field_path() const {
  642. // @@protoc_insertion_point(field_get:google.firestore.admin.v1.Index.IndexField.field_path)
  643. return _internal_field_path();
  644. }
  645. inline void Index_IndexField::set_field_path(const std::string& value) {
  646. _internal_set_field_path(value);
  647. // @@protoc_insertion_point(field_set:google.firestore.admin.v1.Index.IndexField.field_path)
  648. }
  649. inline std::string* Index_IndexField::mutable_field_path() {
  650. // @@protoc_insertion_point(field_mutable:google.firestore.admin.v1.Index.IndexField.field_path)
  651. return _internal_mutable_field_path();
  652. }
  653. inline const std::string& Index_IndexField::_internal_field_path() const {
  654. return field_path_.GetNoArena();
  655. }
  656. inline void Index_IndexField::_internal_set_field_path(const std::string& value) {
  657. field_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  658. }
  659. inline void Index_IndexField::set_field_path(std::string&& value) {
  660. field_path_.SetNoArena(
  661. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  662. // @@protoc_insertion_point(field_set_rvalue:google.firestore.admin.v1.Index.IndexField.field_path)
  663. }
  664. inline void Index_IndexField::set_field_path(const char* value) {
  665. GOOGLE_DCHECK(value != nullptr);
  666. field_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  667. // @@protoc_insertion_point(field_set_char:google.firestore.admin.v1.Index.IndexField.field_path)
  668. }
  669. inline void Index_IndexField::set_field_path(const char* value, size_t size) {
  670. field_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  671. ::std::string(reinterpret_cast<const char*>(value), size));
  672. // @@protoc_insertion_point(field_set_pointer:google.firestore.admin.v1.Index.IndexField.field_path)
  673. }
  674. inline std::string* Index_IndexField::_internal_mutable_field_path() {
  675. return field_path_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  676. }
  677. inline std::string* Index_IndexField::release_field_path() {
  678. // @@protoc_insertion_point(field_release:google.firestore.admin.v1.Index.IndexField.field_path)
  679. return field_path_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  680. }
  681. inline void Index_IndexField::set_allocated_field_path(std::string* field_path) {
  682. if (field_path != nullptr) {
  683. } else {
  684. }
  685. field_path_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_path);
  686. // @@protoc_insertion_point(field_set_allocated:google.firestore.admin.v1.Index.IndexField.field_path)
  687. }
  688. // .google.firestore.admin.v1.Index.IndexField.Order order = 2;
  689. inline bool Index_IndexField::_internal_has_order() const {
  690. return value_mode_case() == kOrder;
  691. }
  692. inline void Index_IndexField::set_has_order() {
  693. _oneof_case_[0] = kOrder;
  694. }
  695. inline void Index_IndexField::clear_order() {
  696. if (_internal_has_order()) {
  697. value_mode_.order_ = 0;
  698. clear_has_value_mode();
  699. }
  700. }
  701. inline ::google::firestore::admin::v1::Index_IndexField_Order Index_IndexField::_internal_order() const {
  702. if (_internal_has_order()) {
  703. return static_cast< ::google::firestore::admin::v1::Index_IndexField_Order >(value_mode_.order_);
  704. }
  705. return static_cast< ::google::firestore::admin::v1::Index_IndexField_Order >(0);
  706. }
  707. inline ::google::firestore::admin::v1::Index_IndexField_Order Index_IndexField::order() const {
  708. // @@protoc_insertion_point(field_get:google.firestore.admin.v1.Index.IndexField.order)
  709. return _internal_order();
  710. }
  711. inline void Index_IndexField::_internal_set_order(::google::firestore::admin::v1::Index_IndexField_Order value) {
  712. if (!_internal_has_order()) {
  713. clear_value_mode();
  714. set_has_order();
  715. }
  716. value_mode_.order_ = value;
  717. }
  718. inline void Index_IndexField::set_order(::google::firestore::admin::v1::Index_IndexField_Order value) {
  719. // @@protoc_insertion_point(field_set:google.firestore.admin.v1.Index.IndexField.order)
  720. _internal_set_order(value);
  721. }
  722. // .google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;
  723. inline bool Index_IndexField::_internal_has_array_config() const {
  724. return value_mode_case() == kArrayConfig;
  725. }
  726. inline void Index_IndexField::set_has_array_config() {
  727. _oneof_case_[0] = kArrayConfig;
  728. }
  729. inline void Index_IndexField::clear_array_config() {
  730. if (_internal_has_array_config()) {
  731. value_mode_.array_config_ = 0;
  732. clear_has_value_mode();
  733. }
  734. }
  735. inline ::google::firestore::admin::v1::Index_IndexField_ArrayConfig Index_IndexField::_internal_array_config() const {
  736. if (_internal_has_array_config()) {
  737. return static_cast< ::google::firestore::admin::v1::Index_IndexField_ArrayConfig >(value_mode_.array_config_);
  738. }
  739. return static_cast< ::google::firestore::admin::v1::Index_IndexField_ArrayConfig >(0);
  740. }
  741. inline ::google::firestore::admin::v1::Index_IndexField_ArrayConfig Index_IndexField::array_config() const {
  742. // @@protoc_insertion_point(field_get:google.firestore.admin.v1.Index.IndexField.array_config)
  743. return _internal_array_config();
  744. }
  745. inline void Index_IndexField::_internal_set_array_config(::google::firestore::admin::v1::Index_IndexField_ArrayConfig value) {
  746. if (!_internal_has_array_config()) {
  747. clear_value_mode();
  748. set_has_array_config();
  749. }
  750. value_mode_.array_config_ = value;
  751. }
  752. inline void Index_IndexField::set_array_config(::google::firestore::admin::v1::Index_IndexField_ArrayConfig value) {
  753. // @@protoc_insertion_point(field_set:google.firestore.admin.v1.Index.IndexField.array_config)
  754. _internal_set_array_config(value);
  755. }
  756. inline bool Index_IndexField::has_value_mode() const {
  757. return value_mode_case() != VALUE_MODE_NOT_SET;
  758. }
  759. inline void Index_IndexField::clear_has_value_mode() {
  760. _oneof_case_[0] = VALUE_MODE_NOT_SET;
  761. }
  762. inline Index_IndexField::ValueModeCase Index_IndexField::value_mode_case() const {
  763. return Index_IndexField::ValueModeCase(_oneof_case_[0]);
  764. }
  765. // -------------------------------------------------------------------
  766. // Index
  767. // string name = 1;
  768. inline void Index::clear_name() {
  769. name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  770. }
  771. inline const std::string& Index::name() const {
  772. // @@protoc_insertion_point(field_get:google.firestore.admin.v1.Index.name)
  773. return _internal_name();
  774. }
  775. inline void Index::set_name(const std::string& value) {
  776. _internal_set_name(value);
  777. // @@protoc_insertion_point(field_set:google.firestore.admin.v1.Index.name)
  778. }
  779. inline std::string* Index::mutable_name() {
  780. // @@protoc_insertion_point(field_mutable:google.firestore.admin.v1.Index.name)
  781. return _internal_mutable_name();
  782. }
  783. inline const std::string& Index::_internal_name() const {
  784. return name_.GetNoArena();
  785. }
  786. inline void Index::_internal_set_name(const std::string& value) {
  787. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  788. }
  789. inline void Index::set_name(std::string&& value) {
  790. name_.SetNoArena(
  791. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  792. // @@protoc_insertion_point(field_set_rvalue:google.firestore.admin.v1.Index.name)
  793. }
  794. inline void Index::set_name(const char* value) {
  795. GOOGLE_DCHECK(value != nullptr);
  796. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  797. // @@protoc_insertion_point(field_set_char:google.firestore.admin.v1.Index.name)
  798. }
  799. inline void Index::set_name(const char* value, size_t size) {
  800. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  801. ::std::string(reinterpret_cast<const char*>(value), size));
  802. // @@protoc_insertion_point(field_set_pointer:google.firestore.admin.v1.Index.name)
  803. }
  804. inline std::string* Index::_internal_mutable_name() {
  805. return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  806. }
  807. inline std::string* Index::release_name() {
  808. // @@protoc_insertion_point(field_release:google.firestore.admin.v1.Index.name)
  809. return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  810. }
  811. inline void Index::set_allocated_name(std::string* name) {
  812. if (name != nullptr) {
  813. } else {
  814. }
  815. name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name);
  816. // @@protoc_insertion_point(field_set_allocated:google.firestore.admin.v1.Index.name)
  817. }
  818. // .google.firestore.admin.v1.Index.QueryScope query_scope = 2;
  819. inline void Index::clear_query_scope() {
  820. query_scope_ = 0;
  821. }
  822. inline ::google::firestore::admin::v1::Index_QueryScope Index::_internal_query_scope() const {
  823. return static_cast< ::google::firestore::admin::v1::Index_QueryScope >(query_scope_);
  824. }
  825. inline ::google::firestore::admin::v1::Index_QueryScope Index::query_scope() const {
  826. // @@protoc_insertion_point(field_get:google.firestore.admin.v1.Index.query_scope)
  827. return _internal_query_scope();
  828. }
  829. inline void Index::_internal_set_query_scope(::google::firestore::admin::v1::Index_QueryScope value) {
  830. query_scope_ = value;
  831. }
  832. inline void Index::set_query_scope(::google::firestore::admin::v1::Index_QueryScope value) {
  833. _internal_set_query_scope(value);
  834. // @@protoc_insertion_point(field_set:google.firestore.admin.v1.Index.query_scope)
  835. }
  836. // repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
  837. inline int Index::_internal_fields_size() const {
  838. return fields_.size();
  839. }
  840. inline int Index::fields_size() const {
  841. return _internal_fields_size();
  842. }
  843. inline void Index::clear_fields() {
  844. fields_.Clear();
  845. }
  846. inline ::google::firestore::admin::v1::Index_IndexField* Index::mutable_fields(int index) {
  847. // @@protoc_insertion_point(field_mutable:google.firestore.admin.v1.Index.fields)
  848. return fields_.Mutable(index);
  849. }
  850. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::admin::v1::Index_IndexField >*
  851. Index::mutable_fields() {
  852. // @@protoc_insertion_point(field_mutable_list:google.firestore.admin.v1.Index.fields)
  853. return &fields_;
  854. }
  855. inline const ::google::firestore::admin::v1::Index_IndexField& Index::_internal_fields(int index) const {
  856. return fields_.Get(index);
  857. }
  858. inline const ::google::firestore::admin::v1::Index_IndexField& Index::fields(int index) const {
  859. // @@protoc_insertion_point(field_get:google.firestore.admin.v1.Index.fields)
  860. return _internal_fields(index);
  861. }
  862. inline ::google::firestore::admin::v1::Index_IndexField* Index::_internal_add_fields() {
  863. return fields_.Add();
  864. }
  865. inline ::google::firestore::admin::v1::Index_IndexField* Index::add_fields() {
  866. // @@protoc_insertion_point(field_add:google.firestore.admin.v1.Index.fields)
  867. return _internal_add_fields();
  868. }
  869. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::admin::v1::Index_IndexField >&
  870. Index::fields() const {
  871. // @@protoc_insertion_point(field_list:google.firestore.admin.v1.Index.fields)
  872. return fields_;
  873. }
  874. // .google.firestore.admin.v1.Index.State state = 4;
  875. inline void Index::clear_state() {
  876. state_ = 0;
  877. }
  878. inline ::google::firestore::admin::v1::Index_State Index::_internal_state() const {
  879. return static_cast< ::google::firestore::admin::v1::Index_State >(state_);
  880. }
  881. inline ::google::firestore::admin::v1::Index_State Index::state() const {
  882. // @@protoc_insertion_point(field_get:google.firestore.admin.v1.Index.state)
  883. return _internal_state();
  884. }
  885. inline void Index::_internal_set_state(::google::firestore::admin::v1::Index_State value) {
  886. state_ = value;
  887. }
  888. inline void Index::set_state(::google::firestore::admin::v1::Index_State value) {
  889. _internal_set_state(value);
  890. // @@protoc_insertion_point(field_set:google.firestore.admin.v1.Index.state)
  891. }
  892. #ifdef __GNUC__
  893. #pragma GCC diagnostic pop
  894. #endif // __GNUC__
  895. // -------------------------------------------------------------------
  896. // @@protoc_insertion_point(namespace_scope)
  897. } // namespace v1
  898. } // namespace admin
  899. } // namespace firestore
  900. } // namespace google
  901. PROTOBUF_NAMESPACE_OPEN
  902. template <> struct is_proto_enum< ::google::firestore::admin::v1::Index_IndexField_Order> : ::std::true_type {};
  903. template <>
  904. inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::admin::v1::Index_IndexField_Order>() {
  905. return ::google::firestore::admin::v1::Index_IndexField_Order_descriptor();
  906. }
  907. template <> struct is_proto_enum< ::google::firestore::admin::v1::Index_IndexField_ArrayConfig> : ::std::true_type {};
  908. template <>
  909. inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::admin::v1::Index_IndexField_ArrayConfig>() {
  910. return ::google::firestore::admin::v1::Index_IndexField_ArrayConfig_descriptor();
  911. }
  912. template <> struct is_proto_enum< ::google::firestore::admin::v1::Index_QueryScope> : ::std::true_type {};
  913. template <>
  914. inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::admin::v1::Index_QueryScope>() {
  915. return ::google::firestore::admin::v1::Index_QueryScope_descriptor();
  916. }
  917. template <> struct is_proto_enum< ::google::firestore::admin::v1::Index_State> : ::std::true_type {};
  918. template <>
  919. inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::admin::v1::Index_State>() {
  920. return ::google::firestore::admin::v1::Index_State_descriptor();
  921. }
  922. PROTOBUF_NAMESPACE_CLOSE
  923. // @@protoc_insertion_point(global_scope)
  924. #include <google/protobuf/port_undef.inc>
  925. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fadmin_2findex_2eproto