index.pb.h 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124
  1. /*
  2. * Copyright 2024 Google LLC
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. // Generated by the protocol buffer compiler. DO NOT EDIT!
  17. // source: google/firestore/admin/index.proto
  18. // Protobuf C++ Version: 4.25.1
  19. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fadmin_2findex_2eproto_2epb_2eh
  20. #define GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fadmin_2findex_2eproto_2epb_2eh
  21. #include <limits>
  22. #include <string>
  23. #include <type_traits>
  24. #include <utility>
  25. #include "google/protobuf/port_def.inc"
  26. #if PROTOBUF_VERSION < 4025000
  27. #error "This file was generated by a newer version of protoc which is"
  28. #error "incompatible with your Protocol Buffer headers. Please update"
  29. #error "your headers."
  30. #endif // PROTOBUF_VERSION
  31. #if 4025001 < PROTOBUF_MIN_PROTOC_VERSION
  32. #error "This file was generated by an older version of protoc which is"
  33. #error "incompatible with your Protocol Buffer headers. Please"
  34. #error "regenerate this file with a newer version of protoc."
  35. #endif // PROTOBUF_MIN_PROTOC_VERSION
  36. #include "google/protobuf/port_undef.inc"
  37. #include "google/protobuf/io/coded_stream.h"
  38. #include "google/protobuf/arena.h"
  39. #include "google/protobuf/arenastring.h"
  40. #include "google/protobuf/generated_message_tctable_decl.h"
  41. #include "google/protobuf/generated_message_util.h"
  42. #include "google/protobuf/metadata_lite.h"
  43. #include "google/protobuf/generated_message_reflection.h"
  44. #include "google/protobuf/message.h"
  45. #include "google/protobuf/repeated_field.h" // IWYU pragma: export
  46. #include "google/protobuf/extension_set.h" // IWYU pragma: export
  47. #include "google/protobuf/generated_enum_reflection.h"
  48. #include "google/protobuf/unknown_field_set.h"
  49. #include "google/api/resource.pb.h"
  50. // @@protoc_insertion_point(includes)
  51. // Must be included last.
  52. #include "google/protobuf/port_def.inc"
  53. #define PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fadmin_2findex_2eproto
  54. namespace google {
  55. namespace protobuf {
  56. namespace internal {
  57. class AnyMetadata;
  58. } // namespace internal
  59. } // namespace protobuf
  60. } // namespace google
  61. // Internal implementation detail -- do not use these members.
  62. struct TableStruct_google_2ffirestore_2fadmin_2findex_2eproto {
  63. static const ::uint32_t offsets[];
  64. };
  65. extern const ::google::protobuf::internal::DescriptorTable
  66. descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto;
  67. namespace google {
  68. namespace firestore {
  69. namespace admin {
  70. namespace v1 {
  71. class Index;
  72. struct IndexDefaultTypeInternal;
  73. extern IndexDefaultTypeInternal _Index_default_instance_;
  74. class Index_IndexField;
  75. struct Index_IndexFieldDefaultTypeInternal;
  76. extern Index_IndexFieldDefaultTypeInternal _Index_IndexField_default_instance_;
  77. } // namespace v1
  78. } // namespace admin
  79. } // namespace firestore
  80. namespace protobuf {
  81. } // namespace protobuf
  82. } // namespace google
  83. namespace google {
  84. namespace firestore {
  85. namespace admin {
  86. namespace v1 {
  87. enum Index_IndexField_Order : int {
  88. Index_IndexField_Order_ORDER_UNSPECIFIED = 0,
  89. Index_IndexField_Order_ASCENDING = 1,
  90. Index_IndexField_Order_DESCENDING = 2,
  91. Index_IndexField_Order_Index_IndexField_Order_INT_MIN_SENTINEL_DO_NOT_USE_ =
  92. std::numeric_limits<::int32_t>::min(),
  93. Index_IndexField_Order_Index_IndexField_Order_INT_MAX_SENTINEL_DO_NOT_USE_ =
  94. std::numeric_limits<::int32_t>::max(),
  95. };
  96. bool Index_IndexField_Order_IsValid(int value);
  97. extern const uint32_t Index_IndexField_Order_internal_data_[];
  98. constexpr Index_IndexField_Order Index_IndexField_Order_Order_MIN = static_cast<Index_IndexField_Order>(0);
  99. constexpr Index_IndexField_Order Index_IndexField_Order_Order_MAX = static_cast<Index_IndexField_Order>(2);
  100. constexpr int Index_IndexField_Order_Order_ARRAYSIZE = 2 + 1;
  101. const ::google::protobuf::EnumDescriptor*
  102. Index_IndexField_Order_descriptor();
  103. template <typename T>
  104. const std::string& Index_IndexField_Order_Name(T value) {
  105. static_assert(std::is_same<T, Index_IndexField_Order>::value ||
  106. std::is_integral<T>::value,
  107. "Incorrect type passed to Order_Name().");
  108. return Index_IndexField_Order_Name(static_cast<Index_IndexField_Order>(value));
  109. }
  110. template <>
  111. inline const std::string& Index_IndexField_Order_Name(Index_IndexField_Order value) {
  112. return ::google::protobuf::internal::NameOfDenseEnum<Index_IndexField_Order_descriptor,
  113. 0, 2>(
  114. static_cast<int>(value));
  115. }
  116. inline bool Index_IndexField_Order_Parse(absl::string_view name, Index_IndexField_Order* value) {
  117. return ::google::protobuf::internal::ParseNamedEnum<Index_IndexField_Order>(
  118. Index_IndexField_Order_descriptor(), name, value);
  119. }
  120. enum Index_IndexField_ArrayConfig : int {
  121. Index_IndexField_ArrayConfig_ARRAY_CONFIG_UNSPECIFIED = 0,
  122. Index_IndexField_ArrayConfig_CONTAINS = 1,
  123. Index_IndexField_ArrayConfig_Index_IndexField_ArrayConfig_INT_MIN_SENTINEL_DO_NOT_USE_ =
  124. std::numeric_limits<::int32_t>::min(),
  125. Index_IndexField_ArrayConfig_Index_IndexField_ArrayConfig_INT_MAX_SENTINEL_DO_NOT_USE_ =
  126. std::numeric_limits<::int32_t>::max(),
  127. };
  128. bool Index_IndexField_ArrayConfig_IsValid(int value);
  129. extern const uint32_t Index_IndexField_ArrayConfig_internal_data_[];
  130. constexpr Index_IndexField_ArrayConfig Index_IndexField_ArrayConfig_ArrayConfig_MIN = static_cast<Index_IndexField_ArrayConfig>(0);
  131. constexpr Index_IndexField_ArrayConfig Index_IndexField_ArrayConfig_ArrayConfig_MAX = static_cast<Index_IndexField_ArrayConfig>(1);
  132. constexpr int Index_IndexField_ArrayConfig_ArrayConfig_ARRAYSIZE = 1 + 1;
  133. const ::google::protobuf::EnumDescriptor*
  134. Index_IndexField_ArrayConfig_descriptor();
  135. template <typename T>
  136. const std::string& Index_IndexField_ArrayConfig_Name(T value) {
  137. static_assert(std::is_same<T, Index_IndexField_ArrayConfig>::value ||
  138. std::is_integral<T>::value,
  139. "Incorrect type passed to ArrayConfig_Name().");
  140. return Index_IndexField_ArrayConfig_Name(static_cast<Index_IndexField_ArrayConfig>(value));
  141. }
  142. template <>
  143. inline const std::string& Index_IndexField_ArrayConfig_Name(Index_IndexField_ArrayConfig value) {
  144. return ::google::protobuf::internal::NameOfDenseEnum<Index_IndexField_ArrayConfig_descriptor,
  145. 0, 1>(
  146. static_cast<int>(value));
  147. }
  148. inline bool Index_IndexField_ArrayConfig_Parse(absl::string_view name, Index_IndexField_ArrayConfig* value) {
  149. return ::google::protobuf::internal::ParseNamedEnum<Index_IndexField_ArrayConfig>(
  150. Index_IndexField_ArrayConfig_descriptor(), name, value);
  151. }
  152. enum Index_QueryScope : int {
  153. Index_QueryScope_QUERY_SCOPE_UNSPECIFIED = 0,
  154. Index_QueryScope_COLLECTION = 1,
  155. Index_QueryScope_COLLECTION_GROUP = 2,
  156. Index_QueryScope_Index_QueryScope_INT_MIN_SENTINEL_DO_NOT_USE_ =
  157. std::numeric_limits<::int32_t>::min(),
  158. Index_QueryScope_Index_QueryScope_INT_MAX_SENTINEL_DO_NOT_USE_ =
  159. std::numeric_limits<::int32_t>::max(),
  160. };
  161. bool Index_QueryScope_IsValid(int value);
  162. extern const uint32_t Index_QueryScope_internal_data_[];
  163. constexpr Index_QueryScope Index_QueryScope_QueryScope_MIN = static_cast<Index_QueryScope>(0);
  164. constexpr Index_QueryScope Index_QueryScope_QueryScope_MAX = static_cast<Index_QueryScope>(2);
  165. constexpr int Index_QueryScope_QueryScope_ARRAYSIZE = 2 + 1;
  166. const ::google::protobuf::EnumDescriptor*
  167. Index_QueryScope_descriptor();
  168. template <typename T>
  169. const std::string& Index_QueryScope_Name(T value) {
  170. static_assert(std::is_same<T, Index_QueryScope>::value ||
  171. std::is_integral<T>::value,
  172. "Incorrect type passed to QueryScope_Name().");
  173. return Index_QueryScope_Name(static_cast<Index_QueryScope>(value));
  174. }
  175. template <>
  176. inline const std::string& Index_QueryScope_Name(Index_QueryScope value) {
  177. return ::google::protobuf::internal::NameOfDenseEnum<Index_QueryScope_descriptor,
  178. 0, 2>(
  179. static_cast<int>(value));
  180. }
  181. inline bool Index_QueryScope_Parse(absl::string_view name, Index_QueryScope* value) {
  182. return ::google::protobuf::internal::ParseNamedEnum<Index_QueryScope>(
  183. Index_QueryScope_descriptor(), name, value);
  184. }
  185. enum Index_State : int {
  186. Index_State_STATE_UNSPECIFIED = 0,
  187. Index_State_CREATING = 1,
  188. Index_State_READY = 2,
  189. Index_State_NEEDS_REPAIR = 3,
  190. Index_State_Index_State_INT_MIN_SENTINEL_DO_NOT_USE_ =
  191. std::numeric_limits<::int32_t>::min(),
  192. Index_State_Index_State_INT_MAX_SENTINEL_DO_NOT_USE_ =
  193. std::numeric_limits<::int32_t>::max(),
  194. };
  195. bool Index_State_IsValid(int value);
  196. extern const uint32_t Index_State_internal_data_[];
  197. constexpr Index_State Index_State_State_MIN = static_cast<Index_State>(0);
  198. constexpr Index_State Index_State_State_MAX = static_cast<Index_State>(3);
  199. constexpr int Index_State_State_ARRAYSIZE = 3 + 1;
  200. const ::google::protobuf::EnumDescriptor*
  201. Index_State_descriptor();
  202. template <typename T>
  203. const std::string& Index_State_Name(T value) {
  204. static_assert(std::is_same<T, Index_State>::value ||
  205. std::is_integral<T>::value,
  206. "Incorrect type passed to State_Name().");
  207. return Index_State_Name(static_cast<Index_State>(value));
  208. }
  209. template <>
  210. inline const std::string& Index_State_Name(Index_State value) {
  211. return ::google::protobuf::internal::NameOfDenseEnum<Index_State_descriptor,
  212. 0, 3>(
  213. static_cast<int>(value));
  214. }
  215. inline bool Index_State_Parse(absl::string_view name, Index_State* value) {
  216. return ::google::protobuf::internal::ParseNamedEnum<Index_State>(
  217. Index_State_descriptor(), name, value);
  218. }
  219. // ===================================================================
  220. // -------------------------------------------------------------------
  221. class Index_IndexField final :
  222. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.admin.v1.Index.IndexField) */ {
  223. public:
  224. inline Index_IndexField() : Index_IndexField(nullptr) {}
  225. ~Index_IndexField() override;
  226. template<typename = void>
  227. explicit PROTOBUF_CONSTEXPR Index_IndexField(::google::protobuf::internal::ConstantInitialized);
  228. inline Index_IndexField(const Index_IndexField& from)
  229. : Index_IndexField(nullptr, from) {}
  230. Index_IndexField(Index_IndexField&& from) noexcept
  231. : Index_IndexField() {
  232. *this = ::std::move(from);
  233. }
  234. inline Index_IndexField& operator=(const Index_IndexField& from) {
  235. CopyFrom(from);
  236. return *this;
  237. }
  238. inline Index_IndexField& operator=(Index_IndexField&& from) noexcept {
  239. if (this == &from) return *this;
  240. if (GetArena() == from.GetArena()
  241. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  242. && GetArena() != nullptr
  243. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  244. ) {
  245. InternalSwap(&from);
  246. } else {
  247. CopyFrom(from);
  248. }
  249. return *this;
  250. }
  251. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  252. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  253. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  254. }
  255. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  256. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  257. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  258. }
  259. static const ::google::protobuf::Descriptor* descriptor() {
  260. return GetDescriptor();
  261. }
  262. static const ::google::protobuf::Descriptor* GetDescriptor() {
  263. return default_instance().GetMetadata().descriptor;
  264. }
  265. static const ::google::protobuf::Reflection* GetReflection() {
  266. return default_instance().GetMetadata().reflection;
  267. }
  268. static const Index_IndexField& default_instance() {
  269. return *internal_default_instance();
  270. }
  271. enum ValueModeCase {
  272. kOrder = 2,
  273. kArrayConfig = 3,
  274. VALUE_MODE_NOT_SET = 0,
  275. };
  276. static inline const Index_IndexField* internal_default_instance() {
  277. return reinterpret_cast<const Index_IndexField*>(
  278. &_Index_IndexField_default_instance_);
  279. }
  280. static constexpr int kIndexInFileMessages =
  281. 0;
  282. friend void swap(Index_IndexField& a, Index_IndexField& b) {
  283. a.Swap(&b);
  284. }
  285. inline void Swap(Index_IndexField* other) {
  286. if (other == this) return;
  287. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  288. if (GetArena() != nullptr &&
  289. GetArena() == other->GetArena()) {
  290. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  291. if (GetArena() == other->GetArena()) {
  292. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  293. InternalSwap(other);
  294. } else {
  295. ::google::protobuf::internal::GenericSwap(this, other);
  296. }
  297. }
  298. void UnsafeArenaSwap(Index_IndexField* other) {
  299. if (other == this) return;
  300. ABSL_DCHECK(GetArena() == other->GetArena());
  301. InternalSwap(other);
  302. }
  303. // implements Message ----------------------------------------------
  304. Index_IndexField* New(::google::protobuf::Arena* arena = nullptr) const final {
  305. return CreateMaybeMessage<Index_IndexField>(arena);
  306. }
  307. using ::google::protobuf::Message::CopyFrom;
  308. void CopyFrom(const Index_IndexField& from);
  309. using ::google::protobuf::Message::MergeFrom;
  310. void MergeFrom( const Index_IndexField& from) {
  311. Index_IndexField::MergeImpl(*this, from);
  312. }
  313. private:
  314. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  315. public:
  316. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  317. bool IsInitialized() const final;
  318. ::size_t ByteSizeLong() const final;
  319. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  320. ::uint8_t* _InternalSerialize(
  321. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  322. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  323. private:
  324. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  325. void SharedCtor(::google::protobuf::Arena* arena);
  326. void SharedDtor();
  327. void InternalSwap(Index_IndexField* other);
  328. private:
  329. friend class ::google::protobuf::internal::AnyMetadata;
  330. static ::absl::string_view FullMessageName() {
  331. return "google.firestore.admin.v1.Index.IndexField";
  332. }
  333. protected:
  334. explicit Index_IndexField(::google::protobuf::Arena* arena);
  335. Index_IndexField(::google::protobuf::Arena* arena, const Index_IndexField& from);
  336. public:
  337. static const ClassData _class_data_;
  338. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  339. ::google::protobuf::Metadata GetMetadata() const final;
  340. // nested types ----------------------------------------------------
  341. using Order = Index_IndexField_Order;
  342. static constexpr Order ORDER_UNSPECIFIED = Index_IndexField_Order_ORDER_UNSPECIFIED;
  343. static constexpr Order ASCENDING = Index_IndexField_Order_ASCENDING;
  344. static constexpr Order DESCENDING = Index_IndexField_Order_DESCENDING;
  345. static inline bool Order_IsValid(int value) {
  346. return Index_IndexField_Order_IsValid(value);
  347. }
  348. static constexpr Order Order_MIN = Index_IndexField_Order_Order_MIN;
  349. static constexpr Order Order_MAX = Index_IndexField_Order_Order_MAX;
  350. static constexpr int Order_ARRAYSIZE = Index_IndexField_Order_Order_ARRAYSIZE;
  351. static inline const ::google::protobuf::EnumDescriptor* Order_descriptor() {
  352. return Index_IndexField_Order_descriptor();
  353. }
  354. template <typename T>
  355. static inline const std::string& Order_Name(T value) {
  356. return Index_IndexField_Order_Name(value);
  357. }
  358. static inline bool Order_Parse(absl::string_view name, Order* value) {
  359. return Index_IndexField_Order_Parse(name, value);
  360. }
  361. using ArrayConfig = Index_IndexField_ArrayConfig;
  362. static constexpr ArrayConfig ARRAY_CONFIG_UNSPECIFIED = Index_IndexField_ArrayConfig_ARRAY_CONFIG_UNSPECIFIED;
  363. static constexpr ArrayConfig CONTAINS = Index_IndexField_ArrayConfig_CONTAINS;
  364. static inline bool ArrayConfig_IsValid(int value) {
  365. return Index_IndexField_ArrayConfig_IsValid(value);
  366. }
  367. static constexpr ArrayConfig ArrayConfig_MIN = Index_IndexField_ArrayConfig_ArrayConfig_MIN;
  368. static constexpr ArrayConfig ArrayConfig_MAX = Index_IndexField_ArrayConfig_ArrayConfig_MAX;
  369. static constexpr int ArrayConfig_ARRAYSIZE = Index_IndexField_ArrayConfig_ArrayConfig_ARRAYSIZE;
  370. static inline const ::google::protobuf::EnumDescriptor* ArrayConfig_descriptor() {
  371. return Index_IndexField_ArrayConfig_descriptor();
  372. }
  373. template <typename T>
  374. static inline const std::string& ArrayConfig_Name(T value) {
  375. return Index_IndexField_ArrayConfig_Name(value);
  376. }
  377. static inline bool ArrayConfig_Parse(absl::string_view name, ArrayConfig* value) {
  378. return Index_IndexField_ArrayConfig_Parse(name, value);
  379. }
  380. // accessors -------------------------------------------------------
  381. enum : int {
  382. kFieldPathFieldNumber = 1,
  383. kOrderFieldNumber = 2,
  384. kArrayConfigFieldNumber = 3,
  385. };
  386. // string field_path = 1;
  387. void clear_field_path() ;
  388. const std::string& field_path() const;
  389. template <typename Arg_ = const std::string&, typename... Args_>
  390. void set_field_path(Arg_&& arg, Args_... args);
  391. std::string* mutable_field_path();
  392. PROTOBUF_NODISCARD std::string* release_field_path();
  393. void set_allocated_field_path(std::string* value);
  394. private:
  395. const std::string& _internal_field_path() const;
  396. inline PROTOBUF_ALWAYS_INLINE void _internal_set_field_path(
  397. const std::string& value);
  398. std::string* _internal_mutable_field_path();
  399. public:
  400. // .google.firestore.admin.v1.Index.IndexField.Order order = 2;
  401. bool has_order() const;
  402. void clear_order() ;
  403. ::google::firestore::admin::v1::Index_IndexField_Order order() const;
  404. void set_order(::google::firestore::admin::v1::Index_IndexField_Order value);
  405. private:
  406. ::google::firestore::admin::v1::Index_IndexField_Order _internal_order() const;
  407. void _internal_set_order(::google::firestore::admin::v1::Index_IndexField_Order value);
  408. public:
  409. // .google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;
  410. bool has_array_config() const;
  411. void clear_array_config() ;
  412. ::google::firestore::admin::v1::Index_IndexField_ArrayConfig array_config() const;
  413. void set_array_config(::google::firestore::admin::v1::Index_IndexField_ArrayConfig value);
  414. private:
  415. ::google::firestore::admin::v1::Index_IndexField_ArrayConfig _internal_array_config() const;
  416. void _internal_set_array_config(::google::firestore::admin::v1::Index_IndexField_ArrayConfig value);
  417. public:
  418. void clear_value_mode();
  419. ValueModeCase value_mode_case() const;
  420. // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.Index.IndexField)
  421. private:
  422. class _Internal;
  423. void set_has_order();
  424. void set_has_array_config();
  425. inline bool has_value_mode() const;
  426. inline void clear_has_value_mode();
  427. friend class ::google::protobuf::internal::TcParser;
  428. static const ::google::protobuf::internal::TcParseTable<
  429. 0, 3, 0,
  430. 61, 2>
  431. _table_;
  432. friend class ::google::protobuf::MessageLite;
  433. friend class ::google::protobuf::Arena;
  434. template <typename T>
  435. friend class ::google::protobuf::Arena::InternalHelper;
  436. using InternalArenaConstructable_ = void;
  437. using DestructorSkippable_ = void;
  438. struct Impl_ {
  439. inline explicit constexpr Impl_(
  440. ::google::protobuf::internal::ConstantInitialized) noexcept;
  441. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  442. ::google::protobuf::Arena* arena);
  443. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  444. ::google::protobuf::Arena* arena, const Impl_& from);
  445. ::google::protobuf::internal::ArenaStringPtr field_path_;
  446. union ValueModeUnion {
  447. constexpr ValueModeUnion() : _constinit_{} {}
  448. ::google::protobuf::internal::ConstantInitialized _constinit_;
  449. int order_;
  450. int array_config_;
  451. } value_mode_;
  452. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  453. ::uint32_t _oneof_case_[1];
  454. PROTOBUF_TSAN_DECLARE_MEMBER
  455. };
  456. union { Impl_ _impl_; };
  457. friend struct ::TableStruct_google_2ffirestore_2fadmin_2findex_2eproto;
  458. };// -------------------------------------------------------------------
  459. class Index final :
  460. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.admin.v1.Index) */ {
  461. public:
  462. inline Index() : Index(nullptr) {}
  463. ~Index() override;
  464. template<typename = void>
  465. explicit PROTOBUF_CONSTEXPR Index(::google::protobuf::internal::ConstantInitialized);
  466. inline Index(const Index& from)
  467. : Index(nullptr, from) {}
  468. Index(Index&& from) noexcept
  469. : Index() {
  470. *this = ::std::move(from);
  471. }
  472. inline Index& operator=(const Index& from) {
  473. CopyFrom(from);
  474. return *this;
  475. }
  476. inline Index& operator=(Index&& from) noexcept {
  477. if (this == &from) return *this;
  478. if (GetArena() == from.GetArena()
  479. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  480. && GetArena() != nullptr
  481. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  482. ) {
  483. InternalSwap(&from);
  484. } else {
  485. CopyFrom(from);
  486. }
  487. return *this;
  488. }
  489. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  490. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  491. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  492. }
  493. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  494. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  495. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  496. }
  497. static const ::google::protobuf::Descriptor* descriptor() {
  498. return GetDescriptor();
  499. }
  500. static const ::google::protobuf::Descriptor* GetDescriptor() {
  501. return default_instance().GetMetadata().descriptor;
  502. }
  503. static const ::google::protobuf::Reflection* GetReflection() {
  504. return default_instance().GetMetadata().reflection;
  505. }
  506. static const Index& default_instance() {
  507. return *internal_default_instance();
  508. }
  509. static inline const Index* internal_default_instance() {
  510. return reinterpret_cast<const Index*>(
  511. &_Index_default_instance_);
  512. }
  513. static constexpr int kIndexInFileMessages =
  514. 1;
  515. friend void swap(Index& a, Index& b) {
  516. a.Swap(&b);
  517. }
  518. inline void Swap(Index* other) {
  519. if (other == this) return;
  520. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  521. if (GetArena() != nullptr &&
  522. GetArena() == other->GetArena()) {
  523. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  524. if (GetArena() == other->GetArena()) {
  525. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  526. InternalSwap(other);
  527. } else {
  528. ::google::protobuf::internal::GenericSwap(this, other);
  529. }
  530. }
  531. void UnsafeArenaSwap(Index* other) {
  532. if (other == this) return;
  533. ABSL_DCHECK(GetArena() == other->GetArena());
  534. InternalSwap(other);
  535. }
  536. // implements Message ----------------------------------------------
  537. Index* New(::google::protobuf::Arena* arena = nullptr) const final {
  538. return CreateMaybeMessage<Index>(arena);
  539. }
  540. using ::google::protobuf::Message::CopyFrom;
  541. void CopyFrom(const Index& from);
  542. using ::google::protobuf::Message::MergeFrom;
  543. void MergeFrom( const Index& from) {
  544. Index::MergeImpl(*this, from);
  545. }
  546. private:
  547. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  548. public:
  549. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  550. bool IsInitialized() const final;
  551. ::size_t ByteSizeLong() const final;
  552. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  553. ::uint8_t* _InternalSerialize(
  554. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  555. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  556. private:
  557. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  558. void SharedCtor(::google::protobuf::Arena* arena);
  559. void SharedDtor();
  560. void InternalSwap(Index* other);
  561. private:
  562. friend class ::google::protobuf::internal::AnyMetadata;
  563. static ::absl::string_view FullMessageName() {
  564. return "google.firestore.admin.v1.Index";
  565. }
  566. protected:
  567. explicit Index(::google::protobuf::Arena* arena);
  568. Index(::google::protobuf::Arena* arena, const Index& from);
  569. public:
  570. static const ClassData _class_data_;
  571. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  572. ::google::protobuf::Metadata GetMetadata() const final;
  573. // nested types ----------------------------------------------------
  574. using IndexField = Index_IndexField;
  575. using QueryScope = Index_QueryScope;
  576. static constexpr QueryScope QUERY_SCOPE_UNSPECIFIED = Index_QueryScope_QUERY_SCOPE_UNSPECIFIED;
  577. static constexpr QueryScope COLLECTION = Index_QueryScope_COLLECTION;
  578. static constexpr QueryScope COLLECTION_GROUP = Index_QueryScope_COLLECTION_GROUP;
  579. static inline bool QueryScope_IsValid(int value) {
  580. return Index_QueryScope_IsValid(value);
  581. }
  582. static constexpr QueryScope QueryScope_MIN = Index_QueryScope_QueryScope_MIN;
  583. static constexpr QueryScope QueryScope_MAX = Index_QueryScope_QueryScope_MAX;
  584. static constexpr int QueryScope_ARRAYSIZE = Index_QueryScope_QueryScope_ARRAYSIZE;
  585. static inline const ::google::protobuf::EnumDescriptor* QueryScope_descriptor() {
  586. return Index_QueryScope_descriptor();
  587. }
  588. template <typename T>
  589. static inline const std::string& QueryScope_Name(T value) {
  590. return Index_QueryScope_Name(value);
  591. }
  592. static inline bool QueryScope_Parse(absl::string_view name, QueryScope* value) {
  593. return Index_QueryScope_Parse(name, value);
  594. }
  595. using State = Index_State;
  596. static constexpr State STATE_UNSPECIFIED = Index_State_STATE_UNSPECIFIED;
  597. static constexpr State CREATING = Index_State_CREATING;
  598. static constexpr State READY = Index_State_READY;
  599. static constexpr State NEEDS_REPAIR = Index_State_NEEDS_REPAIR;
  600. static inline bool State_IsValid(int value) {
  601. return Index_State_IsValid(value);
  602. }
  603. static constexpr State State_MIN = Index_State_State_MIN;
  604. static constexpr State State_MAX = Index_State_State_MAX;
  605. static constexpr int State_ARRAYSIZE = Index_State_State_ARRAYSIZE;
  606. static inline const ::google::protobuf::EnumDescriptor* State_descriptor() {
  607. return Index_State_descriptor();
  608. }
  609. template <typename T>
  610. static inline const std::string& State_Name(T value) {
  611. return Index_State_Name(value);
  612. }
  613. static inline bool State_Parse(absl::string_view name, State* value) {
  614. return Index_State_Parse(name, value);
  615. }
  616. // accessors -------------------------------------------------------
  617. enum : int {
  618. kFieldsFieldNumber = 3,
  619. kNameFieldNumber = 1,
  620. kQueryScopeFieldNumber = 2,
  621. kStateFieldNumber = 4,
  622. };
  623. // repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
  624. int fields_size() const;
  625. private:
  626. int _internal_fields_size() const;
  627. public:
  628. void clear_fields() ;
  629. ::google::firestore::admin::v1::Index_IndexField* mutable_fields(int index);
  630. ::google::protobuf::RepeatedPtrField< ::google::firestore::admin::v1::Index_IndexField >*
  631. mutable_fields();
  632. private:
  633. const ::google::protobuf::RepeatedPtrField<::google::firestore::admin::v1::Index_IndexField>& _internal_fields() const;
  634. ::google::protobuf::RepeatedPtrField<::google::firestore::admin::v1::Index_IndexField>* _internal_mutable_fields();
  635. public:
  636. const ::google::firestore::admin::v1::Index_IndexField& fields(int index) const;
  637. ::google::firestore::admin::v1::Index_IndexField* add_fields();
  638. const ::google::protobuf::RepeatedPtrField< ::google::firestore::admin::v1::Index_IndexField >&
  639. fields() const;
  640. // string name = 1;
  641. void clear_name() ;
  642. const std::string& name() const;
  643. template <typename Arg_ = const std::string&, typename... Args_>
  644. void set_name(Arg_&& arg, Args_... args);
  645. std::string* mutable_name();
  646. PROTOBUF_NODISCARD std::string* release_name();
  647. void set_allocated_name(std::string* value);
  648. private:
  649. const std::string& _internal_name() const;
  650. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(
  651. const std::string& value);
  652. std::string* _internal_mutable_name();
  653. public:
  654. // .google.firestore.admin.v1.Index.QueryScope query_scope = 2;
  655. void clear_query_scope() ;
  656. ::google::firestore::admin::v1::Index_QueryScope query_scope() const;
  657. void set_query_scope(::google::firestore::admin::v1::Index_QueryScope value);
  658. private:
  659. ::google::firestore::admin::v1::Index_QueryScope _internal_query_scope() const;
  660. void _internal_set_query_scope(::google::firestore::admin::v1::Index_QueryScope value);
  661. public:
  662. // .google.firestore.admin.v1.Index.State state = 4;
  663. void clear_state() ;
  664. ::google::firestore::admin::v1::Index_State state() const;
  665. void set_state(::google::firestore::admin::v1::Index_State value);
  666. private:
  667. ::google::firestore::admin::v1::Index_State _internal_state() const;
  668. void _internal_set_state(::google::firestore::admin::v1::Index_State value);
  669. public:
  670. // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.Index)
  671. private:
  672. class _Internal;
  673. friend class ::google::protobuf::internal::TcParser;
  674. static const ::google::protobuf::internal::TcParseTable<
  675. 2, 4, 1,
  676. 44, 2>
  677. _table_;
  678. friend class ::google::protobuf::MessageLite;
  679. friend class ::google::protobuf::Arena;
  680. template <typename T>
  681. friend class ::google::protobuf::Arena::InternalHelper;
  682. using InternalArenaConstructable_ = void;
  683. using DestructorSkippable_ = void;
  684. struct Impl_ {
  685. inline explicit constexpr Impl_(
  686. ::google::protobuf::internal::ConstantInitialized) noexcept;
  687. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  688. ::google::protobuf::Arena* arena);
  689. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  690. ::google::protobuf::Arena* arena, const Impl_& from);
  691. ::google::protobuf::RepeatedPtrField< ::google::firestore::admin::v1::Index_IndexField > fields_;
  692. ::google::protobuf::internal::ArenaStringPtr name_;
  693. int query_scope_;
  694. int state_;
  695. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  696. PROTOBUF_TSAN_DECLARE_MEMBER
  697. };
  698. union { Impl_ _impl_; };
  699. friend struct ::TableStruct_google_2ffirestore_2fadmin_2findex_2eproto;
  700. };
  701. // ===================================================================
  702. // ===================================================================
  703. #ifdef __GNUC__
  704. #pragma GCC diagnostic push
  705. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  706. #endif // __GNUC__
  707. // -------------------------------------------------------------------
  708. // Index_IndexField
  709. // string field_path = 1;
  710. inline void Index_IndexField::clear_field_path() {
  711. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  712. _impl_.field_path_.ClearToEmpty();
  713. }
  714. inline const std::string& Index_IndexField::field_path() const
  715. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  716. // @@protoc_insertion_point(field_get:google.firestore.admin.v1.Index.IndexField.field_path)
  717. return _internal_field_path();
  718. }
  719. template <typename Arg_, typename... Args_>
  720. inline PROTOBUF_ALWAYS_INLINE void Index_IndexField::set_field_path(Arg_&& arg,
  721. Args_... args) {
  722. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  723. ;
  724. _impl_.field_path_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  725. // @@protoc_insertion_point(field_set:google.firestore.admin.v1.Index.IndexField.field_path)
  726. }
  727. inline std::string* Index_IndexField::mutable_field_path() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  728. std::string* _s = _internal_mutable_field_path();
  729. // @@protoc_insertion_point(field_mutable:google.firestore.admin.v1.Index.IndexField.field_path)
  730. return _s;
  731. }
  732. inline const std::string& Index_IndexField::_internal_field_path() const {
  733. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  734. return _impl_.field_path_.Get();
  735. }
  736. inline void Index_IndexField::_internal_set_field_path(const std::string& value) {
  737. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  738. ;
  739. _impl_.field_path_.Set(value, GetArena());
  740. }
  741. inline std::string* Index_IndexField::_internal_mutable_field_path() {
  742. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  743. ;
  744. return _impl_.field_path_.Mutable( GetArena());
  745. }
  746. inline std::string* Index_IndexField::release_field_path() {
  747. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  748. // @@protoc_insertion_point(field_release:google.firestore.admin.v1.Index.IndexField.field_path)
  749. return _impl_.field_path_.Release();
  750. }
  751. inline void Index_IndexField::set_allocated_field_path(std::string* value) {
  752. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  753. _impl_.field_path_.SetAllocated(value, GetArena());
  754. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  755. if (_impl_.field_path_.IsDefault()) {
  756. _impl_.field_path_.Set("", GetArena());
  757. }
  758. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  759. // @@protoc_insertion_point(field_set_allocated:google.firestore.admin.v1.Index.IndexField.field_path)
  760. }
  761. // .google.firestore.admin.v1.Index.IndexField.Order order = 2;
  762. inline bool Index_IndexField::has_order() const {
  763. return value_mode_case() == kOrder;
  764. }
  765. inline void Index_IndexField::set_has_order() {
  766. _impl_._oneof_case_[0] = kOrder;
  767. }
  768. inline void Index_IndexField::clear_order() {
  769. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  770. if (value_mode_case() == kOrder) {
  771. _impl_.value_mode_.order_ = 0;
  772. clear_has_value_mode();
  773. }
  774. }
  775. inline ::google::firestore::admin::v1::Index_IndexField_Order Index_IndexField::order() const {
  776. // @@protoc_insertion_point(field_get:google.firestore.admin.v1.Index.IndexField.order)
  777. return _internal_order();
  778. }
  779. inline void Index_IndexField::set_order(::google::firestore::admin::v1::Index_IndexField_Order value) {
  780. _internal_set_order(value);
  781. // @@protoc_insertion_point(field_set:google.firestore.admin.v1.Index.IndexField.order)
  782. }
  783. inline ::google::firestore::admin::v1::Index_IndexField_Order Index_IndexField::_internal_order() const {
  784. if (value_mode_case() == kOrder) {
  785. return static_cast<::google::firestore::admin::v1::Index_IndexField_Order>(_impl_.value_mode_.order_);
  786. }
  787. return static_cast<::google::firestore::admin::v1::Index_IndexField_Order>(0);
  788. }
  789. inline void Index_IndexField::_internal_set_order(::google::firestore::admin::v1::Index_IndexField_Order value) {
  790. if (value_mode_case() != kOrder) {
  791. clear_value_mode();
  792. set_has_order();
  793. }
  794. _impl_.value_mode_.order_ = value;
  795. }
  796. // .google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;
  797. inline bool Index_IndexField::has_array_config() const {
  798. return value_mode_case() == kArrayConfig;
  799. }
  800. inline void Index_IndexField::set_has_array_config() {
  801. _impl_._oneof_case_[0] = kArrayConfig;
  802. }
  803. inline void Index_IndexField::clear_array_config() {
  804. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  805. if (value_mode_case() == kArrayConfig) {
  806. _impl_.value_mode_.array_config_ = 0;
  807. clear_has_value_mode();
  808. }
  809. }
  810. inline ::google::firestore::admin::v1::Index_IndexField_ArrayConfig Index_IndexField::array_config() const {
  811. // @@protoc_insertion_point(field_get:google.firestore.admin.v1.Index.IndexField.array_config)
  812. return _internal_array_config();
  813. }
  814. inline void Index_IndexField::set_array_config(::google::firestore::admin::v1::Index_IndexField_ArrayConfig value) {
  815. _internal_set_array_config(value);
  816. // @@protoc_insertion_point(field_set:google.firestore.admin.v1.Index.IndexField.array_config)
  817. }
  818. inline ::google::firestore::admin::v1::Index_IndexField_ArrayConfig Index_IndexField::_internal_array_config() const {
  819. if (value_mode_case() == kArrayConfig) {
  820. return static_cast<::google::firestore::admin::v1::Index_IndexField_ArrayConfig>(_impl_.value_mode_.array_config_);
  821. }
  822. return static_cast<::google::firestore::admin::v1::Index_IndexField_ArrayConfig>(0);
  823. }
  824. inline void Index_IndexField::_internal_set_array_config(::google::firestore::admin::v1::Index_IndexField_ArrayConfig value) {
  825. if (value_mode_case() != kArrayConfig) {
  826. clear_value_mode();
  827. set_has_array_config();
  828. }
  829. _impl_.value_mode_.array_config_ = value;
  830. }
  831. inline bool Index_IndexField::has_value_mode() const {
  832. return value_mode_case() != VALUE_MODE_NOT_SET;
  833. }
  834. inline void Index_IndexField::clear_has_value_mode() {
  835. _impl_._oneof_case_[0] = VALUE_MODE_NOT_SET;
  836. }
  837. inline Index_IndexField::ValueModeCase Index_IndexField::value_mode_case() const {
  838. return Index_IndexField::ValueModeCase(_impl_._oneof_case_[0]);
  839. }
  840. // -------------------------------------------------------------------
  841. // Index
  842. // string name = 1;
  843. inline void Index::clear_name() {
  844. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  845. _impl_.name_.ClearToEmpty();
  846. }
  847. inline const std::string& Index::name() const
  848. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  849. // @@protoc_insertion_point(field_get:google.firestore.admin.v1.Index.name)
  850. return _internal_name();
  851. }
  852. template <typename Arg_, typename... Args_>
  853. inline PROTOBUF_ALWAYS_INLINE void Index::set_name(Arg_&& arg,
  854. Args_... args) {
  855. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  856. ;
  857. _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  858. // @@protoc_insertion_point(field_set:google.firestore.admin.v1.Index.name)
  859. }
  860. inline std::string* Index::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  861. std::string* _s = _internal_mutable_name();
  862. // @@protoc_insertion_point(field_mutable:google.firestore.admin.v1.Index.name)
  863. return _s;
  864. }
  865. inline const std::string& Index::_internal_name() const {
  866. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  867. return _impl_.name_.Get();
  868. }
  869. inline void Index::_internal_set_name(const std::string& value) {
  870. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  871. ;
  872. _impl_.name_.Set(value, GetArena());
  873. }
  874. inline std::string* Index::_internal_mutable_name() {
  875. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  876. ;
  877. return _impl_.name_.Mutable( GetArena());
  878. }
  879. inline std::string* Index::release_name() {
  880. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  881. // @@protoc_insertion_point(field_release:google.firestore.admin.v1.Index.name)
  882. return _impl_.name_.Release();
  883. }
  884. inline void Index::set_allocated_name(std::string* value) {
  885. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  886. _impl_.name_.SetAllocated(value, GetArena());
  887. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  888. if (_impl_.name_.IsDefault()) {
  889. _impl_.name_.Set("", GetArena());
  890. }
  891. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  892. // @@protoc_insertion_point(field_set_allocated:google.firestore.admin.v1.Index.name)
  893. }
  894. // .google.firestore.admin.v1.Index.QueryScope query_scope = 2;
  895. inline void Index::clear_query_scope() {
  896. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  897. _impl_.query_scope_ = 0;
  898. }
  899. inline ::google::firestore::admin::v1::Index_QueryScope Index::query_scope() const {
  900. // @@protoc_insertion_point(field_get:google.firestore.admin.v1.Index.query_scope)
  901. return _internal_query_scope();
  902. }
  903. inline void Index::set_query_scope(::google::firestore::admin::v1::Index_QueryScope value) {
  904. _internal_set_query_scope(value);
  905. // @@protoc_insertion_point(field_set:google.firestore.admin.v1.Index.query_scope)
  906. }
  907. inline ::google::firestore::admin::v1::Index_QueryScope Index::_internal_query_scope() const {
  908. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  909. return static_cast<::google::firestore::admin::v1::Index_QueryScope>(_impl_.query_scope_);
  910. }
  911. inline void Index::_internal_set_query_scope(::google::firestore::admin::v1::Index_QueryScope value) {
  912. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  913. ;
  914. _impl_.query_scope_ = value;
  915. }
  916. // repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
  917. inline int Index::_internal_fields_size() const {
  918. return _internal_fields().size();
  919. }
  920. inline int Index::fields_size() const {
  921. return _internal_fields_size();
  922. }
  923. inline void Index::clear_fields() {
  924. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  925. _impl_.fields_.Clear();
  926. }
  927. inline ::google::firestore::admin::v1::Index_IndexField* Index::mutable_fields(int index)
  928. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  929. // @@protoc_insertion_point(field_mutable:google.firestore.admin.v1.Index.fields)
  930. return _internal_mutable_fields()->Mutable(index);
  931. }
  932. inline ::google::protobuf::RepeatedPtrField<::google::firestore::admin::v1::Index_IndexField>* Index::mutable_fields()
  933. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  934. // @@protoc_insertion_point(field_mutable_list:google.firestore.admin.v1.Index.fields)
  935. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  936. return _internal_mutable_fields();
  937. }
  938. inline const ::google::firestore::admin::v1::Index_IndexField& Index::fields(int index) const
  939. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  940. // @@protoc_insertion_point(field_get:google.firestore.admin.v1.Index.fields)
  941. return _internal_fields().Get(index);
  942. }
  943. inline ::google::firestore::admin::v1::Index_IndexField* Index::add_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  944. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  945. ::google::firestore::admin::v1::Index_IndexField* _add = _internal_mutable_fields()->Add();
  946. // @@protoc_insertion_point(field_add:google.firestore.admin.v1.Index.fields)
  947. return _add;
  948. }
  949. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::admin::v1::Index_IndexField>& Index::fields() const
  950. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  951. // @@protoc_insertion_point(field_list:google.firestore.admin.v1.Index.fields)
  952. return _internal_fields();
  953. }
  954. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::admin::v1::Index_IndexField>&
  955. Index::_internal_fields() const {
  956. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  957. return _impl_.fields_;
  958. }
  959. inline ::google::protobuf::RepeatedPtrField<::google::firestore::admin::v1::Index_IndexField>*
  960. Index::_internal_mutable_fields() {
  961. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  962. return &_impl_.fields_;
  963. }
  964. // .google.firestore.admin.v1.Index.State state = 4;
  965. inline void Index::clear_state() {
  966. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  967. _impl_.state_ = 0;
  968. }
  969. inline ::google::firestore::admin::v1::Index_State Index::state() const {
  970. // @@protoc_insertion_point(field_get:google.firestore.admin.v1.Index.state)
  971. return _internal_state();
  972. }
  973. inline void Index::set_state(::google::firestore::admin::v1::Index_State value) {
  974. _internal_set_state(value);
  975. // @@protoc_insertion_point(field_set:google.firestore.admin.v1.Index.state)
  976. }
  977. inline ::google::firestore::admin::v1::Index_State Index::_internal_state() const {
  978. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  979. return static_cast<::google::firestore::admin::v1::Index_State>(_impl_.state_);
  980. }
  981. inline void Index::_internal_set_state(::google::firestore::admin::v1::Index_State value) {
  982. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  983. ;
  984. _impl_.state_ = value;
  985. }
  986. #ifdef __GNUC__
  987. #pragma GCC diagnostic pop
  988. #endif // __GNUC__
  989. // @@protoc_insertion_point(namespace_scope)
  990. } // namespace v1
  991. } // namespace admin
  992. } // namespace firestore
  993. } // namespace google
  994. namespace google {
  995. namespace protobuf {
  996. template <>
  997. struct is_proto_enum<::google::firestore::admin::v1::Index_IndexField_Order> : std::true_type {};
  998. template <>
  999. inline const EnumDescriptor* GetEnumDescriptor<::google::firestore::admin::v1::Index_IndexField_Order>() {
  1000. return ::google::firestore::admin::v1::Index_IndexField_Order_descriptor();
  1001. }
  1002. template <>
  1003. struct is_proto_enum<::google::firestore::admin::v1::Index_IndexField_ArrayConfig> : std::true_type {};
  1004. template <>
  1005. inline const EnumDescriptor* GetEnumDescriptor<::google::firestore::admin::v1::Index_IndexField_ArrayConfig>() {
  1006. return ::google::firestore::admin::v1::Index_IndexField_ArrayConfig_descriptor();
  1007. }
  1008. template <>
  1009. struct is_proto_enum<::google::firestore::admin::v1::Index_QueryScope> : std::true_type {};
  1010. template <>
  1011. inline const EnumDescriptor* GetEnumDescriptor<::google::firestore::admin::v1::Index_QueryScope>() {
  1012. return ::google::firestore::admin::v1::Index_QueryScope_descriptor();
  1013. }
  1014. template <>
  1015. struct is_proto_enum<::google::firestore::admin::v1::Index_State> : std::true_type {};
  1016. template <>
  1017. inline const EnumDescriptor* GetEnumDescriptor<::google::firestore::admin::v1::Index_State>() {
  1018. return ::google::firestore::admin::v1::Index_State_descriptor();
  1019. }
  1020. } // namespace protobuf
  1021. } // namespace google
  1022. // @@protoc_insertion_point(global_scope)
  1023. #include "google/protobuf/port_undef.inc"
  1024. #endif // GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fadmin_2findex_2eproto_2epb_2eh