aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Protos/objc/google/firestore/v1beta1/Query.pbobjc.h
blob: 7e329343a9213b53dc0e4d4660e1fae451ae9c87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
/*
 * Copyright 2017 Google
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/firestore/v1beta1/query.proto

// This CPP symbol can be defined to use imports that match up to the framework
// imports needed when using CocoaPods.
#if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS)
 #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0
#endif

#if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
 #import <Protobuf/GPBProtocolBuffers.h>
#else
 #import "GPBProtocolBuffers.h"
#endif

#if GOOGLE_PROTOBUF_OBJC_VERSION < 30002
#error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources.
#endif
#if 30002 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION
#error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources.
#endif

// @@protoc_insertion_point(imports)

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"

CF_EXTERN_C_BEGIN

@class GCFSCursor;
@class GCFSStructuredQuery_CollectionSelector;
@class GCFSStructuredQuery_CompositeFilter;
@class GCFSStructuredQuery_FieldFilter;
@class GCFSStructuredQuery_FieldReference;
@class GCFSStructuredQuery_Filter;
@class GCFSStructuredQuery_Order;
@class GCFSStructuredQuery_Projection;
@class GCFSStructuredQuery_UnaryFilter;
@class GCFSValue;
@class GPBInt32Value;

NS_ASSUME_NONNULL_BEGIN

#pragma mark - Enum GCFSStructuredQuery_Direction

/** A sort direction. */
typedef GPB_ENUM(GCFSStructuredQuery_Direction) {
  /**
   * Value used if any message's field encounters a value that is not defined
   * by this enum. The message will also have C functions to get/set the rawValue
   * of the field.
   **/
  GCFSStructuredQuery_Direction_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue,
  /** Unspecified. */
  GCFSStructuredQuery_Direction_DirectionUnspecified = 0,

  /** Ascending. */
  GCFSStructuredQuery_Direction_Ascending = 1,

  /** Descending. */
  GCFSStructuredQuery_Direction_Descending = 2,
};

GPBEnumDescriptor *GCFSStructuredQuery_Direction_EnumDescriptor(void);

/**
 * Checks to see if the given value is defined by the enum or was not known at
 * the time this source was generated.
 **/
BOOL GCFSStructuredQuery_Direction_IsValidValue(int32_t value);

#pragma mark - Enum GCFSStructuredQuery_CompositeFilter_Operator

/** A composite filter operator. */
typedef GPB_ENUM(GCFSStructuredQuery_CompositeFilter_Operator) {
  /**
   * Value used if any message's field encounters a value that is not defined
   * by this enum. The message will also have C functions to get/set the rawValue
   * of the field.
   **/
  GCFSStructuredQuery_CompositeFilter_Operator_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue,
  /** Unspecified. This value must not be used. */
  GCFSStructuredQuery_CompositeFilter_Operator_OperatorUnspecified = 0,

  /** The results are required to satisfy each of the combined filters. */
  GCFSStructuredQuery_CompositeFilter_Operator_And = 1,
};

GPBEnumDescriptor *GCFSStructuredQuery_CompositeFilter_Operator_EnumDescriptor(void);

/**
 * Checks to see if the given value is defined by the enum or was not known at
 * the time this source was generated.
 **/
BOOL GCFSStructuredQuery_CompositeFilter_Operator_IsValidValue(int32_t value);

#pragma mark - Enum GCFSStructuredQuery_FieldFilter_Operator

/** A field filter operator. */
typedef GPB_ENUM(GCFSStructuredQuery_FieldFilter_Operator) {
  /**
   * Value used if any message's field encounters a value that is not defined
   * by this enum. The message will also have C functions to get/set the rawValue
   * of the field.
   **/
  GCFSStructuredQuery_FieldFilter_Operator_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue,
  /** Unspecified. This value must not be used. */
  GCFSStructuredQuery_FieldFilter_Operator_OperatorUnspecified = 0,

  /** Less than. Requires that the field come first in `order_by`. */
  GCFSStructuredQuery_FieldFilter_Operator_LessThan = 1,

  /** Less than or equal. Requires that the field come first in `order_by`. */
  GCFSStructuredQuery_FieldFilter_Operator_LessThanOrEqual = 2,

  /** Greater than. Requires that the field come first in `order_by`. */
  GCFSStructuredQuery_FieldFilter_Operator_GreaterThan = 3,

  /**
   * Greater than or equal. Requires that the field come first in
   * `order_by`.
   **/
  GCFSStructuredQuery_FieldFilter_Operator_GreaterThanOrEqual = 4,

  /** Equal. */
  GCFSStructuredQuery_FieldFilter_Operator_Equal = 5,

  /** Contains. Requires that the field is an array. */
  GCFSStructuredQuery_FieldFilter_Operator_ArrayContains = 7,
};

