query.pb.h 108 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595
  1. /*
  2. * Copyright 2018 Google
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. // Generated by the protocol buffer compiler. DO NOT EDIT!
  17. // source: google/firestore/v1/query.proto
  18. #ifndef PROTOBUF_google_2ffirestore_2fv1_2fquery_2eproto__INCLUDED
  19. #define PROTOBUF_google_2ffirestore_2fv1_2fquery_2eproto__INCLUDED
  20. #include <string>
  21. #include <google/protobuf/stubs/common.h>
  22. #if GOOGLE_PROTOBUF_VERSION < 3005000
  23. #error This file was generated by a newer version of protoc which is
  24. #error incompatible with your Protocol Buffer headers. Please update
  25. #error your headers.
  26. #endif
  27. #if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  28. #error This file was generated by an older version of protoc which is
  29. #error incompatible with your Protocol Buffer headers. Please
  30. #error regenerate this file with a newer version of protoc.
  31. #endif
  32. #include <google/protobuf/io/coded_stream.h>
  33. #include <google/protobuf/arena.h>
  34. #include <google/protobuf/arenastring.h>
  35. #include <google/protobuf/generated_message_table_driven.h>
  36. #include <google/protobuf/generated_message_util.h>
  37. #include <google/protobuf/metadata.h>
  38. #include <google/protobuf/message.h>
  39. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  40. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  41. #include <google/protobuf/generated_enum_reflection.h>
  42. #include <google/protobuf/unknown_field_set.h>
  43. #include "google/api/annotations.pb.h"
  44. #include "google/firestore/v1/document.pb.h"
  45. #include <google/protobuf/wrappers.pb.h>
  46. // @@protoc_insertion_point(includes)
  47. namespace protobuf_google_2ffirestore_2fv1_2fquery_2eproto {
  48. // Internal implementation detail -- do not use these members.
  49. struct TableStruct {
  50. static const ::google::protobuf::internal::ParseTableField entries[];
  51. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  52. static const ::google::protobuf::internal::ParseTable schema[10];
  53. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  54. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  55. static const ::google::protobuf::uint32 offsets[];
  56. };
  57. void AddDescriptors();
  58. void InitDefaultsStructuredQuery_CollectionSelectorImpl();
  59. void InitDefaultsStructuredQuery_CollectionSelector();
  60. void InitDefaultsStructuredQuery_CompositeFilterImpl();
  61. void InitDefaultsStructuredQuery_CompositeFilter();
  62. void InitDefaultsStructuredQuery_FieldFilterImpl();
  63. void InitDefaultsStructuredQuery_FieldFilter();
  64. void InitDefaultsStructuredQuery_UnaryFilterImpl();
  65. void InitDefaultsStructuredQuery_UnaryFilter();
  66. void InitDefaultsStructuredQuery_OrderImpl();
  67. void InitDefaultsStructuredQuery_Order();
  68. void InitDefaultsStructuredQuery_FieldReferenceImpl();
  69. void InitDefaultsStructuredQuery_FieldReference();
  70. void InitDefaultsStructuredQuery_ProjectionImpl();
  71. void InitDefaultsStructuredQuery_Projection();
  72. void InitDefaultsStructuredQueryImpl();
  73. void InitDefaultsStructuredQuery();
  74. void InitDefaultsCursorImpl();
  75. void InitDefaultsCursor();
  76. inline void InitDefaults() {
  77. InitDefaultsStructuredQuery_CollectionSelector();
  78. InitDefaultsStructuredQuery_CompositeFilter();
  79. InitDefaultsStructuredQuery_FieldFilter();
  80. InitDefaultsStructuredQuery_UnaryFilter();
  81. InitDefaultsStructuredQuery_Order();
  82. InitDefaultsStructuredQuery_FieldReference();
  83. InitDefaultsStructuredQuery_Projection();
  84. InitDefaultsStructuredQuery();
  85. InitDefaultsCursor();
  86. }
  87. } // namespace protobuf_google_2ffirestore_2fv1_2fquery_2eproto
  88. namespace google {
  89. namespace firestore {
  90. namespace v1 {
  91. class Cursor;
  92. class CursorDefaultTypeInternal;
  93. extern CursorDefaultTypeInternal _Cursor_default_instance_;
  94. class StructuredQuery;
  95. class StructuredQueryDefaultTypeInternal;
  96. extern StructuredQueryDefaultTypeInternal _StructuredQuery_default_instance_;
  97. class StructuredQuery_CollectionSelector;
  98. class StructuredQuery_CollectionSelectorDefaultTypeInternal;
  99. extern StructuredQuery_CollectionSelectorDefaultTypeInternal _StructuredQuery_CollectionSelector_default_instance_;
  100. class StructuredQuery_CompositeFilter;
  101. class StructuredQuery_CompositeFilterDefaultTypeInternal;
  102. extern StructuredQuery_CompositeFilterDefaultTypeInternal _StructuredQuery_CompositeFilter_default_instance_;
  103. class StructuredQuery_FieldFilter;
  104. class StructuredQuery_FieldFilterDefaultTypeInternal;
  105. extern StructuredQuery_FieldFilterDefaultTypeInternal _StructuredQuery_FieldFilter_default_instance_;
  106. class StructuredQuery_FieldReference;
  107. class StructuredQuery_FieldReferenceDefaultTypeInternal;
  108. extern StructuredQuery_FieldReferenceDefaultTypeInternal _StructuredQuery_FieldReference_default_instance_;
  109. class StructuredQuery_Filter;
  110. class StructuredQuery_FilterDefaultTypeInternal;
  111. extern StructuredQuery_FilterDefaultTypeInternal _StructuredQuery_Filter_default_instance_;
  112. class StructuredQuery_Order;
  113. class StructuredQuery_OrderDefaultTypeInternal;
  114. extern StructuredQuery_OrderDefaultTypeInternal _StructuredQuery_Order_default_instance_;
  115. class StructuredQuery_Projection;
  116. class StructuredQuery_ProjectionDefaultTypeInternal;
  117. extern StructuredQuery_ProjectionDefaultTypeInternal _StructuredQuery_Projection_default_instance_;
  118. class StructuredQuery_UnaryFilter;
  119. class StructuredQuery_UnaryFilterDefaultTypeInternal;
  120. extern StructuredQuery_UnaryFilterDefaultTypeInternal _StructuredQuery_UnaryFilter_default_instance_;
  121. } // namespace v1
  122. } // namespace firestore
  123. } // namespace google
  124. namespace google {
  125. namespace firestore {
  126. namespace v1 {
  127. enum StructuredQuery_CompositeFilter_Operator {
  128. StructuredQuery_CompositeFilter_Operator_OPERATOR_UNSPECIFIED = 0,
  129. StructuredQuery_CompositeFilter_Operator_AND = 1,
  130. StructuredQuery_CompositeFilter_Operator_StructuredQuery_CompositeFilter_Operator_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
  131. StructuredQuery_CompositeFilter_Operator_StructuredQuery_CompositeFilter_Operator_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
  132. };
  133. bool StructuredQuery_CompositeFilter_Operator_IsValid(int value);
  134. const StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter_Operator_Operator_MIN = StructuredQuery_CompositeFilter_Operator_OPERATOR_UNSPECIFIED;
  135. const StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter_Operator_Operator_MAX = StructuredQuery_CompositeFilter_Operator_AND;
  136. const int StructuredQuery_CompositeFilter_Operator_Operator_ARRAYSIZE = StructuredQuery_CompositeFilter_Operator_Operator_MAX + 1;
  137. const ::google::protobuf::EnumDescriptor* StructuredQuery_CompositeFilter_Operator_descriptor();
  138. inline const ::std::string& StructuredQuery_CompositeFilter_Operator_Name(StructuredQuery_CompositeFilter_Operator value) {
  139. return ::google::protobuf::internal::NameOfEnum(
  140. StructuredQuery_CompositeFilter_Operator_descriptor(), value);
  141. }
  142. inline bool StructuredQuery_CompositeFilter_Operator_Parse(
  143. const ::std::string& name, StructuredQuery_CompositeFilter_Operator* value) {
  144. return ::google::protobuf::internal::ParseNamedEnum<StructuredQuery_CompositeFilter_Operator>(
  145. StructuredQuery_CompositeFilter_Operator_descriptor(), name, value);
  146. }
  147. enum StructuredQuery_FieldFilter_Operator {
  148. StructuredQuery_FieldFilter_Operator_OPERATOR_UNSPECIFIED = 0,
  149. StructuredQuery_FieldFilter_Operator_LESS_THAN = 1,
  150. StructuredQuery_FieldFilter_Operator_LESS_THAN_OR_EQUAL = 2,
  151. StructuredQuery_FieldFilter_Operator_GREATER_THAN = 3,
  152. StructuredQuery_FieldFilter_Operator_GREATER_THAN_OR_EQUAL = 4,
  153. StructuredQuery_FieldFilter_Operator_EQUAL = 5,
  154. StructuredQuery_FieldFilter_Operator_ARRAY_CONTAINS = 7,
  155. StructuredQuery_FieldFilter_Operator_StructuredQuery_FieldFilter_Operator_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
  156. StructuredQuery_FieldFilter_Operator_StructuredQuery_FieldFilter_Operator_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
  157. };
  158. bool StructuredQuery_FieldFilter_Operator_IsValid(int value);
  159. const StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter_Operator_Operator_MIN = StructuredQuery_FieldFilter_Operator_OPERATOR_UNSPECIFIED;
  160. const StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter_Operator_Operator_MAX = StructuredQuery_FieldFilter_Operator_ARRAY_CONTAINS;
  161. const int StructuredQuery_FieldFilter_Operator_Operator_ARRAYSIZE = StructuredQuery_FieldFilter_Operator_Operator_MAX + 1;
  162. const ::google::protobuf::EnumDescriptor* StructuredQuery_FieldFilter_Operator_descriptor();
  163. inline const ::std::string& StructuredQuery_FieldFilter_Operator_Name(StructuredQuery_FieldFilter_Operator value) {
  164. return ::google::protobuf::internal::NameOfEnum(
  165. StructuredQuery_FieldFilter_Operator_descriptor(), value);
  166. }
  167. inline bool StructuredQuery_FieldFilter_Operator_Parse(
  168. const ::std::string& name, StructuredQuery_FieldFilter_Operator* value) {
  169. return ::google::protobuf::internal::ParseNamedEnum<StructuredQuery_FieldFilter_Operator>(
  170. StructuredQuery_FieldFilter_Operator_descriptor(), name, value);
  171. }
  172. enum StructuredQuery_UnaryFilter_Operator {
  173. StructuredQuery_UnaryFilter_Operator_OPERATOR_UNSPECIFIED = 0,
  174. StructuredQuery_UnaryFilter_Operator_IS_NAN = 2,
  175. StructuredQuery_UnaryFilter_Operator_IS_NULL = 3,
  176. StructuredQuery_UnaryFilter_Operator_StructuredQuery_UnaryFilter_Operator_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
  177. StructuredQuery_UnaryFilter_Operator_StructuredQuery_UnaryFilter_Operator_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
  178. };
  179. bool StructuredQuery_UnaryFilter_Operator_IsValid(int value);
  180. const StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter_Operator_Operator_MIN = StructuredQuery_UnaryFilter_Operator_OPERATOR_UNSPECIFIED;
  181. const StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter_Operator_Operator_MAX = StructuredQuery_UnaryFilter_Operator_IS_NULL;
  182. const int StructuredQuery_UnaryFilter_Operator_Operator_ARRAYSIZE = StructuredQuery_UnaryFilter_Operator_Operator_MAX + 1;
  183. const ::google::protobuf::EnumDescriptor* StructuredQuery_UnaryFilter_Operator_descriptor();
  184. inline const ::std::string& StructuredQuery_UnaryFilter_Operator_Name(StructuredQuery_UnaryFilter_Operator value) {
  185. return ::google::protobuf::internal::NameOfEnum(
  186. StructuredQuery_UnaryFilter_Operator_descriptor(), value);
  187. }
  188. inline bool StructuredQuery_UnaryFilter_Operator_Parse(
  189. const ::std::string& name, StructuredQuery_UnaryFilter_Operator* value) {
  190. return ::google::protobuf::internal::ParseNamedEnum<StructuredQuery_UnaryFilter_Operator>(
  191. StructuredQuery_UnaryFilter_Operator_descriptor(), name, value);
  192. }
  193. enum StructuredQuery_Direction {
  194. StructuredQuery_Direction_DIRECTION_UNSPECIFIED = 0,
  195. StructuredQuery_Direction_ASCENDING = 1,
  196. StructuredQuery_Direction_DESCENDING = 2,
  197. StructuredQuery_Direction_StructuredQuery_Direction_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
  198. StructuredQuery_Direction_StructuredQuery_Direction_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
  199. };
  200. bool StructuredQuery_Direction_IsValid(int value);
  201. const StructuredQuery_Direction StructuredQuery_Direction_Direction_MIN = StructuredQuery_Direction_DIRECTION_UNSPECIFIED;
  202. const StructuredQuery_Direction StructuredQuery_Direction_Direction_MAX = StructuredQuery_Direction_DESCENDING;
  203. const int StructuredQuery_Direction_Direction_ARRAYSIZE = StructuredQuery_Direction_Direction_MAX + 1;
  204. const ::google::protobuf::EnumDescriptor* StructuredQuery_Direction_descriptor();
  205. inline const ::std::string& StructuredQuery_Direction_Name(StructuredQuery_Direction value) {
  206. return ::google::protobuf::internal::NameOfEnum(
  207. StructuredQuery_Direction_descriptor(), value);
  208. }
  209. inline bool StructuredQuery_Direction_Parse(
  210. const ::std::string& name, StructuredQuery_Direction* value) {
  211. return ::google::protobuf::internal::ParseNamedEnum<StructuredQuery_Direction>(
  212. StructuredQuery_Direction_descriptor(), name, value);
  213. }
  214. // ===================================================================
  215. class StructuredQuery_CollectionSelector : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.StructuredQuery.CollectionSelector) */ {
  216. public:
  217. StructuredQuery_CollectionSelector();
  218. virtual ~StructuredQuery_CollectionSelector();
  219. StructuredQuery_CollectionSelector(const StructuredQuery_CollectionSelector& from);
  220. inline StructuredQuery_CollectionSelector& operator=(const StructuredQuery_CollectionSelector& from) {
  221. CopyFrom(from);
  222. return *this;
  223. }
  224. #if LANG_CXX11
  225. StructuredQuery_CollectionSelector(StructuredQuery_CollectionSelector&& from) noexcept
  226. : StructuredQuery_CollectionSelector() {
  227. *this = ::std::move(from);
  228. }
  229. inline StructuredQuery_CollectionSelector& operator=(StructuredQuery_CollectionSelector&& from) noexcept {
  230. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  231. if (this != &from) InternalSwap(&from);
  232. } else {
  233. CopyFrom(from);
  234. }
  235. return *this;
  236. }
  237. #endif
  238. static const ::google::protobuf::Descriptor* descriptor();
  239. static const StructuredQuery_CollectionSelector& default_instance();
  240. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  241. static inline const StructuredQuery_CollectionSelector* internal_default_instance() {
  242. return reinterpret_cast<const StructuredQuery_CollectionSelector*>(
  243. &_StructuredQuery_CollectionSelector_default_instance_);
  244. }
  245. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  246. 0;
  247. void Swap(StructuredQuery_CollectionSelector* other);
  248. friend void swap(StructuredQuery_CollectionSelector& a, StructuredQuery_CollectionSelector& b) {
  249. a.Swap(&b);
  250. }
  251. // implements Message ----------------------------------------------
  252. inline StructuredQuery_CollectionSelector* New() const PROTOBUF_FINAL { return New(NULL); }
  253. StructuredQuery_CollectionSelector* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  254. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  255. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  256. void CopyFrom(const StructuredQuery_CollectionSelector& from);
  257. void MergeFrom(const StructuredQuery_CollectionSelector& from);
  258. void Clear() PROTOBUF_FINAL;
  259. bool IsInitialized() const PROTOBUF_FINAL;
  260. size_t ByteSizeLong() const PROTOBUF_FINAL;
  261. bool MergePartialFromCodedStream(
  262. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  263. void SerializeWithCachedSizes(
  264. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  265. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  266. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  267. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  268. private:
  269. void SharedCtor();
  270. void SharedDtor();
  271. void SetCachedSize(int size) const PROTOBUF_FINAL;
  272. void InternalSwap(StructuredQuery_CollectionSelector* other);
  273. private:
  274. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  275. return NULL;
  276. }
  277. inline void* MaybeArenaPtr() const {
  278. return NULL;
  279. }
  280. public:
  281. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  282. // nested types ----------------------------------------------------
  283. // accessors -------------------------------------------------------
  284. // string collection_id = 2;
  285. void clear_collection_id();
  286. static const int kCollectionIdFieldNumber = 2;
  287. const ::std::string& collection_id() const;
  288. void set_collection_id(const ::std::string& value);
  289. #if LANG_CXX11
  290. void set_collection_id(::std::string&& value);
  291. #endif
  292. void set_collection_id(const char* value);
  293. void set_collection_id(const char* value, size_t size);
  294. ::std::string* mutable_collection_id();
  295. ::std::string* release_collection_id();
  296. void set_allocated_collection_id(::std::string* collection_id);
  297. // bool all_descendants = 3;
  298. void clear_all_descendants();
  299. static const int kAllDescendantsFieldNumber = 3;
  300. bool all_descendants() const;
  301. void set_all_descendants(bool value);
  302. // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredQuery.CollectionSelector)
  303. private:
  304. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  305. ::google::protobuf::internal::ArenaStringPtr collection_id_;
  306. bool all_descendants_;
  307. mutable int _cached_size_;
  308. friend struct ::protobuf_google_2ffirestore_2fv1_2fquery_2eproto::TableStruct;
  309. friend void ::protobuf_google_2ffirestore_2fv1_2fquery_2eproto::InitDefaultsStructuredQuery_CollectionSelectorImpl();
  310. };
  311. // -------------------------------------------------------------------
  312. class StructuredQuery_Filter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.StructuredQuery.Filter) */ {
  313. public:
  314. StructuredQuery_Filter();
  315. virtual ~StructuredQuery_Filter();
  316. StructuredQuery_Filter(const StructuredQuery_Filter& from);
  317. inline StructuredQuery_Filter& operator=(const StructuredQuery_Filter& from) {
  318. CopyFrom(from);
  319. return *this;
  320. }
  321. #if LANG_CXX11
  322. StructuredQuery_Filter(StructuredQuery_Filter&& from) noexcept
  323. : StructuredQuery_Filter() {
  324. *this = ::std::move(from);
  325. }
  326. inline StructuredQuery_Filter& operator=(StructuredQuery_Filter&& from) noexcept {
  327. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  328. if (this != &from) InternalSwap(&from);
  329. } else {
  330. CopyFrom(from);
  331. }
  332. return *this;
  333. }
  334. #endif
  335. static const ::google::protobuf::Descriptor* descriptor();
  336. static const StructuredQuery_Filter& default_instance();
  337. enum FilterTypeCase {
  338. kCompositeFilter = 1,
  339. kFieldFilter = 2,
  340. kUnaryFilter = 3,
  341. FILTER_TYPE_NOT_SET = 0,
  342. };
  343. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  344. static inline const StructuredQuery_Filter* internal_default_instance() {
  345. return reinterpret_cast<const StructuredQuery_Filter*>(
  346. &_StructuredQuery_Filter_default_instance_);
  347. }
  348. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  349. 1;
  350. void Swap(StructuredQuery_Filter* other);
  351. friend void swap(StructuredQuery_Filter& a, StructuredQuery_Filter& b) {
  352. a.Swap(&b);
  353. }
  354. // implements Message ----------------------------------------------
  355. inline StructuredQuery_Filter* New() const PROTOBUF_FINAL { return New(NULL); }
  356. StructuredQuery_Filter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  357. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  358. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  359. void CopyFrom(const StructuredQuery_Filter& from);
  360. void MergeFrom(const StructuredQuery_Filter& from);
  361. void Clear() PROTOBUF_FINAL;
  362. bool IsInitialized() const PROTOBUF_FINAL;
  363. size_t ByteSizeLong() const PROTOBUF_FINAL;
  364. bool MergePartialFromCodedStream(
  365. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  366. void SerializeWithCachedSizes(
  367. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  368. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  369. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  370. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  371. private:
  372. void SharedCtor();
  373. void SharedDtor();
  374. void SetCachedSize(int size) const PROTOBUF_FINAL;
  375. void InternalSwap(StructuredQuery_Filter* other);
  376. private:
  377. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  378. return NULL;
  379. }
  380. inline void* MaybeArenaPtr() const {
  381. return NULL;
  382. }
  383. public:
  384. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  385. // nested types ----------------------------------------------------
  386. // accessors -------------------------------------------------------
  387. // .google.firestore.v1.StructuredQuery.CompositeFilter composite_filter = 1;
  388. bool has_composite_filter() const;
  389. void clear_composite_filter();
  390. static const int kCompositeFilterFieldNumber = 1;
  391. const ::google::firestore::v1::StructuredQuery_CompositeFilter& composite_filter() const;
  392. ::google::firestore::v1::StructuredQuery_CompositeFilter* release_composite_filter();
  393. ::google::firestore::v1::StructuredQuery_CompositeFilter* mutable_composite_filter();
  394. void set_allocated_composite_filter(::google::firestore::v1::StructuredQuery_CompositeFilter* composite_filter);
  395. // .google.firestore.v1.StructuredQuery.FieldFilter field_filter = 2;
  396. bool has_field_filter() const;
  397. void clear_field_filter();
  398. static const int kFieldFilterFieldNumber = 2;
  399. const ::google::firestore::v1::StructuredQuery_FieldFilter& field_filter() const;
  400. ::google::firestore::v1::StructuredQuery_FieldFilter* release_field_filter();
  401. ::google::firestore::v1::StructuredQuery_FieldFilter* mutable_field_filter();
  402. void set_allocated_field_filter(::google::firestore::v1::StructuredQuery_FieldFilter* field_filter);
  403. // .google.firestore.v1.StructuredQuery.UnaryFilter unary_filter = 3;
  404. bool has_unary_filter() const;
  405. void clear_unary_filter();
  406. static const int kUnaryFilterFieldNumber = 3;
  407. const ::google::firestore::v1::StructuredQuery_UnaryFilter& unary_filter() const;
  408. ::google::firestore::v1::StructuredQuery_UnaryFilter* release_unary_filter();
  409. ::google::firestore::v1::StructuredQuery_UnaryFilter* mutable_unary_filter();
  410. void set_allocated_unary_filter(::google::firestore::v1::StructuredQuery_UnaryFilter* unary_filter);
  411. FilterTypeCase filter_type_case() const;
  412. // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredQuery.Filter)
  413. private:
  414. void set_has_composite_filter();
  415. void set_has_field_filter();
  416. void set_has_unary_filter();
  417. inline bool has_filter_type() const;
  418. void clear_filter_type();
  419. inline void clear_has_filter_type();
  420. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  421. union FilterTypeUnion {
  422. FilterTypeUnion() {}
  423. ::google::firestore::v1::StructuredQuery_CompositeFilter* composite_filter_;
  424. ::google::firestore::v1::StructuredQuery_FieldFilter* field_filter_;
  425. ::google::firestore::v1::StructuredQuery_UnaryFilter* unary_filter_;
  426. } filter_type_;
  427. mutable int _cached_size_;
  428. ::google::protobuf::uint32 _oneof_case_[1];
  429. friend struct ::protobuf_google_2ffirestore_2fv1_2fquery_2eproto::TableStruct;
  430. friend void ::protobuf_google_2ffirestore_2fv1_2fquery_2eproto::InitDefaultsStructuredQuery_CompositeFilterImpl();
  431. };
  432. // -------------------------------------------------------------------
  433. class StructuredQuery_CompositeFilter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.StructuredQuery.CompositeFilter) */ {
  434. public:
  435. StructuredQuery_CompositeFilter();
  436. virtual ~StructuredQuery_CompositeFilter();
  437. StructuredQuery_CompositeFilter(const StructuredQuery_CompositeFilter& from);
  438. inline StructuredQuery_CompositeFilter& operator=(const StructuredQuery_CompositeFilter& from) {
  439. CopyFrom(from);
  440. return *this;
  441. }
  442. #if LANG_CXX11
  443. StructuredQuery_CompositeFilter(StructuredQuery_CompositeFilter&& from) noexcept
  444. : StructuredQuery_CompositeFilter() {
  445. *this = ::std::move(from);
  446. }
  447. inline StructuredQuery_CompositeFilter& operator=(StructuredQuery_CompositeFilter&& from) noexcept {
  448. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  449. if (this != &from) InternalSwap(&from);
  450. } else {
  451. CopyFrom(from);
  452. }
  453. return *this;
  454. }
  455. #endif
  456. static const ::google::protobuf::Descriptor* descriptor();
  457. static const StructuredQuery_CompositeFilter& default_instance();
  458. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  459. static inline const StructuredQuery_CompositeFilter* internal_default_instance() {
  460. return reinterpret_cast<const StructuredQuery_CompositeFilter*>(
  461. &_StructuredQuery_CompositeFilter_default_instance_);
  462. }
  463. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  464. 2;
  465. void Swap(StructuredQuery_CompositeFilter* other);
  466. friend void swap(StructuredQuery_CompositeFilter& a, StructuredQuery_CompositeFilter& b) {
  467. a.Swap(&b);
  468. }
  469. // implements Message ----------------------------------------------
  470. inline StructuredQuery_CompositeFilter* New() const PROTOBUF_FINAL { return New(NULL); }
  471. StructuredQuery_CompositeFilter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  472. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  473. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  474. void CopyFrom(const StructuredQuery_CompositeFilter& from);
  475. void MergeFrom(const StructuredQuery_CompositeFilter& from);
  476. void Clear() PROTOBUF_FINAL;
  477. bool IsInitialized() const PROTOBUF_FINAL;
  478. size_t ByteSizeLong() const PROTOBUF_FINAL;
  479. bool MergePartialFromCodedStream(
  480. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  481. void SerializeWithCachedSizes(
  482. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  483. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  484. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  485. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  486. private:
  487. void SharedCtor();
  488. void SharedDtor();
  489. void SetCachedSize(int size) const PROTOBUF_FINAL;
  490. void InternalSwap(StructuredQuery_CompositeFilter* other);
  491. private:
  492. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  493. return NULL;
  494. }
  495. inline void* MaybeArenaPtr() const {
  496. return NULL;
  497. }
  498. public:
  499. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  500. // nested types ----------------------------------------------------
  501. typedef StructuredQuery_CompositeFilter_Operator Operator;
  502. static const Operator OPERATOR_UNSPECIFIED =
  503. StructuredQuery_CompositeFilter_Operator_OPERATOR_UNSPECIFIED;
  504. static const Operator AND =
  505. StructuredQuery_CompositeFilter_Operator_AND;
  506. static inline bool Operator_IsValid(int value) {
  507. return StructuredQuery_CompositeFilter_Operator_IsValid(value);
  508. }
  509. static const Operator Operator_MIN =
  510. StructuredQuery_CompositeFilter_Operator_Operator_MIN;
  511. static const Operator Operator_MAX =
  512. StructuredQuery_CompositeFilter_Operator_Operator_MAX;
  513. static const int Operator_ARRAYSIZE =
  514. StructuredQuery_CompositeFilter_Operator_Operator_ARRAYSIZE;
  515. static inline const ::google::protobuf::EnumDescriptor*
  516. Operator_descriptor() {
  517. return StructuredQuery_CompositeFilter_Operator_descriptor();
  518. }
  519. static inline const ::std::string& Operator_Name(Operator value) {
  520. return StructuredQuery_CompositeFilter_Operator_Name(value);
  521. }
  522. static inline bool Operator_Parse(const ::std::string& name,
  523. Operator* value) {
  524. return StructuredQuery_CompositeFilter_Operator_Parse(name, value);
  525. }
  526. // accessors -------------------------------------------------------
  527. // repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;
  528. int filters_size() const;
  529. void clear_filters();
  530. static const int kFiltersFieldNumber = 2;
  531. const ::google::firestore::v1::StructuredQuery_Filter& filters(int index) const;
  532. ::google::firestore::v1::StructuredQuery_Filter* mutable_filters(int index);
  533. ::google::firestore::v1::StructuredQuery_Filter* add_filters();
  534. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_Filter >*
  535. mutable_filters();
  536. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_Filter >&
  537. filters() const;
  538. // .google.firestore.v1.StructuredQuery.CompositeFilter.Operator op = 1;
  539. void clear_op();
  540. static const int kOpFieldNumber = 1;
  541. ::google::firestore::v1::StructuredQuery_CompositeFilter_Operator op() const;
  542. void set_op(::google::firestore::v1::StructuredQuery_CompositeFilter_Operator value);
  543. // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredQuery.CompositeFilter)
  544. private:
  545. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  546. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_Filter > filters_;
  547. int op_;
  548. mutable int _cached_size_;
  549. friend struct ::protobuf_google_2ffirestore_2fv1_2fquery_2eproto::TableStruct;
  550. friend void ::protobuf_google_2ffirestore_2fv1_2fquery_2eproto::InitDefaultsStructuredQuery_CompositeFilterImpl();
  551. };
  552. // -------------------------------------------------------------------
  553. class StructuredQuery_FieldFilter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.StructuredQuery.FieldFilter) */ {
  554. public:
  555. StructuredQuery_FieldFilter();
  556. virtual ~StructuredQuery_FieldFilter();
  557. StructuredQuery_FieldFilter(const StructuredQuery_FieldFilter& from);
  558. inline StructuredQuery_FieldFilter& operator=(const StructuredQuery_FieldFilter& from) {
  559. CopyFrom(from);
  560. return *this;
  561. }
  562. #if LANG_CXX11
  563. StructuredQuery_FieldFilter(StructuredQuery_FieldFilter&& from) noexcept
  564. : StructuredQuery_FieldFilter() {
  565. *this = ::std::move(from);
  566. }
  567. inline StructuredQuery_FieldFilter& operator=(StructuredQuery_FieldFilter&& from) noexcept {
  568. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  569. if (this != &from) InternalSwap(&from);
  570. } else {
  571. CopyFrom(from);
  572. }
  573. return *this;
  574. }
  575. #endif
  576. static const ::google::protobuf::Descriptor* descriptor();
  577. static const StructuredQuery_FieldFilter& default_instance();
  578. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  579. static inline const StructuredQuery_FieldFilter* internal_default_instance() {
  580. return reinterpret_cast<const StructuredQuery_FieldFilter*>(
  581. &_StructuredQuery_FieldFilter_default_instance_);
  582. }
  583. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  584. 3;
  585. void Swap(StructuredQuery_FieldFilter* other);
  586. friend void swap(StructuredQuery_FieldFilter& a, StructuredQuery_FieldFilter& b) {
  587. a.Swap(&b);
  588. }
  589. // implements Message ----------------------------------------------
  590. inline StructuredQuery_FieldFilter* New() const PROTOBUF_FINAL { return New(NULL); }
  591. StructuredQuery_FieldFilter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  592. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  593. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  594. void CopyFrom(const StructuredQuery_FieldFilter& from);
  595. void MergeFrom(const StructuredQuery_FieldFilter& from);
  596. void Clear() PROTOBUF_FINAL;
  597. bool IsInitialized() const PROTOBUF_FINAL;
  598. size_t ByteSizeLong() const PROTOBUF_FINAL;
  599. bool MergePartialFromCodedStream(
  600. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  601. void SerializeWithCachedSizes(
  602. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  603. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  604. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  605. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  606. private:
  607. void SharedCtor();
  608. void SharedDtor();
  609. void SetCachedSize(int size) const PROTOBUF_FINAL;
  610. void InternalSwap(StructuredQuery_FieldFilter* other);
  611. private:
  612. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  613. return NULL;
  614. }
  615. inline void* MaybeArenaPtr() const {
  616. return NULL;
  617. }
  618. public:
  619. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  620. // nested types ----------------------------------------------------
  621. typedef StructuredQuery_FieldFilter_Operator Operator;
  622. static const Operator OPERATOR_UNSPECIFIED =
  623. StructuredQuery_FieldFilter_Operator_OPERATOR_UNSPECIFIED;
  624. static const Operator LESS_THAN =
  625. StructuredQuery_FieldFilter_Operator_LESS_THAN;
  626. static const Operator LESS_THAN_OR_EQUAL =
  627. StructuredQuery_FieldFilter_Operator_LESS_THAN_OR_EQUAL;
  628. static const Operator GREATER_THAN =
  629. StructuredQuery_FieldFilter_Operator_GREATER_THAN;
  630. static const Operator GREATER_THAN_OR_EQUAL =
  631. StructuredQuery_FieldFilter_Operator_GREATER_THAN_OR_EQUAL;
  632. static const Operator EQUAL =
  633. StructuredQuery_FieldFilter_Operator_EQUAL;
  634. static const Operator ARRAY_CONTAINS =
  635. StructuredQuery_FieldFilter_Operator_ARRAY_CONTAINS;
  636. static inline bool Operator_IsValid(int value) {
  637. return StructuredQuery_FieldFilter_Operator_IsValid(value);
  638. }
  639. static const Operator Operator_MIN =
  640. StructuredQuery_FieldFilter_Operator_Operator_MIN;
  641. static const Operator Operator_MAX =
  642. StructuredQuery_FieldFilter_Operator_Operator_MAX;
  643. static const int Operator_ARRAYSIZE =
  644. StructuredQuery_FieldFilter_Operator_Operator_ARRAYSIZE;
  645. static inline const ::google::protobuf::EnumDescriptor*
  646. Operator_descriptor() {
  647. return StructuredQuery_FieldFilter_Operator_descriptor();
  648. }
  649. static inline const ::std::string& Operator_Name(Operator value) {
  650. return StructuredQuery_FieldFilter_Operator_Name(value);
  651. }
  652. static inline bool Operator_Parse(const ::std::string& name,
  653. Operator* value) {
  654. return StructuredQuery_FieldFilter_Operator_Parse(name, value);
  655. }
  656. // accessors -------------------------------------------------------
  657. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  658. bool has_field() const;
  659. void clear_field();
  660. static const int kFieldFieldNumber = 1;
  661. const ::google::firestore::v1::StructuredQuery_FieldReference& field() const;
  662. ::google::firestore::v1::StructuredQuery_FieldReference* release_field();
  663. ::google::firestore::v1::StructuredQuery_FieldReference* mutable_field();
  664. void set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* field);
  665. // .google.firestore.v1.Value value = 3;
  666. bool has_value() const;
  667. void clear_value();
  668. static const int kValueFieldNumber = 3;
  669. const ::google::firestore::v1::Value& value() const;
  670. ::google::firestore::v1::Value* release_value();
  671. ::google::firestore::v1::Value* mutable_value();
  672. void set_allocated_value(::google::firestore::v1::Value* value);
  673. // .google.firestore.v1.StructuredQuery.FieldFilter.Operator op = 2;
  674. void clear_op();
  675. static const int kOpFieldNumber = 2;
  676. ::google::firestore::v1::StructuredQuery_FieldFilter_Operator op() const;
  677. void set_op(::google::firestore::v1::StructuredQuery_FieldFilter_Operator value);
  678. // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredQuery.FieldFilter)
  679. private:
  680. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  681. ::google::firestore::v1::StructuredQuery_FieldReference* field_;
  682. ::google::firestore::v1::Value* value_;
  683. int op_;
  684. mutable int _cached_size_;
  685. friend struct ::protobuf_google_2ffirestore_2fv1_2fquery_2eproto::TableStruct;
  686. friend void ::protobuf_google_2ffirestore_2fv1_2fquery_2eproto::InitDefaultsStructuredQuery_FieldFilterImpl();
  687. };
  688. // -------------------------------------------------------------------
  689. class StructuredQuery_UnaryFilter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.StructuredQuery.UnaryFilter) */ {
  690. public:
  691. StructuredQuery_UnaryFilter();
  692. virtual ~StructuredQuery_UnaryFilter();
  693. StructuredQuery_UnaryFilter(const StructuredQuery_UnaryFilter& from);
  694. inline StructuredQuery_UnaryFilter& operator=(const StructuredQuery_UnaryFilter& from) {
  695. CopyFrom(from);
  696. return *this;
  697. }
  698. #if LANG_CXX11
  699. StructuredQuery_UnaryFilter(StructuredQuery_UnaryFilter&& from) noexcept
  700. : StructuredQuery_UnaryFilter() {
  701. *this = ::std::move(from);
  702. }
  703. inline StructuredQuery_UnaryFilter& operator=(StructuredQuery_UnaryFilter&& from) noexcept {
  704. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  705. if (this != &from) InternalSwap(&from);
  706. } else {
  707. CopyFrom(from);
  708. }
  709. return *this;
  710. }
  711. #endif
  712. static const ::google::protobuf::Descriptor* descriptor();
  713. static const StructuredQuery_UnaryFilter& default_instance();
  714. enum OperandTypeCase {
  715. kField = 2,
  716. OPERAND_TYPE_NOT_SET = 0,
  717. };
  718. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  719. static inline const StructuredQuery_UnaryFilter* internal_default_instance() {
  720. return reinterpret_cast<const StructuredQuery_UnaryFilter*>(
  721. &_StructuredQuery_UnaryFilter_default_instance_);
  722. }
  723. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  724. 4;
  725. void Swap(StructuredQuery_UnaryFilter* other);
  726. friend void swap(StructuredQuery_UnaryFilter& a, StructuredQuery_UnaryFilter& b) {
  727. a.Swap(&b);
  728. }
  729. // implements Message ----------------------------------------------
  730. inline StructuredQuery_UnaryFilter* New() const PROTOBUF_FINAL { return New(NULL); }
  731. StructuredQuery_UnaryFilter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  732. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  733. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  734. void CopyFrom(const StructuredQuery_UnaryFilter& from);
  735. void MergeFrom(const StructuredQuery_UnaryFilter& from);
  736. void Clear() PROTOBUF_FINAL;
  737. bool IsInitialized() const PROTOBUF_FINAL;
  738. size_t ByteSizeLong() const PROTOBUF_FINAL;
  739. bool MergePartialFromCodedStream(
  740. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  741. void SerializeWithCachedSizes(
  742. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  743. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  744. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  745. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  746. private:
  747. void SharedCtor();
  748. void SharedDtor();
  749. void SetCachedSize(int size) const PROTOBUF_FINAL;
  750. void InternalSwap(StructuredQuery_UnaryFilter* other);
  751. private:
  752. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  753. return NULL;
  754. }
  755. inline void* MaybeArenaPtr() const {
  756. return NULL;
  757. }
  758. public:
  759. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  760. // nested types ----------------------------------------------------
  761. typedef StructuredQuery_UnaryFilter_Operator Operator;
  762. static const Operator OPERATOR_UNSPECIFIED =
  763. StructuredQuery_UnaryFilter_Operator_OPERATOR_UNSPECIFIED;
  764. static const Operator IS_NAN =
  765. StructuredQuery_UnaryFilter_Operator_IS_NAN;
  766. static const Operator IS_NULL =
  767. StructuredQuery_UnaryFilter_Operator_IS_NULL;
  768. static inline bool Operator_IsValid(int value) {
  769. return StructuredQuery_UnaryFilter_Operator_IsValid(value);
  770. }
  771. static const Operator Operator_MIN =
  772. StructuredQuery_UnaryFilter_Operator_Operator_MIN;
  773. static const Operator Operator_MAX =
  774. StructuredQuery_UnaryFilter_Operator_Operator_MAX;
  775. static const int Operator_ARRAYSIZE =
  776. StructuredQuery_UnaryFilter_Operator_Operator_ARRAYSIZE;
  777. static inline const ::google::protobuf::EnumDescriptor*
  778. Operator_descriptor() {
  779. return StructuredQuery_UnaryFilter_Operator_descriptor();
  780. }
  781. static inline const ::std::string& Operator_Name(Operator value) {
  782. return StructuredQuery_UnaryFilter_Operator_Name(value);
  783. }
  784. static inline bool Operator_Parse(const ::std::string& name,
  785. Operator* value) {
  786. return StructuredQuery_UnaryFilter_Operator_Parse(name, value);
  787. }
  788. // accessors -------------------------------------------------------
  789. // .google.firestore.v1.StructuredQuery.UnaryFilter.Operator op = 1;
  790. void clear_op();
  791. static const int kOpFieldNumber = 1;
  792. ::google::firestore::v1::StructuredQuery_UnaryFilter_Operator op() const;
  793. void set_op(::google::firestore::v1::StructuredQuery_UnaryFilter_Operator value);
  794. // .google.firestore.v1.StructuredQuery.FieldReference field = 2;
  795. bool has_field() const;
  796. void clear_field();
  797. static const int kFieldFieldNumber = 2;
  798. const ::google::firestore::v1::StructuredQuery_FieldReference& field() const;
  799. ::google::firestore::v1::StructuredQuery_FieldReference* release_field();
  800. ::google::firestore::v1::StructuredQuery_FieldReference* mutable_field();
  801. void set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* field);
  802. OperandTypeCase operand_type_case() const;
  803. // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredQuery.UnaryFilter)
  804. private:
  805. void set_has_field();
  806. inline bool has_operand_type() const;
  807. void clear_operand_type();
  808. inline void clear_has_operand_type();
  809. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  810. int op_;
  811. union OperandTypeUnion {
  812. OperandTypeUnion() {}
  813. ::google::firestore::v1::StructuredQuery_FieldReference* field_;
  814. } operand_type_;
  815. mutable int _cached_size_;
  816. ::google::protobuf::uint32 _oneof_case_[1];
  817. friend struct ::protobuf_google_2ffirestore_2fv1_2fquery_2eproto::TableStruct;
  818. friend void ::protobuf_google_2ffirestore_2fv1_2fquery_2eproto::InitDefaultsStructuredQuery_UnaryFilterImpl();
  819. };
  820. // -------------------------------------------------------------------
  821. class StructuredQuery_Order : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.StructuredQuery.Order) */ {
  822. public:
  823. StructuredQuery_Order();
  824. virtual ~StructuredQuery_Order();
  825. StructuredQuery_Order(const StructuredQuery_Order& from);
  826. inline StructuredQuery_Order& operator=(const StructuredQuery_Order& from) {
  827. CopyFrom(from);
  828. return *this;
  829. }
  830. #if LANG_CXX11
  831. StructuredQuery_Order(StructuredQuery_Order&& from) noexcept
  832. : StructuredQuery_Order() {
  833. *this = ::std::move(from);
  834. }
  835. inline StructuredQuery_Order& operator=(StructuredQuery_Order&& from) noexcept {
  836. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  837. if (this != &from) InternalSwap(&from);
  838. } else {
  839. CopyFrom(from);
  840. }
  841. return *this;
  842. }
  843. #endif
  844. static const ::google::protobuf::Descriptor* descriptor();
  845. static const StructuredQuery_Order& default_instance();
  846. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  847. static inline const StructuredQuery_Order* internal_default_instance() {
  848. return reinterpret_cast<const StructuredQuery_Order*>(
  849. &_StructuredQuery_Order_default_instance_);
  850. }
  851. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  852. 5;
  853. void Swap(StructuredQuery_Order* other);
  854. friend void swap(StructuredQuery_Order& a, StructuredQuery_Order& b) {
  855. a.Swap(&b);
  856. }
  857. // implements Message ----------------------------------------------
  858. inline StructuredQuery_Order* New() const PROTOBUF_FINAL { return New(NULL); }
  859. StructuredQuery_Order* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  860. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  861. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  862. void CopyFrom(const StructuredQuery_Order& from);
  863. void MergeFrom(const StructuredQuery_Order& from);
  864. void Clear() PROTOBUF_FINAL;
  865. bool IsInitialized() const PROTOBUF_FINAL;
  866. size_t ByteSizeLong() const PROTOBUF_FINAL;
  867. bool MergePartialFromCodedStream(
  868. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  869. void SerializeWithCachedSizes(
  870. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  871. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  872. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  873. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  874. private:
  875. void SharedCtor();
  876. void SharedDtor();
  877. void SetCachedSize(int size) const PROTOBUF_FINAL;
  878. void InternalSwap(StructuredQuery_Order* other);
  879. private:
  880. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  881. return NULL;
  882. }
  883. inline void* MaybeArenaPtr() const {
  884. return NULL;
  885. }
  886. public:
  887. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  888. // nested types ----------------------------------------------------
  889. // accessors -------------------------------------------------------
  890. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  891. bool has_field() const;
  892. void clear_field();
  893. static const int kFieldFieldNumber = 1;
  894. const ::google::firestore::v1::StructuredQuery_FieldReference& field() const;
  895. ::google::firestore::v1::StructuredQuery_FieldReference* release_field();
  896. ::google::firestore::v1::StructuredQuery_FieldReference* mutable_field();
  897. void set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* field);
  898. // .google.firestore.v1.StructuredQuery.Direction direction = 2;
  899. void clear_direction();
  900. static const int kDirectionFieldNumber = 2;
  901. ::google::firestore::v1::StructuredQuery_Direction direction() const;
  902. void set_direction(::google::firestore::v1::StructuredQuery_Direction value);
  903. // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredQuery.Order)
  904. private:
  905. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  906. ::google::firestore::v1::StructuredQuery_FieldReference* field_;
  907. int direction_;
  908. mutable int _cached_size_;
  909. friend struct ::protobuf_google_2ffirestore_2fv1_2fquery_2eproto::TableStruct;
  910. friend void ::protobuf_google_2ffirestore_2fv1_2fquery_2eproto::InitDefaultsStructuredQuery_OrderImpl();
  911. };
  912. // -------------------------------------------------------------------
  913. class StructuredQuery_FieldReference : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.StructuredQuery.FieldReference) */ {
  914. public:
  915. StructuredQuery_FieldReference();
  916. virtual ~StructuredQuery_FieldReference();
  917. StructuredQuery_FieldReference(const StructuredQuery_FieldReference& from);
  918. inline StructuredQuery_FieldReference& operator=(const StructuredQuery_FieldReference& from) {
  919. CopyFrom(from);
  920. return *this;
  921. }
  922. #if LANG_CXX11
  923. StructuredQuery_FieldReference(StructuredQuery_FieldReference&& from) noexcept
  924. : StructuredQuery_FieldReference() {
  925. *this = ::std::move(from);
  926. }
  927. inline StructuredQuery_FieldReference& operator=(StructuredQuery_FieldReference&& from) noexcept {
  928. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  929. if (this != &from) InternalSwap(&from);
  930. } else {
  931. CopyFrom(from);
  932. }
  933. return *this;
  934. }
  935. #endif
  936. static const ::google::protobuf::Descriptor* descriptor();
  937. static const StructuredQuery_FieldReference& default_instance();
  938. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  939. static inline const StructuredQuery_FieldReference* internal_default_instance() {
  940. return reinterpret_cast<const StructuredQuery_FieldReference*>(
  941. &_StructuredQuery_FieldReference_default_instance_);
  942. }
  943. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  944. 6;
  945. void Swap(StructuredQuery_FieldReference* other);
  946. friend void swap(StructuredQuery_FieldReference& a, StructuredQuery_FieldReference& b) {
  947. a.Swap(&b);
  948. }
  949. // implements Message ----------------------------------------------
  950. inline StructuredQuery_FieldReference* New() const PROTOBUF_FINAL { return New(NULL); }
  951. StructuredQuery_FieldReference* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  952. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  953. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  954. void CopyFrom(const StructuredQuery_FieldReference& from);
  955. void MergeFrom(const StructuredQuery_FieldReference& from);
  956. void Clear() PROTOBUF_FINAL;
  957. bool IsInitialized() const PROTOBUF_FINAL;
  958. size_t ByteSizeLong() const PROTOBUF_FINAL;
  959. bool MergePartialFromCodedStream(
  960. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  961. void SerializeWithCachedSizes(
  962. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  963. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  964. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  965. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  966. private:
  967. void SharedCtor();
  968. void SharedDtor();
  969. void SetCachedSize(int size) const PROTOBUF_FINAL;
  970. void InternalSwap(StructuredQuery_FieldReference* other);
  971. private:
  972. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  973. return NULL;
  974. }
  975. inline void* MaybeArenaPtr() const {
  976. return NULL;
  977. }
  978. public:
  979. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  980. // nested types ----------------------------------------------------
  981. // accessors -------------------------------------------------------
  982. // string field_path = 2;
  983. void clear_field_path();
  984. static const int kFieldPathFieldNumber = 2;
  985. const ::std::string& field_path() const;
  986. void set_field_path(const ::std::string& value);
  987. #if LANG_CXX11
  988. void set_field_path(::std::string&& value);
  989. #endif
  990. void set_field_path(const char* value);
  991. void set_field_path(const char* value, size_t size);
  992. ::std::string* mutable_field_path();
  993. ::std::string* release_field_path();
  994. void set_allocated_field_path(::std::string* field_path);
  995. // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredQuery.FieldReference)
  996. private:
  997. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  998. ::google::protobuf::internal::ArenaStringPtr field_path_;
  999. mutable int _cached_size_;
  1000. friend struct ::protobuf_google_2ffirestore_2fv1_2fquery_2eproto::TableStruct;
  1001. friend void ::protobuf_google_2ffirestore_2fv1_2fquery_2eproto::InitDefaultsStructuredQuery_FieldReferenceImpl();
  1002. };
  1003. // -------------------------------------------------------------------
  1004. class StructuredQuery_Projection : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.StructuredQuery.Projection) */ {
  1005. public:
  1006. StructuredQuery_Projection();
  1007. virtual ~StructuredQuery_Projection();
  1008. StructuredQuery_Projection(const StructuredQuery_Projection& from);
  1009. inline StructuredQuery_Projection& operator=(const StructuredQuery_Projection& from) {
  1010. CopyFrom(from);
  1011. return *this;
  1012. }
  1013. #if LANG_CXX11
  1014. StructuredQuery_Projection(StructuredQuery_Projection&& from) noexcept
  1015. : StructuredQuery_Projection() {
  1016. *this = ::std::move(from);
  1017. }
  1018. inline StructuredQuery_Projection& operator=(StructuredQuery_Projection&& from) noexcept {
  1019. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1020. if (this != &from) InternalSwap(&from);
  1021. } else {
  1022. CopyFrom(from);
  1023. }
  1024. return *this;
  1025. }
  1026. #endif
  1027. static const ::google::protobuf::Descriptor* descriptor();
  1028. static const StructuredQuery_Projection& default_instance();
  1029. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1030. static inline const StructuredQuery_Projection* internal_default_instance() {
  1031. return reinterpret_cast<const StructuredQuery_Projection*>(
  1032. &_StructuredQuery_Projection_default_instance_);
  1033. }
  1034. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  1035. 7;
  1036. void Swap(StructuredQuery_Projection* other);
  1037. friend void swap(StructuredQuery_Projection& a, StructuredQuery_Projection& b) {
  1038. a.Swap(&b);
  1039. }
  1040. // implements Message ----------------------------------------------
  1041. inline StructuredQuery_Projection* New() const PROTOBUF_FINAL { return New(NULL); }
  1042. StructuredQuery_Projection* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  1043. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  1044. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  1045. void CopyFrom(const StructuredQuery_Projection& from);
  1046. void MergeFrom(const StructuredQuery_Projection& from);
  1047. void Clear() PROTOBUF_FINAL;
  1048. bool IsInitialized() const PROTOBUF_FINAL;
  1049. size_t ByteSizeLong() const PROTOBUF_FINAL;
  1050. bool MergePartialFromCodedStream(
  1051. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  1052. void SerializeWithCachedSizes(
  1053. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  1054. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1055. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  1056. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  1057. private:
  1058. void SharedCtor();
  1059. void SharedDtor();
  1060. void SetCachedSize(int size) const PROTOBUF_FINAL;
  1061. void InternalSwap(StructuredQuery_Projection* other);
  1062. private:
  1063. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1064. return NULL;
  1065. }
  1066. inline void* MaybeArenaPtr() const {
  1067. return NULL;
  1068. }
  1069. public:
  1070. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  1071. // nested types ----------------------------------------------------
  1072. // accessors -------------------------------------------------------
  1073. // repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
  1074. int fields_size() const;
  1075. void clear_fields();
  1076. static const int kFieldsFieldNumber = 2;
  1077. const ::google::firestore::v1::StructuredQuery_FieldReference& fields(int index) const;
  1078. ::google::firestore::v1::StructuredQuery_FieldReference* mutable_fields(int index);
  1079. ::google::firestore::v1::StructuredQuery_FieldReference* add_fields();
  1080. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_FieldReference >*
  1081. mutable_fields();
  1082. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_FieldReference >&
  1083. fields() const;
  1084. // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredQuery.Projection)
  1085. private:
  1086. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1087. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_FieldReference > fields_;
  1088. mutable int _cached_size_;
  1089. friend struct ::protobuf_google_2ffirestore_2fv1_2fquery_2eproto::TableStruct;
  1090. friend void ::protobuf_google_2ffirestore_2fv1_2fquery_2eproto::InitDefaultsStructuredQuery_ProjectionImpl();
  1091. };
  1092. // -------------------------------------------------------------------
  1093. class StructuredQuery : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.StructuredQuery) */ {
  1094. public:
  1095. StructuredQuery();
  1096. virtual ~StructuredQuery();
  1097. StructuredQuery(const StructuredQuery& from);
  1098. inline StructuredQuery& operator=(const StructuredQuery& from) {
  1099. CopyFrom(from);
  1100. return *this;
  1101. }
  1102. #if LANG_CXX11
  1103. StructuredQuery(StructuredQuery&& from) noexcept
  1104. : StructuredQuery() {
  1105. *this = ::std::move(from);
  1106. }
  1107. inline StructuredQuery& operator=(StructuredQuery&& from) noexcept {
  1108. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1109. if (this != &from) InternalSwap(&from);
  1110. } else {
  1111. CopyFrom(from);
  1112. }
  1113. return *this;
  1114. }
  1115. #endif
  1116. static const ::google::protobuf::Descriptor* descriptor();
  1117. static const StructuredQuery& default_instance();
  1118. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1119. static inline const StructuredQuery* internal_default_instance() {
  1120. return reinterpret_cast<const StructuredQuery*>(
  1121. &_StructuredQuery_default_instance_);
  1122. }
  1123. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  1124. 8;
  1125. void Swap(StructuredQuery* other);
  1126. friend void swap(StructuredQuery& a, StructuredQuery& b) {
  1127. a.Swap(&b);
  1128. }
  1129. // implements Message ----------------------------------------------
  1130. inline StructuredQuery* New() const PROTOBUF_FINAL { return New(NULL); }
  1131. StructuredQuery* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  1132. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  1133. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  1134. void CopyFrom(const StructuredQuery& from);
  1135. void MergeFrom(const StructuredQuery& from);
  1136. void Clear() PROTOBUF_FINAL;
  1137. bool IsInitialized() const PROTOBUF_FINAL;
  1138. size_t ByteSizeLong() const PROTOBUF_FINAL;
  1139. bool MergePartialFromCodedStream(
  1140. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  1141. void SerializeWithCachedSizes(
  1142. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  1143. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1144. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  1145. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  1146. private:
  1147. void SharedCtor();
  1148. void SharedDtor();
  1149. void SetCachedSize(int size) const PROTOBUF_FINAL;
  1150. void InternalSwap(StructuredQuery* other);
  1151. private:
  1152. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1153. return NULL;
  1154. }
  1155. inline void* MaybeArenaPtr() const {
  1156. return NULL;
  1157. }
  1158. public:
  1159. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  1160. // nested types ----------------------------------------------------
  1161. typedef StructuredQuery_CollectionSelector CollectionSelector;
  1162. typedef StructuredQuery_Filter Filter;
  1163. typedef StructuredQuery_CompositeFilter CompositeFilter;
  1164. typedef StructuredQuery_FieldFilter FieldFilter;
  1165. typedef StructuredQuery_UnaryFilter UnaryFilter;
  1166. typedef StructuredQuery_Order Order;
  1167. typedef StructuredQuery_FieldReference FieldReference;
  1168. typedef StructuredQuery_Projection Projection;
  1169. typedef StructuredQuery_Direction Direction;
  1170. static const Direction DIRECTION_UNSPECIFIED =
  1171. StructuredQuery_Direction_DIRECTION_UNSPECIFIED;
  1172. static const Direction ASCENDING =
  1173. StructuredQuery_Direction_ASCENDING;
  1174. static const Direction DESCENDING =
  1175. StructuredQuery_Direction_DESCENDING;
  1176. static inline bool Direction_IsValid(int value) {
  1177. return StructuredQuery_Direction_IsValid(value);
  1178. }
  1179. static const Direction Direction_MIN =
  1180. StructuredQuery_Direction_Direction_MIN;
  1181. static const Direction Direction_MAX =
  1182. StructuredQuery_Direction_Direction_MAX;
  1183. static const int Direction_ARRAYSIZE =
  1184. StructuredQuery_Direction_Direction_ARRAYSIZE;
  1185. static inline const ::google::protobuf::EnumDescriptor*
  1186. Direction_descriptor() {
  1187. return StructuredQuery_Direction_descriptor();
  1188. }
  1189. static inline const ::std::string& Direction_Name(Direction value) {
  1190. return StructuredQuery_Direction_Name(value);
  1191. }
  1192. static inline bool Direction_Parse(const ::std::string& name,
  1193. Direction* value) {
  1194. return StructuredQuery_Direction_Parse(name, value);
  1195. }
  1196. // accessors -------------------------------------------------------
  1197. // repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;
  1198. int from_size() const;
  1199. void clear_from();
  1200. static const int kFromFieldNumber = 2;
  1201. const ::google::firestore::v1::StructuredQuery_CollectionSelector& from(int index) const;
  1202. ::google::firestore::v1::StructuredQuery_CollectionSelector* mutable_from(int index);
  1203. ::google::firestore::v1::StructuredQuery_CollectionSelector* add_from();
  1204. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_CollectionSelector >*
  1205. mutable_from();
  1206. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_CollectionSelector >&
  1207. from() const;
  1208. // repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
  1209. int order_by_size() const;
  1210. void clear_order_by();
  1211. static const int kOrderByFieldNumber = 4;
  1212. const ::google::firestore::v1::StructuredQuery_Order& order_by(int index) const;
  1213. ::google::firestore::v1::StructuredQuery_Order* mutable_order_by(int index);
  1214. ::google::firestore::v1::StructuredQuery_Order* add_order_by();
  1215. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_Order >*
  1216. mutable_order_by();
  1217. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_Order >&
  1218. order_by() const;
  1219. // .google.firestore.v1.StructuredQuery.Projection select = 1;
  1220. bool has_select() const;
  1221. void clear_select();
  1222. static const int kSelectFieldNumber = 1;
  1223. const ::google::firestore::v1::StructuredQuery_Projection& select() const;
  1224. ::google::firestore::v1::StructuredQuery_Projection* release_select();
  1225. ::google::firestore::v1::StructuredQuery_Projection* mutable_select();
  1226. void set_allocated_select(::google::firestore::v1::StructuredQuery_Projection* select);
  1227. // .google.firestore.v1.StructuredQuery.Filter where = 3;
  1228. bool has_where() const;
  1229. void clear_where();
  1230. static const int kWhereFieldNumber = 3;
  1231. const ::google::firestore::v1::StructuredQuery_Filter& where() const;
  1232. ::google::firestore::v1::StructuredQuery_Filter* release_where();
  1233. ::google::firestore::v1::StructuredQuery_Filter* mutable_where();
  1234. void set_allocated_where(::google::firestore::v1::StructuredQuery_Filter* where);
  1235. // .google.protobuf.Int32Value limit = 5;
  1236. bool has_limit() const;
  1237. void clear_limit();
  1238. static const int kLimitFieldNumber = 5;
  1239. const ::google::protobuf::Int32Value& limit() const;
  1240. ::google::protobuf::Int32Value* release_limit();
  1241. ::google::protobuf::Int32Value* mutable_limit();
  1242. void set_allocated_limit(::google::protobuf::Int32Value* limit);
  1243. // .google.firestore.v1.Cursor start_at = 7;
  1244. bool has_start_at() const;
  1245. void clear_start_at();
  1246. static const int kStartAtFieldNumber = 7;
  1247. const ::google::firestore::v1::Cursor& start_at() const;
  1248. ::google::firestore::v1::Cursor* release_start_at();
  1249. ::google::firestore::v1::Cursor* mutable_start_at();
  1250. void set_allocated_start_at(::google::firestore::v1::Cursor* start_at);
  1251. // .google.firestore.v1.Cursor end_at = 8;
  1252. bool has_end_at() const;
  1253. void clear_end_at();
  1254. static const int kEndAtFieldNumber = 8;
  1255. const ::google::firestore::v1::Cursor& end_at() const;
  1256. ::google::firestore::v1::Cursor* release_end_at();
  1257. ::google::firestore::v1::Cursor* mutable_end_at();
  1258. void set_allocated_end_at(::google::firestore::v1::Cursor* end_at);
  1259. // int32 offset = 6;
  1260. void clear_offset();
  1261. static const int kOffsetFieldNumber = 6;
  1262. ::google::protobuf::int32 offset() const;
  1263. void set_offset(::google::protobuf::int32 value);
  1264. // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredQuery)
  1265. private:
  1266. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1267. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_CollectionSelector > from_;
  1268. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_Order > order_by_;
  1269. ::google::firestore::v1::StructuredQuery_Projection* select_;
  1270. ::google::firestore::v1::StructuredQuery_Filter* where_;
  1271. ::google::protobuf::Int32Value* limit_;
  1272. ::google::firestore::v1::Cursor* start_at_;
  1273. ::google::firestore::v1::Cursor* end_at_;
  1274. ::google::protobuf::int32 offset_;
  1275. mutable int _cached_size_;
  1276. friend struct ::protobuf_google_2ffirestore_2fv1_2fquery_2eproto::TableStruct;
  1277. friend void ::protobuf_google_2ffirestore_2fv1_2fquery_2eproto::InitDefaultsStructuredQueryImpl();
  1278. };
  1279. // -------------------------------------------------------------------
  1280. class Cursor : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Cursor) */ {
  1281. public:
  1282. Cursor();
  1283. virtual ~Cursor();
  1284. Cursor(const Cursor& from);
  1285. inline Cursor& operator=(const Cursor& from) {
  1286. CopyFrom(from);
  1287. return *this;
  1288. }
  1289. #if LANG_CXX11
  1290. Cursor(Cursor&& from) noexcept
  1291. : Cursor() {
  1292. *this = ::std::move(from);
  1293. }
  1294. inline Cursor& operator=(Cursor&& from) noexcept {
  1295. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1296. if (this != &from) InternalSwap(&from);
  1297. } else {
  1298. CopyFrom(from);
  1299. }
  1300. return *this;
  1301. }
  1302. #endif
  1303. static const ::google::protobuf::Descriptor* descriptor();
  1304. static const Cursor& default_instance();
  1305. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1306. static inline const Cursor* internal_default_instance() {
  1307. return reinterpret_cast<const Cursor*>(
  1308. &_Cursor_default_instance_);
  1309. }
  1310. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  1311. 9;
  1312. void Swap(Cursor* other);
  1313. friend void swap(Cursor& a, Cursor& b) {
  1314. a.Swap(&b);
  1315. }
  1316. // implements Message ----------------------------------------------
  1317. inline Cursor* New() const PROTOBUF_FINAL { return New(NULL); }
  1318. Cursor* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  1319. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  1320. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  1321. void CopyFrom(const Cursor& from);
  1322. void MergeFrom(const Cursor& from);
  1323. void Clear() PROTOBUF_FINAL;
  1324. bool IsInitialized() const PROTOBUF_FINAL;
  1325. size_t ByteSizeLong() const PROTOBUF_FINAL;
  1326. bool MergePartialFromCodedStream(
  1327. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  1328. void SerializeWithCachedSizes(
  1329. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  1330. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1331. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  1332. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  1333. private:
  1334. void SharedCtor();
  1335. void SharedDtor();
  1336. void SetCachedSize(int size) const PROTOBUF_FINAL;
  1337. void InternalSwap(Cursor* other);
  1338. private:
  1339. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1340. return NULL;
  1341. }
  1342. inline void* MaybeArenaPtr() const {
  1343. return NULL;
  1344. }
  1345. public:
  1346. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  1347. // nested types ----------------------------------------------------
  1348. // accessors -------------------------------------------------------
  1349. // repeated .google.firestore.v1.Value values = 1;
  1350. int values_size() const;
  1351. void clear_values();
  1352. static const int kValuesFieldNumber = 1;
  1353. const ::google::firestore::v1::Value& values(int index) const;
  1354. ::google::firestore::v1::Value* mutable_values(int index);
  1355. ::google::firestore::v1::Value* add_values();
  1356. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value >*
  1357. mutable_values();
  1358. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value >&
  1359. values() const;
  1360. // bool before = 2;
  1361. void clear_before();
  1362. static const int kBeforeFieldNumber = 2;
  1363. bool before() const;
  1364. void set_before(bool value);
  1365. // @@protoc_insertion_point(class_scope:google.firestore.v1.Cursor)
  1366. private:
  1367. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1368. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value > values_;
  1369. bool before_;
  1370. mutable int _cached_size_;
  1371. friend struct ::protobuf_google_2ffirestore_2fv1_2fquery_2eproto::TableStruct;
  1372. friend void ::protobuf_google_2ffirestore_2fv1_2fquery_2eproto::InitDefaultsCursorImpl();
  1373. };
  1374. // ===================================================================
  1375. // ===================================================================
  1376. #ifdef __GNUC__
  1377. #pragma GCC diagnostic push
  1378. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  1379. #endif // __GNUC__
  1380. // StructuredQuery_CollectionSelector
  1381. // string collection_id = 2;
  1382. inline void StructuredQuery_CollectionSelector::clear_collection_id() {
  1383. collection_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1384. }
  1385. inline const ::std::string& StructuredQuery_CollectionSelector::collection_id() const {
  1386. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.CollectionSelector.collection_id)
  1387. return collection_id_.GetNoArena();
  1388. }
  1389. inline void StructuredQuery_CollectionSelector::set_collection_id(const ::std::string& value) {
  1390. collection_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  1391. // @@protoc_insertion_point(field_set:google.firestore.v1.StructuredQuery.CollectionSelector.collection_id)
  1392. }
  1393. #if LANG_CXX11
  1394. inline void StructuredQuery_CollectionSelector::set_collection_id(::std::string&& value) {
  1395. collection_id_.SetNoArena(
  1396. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1397. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.StructuredQuery.CollectionSelector.collection_id)
  1398. }
  1399. #endif
  1400. inline void StructuredQuery_CollectionSelector::set_collection_id(const char* value) {
  1401. GOOGLE_DCHECK(value != NULL);
  1402. collection_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1403. // @@protoc_insertion_point(field_set_char:google.firestore.v1.StructuredQuery.CollectionSelector.collection_id)
  1404. }
  1405. inline void StructuredQuery_CollectionSelector::set_collection_id(const char* value, size_t size) {
  1406. collection_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1407. ::std::string(reinterpret_cast<const char*>(value), size));
  1408. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.StructuredQuery.CollectionSelector.collection_id)
  1409. }
  1410. inline ::std::string* StructuredQuery_CollectionSelector::mutable_collection_id() {
  1411. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.CollectionSelector.collection_id)
  1412. return collection_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1413. }
  1414. inline ::std::string* StructuredQuery_CollectionSelector::release_collection_id() {
  1415. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.CollectionSelector.collection_id)
  1416. return collection_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1417. }
  1418. inline void StructuredQuery_CollectionSelector::set_allocated_collection_id(::std::string* collection_id) {
  1419. if (collection_id != NULL) {
  1420. } else {
  1421. }
  1422. collection_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_id);
  1423. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.CollectionSelector.collection_id)
  1424. }
  1425. // bool all_descendants = 3;
  1426. inline void StructuredQuery_CollectionSelector::clear_all_descendants() {
  1427. all_descendants_ = false;
  1428. }
  1429. inline bool StructuredQuery_CollectionSelector::all_descendants() const {
  1430. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.CollectionSelector.all_descendants)
  1431. return all_descendants_;
  1432. }
  1433. inline void StructuredQuery_CollectionSelector::set_all_descendants(bool value) {
  1434. all_descendants_ = value;
  1435. // @@protoc_insertion_point(field_set:google.firestore.v1.StructuredQuery.CollectionSelector.all_descendants)
  1436. }
  1437. // -------------------------------------------------------------------
  1438. // StructuredQuery_Filter
  1439. // .google.firestore.v1.StructuredQuery.CompositeFilter composite_filter = 1;
  1440. inline bool StructuredQuery_Filter::has_composite_filter() const {
  1441. return filter_type_case() == kCompositeFilter;
  1442. }
  1443. inline void StructuredQuery_Filter::set_has_composite_filter() {
  1444. _oneof_case_[0] = kCompositeFilter;
  1445. }
  1446. inline void StructuredQuery_Filter::clear_composite_filter() {
  1447. if (has_composite_filter()) {
  1448. delete filter_type_.composite_filter_;
  1449. clear_has_filter_type();
  1450. }
  1451. }
  1452. inline ::google::firestore::v1::StructuredQuery_CompositeFilter* StructuredQuery_Filter::release_composite_filter() {
  1453. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.Filter.composite_filter)
  1454. if (has_composite_filter()) {
  1455. clear_has_filter_type();
  1456. ::google::firestore::v1::StructuredQuery_CompositeFilter* temp = filter_type_.composite_filter_;
  1457. filter_type_.composite_filter_ = NULL;
  1458. return temp;
  1459. } else {
  1460. return NULL;
  1461. }
  1462. }
  1463. inline const ::google::firestore::v1::StructuredQuery_CompositeFilter& StructuredQuery_Filter::composite_filter() const {
  1464. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.Filter.composite_filter)
  1465. return has_composite_filter()
  1466. ? *filter_type_.composite_filter_
  1467. : *reinterpret_cast< ::google::firestore::v1::StructuredQuery_CompositeFilter*>(&::google::firestore::v1::_StructuredQuery_CompositeFilter_default_instance_);
  1468. }
  1469. inline ::google::firestore::v1::StructuredQuery_CompositeFilter* StructuredQuery_Filter::mutable_composite_filter() {
  1470. if (!has_composite_filter()) {
  1471. clear_filter_type();
  1472. set_has_composite_filter();
  1473. filter_type_.composite_filter_ = new ::google::firestore::v1::StructuredQuery_CompositeFilter;
  1474. }
  1475. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.Filter.composite_filter)
  1476. return filter_type_.composite_filter_;
  1477. }
  1478. // .google.firestore.v1.StructuredQuery.FieldFilter field_filter = 2;
  1479. inline bool StructuredQuery_Filter::has_field_filter() const {
  1480. return filter_type_case() == kFieldFilter;
  1481. }
  1482. inline void StructuredQuery_Filter::set_has_field_filter() {
  1483. _oneof_case_[0] = kFieldFilter;
  1484. }
  1485. inline void StructuredQuery_Filter::clear_field_filter() {
  1486. if (has_field_filter()) {
  1487. delete filter_type_.field_filter_;
  1488. clear_has_filter_type();
  1489. }
  1490. }
  1491. inline ::google::firestore::v1::StructuredQuery_FieldFilter* StructuredQuery_Filter::release_field_filter() {
  1492. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.Filter.field_filter)
  1493. if (has_field_filter()) {
  1494. clear_has_filter_type();
  1495. ::google::firestore::v1::StructuredQuery_FieldFilter* temp = filter_type_.field_filter_;
  1496. filter_type_.field_filter_ = NULL;
  1497. return temp;
  1498. } else {
  1499. return NULL;
  1500. }
  1501. }
  1502. inline const ::google::firestore::v1::StructuredQuery_FieldFilter& StructuredQuery_Filter::field_filter() const {
  1503. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.Filter.field_filter)
  1504. return has_field_filter()
  1505. ? *filter_type_.field_filter_
  1506. : *reinterpret_cast< ::google::firestore::v1::StructuredQuery_FieldFilter*>(&::google::firestore::v1::_StructuredQuery_FieldFilter_default_instance_);
  1507. }
  1508. inline ::google::firestore::v1::StructuredQuery_FieldFilter* StructuredQuery_Filter::mutable_field_filter() {
  1509. if (!has_field_filter()) {
  1510. clear_filter_type();
  1511. set_has_field_filter();
  1512. filter_type_.field_filter_ = new ::google::firestore::v1::StructuredQuery_FieldFilter;
  1513. }
  1514. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.Filter.field_filter)
  1515. return filter_type_.field_filter_;
  1516. }
  1517. // .google.firestore.v1.StructuredQuery.UnaryFilter unary_filter = 3;
  1518. inline bool StructuredQuery_Filter::has_unary_filter() const {
  1519. return filter_type_case() == kUnaryFilter;
  1520. }
  1521. inline void StructuredQuery_Filter::set_has_unary_filter() {
  1522. _oneof_case_[0] = kUnaryFilter;
  1523. }
  1524. inline void StructuredQuery_Filter::clear_unary_filter() {
  1525. if (has_unary_filter()) {
  1526. delete filter_type_.unary_filter_;
  1527. clear_has_filter_type();
  1528. }
  1529. }
  1530. inline ::google::firestore::v1::StructuredQuery_UnaryFilter* StructuredQuery_Filter::release_unary_filter() {
  1531. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.Filter.unary_filter)
  1532. if (has_unary_filter()) {
  1533. clear_has_filter_type();
  1534. ::google::firestore::v1::StructuredQuery_UnaryFilter* temp = filter_type_.unary_filter_;
  1535. filter_type_.unary_filter_ = NULL;
  1536. return temp;
  1537. } else {
  1538. return NULL;
  1539. }
  1540. }
  1541. inline const ::google::firestore::v1::StructuredQuery_UnaryFilter& StructuredQuery_Filter::unary_filter() const {
  1542. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.Filter.unary_filter)
  1543. return has_unary_filter()
  1544. ? *filter_type_.unary_filter_
  1545. : *reinterpret_cast< ::google::firestore::v1::StructuredQuery_UnaryFilter*>(&::google::firestore::v1::_StructuredQuery_UnaryFilter_default_instance_);
  1546. }
  1547. inline ::google::firestore::v1::StructuredQuery_UnaryFilter* StructuredQuery_Filter::mutable_unary_filter() {
  1548. if (!has_unary_filter()) {
  1549. clear_filter_type();
  1550. set_has_unary_filter();
  1551. filter_type_.unary_filter_ = new ::google::firestore::v1::StructuredQuery_UnaryFilter;
  1552. }
  1553. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.Filter.unary_filter)
  1554. return filter_type_.unary_filter_;
  1555. }
  1556. inline bool StructuredQuery_Filter::has_filter_type() const {
  1557. return filter_type_case() != FILTER_TYPE_NOT_SET;
  1558. }
  1559. inline void StructuredQuery_Filter::clear_has_filter_type() {
  1560. _oneof_case_[0] = FILTER_TYPE_NOT_SET;
  1561. }
  1562. inline StructuredQuery_Filter::FilterTypeCase StructuredQuery_Filter::filter_type_case() const {
  1563. return StructuredQuery_Filter::FilterTypeCase(_oneof_case_[0]);
  1564. }
  1565. // -------------------------------------------------------------------
  1566. // StructuredQuery_CompositeFilter
  1567. // .google.firestore.v1.StructuredQuery.CompositeFilter.Operator op = 1;
  1568. inline void StructuredQuery_CompositeFilter::clear_op() {
  1569. op_ = 0;
  1570. }
  1571. inline ::google::firestore::v1::StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter::op() const {
  1572. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.CompositeFilter.op)
  1573. return static_cast< ::google::firestore::v1::StructuredQuery_CompositeFilter_Operator >(op_);
  1574. }
  1575. inline void StructuredQuery_CompositeFilter::set_op(::google::firestore::v1::StructuredQuery_CompositeFilter_Operator value) {
  1576. op_ = value;
  1577. // @@protoc_insertion_point(field_set:google.firestore.v1.StructuredQuery.CompositeFilter.op)
  1578. }
  1579. // repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;
  1580. inline int StructuredQuery_CompositeFilter::filters_size() const {
  1581. return filters_.size();
  1582. }
  1583. inline void StructuredQuery_CompositeFilter::clear_filters() {
  1584. filters_.Clear();
  1585. }
  1586. inline const ::google::firestore::v1::StructuredQuery_Filter& StructuredQuery_CompositeFilter::filters(int index) const {
  1587. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.CompositeFilter.filters)
  1588. return filters_.Get(index);
  1589. }
  1590. inline ::google::firestore::v1::StructuredQuery_Filter* StructuredQuery_CompositeFilter::mutable_filters(int index) {
  1591. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.CompositeFilter.filters)
  1592. return filters_.Mutable(index);
  1593. }
  1594. inline ::google::firestore::v1::StructuredQuery_Filter* StructuredQuery_CompositeFilter::add_filters() {
  1595. // @@protoc_insertion_point(field_add:google.firestore.v1.StructuredQuery.CompositeFilter.filters)
  1596. return filters_.Add();
  1597. }
  1598. inline ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_Filter >*
  1599. StructuredQuery_CompositeFilter::mutable_filters() {
  1600. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.StructuredQuery.CompositeFilter.filters)
  1601. return &filters_;
  1602. }
  1603. inline const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_Filter >&
  1604. StructuredQuery_CompositeFilter::filters() const {
  1605. // @@protoc_insertion_point(field_list:google.firestore.v1.StructuredQuery.CompositeFilter.filters)
  1606. return filters_;
  1607. }
  1608. // -------------------------------------------------------------------
  1609. // StructuredQuery_FieldFilter
  1610. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  1611. inline bool StructuredQuery_FieldFilter::has_field() const {
  1612. return this != internal_default_instance() && field_ != NULL;
  1613. }
  1614. inline void StructuredQuery_FieldFilter::clear_field() {
  1615. if (GetArenaNoVirtual() == NULL && field_ != NULL) {
  1616. delete field_;
  1617. }
  1618. field_ = NULL;
  1619. }
  1620. inline const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredQuery_FieldFilter::field() const {
  1621. const ::google::firestore::v1::StructuredQuery_FieldReference* p = field_;
  1622. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.FieldFilter.field)
  1623. return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1::StructuredQuery_FieldReference*>(
  1624. &::google::firestore::v1::_StructuredQuery_FieldReference_default_instance_);
  1625. }
  1626. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredQuery_FieldFilter::release_field() {
  1627. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.FieldFilter.field)
  1628. ::google::firestore::v1::StructuredQuery_FieldReference* temp = field_;
  1629. field_ = NULL;
  1630. return temp;
  1631. }
  1632. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredQuery_FieldFilter::mutable_field() {
  1633. if (field_ == NULL) {
  1634. field_ = new ::google::firestore::v1::StructuredQuery_FieldReference;
  1635. }
  1636. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.FieldFilter.field)
  1637. return field_;
  1638. }
  1639. inline void StructuredQuery_FieldFilter::set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* field) {
  1640. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1641. if (message_arena == NULL) {
  1642. delete field_;
  1643. }
  1644. if (field) {
  1645. ::google::protobuf::Arena* submessage_arena = NULL;
  1646. if (message_arena != submessage_arena) {
  1647. field = ::google::protobuf::internal::GetOwnedMessage(
  1648. message_arena, field, submessage_arena);
  1649. }
  1650. } else {
  1651. }
  1652. field_ = field;
  1653. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.FieldFilter.field)
  1654. }
  1655. // .google.firestore.v1.StructuredQuery.FieldFilter.Operator op = 2;
  1656. inline void StructuredQuery_FieldFilter::clear_op() {
  1657. op_ = 0;
  1658. }
  1659. inline ::google::firestore::v1::StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::op() const {
  1660. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.FieldFilter.op)
  1661. return static_cast< ::google::firestore::v1::StructuredQuery_FieldFilter_Operator >(op_);
  1662. }
  1663. inline void StructuredQuery_FieldFilter::set_op(::google::firestore::v1::StructuredQuery_FieldFilter_Operator value) {
  1664. op_ = value;
  1665. // @@protoc_insertion_point(field_set:google.firestore.v1.StructuredQuery.FieldFilter.op)
  1666. }
  1667. // .google.firestore.v1.Value value = 3;
  1668. inline bool StructuredQuery_FieldFilter::has_value() const {
  1669. return this != internal_default_instance() && value_ != NULL;
  1670. }
  1671. inline const ::google::firestore::v1::Value& StructuredQuery_FieldFilter::value() const {
  1672. const ::google::firestore::v1::Value* p = value_;
  1673. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.FieldFilter.value)
  1674. return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1::Value*>(
  1675. &::google::firestore::v1::_Value_default_instance_);
  1676. }
  1677. inline ::google::firestore::v1::Value* StructuredQuery_FieldFilter::release_value() {
  1678. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.FieldFilter.value)
  1679. ::google::firestore::v1::Value* temp = value_;
  1680. value_ = NULL;
  1681. return temp;
  1682. }
  1683. inline ::google::firestore::v1::Value* StructuredQuery_FieldFilter::mutable_value() {
  1684. if (value_ == NULL) {
  1685. value_ = new ::google::firestore::v1::Value;
  1686. }
  1687. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.FieldFilter.value)
  1688. return value_;
  1689. }
  1690. inline void StructuredQuery_FieldFilter::set_allocated_value(::google::firestore::v1::Value* value) {
  1691. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1692. if (message_arena == NULL) {
  1693. delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_);
  1694. }
  1695. if (value) {
  1696. ::google::protobuf::Arena* submessage_arena = NULL;
  1697. if (message_arena != submessage_arena) {
  1698. value = ::google::protobuf::internal::GetOwnedMessage(
  1699. message_arena, value, submessage_arena);
  1700. }
  1701. } else {
  1702. }
  1703. value_ = value;
  1704. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.FieldFilter.value)
  1705. }
  1706. // -------------------------------------------------------------------
  1707. // StructuredQuery_UnaryFilter
  1708. // .google.firestore.v1.StructuredQuery.UnaryFilter.Operator op = 1;
  1709. inline void StructuredQuery_UnaryFilter::clear_op() {
  1710. op_ = 0;
  1711. }
  1712. inline ::google::firestore::v1::StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter::op() const {
  1713. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.UnaryFilter.op)
  1714. return static_cast< ::google::firestore::v1::StructuredQuery_UnaryFilter_Operator >(op_);
  1715. }
  1716. inline void StructuredQuery_UnaryFilter::set_op(::google::firestore::v1::StructuredQuery_UnaryFilter_Operator value) {
  1717. op_ = value;
  1718. // @@protoc_insertion_point(field_set:google.firestore.v1.StructuredQuery.UnaryFilter.op)
  1719. }
  1720. // .google.firestore.v1.StructuredQuery.FieldReference field = 2;
  1721. inline bool StructuredQuery_UnaryFilter::has_field() const {
  1722. return operand_type_case() == kField;
  1723. }
  1724. inline void StructuredQuery_UnaryFilter::set_has_field() {
  1725. _oneof_case_[0] = kField;
  1726. }
  1727. inline void StructuredQuery_UnaryFilter::clear_field() {
  1728. if (has_field()) {
  1729. delete operand_type_.field_;
  1730. clear_has_operand_type();
  1731. }
  1732. }
  1733. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredQuery_UnaryFilter::release_field() {
  1734. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.UnaryFilter.field)
  1735. if (has_field()) {
  1736. clear_has_operand_type();
  1737. ::google::firestore::v1::StructuredQuery_FieldReference* temp = operand_type_.field_;
  1738. operand_type_.field_ = NULL;
  1739. return temp;
  1740. } else {
  1741. return NULL;
  1742. }
  1743. }
  1744. inline const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredQuery_UnaryFilter::field() const {
  1745. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.UnaryFilter.field)
  1746. return has_field()
  1747. ? *operand_type_.field_
  1748. : *reinterpret_cast< ::google::firestore::v1::StructuredQuery_FieldReference*>(&::google::firestore::v1::_StructuredQuery_FieldReference_default_instance_);
  1749. }
  1750. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredQuery_UnaryFilter::mutable_field() {
  1751. if (!has_field()) {
  1752. clear_operand_type();
  1753. set_has_field();
  1754. operand_type_.field_ = new ::google::firestore::v1::StructuredQuery_FieldReference;
  1755. }
  1756. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.UnaryFilter.field)
  1757. return operand_type_.field_;
  1758. }
  1759. inline bool StructuredQuery_UnaryFilter::has_operand_type() const {
  1760. return operand_type_case() != OPERAND_TYPE_NOT_SET;
  1761. }
  1762. inline void StructuredQuery_UnaryFilter::clear_has_operand_type() {
  1763. _oneof_case_[0] = OPERAND_TYPE_NOT_SET;
  1764. }
  1765. inline StructuredQuery_UnaryFilter::OperandTypeCase StructuredQuery_UnaryFilter::operand_type_case() const {
  1766. return StructuredQuery_UnaryFilter::OperandTypeCase(_oneof_case_[0]);
  1767. }
  1768. // -------------------------------------------------------------------
  1769. // StructuredQuery_Order
  1770. // .google.firestore.v1.StructuredQuery.FieldReference field = 1;
  1771. inline bool StructuredQuery_Order::has_field() const {
  1772. return this != internal_default_instance() && field_ != NULL;
  1773. }
  1774. inline void StructuredQuery_Order::clear_field() {
  1775. if (GetArenaNoVirtual() == NULL && field_ != NULL) {
  1776. delete field_;
  1777. }
  1778. field_ = NULL;
  1779. }
  1780. inline const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredQuery_Order::field() const {
  1781. const ::google::firestore::v1::StructuredQuery_FieldReference* p = field_;
  1782. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.Order.field)
  1783. return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1::StructuredQuery_FieldReference*>(
  1784. &::google::firestore::v1::_StructuredQuery_FieldReference_default_instance_);
  1785. }
  1786. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredQuery_Order::release_field() {
  1787. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.Order.field)
  1788. ::google::firestore::v1::StructuredQuery_FieldReference* temp = field_;
  1789. field_ = NULL;
  1790. return temp;
  1791. }
  1792. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredQuery_Order::mutable_field() {
  1793. if (field_ == NULL) {
  1794. field_ = new ::google::firestore::v1::StructuredQuery_FieldReference;
  1795. }
  1796. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.Order.field)
  1797. return field_;
  1798. }
  1799. inline void StructuredQuery_Order::set_allocated_field(::google::firestore::v1::StructuredQuery_FieldReference* field) {
  1800. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1801. if (message_arena == NULL) {
  1802. delete field_;
  1803. }
  1804. if (field) {
  1805. ::google::protobuf::Arena* submessage_arena = NULL;
  1806. if (message_arena != submessage_arena) {
  1807. field = ::google::protobuf::internal::GetOwnedMessage(
  1808. message_arena, field, submessage_arena);
  1809. }
  1810. } else {
  1811. }
  1812. field_ = field;
  1813. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.Order.field)
  1814. }
  1815. // .google.firestore.v1.StructuredQuery.Direction direction = 2;
  1816. inline void StructuredQuery_Order::clear_direction() {
  1817. direction_ = 0;
  1818. }
  1819. inline ::google::firestore::v1::StructuredQuery_Direction StructuredQuery_Order::direction() const {
  1820. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.Order.direction)
  1821. return static_cast< ::google::firestore::v1::StructuredQuery_Direction >(direction_);
  1822. }
  1823. inline void StructuredQuery_Order::set_direction(::google::firestore::v1::StructuredQuery_Direction value) {
  1824. direction_ = value;
  1825. // @@protoc_insertion_point(field_set:google.firestore.v1.StructuredQuery.Order.direction)
  1826. }
  1827. // -------------------------------------------------------------------
  1828. // StructuredQuery_FieldReference
  1829. // string field_path = 2;
  1830. inline void StructuredQuery_FieldReference::clear_field_path() {
  1831. field_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1832. }
  1833. inline const ::std::string& StructuredQuery_FieldReference::field_path() const {
  1834. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.FieldReference.field_path)
  1835. return field_path_.GetNoArena();
  1836. }
  1837. inline void StructuredQuery_FieldReference::set_field_path(const ::std::string& value) {
  1838. field_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  1839. // @@protoc_insertion_point(field_set:google.firestore.v1.StructuredQuery.FieldReference.field_path)
  1840. }
  1841. #if LANG_CXX11
  1842. inline void StructuredQuery_FieldReference::set_field_path(::std::string&& value) {
  1843. field_path_.SetNoArena(
  1844. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1845. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.StructuredQuery.FieldReference.field_path)
  1846. }
  1847. #endif
  1848. inline void StructuredQuery_FieldReference::set_field_path(const char* value) {
  1849. GOOGLE_DCHECK(value != NULL);
  1850. field_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1851. // @@protoc_insertion_point(field_set_char:google.firestore.v1.StructuredQuery.FieldReference.field_path)
  1852. }
  1853. inline void StructuredQuery_FieldReference::set_field_path(const char* value, size_t size) {
  1854. field_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1855. ::std::string(reinterpret_cast<const char*>(value), size));
  1856. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.StructuredQuery.FieldReference.field_path)
  1857. }
  1858. inline ::std::string* StructuredQuery_FieldReference::mutable_field_path() {
  1859. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.FieldReference.field_path)
  1860. return field_path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1861. }
  1862. inline ::std::string* StructuredQuery_FieldReference::release_field_path() {
  1863. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.FieldReference.field_path)
  1864. return field_path_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1865. }
  1866. inline void StructuredQuery_FieldReference::set_allocated_field_path(::std::string* field_path) {
  1867. if (field_path != NULL) {
  1868. } else {
  1869. }
  1870. field_path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_path);
  1871. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.FieldReference.field_path)
  1872. }
  1873. // -------------------------------------------------------------------
  1874. // StructuredQuery_Projection
  1875. // repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
  1876. inline int StructuredQuery_Projection::fields_size() const {
  1877. return fields_.size();
  1878. }
  1879. inline void StructuredQuery_Projection::clear_fields() {
  1880. fields_.Clear();
  1881. }
  1882. inline const ::google::firestore::v1::StructuredQuery_FieldReference& StructuredQuery_Projection::fields(int index) const {
  1883. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.Projection.fields)
  1884. return fields_.Get(index);
  1885. }
  1886. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredQuery_Projection::mutable_fields(int index) {
  1887. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.Projection.fields)
  1888. return fields_.Mutable(index);
  1889. }
  1890. inline ::google::firestore::v1::StructuredQuery_FieldReference* StructuredQuery_Projection::add_fields() {
  1891. // @@protoc_insertion_point(field_add:google.firestore.v1.StructuredQuery.Projection.fields)
  1892. return fields_.Add();
  1893. }
  1894. inline ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_FieldReference >*
  1895. StructuredQuery_Projection::mutable_fields() {
  1896. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.StructuredQuery.Projection.fields)
  1897. return &fields_;
  1898. }
  1899. inline const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_FieldReference >&
  1900. StructuredQuery_Projection::fields() const {
  1901. // @@protoc_insertion_point(field_list:google.firestore.v1.StructuredQuery.Projection.fields)
  1902. return fields_;
  1903. }
  1904. // -------------------------------------------------------------------
  1905. // StructuredQuery
  1906. // .google.firestore.v1.StructuredQuery.Projection select = 1;
  1907. inline bool StructuredQuery::has_select() const {
  1908. return this != internal_default_instance() && select_ != NULL;
  1909. }
  1910. inline void StructuredQuery::clear_select() {
  1911. if (GetArenaNoVirtual() == NULL && select_ != NULL) {
  1912. delete select_;
  1913. }
  1914. select_ = NULL;
  1915. }
  1916. inline const ::google::firestore::v1::StructuredQuery_Projection& StructuredQuery::select() const {
  1917. const ::google::firestore::v1::StructuredQuery_Projection* p = select_;
  1918. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.select)
  1919. return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1::StructuredQuery_Projection*>(
  1920. &::google::firestore::v1::_StructuredQuery_Projection_default_instance_);
  1921. }
  1922. inline ::google::firestore::v1::StructuredQuery_Projection* StructuredQuery::release_select() {
  1923. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.select)
  1924. ::google::firestore::v1::StructuredQuery_Projection* temp = select_;
  1925. select_ = NULL;
  1926. return temp;
  1927. }
  1928. inline ::google::firestore::v1::StructuredQuery_Projection* StructuredQuery::mutable_select() {
  1929. if (select_ == NULL) {
  1930. select_ = new ::google::firestore::v1::StructuredQuery_Projection;
  1931. }
  1932. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.select)
  1933. return select_;
  1934. }
  1935. inline void StructuredQuery::set_allocated_select(::google::firestore::v1::StructuredQuery_Projection* select) {
  1936. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1937. if (message_arena == NULL) {
  1938. delete select_;
  1939. }
  1940. if (select) {
  1941. ::google::protobuf::Arena* submessage_arena = NULL;
  1942. if (message_arena != submessage_arena) {
  1943. select = ::google::protobuf::internal::GetOwnedMessage(
  1944. message_arena, select, submessage_arena);
  1945. }
  1946. } else {
  1947. }
  1948. select_ = select;
  1949. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.select)
  1950. }
  1951. // repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;
  1952. inline int StructuredQuery::from_size() const {
  1953. return from_.size();
  1954. }
  1955. inline void StructuredQuery::clear_from() {
  1956. from_.Clear();
  1957. }
  1958. inline const ::google::firestore::v1::StructuredQuery_CollectionSelector& StructuredQuery::from(int index) const {
  1959. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.from)
  1960. return from_.Get(index);
  1961. }
  1962. inline ::google::firestore::v1::StructuredQuery_CollectionSelector* StructuredQuery::mutable_from(int index) {
  1963. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.from)
  1964. return from_.Mutable(index);
  1965. }
  1966. inline ::google::firestore::v1::StructuredQuery_CollectionSelector* StructuredQuery::add_from() {
  1967. // @@protoc_insertion_point(field_add:google.firestore.v1.StructuredQuery.from)
  1968. return from_.Add();
  1969. }
  1970. inline ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_CollectionSelector >*
  1971. StructuredQuery::mutable_from() {
  1972. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.StructuredQuery.from)
  1973. return &from_;
  1974. }
  1975. inline const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_CollectionSelector >&
  1976. StructuredQuery::from() const {
  1977. // @@protoc_insertion_point(field_list:google.firestore.v1.StructuredQuery.from)
  1978. return from_;
  1979. }
  1980. // .google.firestore.v1.StructuredQuery.Filter where = 3;
  1981. inline bool StructuredQuery::has_where() const {
  1982. return this != internal_default_instance() && where_ != NULL;
  1983. }
  1984. inline void StructuredQuery::clear_where() {
  1985. if (GetArenaNoVirtual() == NULL && where_ != NULL) {
  1986. delete where_;
  1987. }
  1988. where_ = NULL;
  1989. }
  1990. inline const ::google::firestore::v1::StructuredQuery_Filter& StructuredQuery::where() const {
  1991. const ::google::firestore::v1::StructuredQuery_Filter* p = where_;
  1992. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.where)
  1993. return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1::StructuredQuery_Filter*>(
  1994. &::google::firestore::v1::_StructuredQuery_Filter_default_instance_);
  1995. }
  1996. inline ::google::firestore::v1::StructuredQuery_Filter* StructuredQuery::release_where() {
  1997. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.where)
  1998. ::google::firestore::v1::StructuredQuery_Filter* temp = where_;
  1999. where_ = NULL;
  2000. return temp;
  2001. }
  2002. inline ::google::firestore::v1::StructuredQuery_Filter* StructuredQuery::mutable_where() {
  2003. if (where_ == NULL) {
  2004. where_ = new ::google::firestore::v1::StructuredQuery_Filter;
  2005. }
  2006. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.where)
  2007. return where_;
  2008. }
  2009. inline void StructuredQuery::set_allocated_where(::google::firestore::v1::StructuredQuery_Filter* where) {
  2010. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2011. if (message_arena == NULL) {
  2012. delete where_;
  2013. }
  2014. if (where) {
  2015. ::google::protobuf::Arena* submessage_arena = NULL;
  2016. if (message_arena != submessage_arena) {
  2017. where = ::google::protobuf::internal::GetOwnedMessage(
  2018. message_arena, where, submessage_arena);
  2019. }
  2020. } else {
  2021. }
  2022. where_ = where;
  2023. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.where)
  2024. }
  2025. // repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
  2026. inline int StructuredQuery::order_by_size() const {
  2027. return order_by_.size();
  2028. }
  2029. inline void StructuredQuery::clear_order_by() {
  2030. order_by_.Clear();
  2031. }
  2032. inline const ::google::firestore::v1::StructuredQuery_Order& StructuredQuery::order_by(int index) const {
  2033. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.order_by)
  2034. return order_by_.Get(index);
  2035. }
  2036. inline ::google::firestore::v1::StructuredQuery_Order* StructuredQuery::mutable_order_by(int index) {
  2037. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.order_by)
  2038. return order_by_.Mutable(index);
  2039. }
  2040. inline ::google::firestore::v1::StructuredQuery_Order* StructuredQuery::add_order_by() {
  2041. // @@protoc_insertion_point(field_add:google.firestore.v1.StructuredQuery.order_by)
  2042. return order_by_.Add();
  2043. }
  2044. inline ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_Order >*
  2045. StructuredQuery::mutable_order_by() {
  2046. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.StructuredQuery.order_by)
  2047. return &order_by_;
  2048. }
  2049. inline const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::StructuredQuery_Order >&
  2050. StructuredQuery::order_by() const {
  2051. // @@protoc_insertion_point(field_list:google.firestore.v1.StructuredQuery.order_by)
  2052. return order_by_;
  2053. }
  2054. // .google.firestore.v1.Cursor start_at = 7;
  2055. inline bool StructuredQuery::has_start_at() const {
  2056. return this != internal_default_instance() && start_at_ != NULL;
  2057. }
  2058. inline void StructuredQuery::clear_start_at() {
  2059. if (GetArenaNoVirtual() == NULL && start_at_ != NULL) {
  2060. delete start_at_;
  2061. }
  2062. start_at_ = NULL;
  2063. }
  2064. inline const ::google::firestore::v1::Cursor& StructuredQuery::start_at() const {
  2065. const ::google::firestore::v1::Cursor* p = start_at_;
  2066. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.start_at)
  2067. return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1::Cursor*>(
  2068. &::google::firestore::v1::_Cursor_default_instance_);
  2069. }
  2070. inline ::google::firestore::v1::Cursor* StructuredQuery::release_start_at() {
  2071. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.start_at)
  2072. ::google::firestore::v1::Cursor* temp = start_at_;
  2073. start_at_ = NULL;
  2074. return temp;
  2075. }
  2076. inline ::google::firestore::v1::Cursor* StructuredQuery::mutable_start_at() {
  2077. if (start_at_ == NULL) {
  2078. start_at_ = new ::google::firestore::v1::Cursor;
  2079. }
  2080. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.start_at)
  2081. return start_at_;
  2082. }
  2083. inline void StructuredQuery::set_allocated_start_at(::google::firestore::v1::Cursor* start_at) {
  2084. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2085. if (message_arena == NULL) {
  2086. delete start_at_;
  2087. }
  2088. if (start_at) {
  2089. ::google::protobuf::Arena* submessage_arena = NULL;
  2090. if (message_arena != submessage_arena) {
  2091. start_at = ::google::protobuf::internal::GetOwnedMessage(
  2092. message_arena, start_at, submessage_arena);
  2093. }
  2094. } else {
  2095. }
  2096. start_at_ = start_at;
  2097. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.start_at)
  2098. }
  2099. // .google.firestore.v1.Cursor end_at = 8;
  2100. inline bool StructuredQuery::has_end_at() const {
  2101. return this != internal_default_instance() && end_at_ != NULL;
  2102. }
  2103. inline void StructuredQuery::clear_end_at() {
  2104. if (GetArenaNoVirtual() == NULL && end_at_ != NULL) {
  2105. delete end_at_;
  2106. }
  2107. end_at_ = NULL;
  2108. }
  2109. inline const ::google::firestore::v1::Cursor& StructuredQuery::end_at() const {
  2110. const ::google::firestore::v1::Cursor* p = end_at_;
  2111. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.end_at)
  2112. return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1::Cursor*>(
  2113. &::google::firestore::v1::_Cursor_default_instance_);
  2114. }
  2115. inline ::google::firestore::v1::Cursor* StructuredQuery::release_end_at() {
  2116. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.end_at)
  2117. ::google::firestore::v1::Cursor* temp = end_at_;
  2118. end_at_ = NULL;
  2119. return temp;
  2120. }
  2121. inline ::google::firestore::v1::Cursor* StructuredQuery::mutable_end_at() {
  2122. if (end_at_ == NULL) {
  2123. end_at_ = new ::google::firestore::v1::Cursor;
  2124. }
  2125. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.end_at)
  2126. return end_at_;
  2127. }
  2128. inline void StructuredQuery::set_allocated_end_at(::google::firestore::v1::Cursor* end_at) {
  2129. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2130. if (message_arena == NULL) {
  2131. delete end_at_;
  2132. }
  2133. if (end_at) {
  2134. ::google::protobuf::Arena* submessage_arena = NULL;
  2135. if (message_arena != submessage_arena) {
  2136. end_at = ::google::protobuf::internal::GetOwnedMessage(
  2137. message_arena, end_at, submessage_arena);
  2138. }
  2139. } else {
  2140. }
  2141. end_at_ = end_at;
  2142. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.end_at)
  2143. }
  2144. // int32 offset = 6;
  2145. inline void StructuredQuery::clear_offset() {
  2146. offset_ = 0;
  2147. }
  2148. inline ::google::protobuf::int32 StructuredQuery::offset() const {
  2149. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.offset)
  2150. return offset_;
  2151. }
  2152. inline void StructuredQuery::set_offset(::google::protobuf::int32 value) {
  2153. offset_ = value;
  2154. // @@protoc_insertion_point(field_set:google.firestore.v1.StructuredQuery.offset)
  2155. }
  2156. // .google.protobuf.Int32Value limit = 5;
  2157. inline bool StructuredQuery::has_limit() const {
  2158. return this != internal_default_instance() && limit_ != NULL;
  2159. }
  2160. inline const ::google::protobuf::Int32Value& StructuredQuery::limit() const {
  2161. const ::google::protobuf::Int32Value* p = limit_;
  2162. // @@protoc_insertion_point(field_get:google.firestore.v1.StructuredQuery.limit)
  2163. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Int32Value*>(
  2164. &::google::protobuf::_Int32Value_default_instance_);
  2165. }
  2166. inline ::google::protobuf::Int32Value* StructuredQuery::release_limit() {
  2167. // @@protoc_insertion_point(field_release:google.firestore.v1.StructuredQuery.limit)
  2168. ::google::protobuf::Int32Value* temp = limit_;
  2169. limit_ = NULL;
  2170. return temp;
  2171. }
  2172. inline ::google::protobuf::Int32Value* StructuredQuery::mutable_limit() {
  2173. if (limit_ == NULL) {
  2174. limit_ = new ::google::protobuf::Int32Value;
  2175. }
  2176. // @@protoc_insertion_point(field_mutable:google.firestore.v1.StructuredQuery.limit)
  2177. return limit_;
  2178. }
  2179. inline void StructuredQuery::set_allocated_limit(::google::protobuf::Int32Value* limit) {
  2180. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2181. if (message_arena == NULL) {
  2182. delete reinterpret_cast< ::google::protobuf::MessageLite*>(limit_);
  2183. }
  2184. if (limit) {
  2185. ::google::protobuf::Arena* submessage_arena =
  2186. reinterpret_cast< ::google::protobuf::MessageLite*>(limit)->GetArena();
  2187. if (message_arena != submessage_arena) {
  2188. limit = ::google::protobuf::internal::GetOwnedMessage(
  2189. message_arena, limit, submessage_arena);
  2190. }
  2191. } else {
  2192. }
  2193. limit_ = limit;
  2194. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.StructuredQuery.limit)
  2195. }
  2196. // -------------------------------------------------------------------
  2197. // Cursor
  2198. // repeated .google.firestore.v1.Value values = 1;
  2199. inline int Cursor::values_size() const {
  2200. return values_.size();
  2201. }
  2202. inline const ::google::firestore::v1::Value& Cursor::values(int index) const {
  2203. // @@protoc_insertion_point(field_get:google.firestore.v1.Cursor.values)
  2204. return values_.Get(index);
  2205. }
  2206. inline ::google::firestore::v1::Value* Cursor::mutable_values(int index) {
  2207. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Cursor.values)
  2208. return values_.Mutable(index);
  2209. }
  2210. inline ::google::firestore::v1::Value* Cursor::add_values() {
  2211. // @@protoc_insertion_point(field_add:google.firestore.v1.Cursor.values)
  2212. return values_.Add();
  2213. }
  2214. inline ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value >*
  2215. Cursor::mutable_values() {
  2216. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.Cursor.values)
  2217. return &values_;
  2218. }
  2219. inline const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value >&
  2220. Cursor::values() const {
  2221. // @@protoc_insertion_point(field_list:google.firestore.v1.Cursor.values)
  2222. return values_;
  2223. }
  2224. // bool before = 2;
  2225. inline void Cursor::clear_before() {
  2226. before_ = false;
  2227. }
  2228. inline bool Cursor::before() const {
  2229. // @@protoc_insertion_point(field_get:google.firestore.v1.Cursor.before)
  2230. return before_;
  2231. }
  2232. inline void Cursor::set_before(bool value) {
  2233. before_ = value;
  2234. // @@protoc_insertion_point(field_set:google.firestore.v1.Cursor.before)
  2235. }
  2236. #ifdef __GNUC__
  2237. #pragma GCC diagnostic pop
  2238. #endif // __GNUC__
  2239. // -------------------------------------------------------------------
  2240. // -------------------------------------------------------------------
  2241. // -------------------------------------------------------------------
  2242. // -------------------------------------------------------------------
  2243. // -------------------------------------------------------------------
  2244. // -------------------------------------------------------------------
  2245. // -------------------------------------------------------------------
  2246. // -------------------------------------------------------------------
  2247. // -------------------------------------------------------------------
  2248. // @@protoc_insertion_point(namespace_scope)
  2249. } // namespace v1
  2250. } // namespace firestore
  2251. } // namespace google
  2252. namespace google {
  2253. namespace protobuf {
  2254. template <> struct is_proto_enum< ::google::firestore::v1::StructuredQuery_CompositeFilter_Operator> : ::google::protobuf::internal::true_type {};
  2255. template <>
  2256. inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::v1::StructuredQuery_CompositeFilter_Operator>() {
  2257. return ::google::firestore::v1::StructuredQuery_CompositeFilter_Operator_descriptor();
  2258. }
  2259. template <> struct is_proto_enum< ::google::firestore::v1::StructuredQuery_FieldFilter_Operator> : ::google::protobuf::internal::true_type {};
  2260. template <>
  2261. inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::v1::StructuredQuery_FieldFilter_Operator>() {
  2262. return ::google::firestore::v1::StructuredQuery_FieldFilter_Operator_descriptor();
  2263. }
  2264. template <> struct is_proto_enum< ::google::firestore::v1::StructuredQuery_UnaryFilter_Operator> : ::google::protobuf::internal::true_type {};
  2265. template <>
  2266. inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::v1::StructuredQuery_UnaryFilter_Operator>() {
  2267. return ::google::firestore::v1::StructuredQuery_UnaryFilter_Operator_descriptor();
  2268. }
  2269. template <> struct is_proto_enum< ::google::firestore::v1::StructuredQuery_Direction> : ::google::protobuf::internal::true_type {};
  2270. template <>
  2271. inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::v1::StructuredQuery_Direction>() {
  2272. return ::google::firestore::v1::StructuredQuery_Direction_descriptor();
  2273. }
  2274. } // namespace protobuf
  2275. } // namespace google
  2276. // @@protoc_insertion_point(global_scope)
  2277. #endif // PROTOBUF_google_2ffirestore_2fv1_2fquery_2eproto__INCLUDED