Debian Codegraph @

googleapis/firestore/v1beta1/query.pb.go

raw
1 // Copyright 2021 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.26.0
18 // protoc v3.12.2
19 // source: google/firestore/v1beta1/query.proto
20
21 package firestore
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
30 )
31
32 const (
33 // Verify that this generated code is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35 // Verify that runtime/protoimpl is sufficiently up-to-date.
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39 // A sort direction.
40 type StructuredQuery_Direction int32
41
42 const (
43 // Unspecified.
44 StructuredQuery_DIRECTION_UNSPECIFIED StructuredQuery_Direction = 0
45 // Ascending.
46 StructuredQuery_ASCENDING StructuredQuery_Direction = 1
47 // Descending.
48 StructuredQuery_DESCENDING StructuredQuery_Direction = 2
49 )
50
51 // Enum value maps for StructuredQuery_Direction.
52 var (
53 StructuredQuery_Direction_name = map[int32]string{
54 0: "DIRECTION_UNSPECIFIED",
55 1: "ASCENDING",
56 2: "DESCENDING",
57 }
58 StructuredQuery_Direction_value = map[string]int32{
59 "DIRECTION_UNSPECIFIED": 0,
60 "ASCENDING": 1,
61 "DESCENDING": 2,
62 }
63 )
64
65 func (x StructuredQuery_Direction) Enum() *StructuredQuery_Direction {
66 p := new(StructuredQuery_Direction)
67 *p = x
68 return p
69 }
70
71 func (x StructuredQuery_Direction) String() string {
72 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
73 }
74
75 func (StructuredQuery_Direction) Descriptor() protoreflect.EnumDescriptor {
76 return file_google_firestore_v1beta1_query_proto_enumTypes[0].Descriptor()
77 }
78
79 func (StructuredQuery_Direction) Type() protoreflect.EnumType {
80 return &file_google_firestore_v1beta1_query_proto_enumTypes[0]
81 }
82
83 func (x StructuredQuery_Direction) Number() protoreflect.EnumNumber {
84 return protoreflect.EnumNumber(x)
85 }
86
87 // Deprecated: Use StructuredQuery_Direction.Descriptor instead.
88 func (StructuredQuery_Direction) EnumDescriptor() ([]byte, []int) {
89 return file_google_firestore_v1beta1_query_proto_rawDescGZIP(), []int{0, 0}
90 }
91
92 // A composite filter operator.
93 type StructuredQuery_CompositeFilter_Operator int32
94
95 const (
96 // Unspecified. This value must not be used.
97 StructuredQuery_CompositeFilter_OPERATOR_UNSPECIFIED StructuredQuery_CompositeFilter_Operator = 0
98 // The results are required to satisfy each of the combined filters.
99 StructuredQuery_CompositeFilter_AND StructuredQuery_CompositeFilter_Operator = 1
100 )
101
102 // Enum value maps for StructuredQuery_CompositeFilter_Operator.
103 var (
104 StructuredQuery_CompositeFilter_Operator_name = map[int32]string{
105 0: "OPERATOR_UNSPECIFIED",
106 1: "AND",
107 }
108 StructuredQuery_CompositeFilter_Operator_value = map[string]int32{
109 "OPERATOR_UNSPECIFIED": 0,
110 "AND": 1,
111 }
112 )
113
114 func (x StructuredQuery_CompositeFilter_Operator) Enum() *StructuredQuery_CompositeFilter_Operator {
115 p := new(StructuredQuery_CompositeFilter_Operator)
116 *p = x
117 return p
118 }
119
120 func (x StructuredQuery_CompositeFilter_Operator) String() string {
121 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
122 }
123
124 func (StructuredQuery_CompositeFilter_Operator) Descriptor() protoreflect.EnumDescriptor {
125 return file_google_firestore_v1beta1_query_proto_enumTypes[1].Descriptor()
126 }
127
128 func (StructuredQuery_CompositeFilter_Operator) Type() protoreflect.EnumType {
129 return &file_google_firestore_v1beta1_query_proto_enumTypes[1]
130 }
131
132 func (x StructuredQuery_CompositeFilter_Operator) Number() protoreflect.EnumNumber {
133 return protoreflect.EnumNumber(x)
134 }
135
136 // Deprecated: Use StructuredQuery_CompositeFilter_Operator.Descriptor instead.
137 func (StructuredQuery_CompositeFilter_Operator) EnumDescriptor() ([]byte, []int) {
138 return file_google_firestore_v1beta1_query_proto_rawDescGZIP(), []int{0, 2, 0}
139 }
140
141 // A field filter operator.
142 type StructuredQuery_FieldFilter_Operator int32
143
144 const (
145 // Unspecified. This value must not be used.
146 StructuredQuery_FieldFilter_OPERATOR_UNSPECIFIED StructuredQuery_FieldFilter_Operator = 0
147 // The given `field` is less than the given `value`.
148 //
149 // Requires:
150 //
151 // * That `field` come first in `order_by`.
152 StructuredQuery_FieldFilter_LESS_THAN StructuredQuery_FieldFilter_Operator = 1
153 // The given `field` is less than or equal to the given `value`.
154 //
155 // Requires:
156 //
157 // * That `field` come first in `order_by`.
158 StructuredQuery_FieldFilter_LESS_THAN_OR_EQUAL StructuredQuery_FieldFilter_Operator = 2
159 // The given `field` is greater than the given `value`.
160 //
161 // Requires:
162 //
163 // * That `field` come first in `order_by`.
164 StructuredQuery_FieldFilter_GREATER_THAN StructuredQuery_FieldFilter_Operator = 3
165 // The given `field` is greater than or equal to the given `value`.
166 //
167 // Requires:
168 //
169 // * That `field` come first in `order_by`.
170 StructuredQuery_FieldFilter_GREATER_THAN_OR_EQUAL StructuredQuery_FieldFilter_Operator = 4
171 // The given `field` is equal to the given `value`.
172 StructuredQuery_FieldFilter_EQUAL StructuredQuery_FieldFilter_Operator = 5
173 // The given `field` is not equal to the given `value`.
174 //
175 // Requires:
176 //
177 // * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
178 // * That `field` comes first in the `order_by`.
179 StructuredQuery_FieldFilter_NOT_EQUAL StructuredQuery_FieldFilter_Operator = 6
180 // The given `field` is an array that contains the given `value`.
181 StructuredQuery_FieldFilter_ARRAY_CONTAINS StructuredQuery_FieldFilter_Operator = 7
182 // The given `field` is equal to at least one value in the given array.
183 //
184 // Requires:
185 //
186 // * That `value` is a non-empty `ArrayValue` with at most 10 values.
187 // * No other `IN` or `ARRAY_CONTAINS_ANY` or `NOT_IN`.
188 StructuredQuery_FieldFilter_IN StructuredQuery_FieldFilter_Operator = 8
189 // The given `field` is an array that contains any of the values in the
190 // given array.
191 //
192 // Requires:
193 //
194 // * That `value` is a non-empty `ArrayValue` with at most 10 values.
195 // * No other `IN` or `ARRAY_CONTAINS_ANY` or `NOT_IN`.
196 StructuredQuery_FieldFilter_ARRAY_CONTAINS_ANY StructuredQuery_FieldFilter_Operator = 9
197 // The value of the `field` is not in the given array.
198 //
199 // Requires:
200 //
201 // - That `value` is a non-empty `ArrayValue` with at most 10 values.
202 // - No other `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`, `NOT_EQUAL`,
203 // `IS_NOT_NULL`, or `IS_NOT_NAN`.
204 // - That `field` comes first in the `order_by`.
205 StructuredQuery_FieldFilter_NOT_IN StructuredQuery_FieldFilter_Operator = 10
206 )
207
208 // Enum value maps for StructuredQuery_FieldFilter_Operator.
209 var (
210 StructuredQuery_FieldFilter_Operator_name = map[int32]string{
211 0: "OPERATOR_UNSPECIFIED",
212 1: "LESS_THAN",
213 2: "LESS_THAN_OR_EQUAL",
214 3: "GREATER_THAN",
215 4: "GREATER_THAN_OR_EQUAL",
216 5: "EQUAL",
217 6: "NOT_EQUAL",
218 7: "ARRAY_CONTAINS",
219 8: "IN",
220 9: "ARRAY_CONTAINS_ANY",
221 10: "NOT_IN",
222 }
223 StructuredQuery_FieldFilter_Operator_value = map[string]int32{
224 "OPERATOR_UNSPECIFIED": 0,
225 "LESS_THAN": 1,
226 "LESS_THAN_OR_EQUAL": 2,
227 "GREATER_THAN": 3,
228 "GREATER_THAN_OR_EQUAL": 4,
229 "EQUAL": 5,
230 "NOT_EQUAL": 6,
231 "ARRAY_CONTAINS": 7,
232 "IN": 8,
233 "ARRAY_CONTAINS_ANY": 9,
234 "NOT_IN": 10,
235 }
236 )
237
238 func (x StructuredQuery_FieldFilter_Operator) Enum() *StructuredQuery_FieldFilter_Operator {
239 p := new(StructuredQuery_FieldFilter_Operator)
240 *p = x
241 return p
242 }
243
244 func (x StructuredQuery_FieldFilter_Operator) String() string {
245 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
246 }
247
248 func (StructuredQuery_FieldFilter_Operator) Descriptor() protoreflect.EnumDescriptor {
249 return file_google_firestore_v1beta1_query_proto_enumTypes[2].Descriptor()
250 }
251
252 func (StructuredQuery_FieldFilter_Operator) Type() protoreflect.EnumType {
253 return &file_google_firestore_v1beta1_query_proto_enumTypes[2]
254 }
255
256 func (x StructuredQuery_FieldFilter_Operator) Number() protoreflect.EnumNumber {
257 return protoreflect.EnumNumber(x)
258 }
259
260 // Deprecated: Use StructuredQuery_FieldFilter_Operator.Descriptor instead.
261 func (StructuredQuery_FieldFilter_Operator) EnumDescriptor() ([]byte, []int) {
262 return file_google_firestore_v1beta1_query_proto_rawDescGZIP(), []int{0, 3, 0}
263 }
264
265 // A unary operator.
266 type StructuredQuery_UnaryFilter_Operator int32
267
268 const (
269 // Unspecified. This value must not be used.
270 StructuredQuery_UnaryFilter_OPERATOR_UNSPECIFIED StructuredQuery_UnaryFilter_Operator = 0
271 // The given `field` is equal to `NaN`.
272 StructuredQuery_UnaryFilter_IS_NAN StructuredQuery_UnaryFilter_Operator = 2
273 // The given `field` is equal to `NULL`.
274 StructuredQuery_UnaryFilter_IS_NULL StructuredQuery_UnaryFilter_Operator = 3
275 // The given `field` is not equal to `NaN`.
276 //
277 // Requires:
278 //
279 // * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
280 // * That `field` comes first in the `order_by`.
281 StructuredQuery_UnaryFilter_IS_NOT_NAN StructuredQuery_UnaryFilter_Operator = 4
282 // The given `field` is not equal to `NULL`.
283 //
284 // Requires:
285 //
286 // * A single `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
287 // * That `field` comes first in the `order_by`.
288 StructuredQuery_UnaryFilter_IS_NOT_NULL StructuredQuery_UnaryFilter_Operator = 5
289 )
290
291 // Enum value maps for StructuredQuery_UnaryFilter_Operator.
292 var (
293 StructuredQuery_UnaryFilter_Operator_name = map[int32]string{
294 0: "OPERATOR_UNSPECIFIED",
295 2: "IS_NAN",
296 3: "IS_NULL",
297 4: "IS_NOT_NAN",
298 5: "IS_NOT_NULL",
299 }
300 StructuredQuery_UnaryFilter_Operator_value = map[string]int32{
301 "OPERATOR_UNSPECIFIED": 0,
302 "IS_NAN": 2,
303 "IS_NULL": 3,
304 "IS_NOT_NAN": 4,
305 "IS_NOT_NULL": 5,
306 }
307 )
308
309 func (x StructuredQuery_UnaryFilter_Operator) Enum() *StructuredQuery_UnaryFilter_Operator {
310 p := new(StructuredQuery_UnaryFilter_Operator)
311 *p = x
312 return p
313 }
314
315 func (x StructuredQuery_UnaryFilter_Operator) String() string {
316 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
317 }
318
319 func (StructuredQuery_UnaryFilter_Operator) Descriptor() protoreflect.EnumDescriptor {
320 return file_google_firestore_v1beta1_query_proto_enumTypes[3].Descriptor()
321 }
322
323 func (StructuredQuery_UnaryFilter_Operator) Type() protoreflect.EnumType {
324 return &file_google_firestore_v1beta1_query_proto_enumTypes[3]
325 }
326
327 func (x StructuredQuery_UnaryFilter_Operator) Number() protoreflect.EnumNumber {
328 return protoreflect.EnumNumber(x)
329 }
330
331 // Deprecated: Use StructuredQuery_UnaryFilter_Operator.Descriptor instead.
332 func (StructuredQuery_UnaryFilter_Operator) EnumDescriptor() ([]byte, []int) {
333 return file_google_firestore_v1beta1_query_proto_rawDescGZIP(), []int{0, 4, 0}
334 }
335
336 // A Firestore query.
337 type StructuredQuery struct {
338 state protoimpl.MessageState
339 sizeCache protoimpl.SizeCache
340 unknownFields protoimpl.UnknownFields
341
342 // The projection to return.
343 Select *StructuredQuery_Projection `protobuf:"bytes,1,opt,name=select,proto3" json:"select,omitempty"`
344 // The collections to query.
345 From []*StructuredQuery_CollectionSelector `protobuf:"bytes,2,rep,name=from,proto3" json:"from,omitempty"`
346 // The filter to apply.
347 Where *StructuredQuery_Filter `protobuf:"bytes,3,opt,name=where,proto3" json:"where,omitempty"`
348 // The order to apply to the query results.
349 //
350 // Firestore guarantees a stable ordering through the following rules:
351 //
352 // - Any field required to appear in `order_by`, that is not already
353 // specified in `order_by`, is appended to the order in field name order
354 // by default.
355 // - If an order on `__name__` is not specified, it is appended by default.
356 //
357 // Fields are appended with the same sort direction as the last order
358 // specified, or 'ASCENDING' if no order was specified. For example:
359 //
360 // - `SELECT * FROM Foo ORDER BY A` becomes
361 // `SELECT * FROM Foo ORDER BY A, __name__`
362 // - `SELECT * FROM Foo ORDER BY A DESC` becomes
363 // `SELECT * FROM Foo ORDER BY A DESC, __name__ DESC`
364 // - `SELECT * FROM Foo WHERE A > 1` becomes
365 // `SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`
366 OrderBy []*StructuredQuery_Order `protobuf:"bytes,4,rep,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
367 // A starting point for the query results.
368 StartAt *Cursor `protobuf:"bytes,7,opt,name=start_at,json=startAt,proto3" json:"start_at,omitempty"`
369 // A end point for the query results.
370 EndAt *Cursor `protobuf:"bytes,8,opt,name=end_at,json=endAt,proto3" json:"end_at,omitempty"`
371 // The number of results to skip.
372 //
373 // Applies before limit, but after all other constraints. Must be >= 0 if
374 // specified.
375 Offset int32 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"`
376 // The maximum number of results to return.
377 //
378 // Applies after all other constraints.
379 // Must be >= 0 if specified.
380 Limit *wrapperspb.Int32Value `protobuf:"bytes,5,opt,name=limit,proto3" json:"limit,omitempty"`
381 }
382
383 func (x *StructuredQuery) Reset() {
384 *x = StructuredQuery{}
385 if protoimpl.UnsafeEnabled {
386 mi := &file_google_firestore_v1beta1_query_proto_msgTypes[0]
387 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
388 ms.StoreMessageInfo(mi)
389 }
390 }
391
392 func (x *StructuredQuery) String() string {
393 return protoimpl.X.MessageStringOf(x)
394 }
395
396 func (*StructuredQuery) ProtoMessage() {}
397
398 func (x *StructuredQuery) ProtoReflect() protoreflect.Message {
399 mi := &file_google_firestore_v1beta1_query_proto_msgTypes[0]
400 if protoimpl.UnsafeEnabled && x != nil {
401 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
402 if ms.LoadMessageInfo() == nil {
403 ms.StoreMessageInfo(mi)
404 }
405 return ms
406 }
407 return mi.MessageOf(x)
408 }
409
410 // Deprecated: Use StructuredQuery.ProtoReflect.Descriptor instead.
411 func (*StructuredQuery) Descriptor() ([]byte, []int) {
412 return file_google_firestore_v1beta1_query_proto_rawDescGZIP(), []int{0}
413 }
414
415 func (x *StructuredQuery) GetSelect() *StructuredQuery_Projection {
416 if x != nil {
417 return x.Select
418 }
419 return nil
420 }
421
422 func (x *StructuredQuery) GetFrom() []*StructuredQuery_CollectionSelector {
423 if x != nil {
424 return x.From
425 }
426 return nil
427 }
428
429 func (x *StructuredQuery) GetWhere() *StructuredQuery_Filter {
430 if x != nil {
431 return x.Where
432 }
433 return nil
434 }
435
436 func (x *StructuredQuery) GetOrderBy() []*StructuredQuery_Order {
437 if x != nil {
438 return x.OrderBy
439 }
440 return nil
441 }
442
443 func (x *StructuredQuery) GetStartAt() *Cursor {
444 if x != nil {
445 return x.StartAt
446 }
447 return nil
448 }
449
450 func (x *StructuredQuery) GetEndAt() *Cursor {
451 if x != nil {
452 return x.EndAt
453 }
454 return nil
455 }
456
457 func (x *StructuredQuery) GetOffset() int32 {
458 if x != nil {
459 return x.Offset
460 }
461 return 0
462 }
463
464 func (x *StructuredQuery) GetLimit() *wrapperspb.Int32Value {
465 if x != nil {
466 return x.Limit
467 }
468 return nil
469 }
470
471 // A position in a query result set.
472 type Cursor struct {
473 state protoimpl.MessageState
474 sizeCache protoimpl.SizeCache
475 unknownFields protoimpl.UnknownFields
476
477 // The values that represent a position, in the order they appear in
478 // the order by clause of a query.
479 //
480 // Can contain fewer values than specified in the order by clause.
481 Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
482 // If the position is just before or just after the given values, relative
483 // to the sort order defined by the query.
484 Before bool `protobuf:"varint,2,opt,name=before,proto3" json:"before,omitempty"`
485 }
486
487 func (x *Cursor) Reset() {
488 *x = Cursor{}
489 if protoimpl.UnsafeEnabled {
490 mi := &file_google_firestore_v1beta1_query_proto_msgTypes[1]
491 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
492 ms.StoreMessageInfo(mi)
493 }
494 }
495
496 func (x *Cursor) String() string {
497 return protoimpl.X.MessageStringOf(x)
498 }
499
500 func (*Cursor) ProtoMessage() {}
501
502 func (x *Cursor) ProtoReflect() protoreflect.Message {
503 mi := &file_google_firestore_v1beta1_query_proto_msgTypes[1]
504 if protoimpl.UnsafeEnabled && x != nil {
505 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
506 if ms.LoadMessageInfo() == nil {
507 ms.StoreMessageInfo(mi)
508 }
509 return ms
510 }
511 return mi.MessageOf(x)
512 }
513
514 // Deprecated: Use Cursor.ProtoReflect.Descriptor instead.
515 func (*Cursor) Descriptor() ([]byte, []int) {
516 return file_google_firestore_v1beta1_query_proto_rawDescGZIP(), []int{1}
517 }
518
519 func (x *Cursor) GetValues() []*Value {
520 if x != nil {
521 return x.Values
522 }
523 return nil
524 }
525
526 func (x *Cursor) GetBefore() bool {
527 if x != nil {
528 return x.Before
529 }
530 return false
531 }
532
533 // A selection of a collection, such as `messages as m1`.
534 type StructuredQuery_CollectionSelector struct {
535 state protoimpl.MessageState
536 sizeCache protoimpl.SizeCache
537 unknownFields protoimpl.UnknownFields
538
539 // The collection ID.
540 // When set, selects only collections with this ID.
541 CollectionId string `protobuf:"bytes,2,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"`
542 // When false, selects only collections that are immediate children of
543 // the `parent` specified in the containing `RunQueryRequest`.
544 // When true, selects all descendant collections.
545 AllDescendants bool `protobuf:"varint,3,opt,name=all_descendants,json=allDescendants,proto3" json:"all_descendants,omitempty"`
546 }
547
548 func (x *StructuredQuery_CollectionSelector) Reset() {
549 *x = StructuredQuery_CollectionSelector{}
550 if protoimpl.UnsafeEnabled {
551 mi := &file_google_firestore_v1beta1_query_proto_msgTypes[2]
552 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
553 ms.StoreMessageInfo(mi)
554 }
555 }
556
557 func (x *StructuredQuery_CollectionSelector) String() string {
558 return protoimpl.X.MessageStringOf(x)
559 }
560
561 func (*StructuredQuery_CollectionSelector) ProtoMessage() {}
562
563 func (x *StructuredQuery_CollectionSelector) ProtoReflect() protoreflect.Message {
564 mi := &file_google_firestore_v1beta1_query_proto_msgTypes[2]
565 if protoimpl.UnsafeEnabled && x != nil {
566 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
567 if ms.LoadMessageInfo() == nil {
568 ms.StoreMessageInfo(mi)
569 }
570 return ms
571 }
572 return mi.MessageOf(x)
573 }
574
575 // Deprecated: Use StructuredQuery_CollectionSelector.ProtoReflect.Descriptor instead.
576 func (*StructuredQuery_CollectionSelector) Descriptor() ([]byte, []int) {
577 return file_google_firestore_v1beta1_query_proto_rawDescGZIP(), []int{0, 0}
578 }
579
580 func (x *StructuredQuery_CollectionSelector) GetCollectionId() string {
581 if x != nil {
582 return x.CollectionId
583 }
584 return ""
585 }
586
587 func (x *StructuredQuery_CollectionSelector) GetAllDescendants() bool {
588 if x != nil {
589 return x.AllDescendants
590 }
591 return false
592 }
593
594 // A filter.
595 type StructuredQuery_Filter struct {
596 state protoimpl.MessageState
597 sizeCache protoimpl.SizeCache
598 unknownFields protoimpl.UnknownFields
599
600 // The type of filter.
601 //
602 // Types that are assignable to FilterType:
603 //
604 // *StructuredQuery_Filter_CompositeFilter
605 // *StructuredQuery_Filter_FieldFilter
606 // *StructuredQuery_Filter_UnaryFilter
607 FilterType isStructuredQuery_Filter_FilterType `protobuf_oneof:"filter_type"`
608 }
609
610 func (x *StructuredQuery_Filter) Reset() {
611 *x = StructuredQuery_Filter{}
612 if protoimpl.UnsafeEnabled {
613 mi := &file_google_firestore_v1beta1_query_proto_msgTypes[3]
614 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
615 ms.StoreMessageInfo(mi)
616 }
617 }
618
619 func (x *StructuredQuery_Filter) String() string {
620 return protoimpl.X.MessageStringOf(x)
621 }
622
623 func (*StructuredQuery_Filter) ProtoMessage() {}
624
625 func (x *StructuredQuery_Filter) ProtoReflect() protoreflect.Message {
626 mi := &file_google_firestore_v1beta1_query_proto_msgTypes[3]
627 if protoimpl.UnsafeEnabled && x != nil {
628 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
629 if ms.LoadMessageInfo() == nil {
630 ms.StoreMessageInfo(mi)
631 }
632 return ms
633 }
634 return mi.MessageOf(x)
635 }
636
637 // Deprecated: Use StructuredQuery_Filter.ProtoReflect.Descriptor instead.
638 func (*StructuredQuery_Filter) Descriptor() ([]byte, []int) {
639 return file_google_firestore_v1beta1_query_proto_rawDescGZIP(), []int{0, 1}
640 }
641
642 func (m *StructuredQuery_Filter) GetFilterType() isStructuredQuery_Filter_FilterType {
643 if m != nil {
644 return m.FilterType
645 }
646 return nil
647 }
648
649 func (x *StructuredQuery_Filter) GetCompositeFilter() *StructuredQuery_CompositeFilter {
650 if x, ok := x.GetFilterType().(*StructuredQuery_Filter_CompositeFilter); ok {
651 return x.CompositeFilter
652 }
653 return nil
654 }
655
656 func (x *StructuredQuery_Filter) GetFieldFilter() *StructuredQuery_FieldFilter {
657 if x, ok := x.GetFilterType().(*StructuredQuery_Filter_FieldFilter); ok {
658 return x.FieldFilter
659 }
660 return nil
661 }
662
663 func (x *StructuredQuery_Filter) GetUnaryFilter() *StructuredQuery_UnaryFilter {
664 if x, ok := x.GetFilterType().(*StructuredQuery_Filter_UnaryFilter); ok {
665 return x.UnaryFilter
666 }
667 return nil
668 }
669
670 type isStructuredQuery_Filter_FilterType interface {
671 isStructuredQuery_Filter_FilterType()
672 }
673
674 type StructuredQuery_Filter_CompositeFilter struct {
675 // A composite filter.
676 CompositeFilter *StructuredQuery_CompositeFilter `protobuf:"bytes,1,opt,name=composite_filter,json=compositeFilter,proto3,oneof"`
677 }
678
679 type StructuredQuery_Filter_FieldFilter struct {
680 // A filter on a document field.
681 FieldFilter *StructuredQuery_FieldFilter `protobuf:"bytes,2,opt,name=field_filter,json=fieldFilter,proto3,oneof"`
682 }
683
684 type StructuredQuery_Filter_UnaryFilter struct {
685 // A filter that takes exactly one argument.
686 UnaryFilter *StructuredQuery_UnaryFilter `protobuf:"bytes,3,opt,name=unary_filter,json=unaryFilter,proto3,oneof"`
687 }
688
689 func (*StructuredQuery_Filter_CompositeFilter) isStructuredQuery_Filter_FilterType() {}
690
691 func (*StructuredQuery_Filter_FieldFilter) isStructuredQuery_Filter_FilterType() {}
692
693 func (*StructuredQuery_Filter_UnaryFilter) isStructuredQuery_Filter_FilterType() {}
694
695 // A filter that merges multiple other filters using the given operator.
696 type StructuredQuery_CompositeFilter struct {
697 state protoimpl.MessageState
698 sizeCache protoimpl.SizeCache
699 unknownFields protoimpl.UnknownFields
700
701 // The operator for combining multiple filters.
702 Op StructuredQuery_CompositeFilter_Operator `protobuf:"varint,1,opt,name=op,proto3,enum=google.firestore.v1beta1.StructuredQuery_CompositeFilter_Operator" json:"op,omitempty"`
703 // The list of filters to combine.
704 // Must contain at least one filter.
705 Filters []*StructuredQuery_Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"`
706 }
707
708 func (x *StructuredQuery_CompositeFilter) Reset() {
709 *x = StructuredQuery_CompositeFilter{}
710 if protoimpl.UnsafeEnabled {
711 mi := &file_google_firestore_v1beta1_query_proto_msgTypes[4]
712 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
713 ms.StoreMessageInfo(mi)
714 }
715 }
716
717 func (x *StructuredQuery_CompositeFilter) String() string {
718 return protoimpl.X.MessageStringOf(x)
719 }
720
721 func (*StructuredQuery_CompositeFilter) ProtoMessage() {}
722
723 func (x *StructuredQuery_CompositeFilter) ProtoReflect() protoreflect.Message {
724 mi := &file_google_firestore_v1beta1_query_proto_msgTypes[4]
725 if protoimpl.UnsafeEnabled && x != nil {
726 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
727 if ms.LoadMessageInfo() == nil {
728 ms.StoreMessageInfo(mi)
729 }
730 return ms
731 }
732 return mi.MessageOf(x)
733 }
734
735 // Deprecated: Use StructuredQuery_CompositeFilter.ProtoReflect.Descriptor instead.
736 func (*StructuredQuery_CompositeFilter) Descriptor() ([]byte, []int) {
737 return file_google_firestore_v1beta1_query_proto_rawDescGZIP(), []int{0, 2}
738 }
739
740 func (x *StructuredQuery_CompositeFilter) GetOp() StructuredQuery_CompositeFilter_Operator {
741 if x != nil {
742 return x.Op
743 }
744 return StructuredQuery_CompositeFilter_OPERATOR_UNSPECIFIED
745 }
746
747 func (x *StructuredQuery_CompositeFilter) GetFilters() []*StructuredQuery_Filter {
748 if x != nil {
749 return x.Filters
750 }
751 return nil
752 }
753
754 // A filter on a specific field.
755 type StructuredQuery_FieldFilter struct {
756 state protoimpl.MessageState
757 sizeCache protoimpl.SizeCache
758 unknownFields protoimpl.UnknownFields
759
760 // The field to filter by.
761 Field *StructuredQuery_FieldReference `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
762 // The operator to filter by.
763 Op StructuredQuery_FieldFilter_Operator `protobuf:"varint,2,opt,name=op,proto3,enum=google.firestore.v1beta1.StructuredQuery_FieldFilter_Operator" json:"op,omitempty"`
764 // The value to compare to.
765 Value *Value `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
766 }
767
768 func (x *StructuredQuery_FieldFilter) Reset() {
769 *x = StructuredQuery_FieldFilter{}
770 if protoimpl.UnsafeEnabled {
771 mi := &file_google_firestore_v1beta1_query_proto_msgTypes[5]
772 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
773 ms.StoreMessageInfo(mi)
774 }
775 }
776
777 func (x *StructuredQuery_FieldFilter) String() string {
778 return protoimpl.X.MessageStringOf(x)
779 }
780
781 func (*StructuredQuery_FieldFilter) ProtoMessage() {}
782
783 func (x *StructuredQuery_FieldFilter) ProtoReflect() protoreflect.Message {
784 mi := &file_google_firestore_v1beta1_query_proto_msgTypes[5]
785 if protoimpl.UnsafeEnabled && x != nil {
786 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
787 if ms.LoadMessageInfo() == nil {
788 ms.StoreMessageInfo(mi)
789 }
790 return ms
791 }
792 return mi.MessageOf(x)
793 }
794
795 // Deprecated: Use StructuredQuery_FieldFilter.ProtoReflect.Descriptor instead.
796 func (*StructuredQuery_FieldFilter) Descriptor() ([]byte, []int) {
797 return file_google_firestore_v1beta1_query_proto_rawDescGZIP(), []int{0, 3}
798 }
799
800 func (x *StructuredQuery_FieldFilter) GetField() *StructuredQuery_FieldReference {
801 if x != nil {
802 return x.Field
803 }
804 return nil
805 }
806
807 func (x *StructuredQuery_FieldFilter) GetOp() StructuredQuery_FieldFilter_Operator {
808 if x != nil {
809 return x.Op
810 }
811 return StructuredQuery_FieldFilter_OPERATOR_UNSPECIFIED
812 }
813
814 func (x *StructuredQuery_FieldFilter) GetValue() *Value {
815 if x != nil {
816 return x.Value
817 }
818 return nil
819 }
820
821 // A filter with a single operand.
822 type StructuredQuery_UnaryFilter struct {
823 state protoimpl.MessageState
824 sizeCache protoimpl.SizeCache
825 unknownFields protoimpl.UnknownFields
826
827 // The unary operator to apply.
828 Op StructuredQuery_UnaryFilter_Operator `protobuf:"varint,1,opt,name=op,proto3,enum=google.firestore.v1beta1.StructuredQuery_UnaryFilter_Operator" json:"op,omitempty"`
829 // The argument to the filter.
830 //
831 // Types that are assignable to OperandType:
832 //
833 // *StructuredQuery_UnaryFilter_Field
834 OperandType isStructuredQuery_UnaryFilter_OperandType `protobuf_oneof:"operand_type"`
835 }
836
837 func (x *StructuredQuery_UnaryFilter) Reset() {
838 *x = StructuredQuery_UnaryFilter{}
839 if protoimpl.UnsafeEnabled {
840 mi := &file_google_firestore_v1beta1_query_proto_msgTypes[6]
841 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
842 ms.StoreMessageInfo(mi)
843 }
844 }
845
846 func (x *StructuredQuery_UnaryFilter) String() string {
847 return protoimpl.X.MessageStringOf(x)
848 }
849
850 func (*StructuredQuery_UnaryFilter) ProtoMessage() {}
851
852 func (x *StructuredQuery_UnaryFilter) ProtoReflect() protoreflect.Message {
853 mi := &file_google_firestore_v1beta1_query_proto_msgTypes[6]
854 if protoimpl.UnsafeEnabled && x != nil {
855 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
856 if ms.LoadMessageInfo() == nil {
857 ms.StoreMessageInfo(mi)
858 }
859 return ms
860 }
861 return mi.MessageOf(x)
862 }
863
864 // Deprecated: Use StructuredQuery_UnaryFilter.ProtoReflect.Descriptor instead.
865 func (*StructuredQuery_UnaryFilter) Descriptor() ([]byte, []int) {
866 return file_google_firestore_v1beta1_query_proto_rawDescGZIP(), []int{0, 4}
867 }
868
869 func (x *StructuredQuery_UnaryFilter) GetOp() StructuredQuery_UnaryFilter_Operator {
870 if x != nil {
871 return x.Op
872 }
873 return StructuredQuery_UnaryFilter_OPERATOR_UNSPECIFIED
874 }
875
876 func (m *StructuredQuery_UnaryFilter) GetOperandType() isStructuredQuery_UnaryFilter_OperandType {
877 if m != nil {
878 return m.OperandType
879 }
880 return nil
881 }
882
883 func (x *StructuredQuery_UnaryFilter) GetField() *StructuredQuery_FieldReference {
884 if x, ok := x.GetOperandType().(*StructuredQuery_UnaryFilter_Field); ok {
885 return x.Field
886 }
887 return nil
888 }
889
890 type isStructuredQuery_UnaryFilter_OperandType interface {
891 isStructuredQuery_UnaryFilter_OperandType()
892 }
893
894 type StructuredQuery_UnaryFilter_Field struct {
895 // The field to which to apply the operator.
896 Field *StructuredQuery_FieldReference `protobuf:"bytes,2,opt,name=field,proto3,oneof"`
897 }
898
899 func (*StructuredQuery_UnaryFilter_Field) isStructuredQuery_UnaryFilter_OperandType() {}
900
901 // A reference to a field, such as `max(messages.time) as max_time`.
902 type StructuredQuery_FieldReference struct {
903 state protoimpl.MessageState
904 sizeCache protoimpl.SizeCache
905 unknownFields protoimpl.UnknownFields
906
907 FieldPath string `protobuf:"bytes,2,opt,name=field_path,json=fieldPath,proto3" json:"field_path,omitempty"`
908 }
909
910 func (x *StructuredQuery_FieldReference) Reset() {
911 *x = StructuredQuery_FieldReference{}
912 if protoimpl.UnsafeEnabled {
913 mi := &file_google_firestore_v1beta1_query_proto_msgTypes[7]
914 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
915 ms.StoreMessageInfo(mi)
916 }
917 }
918
919 func (x *StructuredQuery_FieldReference) String() string {
920 return protoimpl.X.MessageStringOf(x)
921 }
922
923 func (*StructuredQuery_FieldReference) ProtoMessage() {}
924
925 func (x *StructuredQuery_FieldReference) ProtoReflect() protoreflect.Message {
926 mi := &file_google_firestore_v1beta1_query_proto_msgTypes[7]
927 if protoimpl.UnsafeEnabled && x != nil {
928 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
929 if ms.LoadMessageInfo() == nil {
930 ms.StoreMessageInfo(mi)
931 }
932 return ms
933 }
934 return mi.MessageOf(x)
935 }
936
937 // Deprecated: Use StructuredQuery_FieldReference.ProtoReflect.Descriptor instead.
938 func (*StructuredQuery_FieldReference) Descriptor() ([]byte, []int) {
939 return file_google_firestore_v1beta1_query_proto_rawDescGZIP(), []int{0, 5}
940 }
941
942 func (x *StructuredQuery_FieldReference) GetFieldPath() string {
943 if x != nil {
944 return x.FieldPath
945 }
946 return ""
947 }
948
949 // An order on a field.
950 type StructuredQuery_Order struct {
951 state protoimpl.MessageState
952 sizeCache protoimpl.SizeCache
953 unknownFields protoimpl.UnknownFields
954
955 // The field to order by.
956 Field *StructuredQuery_FieldReference `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
957 // The direction to order by. Defaults to `ASCENDING`.
958 Direction StructuredQuery_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=google.firestore.v1beta1.StructuredQuery_Direction" json:"direction,omitempty"`
959 }
960
961 func (x *StructuredQuery_Order) Reset() {
962 *x = StructuredQuery_Order{}
963 if protoimpl.UnsafeEnabled {
964 mi := &file_google_firestore_v1beta1_query_proto_msgTypes[8]
965 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
966 ms.StoreMessageInfo(mi)
967 }
968 }
969
970 func (x *StructuredQuery_Order) String() string {
971 return protoimpl.X.MessageStringOf(x)
972 }
973
974 func (*StructuredQuery_Order) ProtoMessage() {}
975
976 func (x *StructuredQuery_Order) ProtoReflect() protoreflect.Message {
977 mi := &file_google_firestore_v1beta1_query_proto_msgTypes[8]
978 if protoimpl.UnsafeEnabled && x != nil {
979 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
980 if ms.LoadMessageInfo() == nil {
981 ms.StoreMessageInfo(mi)
982 }
983 return ms
984 }
985 return mi.MessageOf(x)
986 }
987
988 // Deprecated: Use StructuredQuery_Order.ProtoReflect.Descriptor instead.
989 func (*StructuredQuery_Order) Descriptor() ([]byte, []int) {
990 return file_google_firestore_v1beta1_query_proto_rawDescGZIP(), []int{0, 6}
991 }
992
993 func (x *StructuredQuery_Order) GetField() *StructuredQuery_FieldReference {
994 if x != nil {
995 return x.Field
996 }
997 return nil
998 }
999
1000 func (x *StructuredQuery_Order) GetDirection() StructuredQuery_Direction {
1001 if x != nil {
1002 return x.Direction
1003 }
1004 return StructuredQuery_DIRECTION_UNSPECIFIED
1005 }
1006
1007 // The projection of document's fields to return.
1008 type StructuredQuery_Projection struct {
1009 state protoimpl.MessageState
1010 sizeCache protoimpl.SizeCache
1011 unknownFields protoimpl.UnknownFields
1012
1013 // The fields to return.
1014 //
1015 // If empty, all fields are returned. To only return the name
1016 // of the document, use `['__name__']`.
1017 Fields []*StructuredQuery_FieldReference `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"`
1018 }
1019
1020 func (x *StructuredQuery_Projection) Reset() {
1021 *x = StructuredQuery_Projection{}
1022 if protoimpl.UnsafeEnabled {
1023 mi := &file_google_firestore_v1beta1_query_proto_msgTypes[9]
1024 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1025 ms.StoreMessageInfo(mi)
1026 }
1027 }
1028
1029 func (x *StructuredQuery_Projection) String() string {
1030 return protoimpl.X.MessageStringOf(x)
1031 }
1032
1033 func (*StructuredQuery_Projection) ProtoMessage() {}
1034
1035 func (x *StructuredQuery_Projection) ProtoReflect() protoreflect.Message {
1036 mi := &file_google_firestore_v1beta1_query_proto_msgTypes[9]
1037 if protoimpl.UnsafeEnabled && x != nil {
1038 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1039 if ms.LoadMessageInfo() == nil {
1040 ms.StoreMessageInfo(mi)
1041 }
1042 return ms
1043 }
1044 return mi.MessageOf(x)
1045 }
1046
1047 // Deprecated: Use StructuredQuery_Projection.ProtoReflect.Descriptor instead.
1048 func (*StructuredQuery_Projection) Descriptor() ([]byte, []int) {
1049 return file_google_firestore_v1beta1_query_proto_rawDescGZIP(), []int{0, 7}
1050 }
1051
1052 func (x *StructuredQuery_Projection) GetFields() []*StructuredQuery_FieldReference {
1053 if x != nil {
1054 return x.Fields
1055 }
1056 return nil
1057 }
1058
1059 var File_google_firestore_v1beta1_query_proto protoreflect.FileDescriptor
1060
1061 var file_google_firestore_v1beta1_query_proto_rawDesc = []byte{
1062 0x0a, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f,
1063 0x72, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79,
1064 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66,
1065 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
1066 0x1a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f,
1067 0x72, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d,
1068 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
1069 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70,
1070 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xea, 0x11, 0x0a, 0x0f, 0x53, 0x74,
1071 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x4c, 0x0a,
1072 0x06, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e,
1073 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65,
1074 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75,
1075 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
1076 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x50, 0x0a, 0x04, 0x66,
1077 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
1078 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62,
1079 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x51,
1080 0x75, 0x65, 0x72, 0x79, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53,
1081 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x46, 0x0a,
1082 0x05, 0x77, 0x68, 0x65, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67,
1083 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,
1084 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72,
1085 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x05,
1086 0x77, 0x68, 0x65, 0x72, 0x65, 0x12, 0x4a, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62,
1087 0x79, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
1088 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
1089 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65,
1090 0x72, 0x79, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42,
1091 0x79, 0x12, 0x3b, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20,
1092 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72,
1093 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43,
1094 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x07, 0x73, 0x74, 0x61, 0x72, 0x74, 0x41, 0x74, 0x12, 0x37,
1095 0x0a, 0x06, 0x65, 0x6e, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20,
1096 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72,
1097 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72,
1098 0x52, 0x05, 0x65, 0x6e, 0x64, 0x41, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65,
1099 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12,
1100 0x31, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b,
1101 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
1102 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x6c, 0x69, 0x6d,
1103 0x69, 0x74, 0x1a, 0x62, 0x0a, 0x12, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
1104 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6c, 0x6c,
1105 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
1106 0x0c, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x27, 0x0a,
1107 0x0f, 0x61, 0x6c, 0x6c, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x65, 0x6e, 0x64, 0x61, 0x6e, 0x74, 0x73,
1108 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x61, 0x6c, 0x6c, 0x44, 0x65, 0x73, 0x63, 0x65,
1109 0x6e, 0x64, 0x61, 0x6e, 0x74, 0x73, 0x1a, 0xb7, 0x02, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65,
1110 0x72, 0x12, 0x66, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x5f, 0x66,
1111 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x67, 0x6f,
1112 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76,
1113 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65,
1114 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65,
1115 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73,
1116 0x69, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x5a, 0x0a, 0x0c, 0x66, 0x69, 0x65,
1117 0x6c, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
1118 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f,
1119 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63,
1120 0x74, 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64,
1121 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0b, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x46,
1122 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x5a, 0x0a, 0x0c, 0x75, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x66,
1123 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f,
1124 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76,
1125 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65,
1126 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x55, 0x6e, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x74,
1127 0x65, 0x72, 0x48, 0x00, 0x52, 0x0b, 0x75, 0x6e, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65,
1128 0x72, 0x42, 0x0d, 0x0a, 0x0b, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65,
1129 0x1a, 0xe0, 0x01, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x46, 0x69,
1130 0x6c, 0x74, 0x65, 0x72, 0x12, 0x52, 0x0a, 0x02, 0x6f, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
1131 0x32, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74,
1132 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75,
1133 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x70,
1134 0x6f, 0x73, 0x69, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x4f, 0x70, 0x65, 0x72,
1135 0x61, 0x74, 0x6f, 0x72, 0x52, 0x02, 0x6f, 0x70, 0x12, 0x4a, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74,
1136 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
1137 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62,
1138 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x51,
1139 0x75, 0x65, 0x72, 0x79, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x07, 0x66, 0x69, 0x6c,
1140 0x74, 0x65, 0x72, 0x73, 0x22, 0x2d, 0x0a, 0x08, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72,
1141 0x12, 0x18, 0x0a, 0x14, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x55, 0x4e, 0x53,
1142 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4e,
1143 0x44, 0x10, 0x01, 0x1a, 0xb9, 0x03, 0x0a, 0x0b, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x46, 0x69, 0x6c,
1144 0x74, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01,
1145 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65,
1146 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74,
1147 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x46, 0x69,
1148 0x65, 0x6c, 0x64, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x05, 0x66, 0x69,
1149 0x65, 0x6c, 0x64, 0x12, 0x4e, 0x0a, 0x02, 0x6f, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32,
1150 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f,
1151 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63,
1152 0x74, 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64,
1153 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52,
1154 0x02, 0x6f, 0x70, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01,
1155 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65,
1156 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x56, 0x61,
1157 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xd2, 0x01, 0x0a, 0x08, 0x4f,
1158 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x14, 0x4f, 0x50, 0x45, 0x52, 0x41,
1159 0x54, 0x4f, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
1160 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x10, 0x01,
1161 0x12, 0x16, 0x0a, 0x12, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x5f, 0x4f, 0x52,
1162 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x47, 0x52, 0x45, 0x41,
1163 0x54, 0x45, 0x52, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x10, 0x03, 0x12, 0x19, 0x0a, 0x15, 0x47, 0x52,
1164 0x45, 0x41, 0x54, 0x45, 0x52, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x5f, 0x4f, 0x52, 0x5f, 0x45, 0x51,
1165 0x55, 0x41, 0x4c, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x10, 0x05,
1166 0x12, 0x0d, 0x0a, 0x09, 0x4e, 0x4f, 0x54, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x10, 0x06, 0x12,
1167 0x12, 0x0a, 0x0e, 0x41, 0x52, 0x52, 0x41, 0x59, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e,
1168 0x53, 0x10, 0x07, 0x12, 0x06, 0x0a, 0x02, 0x49, 0x4e, 0x10, 0x08, 0x12, 0x16, 0x0a, 0x12, 0x41,
1169 0x52, 0x52, 0x41, 0x59, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e, 0x53, 0x5f, 0x41, 0x4e,
1170 0x59, 0x10, 0x09, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x4f, 0x54, 0x5f, 0x49, 0x4e, 0x10, 0x0a, 0x1a,
1171 0x9f, 0x02, 0x0a, 0x0b, 0x55, 0x6e, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12,
1172 0x4e, 0x0a, 0x02, 0x6f, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3e, 0x2e, 0x67, 0x6f,
1173 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76,
1174 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65,
1175 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x55, 0x6e, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x74,
1176 0x65, 0x72, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x02, 0x6f, 0x70, 0x12,
1177 0x50, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38,
1178 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72,
1179 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74,
1180 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52,
1181 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x48, 0x00, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c,
1182 0x64, 0x22, 0x5e, 0x0a, 0x08, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a,
1183 0x14, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,
1184 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x49, 0x53, 0x5f, 0x4e, 0x41,
1185 0x4e, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x53, 0x5f, 0x4e, 0x55, 0x4c, 0x4c, 0x10, 0x03,
1186 0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x53, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x4e, 0x41, 0x4e, 0x10, 0x04,
1187 0x12, 0x0f, 0x0a, 0x0b, 0x49, 0x53, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x4e, 0x55, 0x4c, 0x4c, 0x10,
1188 0x05, 0x42, 0x0e, 0x0a, 0x0c, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x6e, 0x64, 0x5f, 0x74, 0x79, 0x70,
1189 0x65, 0x1a, 0x2f, 0x0a, 0x0e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65,
1190 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x74,
1191 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x61,
1192 0x74, 0x68, 0x1a, 0xaa, 0x01, 0x0a, 0x05, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x05,
1193 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f,
1194 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76,
1195 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65,
1196 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x65, 0x66, 0x65,
1197 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x51, 0x0a, 0x09,
1198 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32,
1199 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f,
1200 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63,
1201 0x74, 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x44, 0x69, 0x72, 0x65, 0x63,
1202 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a,
1203 0x5e, 0x0a, 0x0a, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a,
1204 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e,
1205 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65,
1206 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75,
1207 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x65,
1208 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22,
1209 0x45, 0x0a, 0x09, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x15,
1210 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,
1211 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x53, 0x43, 0x45, 0x4e,
1212 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x45, 0x53, 0x43, 0x45, 0x4e,
1213 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x22, 0x59, 0x0a, 0x06, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72,
1214 0x12, 0x37, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
1215 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74,
1216 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75,
1217 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x65, 0x66,
1218 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x62, 0x65, 0x66, 0x6f, 0x72,
1219 0x65, 0x42, 0xdc, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
1220 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
1221 0x61, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
1222 0x5a, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e,
1223 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f,
1224 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72,
1225 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74,
1226 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x04, 0x47, 0x43, 0x46, 0x53, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f,
1227 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x46, 0x69, 0x72, 0x65, 0x73, 0x74,
1228 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1e, 0x47, 0x6f,
1229 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x46, 0x69, 0x72, 0x65, 0x73,
1230 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x21, 0x47,
1231 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x46, 0x69,
1232 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
1233 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
1234 }
1235
1236 var (
1237 file_google_firestore_v1beta1_query_proto_rawDescOnce sync.Once
1238 file_google_firestore_v1beta1_query_proto_rawDescData = file_google_firestore_v1beta1_query_proto_rawDesc
1239 )
1240
1241 func file_google_firestore_v1beta1_query_proto_rawDescGZIP() []byte {
1242 file_google_firestore_v1beta1_query_proto_rawDescOnce.Do(func() {
1243 file_google_firestore_v1beta1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_firestore_v1beta1_query_proto_rawDescData)
1244 })
1245 return file_google_firestore_v1beta1_query_proto_rawDescData
1246 }
1247
1248 var file_google_firestore_v1beta1_query_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
1249 var file_google_firestore_v1beta1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
1250 var file_google_firestore_v1beta1_query_proto_goTypes = []interface{}{
1251 (StructuredQuery_Direction)(0), // 0: google.firestore.v1beta1.StructuredQuery.Direction
1252 (StructuredQuery_CompositeFilter_Operator)(0), // 1: google.firestore.v1beta1.StructuredQuery.CompositeFilter.Operator
1253 (StructuredQuery_FieldFilter_Operator)(0), // 2: google.firestore.v1beta1.StructuredQuery.FieldFilter.Operator
1254 (StructuredQuery_UnaryFilter_Operator)(0), // 3: google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator
1255 (*StructuredQuery)(nil), // 4: google.firestore.v1beta1.StructuredQuery
1256 (*Cursor)(nil), // 5: google.firestore.v1beta1.Cursor
1257 (*StructuredQuery_CollectionSelector)(nil), // 6: google.firestore.v1beta1.StructuredQuery.CollectionSelector
1258 (*StructuredQuery_Filter)(nil), // 7: google.firestore.v1beta1.StructuredQuery.Filter
1259 (*StructuredQuery_CompositeFilter)(nil), // 8: google.firestore.v1beta1.StructuredQuery.CompositeFilter
1260 (*StructuredQuery_FieldFilter)(nil), // 9: google.firestore.v1beta1.StructuredQuery.FieldFilter
1261 (*StructuredQuery_UnaryFilter)(nil), // 10: google.firestore.v1beta1.StructuredQuery.UnaryFilter
1262 (*StructuredQuery_FieldReference)(nil), // 11: google.firestore.v1beta1.StructuredQuery.FieldReference
1263 (*StructuredQuery_Order)(nil), // 12: google.firestore.v1beta1.StructuredQuery.Order
1264 (*StructuredQuery_Projection)(nil), // 13: google.firestore.v1beta1.StructuredQuery.Projection
1265 (*wrapperspb.Int32Value)(nil), // 14: google.protobuf.Int32Value
1266 (*Value)(nil), // 15: google.firestore.v1beta1.Value
1267 }
1268 var file_google_firestore_v1beta1_query_proto_depIdxs = []int32{
1269 13, // 0: google.firestore.v1beta1.StructuredQuery.select:type_name -> google.firestore.v1beta1.StructuredQuery.Projection
1270 6, // 1: google.firestore.v1beta1.StructuredQuery.from:type_name -> google.firestore.v1beta1.StructuredQuery.CollectionSelector
1271 7, // 2: google.firestore.v1beta1.StructuredQuery.where:type_name -> google.firestore.v1beta1.StructuredQuery.Filter
1272 12, // 3: google.firestore.v1beta1.StructuredQuery.order_by:type_name -> google.firestore.v1beta1.StructuredQuery.Order
1273 5, // 4: google.firestore.v1beta1.StructuredQuery.start_at:type_name -> google.firestore.v1beta1.Cursor
1274 5, // 5: google.firestore.v1beta1.StructuredQuery.end_at:type_name -> google.firestore.v1beta1.Cursor
1275 14, // 6: google.firestore.v1beta1.StructuredQuery.limit:type_name -> google.protobuf.Int32Value
1276 15, // 7: google.firestore.v1beta1.Cursor.values:type_name -> google.firestore.v1beta1.Value
1277 8, // 8: google.firestore.v1beta1.StructuredQuery.Filter.composite_filter:type_name -> google.firestore.v1beta1.StructuredQuery.CompositeFilter
1278 9, // 9: google.firestore.v1beta1.StructuredQuery.Filter.field_filter:type_name -> google.firestore.v1beta1.StructuredQuery.FieldFilter
1279 10, // 10: google.firestore.v1beta1.StructuredQuery.Filter.unary_filter:type_name -> google.firestore.v1beta1.StructuredQuery.UnaryFilter
1280 1, // 11: google.firestore.v1beta1.StructuredQuery.CompositeFilter.op:type_name -> google.firestore.v1beta1.StructuredQuery.CompositeFilter.Operator
1281 7, // 12: google.firestore.v1beta1.StructuredQuery.CompositeFilter.filters:type_name -> google.firestore.v1beta1.StructuredQuery.Filter
1282 11, // 13: google.firestore.v1beta1.StructuredQuery.FieldFilter.field:type_name -> google.firestore.v1beta1.StructuredQuery.FieldReference
1283 2, // 14: google.firestore.v1beta1.StructuredQuery.FieldFilter.op:type_name -> google.firestore.v1beta1.StructuredQuery.FieldFilter.Operator
1284 15, // 15: google.firestore.v1beta1.StructuredQuery.FieldFilter.value:type_name -> google.firestore.v1beta1.Value
1285 3, // 16: google.firestore.v1beta1.StructuredQuery.UnaryFilter.op:type_name -> google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator
1286 11, // 17: google.firestore.v1beta1.StructuredQuery.UnaryFilter.field:type_name -> google.firestore.v1beta1.StructuredQuery.FieldReference
1287 11, // 18: google.firestore.v1beta1.StructuredQuery.Order.field:type_name -> google.firestore.v1beta1.StructuredQuery.FieldReference
1288 0, // 19: google.firestore.v1beta1.StructuredQuery.Order.direction:type_name -> google.firestore.v1beta1.StructuredQuery.Direction
1289 11, // 20: google.firestore.v1beta1.StructuredQuery.Projection.fields:type_name -> google.firestore.v1beta1.StructuredQuery.FieldReference
1290 21, // [21:21] is the sub-list for method output_type
1291 21, // [21:21] is the sub-list for method input_type
1292 21, // [21:21] is the sub-list for extension type_name
1293 21, // [21:21] is the sub-list for extension extendee
1294 0, // [0:21] is the sub-list for field type_name
1295 }
1296
1297 func init() { file_google_firestore_v1beta1_query_proto_init() }
1298 func file_google_firestore_v1beta1_query_proto_init() {
1299 if File_google_firestore_v1beta1_query_proto != nil {
1300 return
1301 }
1302 file_google_firestore_v1beta1_document_proto_init()
1303 if !protoimpl.UnsafeEnabled {
1304 file_google_firestore_v1beta1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
1305 switch v := v.(*StructuredQuery); i {
1306 case 0:
1307 return &v.state
1308 case 1:
1309 return &v.sizeCache
1310 case 2:
1311 return &v.unknownFields
1312 default:
1313 return nil
1314 }
1315 }
1316 file_google_firestore_v1beta1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
1317 switch v := v.(*Cursor); i {
1318 case 0:
1319 return &v.state
1320 case 1:
1321 return &v.sizeCache
1322 case 2:
1323 return &v.unknownFields
1324 default:
1325 return nil
1326 }
1327 }
1328 file_google_firestore_v1beta1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
1329 switch v := v.(*StructuredQuery_CollectionSelector); i {
1330 case 0:
1331 return &v.state
1332 case 1:
1333 return &v.sizeCache
1334 case 2:
1335 return &v.unknownFields
1336 default:
1337 return nil
1338 }
1339 }
1340 file_google_firestore_v1beta1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
1341 switch v := v.(*StructuredQuery_Filter); i {
1342 case 0:
1343 return &v.state
1344 case 1:
1345 return &v.sizeCache
1346 case 2:
1347 return &v.unknownFields
1348 default:
1349 return nil
1350 }
1351 }
1352 file_google_firestore_v1beta1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
1353 switch v := v.(*StructuredQuery_CompositeFilter); i {
1354 case 0:
1355 return &v.state
1356 case 1:
1357 return &v.sizeCache
1358 case 2:
1359 return &v.unknownFields
1360 default:
1361 return nil
1362 }
1363 }
1364 file_google_firestore_v1beta1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
1365 switch v := v.(*StructuredQuery_FieldFilter); i {
1366 case 0:
1367 return &v.state
1368 case 1:
1369 return &v.sizeCache
1370 case 2:
1371 return &v.unknownFields
1372 default:
1373 return nil
1374 }
1375 }
1376 file_google_firestore_v1beta1_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
1377 switch v := v.(*StructuredQuery_UnaryFilter); i {
1378 case 0:
1379 return &v.state
1380 case 1:
1381 return &v.sizeCache
1382 case 2:
1383 return &v.unknownFields
1384 default:
1385 return nil
1386 }
1387 }
1388 file_google_firestore_v1beta1_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
1389 switch v := v.(*StructuredQuery_FieldReference); i {
1390 case 0:
1391 return &v.state
1392 case 1:
1393 return &v.sizeCache
1394 case 2:
1395 return &v.unknownFields
1396 default:
1397 return nil
1398 }
1399 }
1400 file_google_firestore_v1beta1_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
1401 switch v := v.(*StructuredQuery_Order); i {
1402 case 0:
1403 return &v.state
1404 case 1:
1405 return &v.sizeCache
1406 case 2:
1407 return &v.unknownFields
1408 default:
1409 return nil
1410 }
1411 }
1412 file_google_firestore_v1beta1_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
1413 switch v := v.(*StructuredQuery_Projection); i {
1414 case 0:
1415 return &v.state
1416 case 1:
1417 return &v.sizeCache
1418 case 2:
1419 return &v.unknownFields
1420 default:
1421 return nil
1422 }
1423 }
1424 }
1425 file_google_firestore_v1beta1_query_proto_msgTypes[3].OneofWrappers = []interface{}{
1426 (*StructuredQuery_Filter_CompositeFilter)(nil),
1427 (*StructuredQuery_Filter_FieldFilter)(nil),
1428 (*StructuredQuery_Filter_UnaryFilter)(nil),
1429 }
1430 file_google_firestore_v1beta1_query_proto_msgTypes[6].OneofWrappers = []interface{}{
1431 (*StructuredQuery_UnaryFilter_Field)(nil),
1432 }
1433 type x struct{}
1434 out := protoimpl.TypeBuilder{
1435 File: protoimpl.DescBuilder{
1436 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1437 RawDescriptor: file_google_firestore_v1beta1_query_proto_rawDesc,
1438 NumEnums: 4,
1439 NumMessages: 10,
1440 NumExtensions: 0,
1441 NumServices: 0,
1442 },
1443 GoTypes: file_google_firestore_v1beta1_query_proto_goTypes,
1444 DependencyIndexes: file_google_firestore_v1beta1_query_proto_depIdxs,
1445 EnumInfos: file_google_firestore_v1beta1_query_proto_enumTypes,
1446 MessageInfos: file_google_firestore_v1beta1_query_proto_msgTypes,
1447 }.Build()
1448 File_google_firestore_v1beta1_query_proto = out.File
1449 file_google_firestore_v1beta1_query_proto_rawDesc = nil
1450 file_google_firestore_v1beta1_query_proto_goTypes = nil
1451 file_google_firestore_v1beta1_query_proto_depIdxs = nil
1452 }