GPBEnumDescriptor *GCFSStructuredQuery_FieldFilter_Operator_EnumDescriptor(void);

/**
 * Checks to see if the given value is defined by the enum or was not known at
 * the time this source was generated.
 **/
BOOL GCFSStructuredQuery_FieldFilter_Operator_IsValidValue(int32_t value);

#pragma mark - Enum GCFSStructuredQuery_UnaryFilter_Operator

/** A unary operator. */
typedef GPB_ENUM(GCFSStructuredQuery_UnaryFilter_Operator) {
  /**
   * Value used if any message's field encounters a value that is not defined
   * by this enum. The message will also have C functions to get/set the rawValue
   * of the field.
   **/
  GCFSStructuredQuery_UnaryFilter_Operator_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue,
  /** Unspecified. This value must not be used. */
  GCFSStructuredQuery_UnaryFilter_Operator_OperatorUnspecified = 0,

  /** Test if a field is equal to NaN. */
  GCFSStructuredQuery_UnaryFilter_Operator_IsNan = 2,

  /** Test if an exprestion evaluates to Null. */
  GCFSStructuredQuery_UnaryFilter_Operator_IsNull = 3,
};

GPBEnumDescriptor *GCFSStructuredQuery_UnaryFilter_Operator_EnumDescriptor(void);

/**
 * Checks to see if the given value is defined by the enum or was not known at
 * the time this source was generated.
 **/
BOOL GCFSStructuredQuery_UnaryFilter_Operator_IsValidValue(int32_t value);

#pragma mark - GCFSQueryRoot

/**
 * Exposes the extension registry for this file.
 *
 * The base class provides:
 * @code
 *   + (GPBExtensionRegistry *)extensionRegistry;
 * @endcode
 * which is a @c GPBExtensionRegistry that includes all the extensions defined by
 * this file and all files that it depends on.
 **/
@interface GCFSQueryRoot : GPBRootObject
@end

#pragma mark - GCFSStructuredQuery

typedef GPB_ENUM(GCFSStructuredQuery_FieldNumber) {
  GCFSStructuredQuery_FieldNumber_Select = 1,
  GCFSStructuredQuery_FieldNumber_FromArray = 2,
  GCFSStructuredQuery_FieldNumber_Where = 3,
  GCFSStructuredQuery_FieldNumber_OrderByArray = 4,
  GCFSStructuredQuery_FieldNumber_Limit = 5,
  GCFSStructuredQuery_FieldNumber_Offset = 6,
  GCFSStructuredQuery_FieldNumber_StartAt = 7,
  GCFSStructuredQuery_FieldNumber_EndAt = 8,
};

/**
 * A Firestore query.
 **/
@interface GCFSStructuredQuery : GPBMessage

/** The projection to return. */
@property(nonatomic, readwrite, strong, null_resettable) GCFSStructuredQuery_Projection *select;
/** Test to see if @c select has been set. */
@property(nonatomic, readwrite) BOOL hasSelect;

/** The collections to query. */
@property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GCFSStructuredQuery_CollectionSelector*> *fromArray;
/** The number of items in @c fromArray without causing the array to be created. */
@property(nonatomic, readonly) NSUInteger fromArray_Count;

/** The filter to apply. */
@property(nonatomic, readwrite, strong, null_resettable) GCFSStructuredQuery_Filter *where;
/** Test to see if @c where has been set. */
@property(nonatomic, readwrite) BOOL hasWhere;

/**
 * The order to apply to the query results.
 *
 * Firestore guarantees a stable ordering through the following rules:
 *
 *  * Any field required to appear in `order_by`, that is not already
 *    specified in `order_by`, is appended to the order in field name order
 *    by default.
 *  * If an order on `__name__` is not specified, it is appended by default.
 *
 * Fields are appended with the same sort direction as the last order
 * specified, or 'ASCENDING' if no order was specified. For example:
 *
 *  * `SELECT * FROM Foo ORDER BY A` becomes
 *    `SELECT * FROM Foo ORDER BY A, __name__`
 *  * `SELECT * FROM Foo ORDER BY A DESC` becomes
 *    `SELECT * FROM Foo ORDER BY A DESC, __name__ DESC`
 *  * `SELECT * FROM Foo WHERE A > 1` becomes
 *    `SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`
 **/
