query.pb.h 109 KB

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