index.pb.h 40 KB

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