@property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GCFSStructuredQuery_Order*> *orderByArray;
/** The number of items in @c orderByArray without causing the array to be created. */
@property(nonatomic, readonly) NSUInteger orderByArray_Count;

/** A starting point for the query results. */
@property(nonatomic, readwrite, strong, null_resettable) GCFSCursor *startAt;
/** Test to see if @c startAt has been set. */
@property(nonatomic, readwrite) BOOL hasStartAt;

/** A end point for the query results. */
@property(nonatomic, readwrite, strong, null_resettable) GCFSCursor *endAt;
/** Test to see if @c endAt has been set. */
@property(nonatomic, readwrite) BOOL hasEndAt;

/**
 * The number of results to skip.
 *
 * Applies before limit, but after all other constraints. Must be >= 0 if
 * specified.
 **/
@property(nonatomic, readwrite) int32_t offset;

/**
 * The maximum number of results to return.
 *
 * Applies after all other constraints.
 * Must be >= 0 if specified.
 **/
@property(nonatomic, readwrite, strong, null_resettable) GPBInt32Value *limit;
/** Test to see if @c limit has been set. */
@property(nonatomic, readwrite) BOOL hasLimit;

@end

#pragma mark - GCFSStructuredQuery_CollectionSelector

typedef GPB_ENUM(GCFSStructuredQuery_CollectionSelector_FieldNumber) {
  GCFSStructuredQuery_CollectionSelector_FieldNumber_CollectionId = 2,
  GCFSStructuredQuery_CollectionSelector_FieldNumber_AllDescendants = 3,
};

/**
 * A selection of a collection, such as `messages as m1`.
 **/
@interface GCFSStructuredQuery_CollectionSelector : GPBMessage

/**
 * The collection ID.
 * When set, selects only collections with this ID.
 **/
@property(nonatomic, readwrite, copy, null_resettable) NSString *collectionId;

/**
 * When false, selects only collections that are immediate children of
 * the `parent` specified in the containing `RunQueryRequest`.
 * When true, selects all descendant collections.
 **/
@property(nonatomic, readwrite) BOOL allDescendants;

@end

#pragma mark - GCFSStructuredQuery_Filter

typedef GPB_ENUM(GCFSStructuredQuery_Filter_FieldNumber) {
  GCFSStructuredQuery_Filter_FieldNumber_CompositeFilter = 1,
  GCFSStructuredQuery_Filter_FieldNumber_FieldFilter = 2,
  GCFSStructuredQuery_Filter_FieldNumber_UnaryFilter = 3,
};

typedef GPB_ENUM(GCFSStructuredQuery_Filter_FilterType_OneOfCase) {
  GCFSStructuredQuery_Filter_FilterType_OneOfCase_GPBUnsetOneOfCase = 0,
  GCFSStructuredQuery_Filter_FilterType_OneOfCase_CompositeFilter = 1,
  GCFSStructuredQuery_Filter_FilterType_OneOfCase_FieldFilter = 2,
  GCFSStructuredQuery_Filter_FilterType_OneOfCase_UnaryFilter = 3,
};

/**
 * A filter.
 **/
@interface GCFSStructuredQuery_Filter : GPBMessage

/** The type of filter. */
@property(nonatomic, readonly) GCFSStructuredQuery_Filter_FilterType_OneOfCase filterTypeOneOfCase;

/** A composite filter. */
@property(nonatomic, readwrite, strong, null_resettable) GCFSStructuredQuery_CompositeFilter *compositeFilter;

/** A filter on a document field. */
@property(nonatomic, readwrite, strong, null_resettable) GCFSStructuredQuery_FieldFilter *fieldFilter;

/** A filter that takes exactly one argument. */
@property(nonatomic, readwrite, strong, null_resettable) GCFSStructuredQuery_UnaryFilter *unaryFilter;

@end

/**
 * Clears whatever value was set for the oneof 'filterType'.
 **/
void GCFSStructuredQuery_Filter_ClearFilterTypeOneOfCase(GCFSStructuredQuery_Filter *message);

#pragma mark - GCFSStructuredQuery_CompositeFilter

typedef GPB_ENUM(GCFSStructuredQuery_CompositeFilter_FieldNumber) {
  GCFSStructuredQuery_CompositeFilter_FieldNumber_Op = 1,
  GCFSStructuredQuery_CompositeFilter_FieldNumber_FiltersArray = 2,
};

