query.pb.h 108 KB

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