/**
 * A filter that merges multiple other filters using the given operator.
 **/
@interface GCFSStructuredQuery_CompositeFilter : GPBMessage

/** The operator for combining multiple filters. */
@property(nonatomic, readwrite) GCFSStructuredQuery_CompositeFilter_Operator op;

/**
 * The list of filters to combine.
 * Must contain at least one filter.
 **/
@property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GCFSStructuredQuery_Filter*> *filtersArray;
/** The number of items in @c filtersArray without causing the array to be created. */
@property(nonatomic, readonly) NSUInteger filtersArray_Count;

@end

/**
 * Fetches the raw value of a @c GCFSStructuredQuery_CompositeFilter's @c op property, even
 * if the value was not defined by the enum at the time the code was generated.
 **/
int32_t GCFSStructuredQuery_CompositeFilter_Op_RawValue(GCFSStructuredQuery_CompositeFilter *message);
/**
 * Sets the raw value of an @c GCFSStructuredQuery_CompositeFilter's @c op property, allowing
 * it to be set to a value that was not defined by the enum at the time the code
 * was generated.
 **/
void SetGCFSStructuredQuery_CompositeFilter_Op_RawValue(GCFSStructuredQuery_CompositeFilter *message, int32_t value);

#pragma mark - GCFSStructuredQuery_FieldFilter

typedef GPB_ENUM(GCFSStructuredQuery_FieldFilter_FieldNumber) {
  GCFSStructuredQuery_FieldFilter_FieldNumber_Field = 1,
  GCFSStructuredQuery_FieldFilter_FieldNumber_Op = 2,
  GCFSStructuredQuery_FieldFilter_FieldNumber_Value = 3,
};

/**
 * A filter on a specific field.
 **/
@interface GCFSStructuredQuery_FieldFilter : GPBMessage

/** The field to filter by. */
@property(nonatomic, readwrite, strong, null_resettable) GCFSStructuredQuery_FieldReference *field;
/** Test to see if @c field has been set. */
@property(nonatomic, readwrite) BOOL hasField;

/** The operator to filter by. */
@property(nonatomic, readwrite) GCFSStructuredQuery_FieldFilter_Operator op;

/** The value to compare to. */
@property(nonatomic, readwrite, strong, null_resettable) GCFSValue *value;
/** Test to see if @c value has been set. */
@property(nonatomic, readwrite) BOOL hasValue;

@end

/**
 * Fetches the raw value of a @c GCFSStructuredQuery_FieldFilter's @c op property, even
 * if the value was not defined by the enum at the time the code was generated.
 **/
int32_t GCFSStructuredQuery_FieldFilter_Op_RawValue(GCFSStructuredQuery_FieldFilter *message);
/**
 * Sets the raw value of an @c GCFSStructuredQuery_FieldFilter's @c op property, allowing
 * it to be set to a value that was not defined by the enum at the time the code
 * was generated.
 **/
void SetGCFSStructuredQuery_FieldFilter_Op_RawValue(GCFSStructuredQuery_FieldFilter *message, int32_t value);

#pragma mark - GCFSStructuredQuery_UnaryFilter

typedef GPB_ENUM(GCFSStructuredQuery_UnaryFilter_FieldNumber) {
  GCFSStructuredQuery_UnaryFilter_FieldNumber_Op = 1,
  GCFSStructuredQuery_UnaryFilter_FieldNumber_Field = 2,
};

typedef GPB_ENUM(GCFSStructuredQuery_UnaryFilter_OperandType_OneOfCase) {
  GCFSStructuredQuery_UnaryFilter_OperandType_OneOfCase_GPBUnsetOneOfCase = 0,
  GCFSStructuredQuery_UnaryFilter_OperandType_OneOfCase_Field = 2,
};

/**
 * A filter with a single operand.
 **/
@interface GCFSStructuredQuery_UnaryFilter : GPBMessage

/** The unary operator to apply. */
@property(nonatomic, readwrite) GCFSStructuredQuery_UnaryFilter_Operator op;

/** The argument to the filter. */
@property(nonatomic, readonly) GCFSStructuredQuery_UnaryFilter_OperandType_OneOfCase operandTypeOneOfCase;

/** The field to which to apply the operator. */
@property(nonatomic, readwrite, strong, null_resettable) GCFSStructuredQuery_FieldReference *field;

@end

/**
 * Fetches the raw value of a @c GCFSStructuredQuery_UnaryFilter's @c op property, even
 * if the value was not defined by the enum at the time the code was generated.
 **/
int32_t GCFSStructuredQuery_UnaryFilter_Op_RawValue(GCFSStructuredQuery_UnaryFilter *message);
/**
 * Sets the raw value of an @c GCFSStructuredQuery_UnaryFilter's @c op property, allowing
 * it to be set to a value that was not defined by the enum at the time the code
 * was generated.
 **/
void SetGCFSStructuredQuery_UnaryFilter_Op_RawValue(GCFSStructuredQuery_UnaryFilter *message, int32_t value);

/**
 * Clears whatever value was set for the oneof 'operandType'.
 **/
void GCFSStructuredQuery_UnaryFilter_ClearOperandTypeOneOfCase(GCFSStructuredQuery_UnaryFilter *message);

#pragma mark - GCFSStructuredQuery_Order

typedef GPB_ENUM(GCFSStructuredQuery_Order_FieldNumber) {
  GCFSStructuredQuery_Order_FieldNumber_Field = 1,
  GCFSStructuredQuery_Order_FieldNumber_Direction = 2,
};

/**
 * An order on a field.
 **/
@interface GCFSStructuredQuery_Order : GPBMessage

/** The field to order by. */
@property(nonatomic, readwrite, strong, null_resettable) GCFSStructuredQuery_FieldReference *field;
/** Test to see if @c field has been set. */
@property(nonatomic, readwrite) BOOL hasField;

/** The direction to order by. Defaults to `ASCENDING`. */
@property(nonatomic, readwrite) GCFSStructuredQuery_Direction direction;

@end

/**
 * Fetches the raw value of a @c GCFSStructuredQuery_Order's @c direction property, even
 * if the value was not defined by the enum at the time the code was generated.
 **/
int32_t GCFSStructuredQuery_Order_Direction_RawValue(GCFSStructuredQuery_Order *message);
/**
 * Sets the raw value of an @c GCFSStructuredQuery_Order's @c direction property, allowing
 * it to be set to a value that was not defined by the enum at the time the code
 * was generated.
 **/
void SetGCFSStructuredQuery_Order_Direction_RawValue(GCFSStructuredQuery_Order *message, int32_t value);

#pragma mark - GCFSStructuredQuery_FieldReference

typedef GPB_ENUM(GCFSStructuredQuery_FieldReference_FieldNumber) {
  GCFSStructuredQuery_FieldReference_FieldNumber_FieldPath = 2,
};

/**
 * A reference to a field, such as `max(messages.time) as max_time`.
 **/
@interface GCFSStructuredQuery_FieldReference : GPBMessage

@property(nonatomic, readwrite, copy, null_resettable) NSString *fieldPath;

@end

#pragma mark - GCFSStructuredQuery_Projection

typedef GPB_ENUM(GCFSStructuredQuery_Projection_FieldNumber) {
  GCFSStructuredQuery_Projection_FieldNumber_FieldsArray = 2,
};

/**
 * The projection of document's fields to return.
 **/
@interface GCFSStructuredQuery_Projection : GPBMessage

/**
 * The fields to return.
 *
 * If empty, all fields are returned. To only return the name
 * of the document, use `['__name__']`.
 **/
@property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GCFSStructuredQuery_FieldReference*> *fieldsArray;
/** The number of items in @c fieldsArray without causing the array to be created. */
@property(nonatomic, readonly) NSUInteger fieldsArray_Count;

@end

#pragma mark - GCFSCursor

typedef GPB_ENUM(GCFSCursor_FieldNumber) {
  GCFSCursor_FieldNumber_ValuesArray = 1,
  GCFSCursor_FieldNumber_Before = 2,
};

/**
 * A position in a query result set.
 **/
@interface GCFSCursor : GPBMessage

/**
 * The values that represent a position, in the order they appear in
 * the order by clause of a query.
 *
 * Can contain fewer values than specified in the order by clause.
 **/
@property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GCFSValue*> *valuesArray;
/** The number of items in @c valuesArray without causing the array to be created. */
@property(nonatomic, readonly) NSUInteger valuesArray_Count;

/**
 * If the position is just before or just after the given values, relative
 * to the sort order defined by the query.
 **/
@property(nonatomic, readwrite) BOOL before;

@end

NS_ASSUME_NONNULL_END

CF_EXTERN_C_END

#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)