Debian Codegraph @

firestore/apiv1/firestorepb/query.pb.go

raw
1 // Copyright 2025 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.35.2
18 // protoc v4.25.7
19 // source: google/firestore/v1/query.proto
20
21 package firestorepb
22
23 import (
24 _ "google.golang.org/genproto/googleapis/api/annotations"
25 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
26 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
27 wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
28 reflect "reflect"
29 sync "sync"
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_v1_query_proto_enumTypes[0].Descriptor()
77 }
78
79 func (StructuredQuery_Direction) Type() protoreflect.EnumType {
80 return &file_google_firestore_v1_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_v1_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 // Documents are required to satisfy all of the combined filters.
99 StructuredQuery_CompositeFilter_AND StructuredQuery_CompositeFilter_Operator = 1
100 // Documents are required to satisfy at least one of the combined filters.
101 StructuredQuery_CompositeFilter_OR StructuredQuery_CompositeFilter_Operator = 2
102 )
103
104 // Enum value maps for StructuredQuery_CompositeFilter_Operator.
105 var (
106 StructuredQuery_CompositeFilter_Operator_name = map[int32]string{
107 0: "OPERATOR_UNSPECIFIED",
108 1: "AND",
109 2: "OR",
110 }
111 StructuredQuery_CompositeFilter_Operator_value = map[string]int32{
112 "OPERATOR_UNSPECIFIED": 0,
113 "AND": 1,
114 "OR": 2,
115 }
116 )
117
118 func (x StructuredQuery_CompositeFilter_Operator) Enum() *StructuredQuery_CompositeFilter_Operator {
119 p := new(StructuredQuery_CompositeFilter_Operator)
120 *p = x
121 return p
122 }
123
124 func (x StructuredQuery_CompositeFilter_Operator) String() string {
125 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
126 }
127
128 func (StructuredQuery_CompositeFilter_Operator) Descriptor() protoreflect.EnumDescriptor {
129 return file_google_firestore_v1_query_proto_enumTypes[1].Descriptor()
130 }
131
132 func (StructuredQuery_CompositeFilter_Operator) Type() protoreflect.EnumType {
133 return &file_google_firestore_v1_query_proto_enumTypes[1]
134 }
135
136 func (x StructuredQuery_CompositeFilter_Operator) Number() protoreflect.EnumNumber {
137 return protoreflect.EnumNumber(x)
138 }
139
140 // Deprecated: Use StructuredQuery_CompositeFilter_Operator.Descriptor instead.
141 func (StructuredQuery_CompositeFilter_Operator) EnumDescriptor() ([]byte, []int) {
142 return file_google_firestore_v1_query_proto_rawDescGZIP(), []int{0, 2, 0}
143 }
144
145 // A field filter operator.
146 type StructuredQuery_FieldFilter_Operator int32
147
148 const (
149 // Unspecified. This value must not be used.
150 StructuredQuery_FieldFilter_OPERATOR_UNSPECIFIED StructuredQuery_FieldFilter_Operator = 0
151 // The given `field` is less than the given `value`.
152 //
153 // Requires:
154 //
155 // * That `field` come first in `order_by`.
156 StructuredQuery_FieldFilter_LESS_THAN StructuredQuery_FieldFilter_Operator = 1
157 // The given `field` is less than or equal to the given `value`.
158 //
159 // Requires:
160 //
161 // * That `field` come first in `order_by`.
162 StructuredQuery_FieldFilter_LESS_THAN_OR_EQUAL StructuredQuery_FieldFilter_Operator = 2
163 // The given `field` is greater than the given `value`.
164 //
165 // Requires:
166 //
167 // * That `field` come first in `order_by`.
168 StructuredQuery_FieldFilter_GREATER_THAN StructuredQuery_FieldFilter_Operator = 3
169 // The given `field` is greater than or equal to the given `value`.
170 //
171 // Requires:
172 //
173 // * That `field` come first in `order_by`.
174 StructuredQuery_FieldFilter_GREATER_THAN_OR_EQUAL StructuredQuery_FieldFilter_Operator = 4
175 // The given `field` is equal to the given `value`.
176 StructuredQuery_FieldFilter_EQUAL StructuredQuery_FieldFilter_Operator = 5
177 // The given `field` is not equal to the given `value`.
178 //
179 // Requires:
180 //
181 // * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
182 // * That `field` comes first in the `order_by`.
183 StructuredQuery_FieldFilter_NOT_EQUAL StructuredQuery_FieldFilter_Operator = 6
184 // The given `field` is an array that contains the given `value`.
185 StructuredQuery_FieldFilter_ARRAY_CONTAINS StructuredQuery_FieldFilter_Operator = 7
186 // The given `field` is equal to at least one value in the given array.
187 //
188 // Requires:
189 //
190 // - That `value` is a non-empty `ArrayValue`, subject to disjunction
191 // limits.
192 // - No `NOT_IN` filters in the same query.
193 StructuredQuery_FieldFilter_IN StructuredQuery_FieldFilter_Operator = 8
194 // The given `field` is an array that contains any of the values in the
195 // given array.
196 //
197 // Requires:
198 //
199 // - That `value` is a non-empty `ArrayValue`, subject to disjunction
200 // limits.
201 // - No other `ARRAY_CONTAINS_ANY` filters within the same disjunction.
202 // - No `NOT_IN` filters in the same query.
203 StructuredQuery_FieldFilter_ARRAY_CONTAINS_ANY StructuredQuery_FieldFilter_Operator = 9
204 // The value of the `field` is not in the given array.
205 //
206 // Requires:
207 //
208 // - That `value` is a non-empty `ArrayValue` with at most 10 values.
209 // - No other `OR`, `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`, `NOT_EQUAL`,
210 // `IS_NOT_NULL`, or `IS_NOT_NAN`.
211 // - That `field` comes first in the `order_by`.
212 StructuredQuery_FieldFilter_NOT_IN StructuredQuery_FieldFilter_Operator = 10
213 )
214
215 // Enum value maps for StructuredQuery_FieldFilter_Operator.
216 var (
217 StructuredQuery_FieldFilter_Operator_name = map[int32]string{
218 0: "OPERATOR_UNSPECIFIED",
219 1: "LESS_THAN",
220 2: "LESS_THAN_OR_EQUAL",
221 3: "GREATER_THAN",
222 4: "GREATER_THAN_OR_EQUAL",
223 5: "EQUAL",
224 6: "NOT_EQUAL",
225 7: "ARRAY_CONTAINS",
226 8: "IN",
227 9: "ARRAY_CONTAINS_ANY",
228 10: "NOT_IN",
229 }
230 StructuredQuery_FieldFilter_Operator_value = map[string]int32{
231 "OPERATOR_UNSPECIFIED": 0,
232 "LESS_THAN": 1,
233 "LESS_THAN_OR_EQUAL": 2,
234 "GREATER_THAN": 3,
235 "GREATER_THAN_OR_EQUAL": 4,
236 "EQUAL": 5,
237 "NOT_EQUAL": 6,
238 "ARRAY_CONTAINS": 7,
239 "IN": 8,
240 "ARRAY_CONTAINS_ANY": 9,
241 "NOT_IN": 10,
242 }
243 )
244
245 func (x StructuredQuery_FieldFilter_Operator) Enum() *StructuredQuery_FieldFilter_Operator {
246 p := new(StructuredQuery_FieldFilter_Operator)
247 *p = x
248 return p
249 }
250
251 func (x StructuredQuery_FieldFilter_Operator) String() string {
252 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
253 }
254
255 func (StructuredQuery_FieldFilter_Operator) Descriptor() protoreflect.EnumDescriptor {
256 return file_google_firestore_v1_query_proto_enumTypes[2].Descriptor()
257 }
258
259 func (StructuredQuery_FieldFilter_Operator) Type() protoreflect.EnumType {
260 return &file_google_firestore_v1_query_proto_enumTypes[2]
261 }
262
263 func (x StructuredQuery_FieldFilter_Operator) Number() protoreflect.EnumNumber {
264 return protoreflect.EnumNumber(x)
265 }
266
267 // Deprecated: Use StructuredQuery_FieldFilter_Operator.Descriptor instead.
268 func (StructuredQuery_FieldFilter_Operator) EnumDescriptor() ([]byte, []int) {
269 return file_google_firestore_v1_query_proto_rawDescGZIP(), []int{0, 3, 0}
270 }
271
272 // A unary operator.
273 type StructuredQuery_UnaryFilter_Operator int32
274
275 const (
276 // Unspecified. This value must not be used.
277 StructuredQuery_UnaryFilter_OPERATOR_UNSPECIFIED StructuredQuery_UnaryFilter_Operator = 0
278 // The given `field` is equal to `NaN`.
279 StructuredQuery_UnaryFilter_IS_NAN StructuredQuery_UnaryFilter_Operator = 2
280 // The given `field` is equal to `NULL`.
281 StructuredQuery_UnaryFilter_IS_NULL StructuredQuery_UnaryFilter_Operator = 3
282 // The given `field` is not equal to `NaN`.
283 //
284 // Requires:
285 //
286 // * No other `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_NAN StructuredQuery_UnaryFilter_Operator = 4
289 // The given `field` is not equal to `NULL`.
290 //
291 // Requires:
292 //
293 // * A single `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
294 // * That `field` comes first in the `order_by`.
295 StructuredQuery_UnaryFilter_IS_NOT_NULL StructuredQuery_UnaryFilter_Operator = 5
296 )
297
298 // Enum value maps for StructuredQuery_UnaryFilter_Operator.
299 var (
300 StructuredQuery_UnaryFilter_Operator_name = map[int32]string{
301 0: "OPERATOR_UNSPECIFIED",
302 2: "IS_NAN",
303 3: "IS_NULL",
304 4: "IS_NOT_NAN",
305 5: "IS_NOT_NULL",
306 }
307 StructuredQuery_UnaryFilter_Operator_value = map[string]int32{
308 "OPERATOR_UNSPECIFIED": 0,
309 "IS_NAN": 2,
310 "IS_NULL": 3,
311 "IS_NOT_NAN": 4,
312 "IS_NOT_NULL": 5,
313 }
314 )
315
316 func (x StructuredQuery_UnaryFilter_Operator) Enum() *StructuredQuery_UnaryFilter_Operator {
317 p := new(StructuredQuery_UnaryFilter_Operator)
318 *p = x
319 return p
320 }
321
322 func (x StructuredQuery_UnaryFilter_Operator) String() string {
323 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
324 }
325
326 func (StructuredQuery_UnaryFilter_Operator) Descriptor() protoreflect.EnumDescriptor {
327 return file_google_firestore_v1_query_proto_enumTypes[3].Descriptor()
328 }
329
330 func (StructuredQuery_UnaryFilter_Operator) Type() protoreflect.EnumType {
331 return &file_google_firestore_v1_query_proto_enumTypes[3]
332 }
333
334 func (x StructuredQuery_UnaryFilter_Operator) Number() protoreflect.EnumNumber {
335 return protoreflect.EnumNumber(x)
336 }
337
338 // Deprecated: Use StructuredQuery_UnaryFilter_Operator.Descriptor instead.
339 func (StructuredQuery_UnaryFilter_Operator) EnumDescriptor() ([]byte, []int) {
340 return file_google_firestore_v1_query_proto_rawDescGZIP(), []int{0, 4, 0}
341 }
342
343 // The distance measure to use when comparing vectors.
344 type StructuredQuery_FindNearest_DistanceMeasure int32
345
346 const (
347 // Should not be set.
348 StructuredQuery_FindNearest_DISTANCE_MEASURE_UNSPECIFIED StructuredQuery_FindNearest_DistanceMeasure = 0
349 // Measures the EUCLIDEAN distance between the vectors. See
350 // [Euclidean](https://en.wikipedia.org/wiki/Euclidean_distance) to learn
351 // more. The resulting distance decreases the more similar two vectors
352 // are.
353 StructuredQuery_FindNearest_EUCLIDEAN StructuredQuery_FindNearest_DistanceMeasure = 1
354 // COSINE distance compares vectors based on the angle between them, which
355 // allows you to measure similarity that isn't based on the vectors
356 // magnitude. We recommend using DOT_PRODUCT with unit normalized vectors
357 // instead of COSINE distance, which is mathematically equivalent with
358 // better performance. See [Cosine
359 // Similarity](https://en.wikipedia.org/wiki/Cosine_similarity) to learn
360 // more about COSINE similarity and COSINE distance. The resulting
361 // COSINE distance decreases the more similar two vectors are.
362 StructuredQuery_FindNearest_COSINE StructuredQuery_FindNearest_DistanceMeasure = 2
363 // Similar to cosine but is affected by the magnitude of the vectors. See
364 // [Dot Product](https://en.wikipedia.org/wiki/Dot_product) to learn more.
365 // The resulting distance increases the more similar two vectors are.
366 StructuredQuery_FindNearest_DOT_PRODUCT StructuredQuery_FindNearest_DistanceMeasure = 3
367 )
368
369 // Enum value maps for StructuredQuery_FindNearest_DistanceMeasure.
370 var (
371 StructuredQuery_FindNearest_DistanceMeasure_name = map[int32]string{
372 0: "DISTANCE_MEASURE_UNSPECIFIED",
373 1: "EUCLIDEAN",
374 2: "COSINE",
375 3: "DOT_PRODUCT",
376 }
377 StructuredQuery_FindNearest_DistanceMeasure_value = map[string]int32{
378 "DISTANCE_MEASURE_UNSPECIFIED": 0,
379 "EUCLIDEAN": 1,
380 "COSINE": 2,
381 "DOT_PRODUCT": 3,
382 }
383 )
384
385 func (x StructuredQuery_FindNearest_DistanceMeasure) Enum() *StructuredQuery_FindNearest_DistanceMeasure {
386 p := new(StructuredQuery_FindNearest_DistanceMeasure)
387 *p = x
388 return p
389 }
390
391 func (x StructuredQuery_FindNearest_DistanceMeasure) String() string {
392 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
393 }
394
395 func (StructuredQuery_FindNearest_DistanceMeasure) Descriptor() protoreflect.EnumDescriptor {
396 return file_google_firestore_v1_query_proto_enumTypes[4].Descriptor()
397 }
398
399 func (StructuredQuery_FindNearest_DistanceMeasure) Type() protoreflect.EnumType {
400 return &file_google_firestore_v1_query_proto_enumTypes[4]
401 }
402
403 func (x StructuredQuery_FindNearest_DistanceMeasure) Number() protoreflect.EnumNumber {
404 return protoreflect.EnumNumber(x)
405 }
406
407 // Deprecated: Use StructuredQuery_FindNearest_DistanceMeasure.Descriptor instead.
408 func (StructuredQuery_FindNearest_DistanceMeasure) EnumDescriptor() ([]byte, []int) {
409 return file_google_firestore_v1_query_proto_rawDescGZIP(), []int{0, 8, 0}
410 }
411
412 // A Firestore query.
413 //
414 // The query stages are executed in the following order:
415 // 1. from
416 // 2. where
417 // 3. select
418 // 4. order_by + start_at + end_at
419 // 5. offset
420 // 6. limit
421 // 7. find_nearest
422 type StructuredQuery struct {
423 state protoimpl.MessageState
424 sizeCache protoimpl.SizeCache
425 unknownFields protoimpl.UnknownFields
426
427 // Optional sub-set of the fields to return.
428 //
429 // This acts as a [DocumentMask][google.firestore.v1.DocumentMask] over the
430 // documents returned from a query. When not set, assumes that the caller
431 // wants all fields returned.
432 Select *StructuredQuery_Projection `protobuf:"bytes,1,opt,name=select,proto3" json:"select,omitempty"`
433 // The collections to query.
434 From []*StructuredQuery_CollectionSelector `protobuf:"bytes,2,rep,name=from,proto3" json:"from,omitempty"`
435 // The filter to apply.
436 Where *StructuredQuery_Filter `protobuf:"bytes,3,opt,name=where,proto3" json:"where,omitempty"`
437 // The order to apply to the query results.
438 //
439 // Firestore allows callers to provide a full ordering, a partial ordering, or
440 // no ordering at all. In all cases, Firestore guarantees a stable ordering
441 // through the following rules:
442 //
443 // - The `order_by` is required to reference all fields used with an
444 // inequality filter.
445 // - All fields that are required to be in the `order_by` but are not already
446 // present are appended in lexicographical ordering of the field name.
447 // - If an order on `__name__` is not specified, it is appended by default.
448 //
449 // Fields are appended with the same sort direction as the last order
450 // specified, or 'ASCENDING' if no order was specified. For example:
451 //
452 // - `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
453 // - `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
454 // - `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
455 // - `WHERE __name__ > ... AND a > 1` becomes
456 // `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
457 OrderBy []*StructuredQuery_Order `protobuf:"bytes,4,rep,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
458 // A potential prefix of a position in the result set to start the query at.
459 //
460 // The ordering of the result set is based on the `ORDER BY` clause of the
461 // original query.
462 //
463 // ```
464 // SELECT * FROM k WHERE a = 1 AND b > 2 ORDER BY b ASC, __name__ ASC;
465 // ```
466 //
467 // This query's results are ordered by `(b ASC, __name__ ASC)`.
468 //
469 // Cursors can reference either the full ordering or a prefix of the location,
470 // though it cannot reference more fields than what are in the provided
471 // `ORDER BY`.
472 //
473 // Continuing off the example above, attaching the following start cursors
474 // will have varying impact:
475 //
476 // - `START BEFORE (2, /k/123)`: start the query right before `a = 1 AND
477 // b > 2 AND __name__ > /k/123`.
478 // - `START AFTER (10)`: start the query right after `a = 1 AND b > 10`.
479 //
480 // Unlike `OFFSET` which requires scanning over the first N results to skip,
481 // a start cursor allows the query to begin at a logical position. This
482 // position is not required to match an actual result, it will scan forward
483 // from this position to find the next document.
484 //
485 // Requires:
486 //
487 // - The number of values cannot be greater than the number of fields
488 // specified in the `ORDER BY` clause.
489 StartAt *Cursor `protobuf:"bytes,7,opt,name=start_at,json=startAt,proto3" json:"start_at,omitempty"`
490 // A potential prefix of a position in the result set to end the query at.
491 //
492 // This is similar to `START_AT` but with it controlling the end position
493 // rather than the start position.
494 //
495 // Requires:
496 //
497 // - The number of values cannot be greater than the number of fields
498 // specified in the `ORDER BY` clause.
499 EndAt *Cursor `protobuf:"bytes,8,opt,name=end_at,json=endAt,proto3" json:"end_at,omitempty"`
500 // The number of documents to skip before returning the first result.
501 //
502 // This applies after the constraints specified by the `WHERE`, `START AT`, &
503 // `END AT` but before the `LIMIT` clause.
504 //
505 // Requires:
506 //
507 // * The value must be greater than or equal to zero if specified.
508 Offset int32 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"`
509 // The maximum number of results to return.
510 //
511 // Applies after all other constraints.
512 //
513 // Requires:
514 //
515 // * The value must be greater than or equal to zero if specified.
516 Limit *wrapperspb.Int32Value `protobuf:"bytes,5,opt,name=limit,proto3" json:"limit,omitempty"`
517 // Optional. A potential nearest neighbors search.
518 //
519 // Applies after all other filters and ordering.
520 //
521 // Finds the closest vector embeddings to the given query vector.
522 FindNearest *StructuredQuery_FindNearest `protobuf:"bytes,9,opt,name=find_nearest,json=findNearest,proto3" json:"find_nearest,omitempty"`
523 }
524
525 func (x *StructuredQuery) Reset() {
526 *x = StructuredQuery{}
527 mi := &file_google_firestore_v1_query_proto_msgTypes[0]
528 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
529 ms.StoreMessageInfo(mi)
530 }
531
532 func (x *StructuredQuery) String() string {
533 return protoimpl.X.MessageStringOf(x)
534 }
535
536 func (*StructuredQuery) ProtoMessage() {}
537
538 func (x *StructuredQuery) ProtoReflect() protoreflect.Message {
539 mi := &file_google_firestore_v1_query_proto_msgTypes[0]
540 if x != nil {
541 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
542 if ms.LoadMessageInfo() == nil {
543 ms.StoreMessageInfo(mi)
544 }
545 return ms
546 }
547 return mi.MessageOf(x)
548 }
549
550 // Deprecated: Use StructuredQuery.ProtoReflect.Descriptor instead.
551 func (*StructuredQuery) Descriptor() ([]byte, []int) {
552 return file_google_firestore_v1_query_proto_rawDescGZIP(), []int{0}
553 }
554
555 func (x *StructuredQuery) GetSelect() *StructuredQuery_Projection {
556 if x != nil {
557 return x.Select
558 }
559 return nil
560 }
561
562 func (x *StructuredQuery) GetFrom() []*StructuredQuery_CollectionSelector {
563 if x != nil {
564 return x.From
565 }
566 return nil
567 }
568
569 func (x *StructuredQuery) GetWhere() *StructuredQuery_Filter {
570 if x != nil {
571 return x.Where
572 }
573 return nil
574 }
575
576 func (x *StructuredQuery) GetOrderBy() []*StructuredQuery_Order {
577 if x != nil {
578 return x.OrderBy
579 }
580 return nil
581 }
582
583 func (x *StructuredQuery) GetStartAt() *Cursor {
584 if x != nil {
585 return x.StartAt
586 }
587 return nil
588 }
589
590 func (x *StructuredQuery) GetEndAt() *Cursor {
591 if x != nil {
592 return x.EndAt
593 }
594 return nil
595 }
596
597 func (x *StructuredQuery) GetOffset() int32 {
598 if x != nil {
599 return x.Offset
600 }
601 return 0
602 }
603
604 func (x *StructuredQuery) GetLimit() *wrapperspb.Int32Value {
605 if x != nil {
606 return x.Limit
607 }
608 return nil
609 }
610
611 func (x *StructuredQuery) GetFindNearest() *StructuredQuery_FindNearest {
612 if x != nil {
613 return x.FindNearest
614 }
615 return nil
616 }
617
618 // Firestore query for running an aggregation over a
619 // [StructuredQuery][google.firestore.v1.StructuredQuery].
620 type StructuredAggregationQuery struct {
621 state protoimpl.MessageState
622 sizeCache protoimpl.SizeCache
623 unknownFields protoimpl.UnknownFields
624
625 // The base query to aggregate over.
626 //
627 // Types that are assignable to QueryType:
628 //
629 // *StructuredAggregationQuery_StructuredQuery
630 QueryType isStructuredAggregationQuery_QueryType `protobuf_oneof:"query_type"`
631 // Optional. Series of aggregations to apply over the results of the
632 // `structured_query`.
633 //
634 // Requires:
635 //
636 // * A minimum of one and maximum of five aggregations per query.
637 Aggregations []*StructuredAggregationQuery_Aggregation `protobuf:"bytes,3,rep,name=aggregations,proto3" json:"aggregations,omitempty"`
638 }
639
640 func (x *StructuredAggregationQuery) Reset() {
641 *x = StructuredAggregationQuery{}
642 mi := &file_google_firestore_v1_query_proto_msgTypes[1]
643 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
644 ms.StoreMessageInfo(mi)
645 }
646
647 func (x *StructuredAggregationQuery) String() string {
648 return protoimpl.X.MessageStringOf(x)
649 }
650
651 func (*StructuredAggregationQuery) ProtoMessage() {}
652
653 func (x *StructuredAggregationQuery) ProtoReflect() protoreflect.Message {
654 mi := &file_google_firestore_v1_query_proto_msgTypes[1]
655 if x != nil {
656 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
657 if ms.LoadMessageInfo() == nil {
658 ms.StoreMessageInfo(mi)
659 }
660 return ms
661 }
662 return mi.MessageOf(x)
663 }
664
665 // Deprecated: Use StructuredAggregationQuery.ProtoReflect.Descriptor instead.
666 func (*StructuredAggregationQuery) Descriptor() ([]byte, []int) {
667 return file_google_firestore_v1_query_proto_rawDescGZIP(), []int{1}
668 }
669
670 func (m *StructuredAggregationQuery) GetQueryType() isStructuredAggregationQuery_QueryType {
671 if m != nil {
672 return m.QueryType
673 }
674 return nil
675 }
676
677 func (x *StructuredAggregationQuery) GetStructuredQuery() *StructuredQuery {
678 if x, ok := x.GetQueryType().(*StructuredAggregationQuery_StructuredQuery); ok {
679 return x.StructuredQuery
680 }
681 return nil
682 }
683
684 func (x *StructuredAggregationQuery) GetAggregations() []*StructuredAggregationQuery_Aggregation {
685 if x != nil {
686 return x.Aggregations
687 }
688 return nil
689 }
690
691 type isStructuredAggregationQuery_QueryType interface {
692 isStructuredAggregationQuery_QueryType()
693 }
694
695 type StructuredAggregationQuery_StructuredQuery struct {
696 // Nested structured query.
697 StructuredQuery *StructuredQuery `protobuf:"bytes,1,opt,name=structured_query,json=structuredQuery,proto3,oneof"`
698 }
699
700 func (*StructuredAggregationQuery_StructuredQuery) isStructuredAggregationQuery_QueryType() {}
701
702 // A position in a query result set.
703 type Cursor struct {
704 state protoimpl.MessageState
705 sizeCache protoimpl.SizeCache
706 unknownFields protoimpl.UnknownFields
707
708 // The values that represent a position, in the order they appear in
709 // the order by clause of a query.
710 //
711 // Can contain fewer values than specified in the order by clause.
712 Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
713 // If the position is just before or just after the given values, relative
714 // to the sort order defined by the query.
715 Before bool `protobuf:"varint,2,opt,name=before,proto3" json:"before,omitempty"`
716 }
717
718 func (x *Cursor) Reset() {
719 *x = Cursor{}
720 mi := &file_google_firestore_v1_query_proto_msgTypes[2]
721 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
722 ms.StoreMessageInfo(mi)
723 }
724
725 func (x *Cursor) String() string {
726 return protoimpl.X.MessageStringOf(x)
727 }
728
729 func (*Cursor) ProtoMessage() {}
730
731 func (x *Cursor) ProtoReflect() protoreflect.Message {
732 mi := &file_google_firestore_v1_query_proto_msgTypes[2]
733 if x != nil {
734 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
735 if ms.LoadMessageInfo() == nil {
736 ms.StoreMessageInfo(mi)
737 }
738 return ms
739 }
740 return mi.MessageOf(x)
741 }
742
743 // Deprecated: Use Cursor.ProtoReflect.Descriptor instead.
744 func (*Cursor) Descriptor() ([]byte, []int) {
745 return file_google_firestore_v1_query_proto_rawDescGZIP(), []int{2}
746 }
747
748 func (x *Cursor) GetValues() []*Value {
749 if x != nil {
750 return x.Values
751 }
752 return nil
753 }
754
755 func (x *Cursor) GetBefore() bool {
756 if x != nil {
757 return x.Before
758 }
759 return false
760 }
761
762 // A selection of a collection, such as `messages as m1`.
763 type StructuredQuery_CollectionSelector struct {
764 state protoimpl.MessageState
765 sizeCache protoimpl.SizeCache
766 unknownFields protoimpl.UnknownFields
767
768 // The collection ID.
769 // When set, selects only collections with this ID.
770 CollectionId string `protobuf:"bytes,2,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"`
771 // When false, selects only collections that are immediate children of
772 // the `parent` specified in the containing `RunQueryRequest`.
773 // When true, selects all descendant collections.
774 AllDescendants bool `protobuf:"varint,3,opt,name=all_descendants,json=allDescendants,proto3" json:"all_descendants,omitempty"`
775 }
776
777 func (x *StructuredQuery_CollectionSelector) Reset() {
778 *x = StructuredQuery_CollectionSelector{}
779 mi := &file_google_firestore_v1_query_proto_msgTypes[3]
780 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
781 ms.StoreMessageInfo(mi)
782 }
783
784 func (x *StructuredQuery_CollectionSelector) String() string {
785 return protoimpl.X.MessageStringOf(x)
786 }
787
788 func (*StructuredQuery_CollectionSelector) ProtoMessage() {}
789
790 func (x *StructuredQuery_CollectionSelector) ProtoReflect() protoreflect.Message {
791 mi := &file_google_firestore_v1_query_proto_msgTypes[3]
792 if x != nil {
793 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
794 if ms.LoadMessageInfo() == nil {
795 ms.StoreMessageInfo(mi)
796 }
797 return ms
798 }
799 return mi.MessageOf(x)
800 }
801
802 // Deprecated: Use StructuredQuery_CollectionSelector.ProtoReflect.Descriptor instead.
803 func (*StructuredQuery_CollectionSelector) Descriptor() ([]byte, []int) {
804 return file_google_firestore_v1_query_proto_rawDescGZIP(), []int{0, 0}
805 }
806
807 func (x *StructuredQuery_CollectionSelector) GetCollectionId() string {
808 if x != nil {
809 return x.CollectionId
810 }
811 return ""
812 }
813
814 func (x *StructuredQuery_CollectionSelector) GetAllDescendants() bool {
815 if x != nil {
816 return x.AllDescendants
817 }
818 return false
819 }
820
821 // A filter.
822 type StructuredQuery_Filter struct {
823 state protoimpl.MessageState
824 sizeCache protoimpl.SizeCache
825 unknownFields protoimpl.UnknownFields
826
827 // The type of filter.
828 //
829 // Types that are assignable to FilterType:
830 //
831 // *StructuredQuery_Filter_CompositeFilter
832 // *StructuredQuery_Filter_FieldFilter
833 // *StructuredQuery_Filter_UnaryFilter
834 FilterType isStructuredQuery_Filter_FilterType `protobuf_oneof:"filter_type"`
835 }
836
837 func (x *StructuredQuery_Filter) Reset() {
838 *x = StructuredQuery_Filter{}
839 mi := &file_google_firestore_v1_query_proto_msgTypes[4]
840 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
841 ms.StoreMessageInfo(mi)
842 }
843
844 func (x *StructuredQuery_Filter) String() string {
845 return protoimpl.X.MessageStringOf(x)
846 }
847
848 func (*StructuredQuery_Filter) ProtoMessage() {}
849
850 func (x *StructuredQuery_Filter) ProtoReflect() protoreflect.Message {
851 mi := &file_google_firestore_v1_query_proto_msgTypes[4]
852 if x != nil {
853 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
854 if ms.LoadMessageInfo() == nil {
855 ms.StoreMessageInfo(mi)
856 }
857 return ms
858 }
859 return mi.MessageOf(x)
860 }
861
862 // Deprecated: Use StructuredQuery_Filter.ProtoReflect.Descriptor instead.
863 func (*StructuredQuery_Filter) Descriptor() ([]byte, []int) {
864 return file_google_firestore_v1_query_proto_rawDescGZIP(), []int{0, 1}
865 }
866
867 func (m *StructuredQuery_Filter) GetFilterType() isStructuredQuery_Filter_FilterType {
868 if m != nil {
869 return m.FilterType
870 }
871 return nil
872 }
873
874 func (x *StructuredQuery_Filter) GetCompositeFilter() *StructuredQuery_CompositeFilter {
875 if x, ok := x.GetFilterType().(*StructuredQuery_Filter_CompositeFilter); ok {
876 return x.CompositeFilter
877 }
878 return nil
879 }
880
881 func (x *StructuredQuery_Filter) GetFieldFilter() *StructuredQuery_FieldFilter {
882 if x, ok := x.GetFilterType().(*StructuredQuery_Filter_FieldFilter); ok {
883 return x.FieldFilter
884 }
885 return nil
886 }
887
888 func (x *StructuredQuery_Filter) GetUnaryFilter() *StructuredQuery_UnaryFilter {
889 if x, ok := x.GetFilterType().(*StructuredQuery_Filter_UnaryFilter); ok {
890 return x.UnaryFilter
891 }
892 return nil
893 }
894
895 type isStructuredQuery_Filter_FilterType interface {
896 isStructuredQuery_Filter_FilterType()
897 }
898
899 type StructuredQuery_Filter_CompositeFilter struct {
900 // A composite filter.
901 CompositeFilter *StructuredQuery_CompositeFilter `protobuf:"bytes,1,opt,name=composite_filter,json=compositeFilter,proto3,oneof"`
902 }
903
904 type StructuredQuery_Filter_FieldFilter struct {
905 // A filter on a document field.
906 FieldFilter *StructuredQuery_FieldFilter `protobuf:"bytes,2,opt,name=field_filter,json=fieldFilter,proto3,oneof"`
907 }
908
909 type StructuredQuery_Filter_UnaryFilter struct {
910 // A filter that takes exactly one argument.
911 UnaryFilter *StructuredQuery_UnaryFilter `protobuf:"bytes,3,opt,name=unary_filter,json=unaryFilter,proto3,oneof"`
912 }
913
914 func (*StructuredQuery_Filter_CompositeFilter) isStructuredQuery_Filter_FilterType() {}
915
916 func (*StructuredQuery_Filter_FieldFilter) isStructuredQuery_Filter_FilterType() {}
917
918 func (*StructuredQuery_Filter_UnaryFilter) isStructuredQuery_Filter_FilterType() {}
919
920 // A filter that merges multiple other filters using the given operator.
921 type StructuredQuery_CompositeFilter struct {
922 state protoimpl.MessageState
923 sizeCache protoimpl.SizeCache
924 unknownFields protoimpl.UnknownFields
925
926 // The operator for combining multiple filters.
927 Op StructuredQuery_CompositeFilter_Operator `protobuf:"varint,1,opt,name=op,proto3,enum=google.firestore.v1.StructuredQuery_CompositeFilter_Operator" json:"op,omitempty"`
928 // The list of filters to combine.
929 //
930 // Requires:
931 //
932 // * At least one filter is present.
933 Filters []*StructuredQuery_Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"`
934 }
935
936 func (x *StructuredQuery_CompositeFilter) Reset() {
937 *x = StructuredQuery_CompositeFilter{}
938 mi := &file_google_firestore_v1_query_proto_msgTypes[5]
939 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
940 ms.StoreMessageInfo(mi)
941 }
942
943 func (x *StructuredQuery_CompositeFilter) String() string {
944 return protoimpl.X.MessageStringOf(x)
945 }
946
947 func (*StructuredQuery_CompositeFilter) ProtoMessage() {}
948
949 func (x *StructuredQuery_CompositeFilter) ProtoReflect() protoreflect.Message {
950 mi := &file_google_firestore_v1_query_proto_msgTypes[5]
951 if x != nil {
952 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
953 if ms.LoadMessageInfo() == nil {
954 ms.StoreMessageInfo(mi)
955 }
956 return ms
957 }
958 return mi.MessageOf(x)
959 }
960
961 // Deprecated: Use StructuredQuery_CompositeFilter.ProtoReflect.Descriptor instead.
962 func (*StructuredQuery_CompositeFilter) Descriptor() ([]byte, []int) {
963 return file_google_firestore_v1_query_proto_rawDescGZIP(), []int{0, 2}
964 }
965
966 func (x *StructuredQuery_CompositeFilter) GetOp() StructuredQuery_CompositeFilter_Operator {
967 if x != nil {
968 return x.Op
969 }
970 return StructuredQuery_CompositeFilter_OPERATOR_UNSPECIFIED
971 }
972
973 func (x *StructuredQuery_CompositeFilter) GetFilters() []*StructuredQuery_Filter {
974 if x != nil {
975 return x.Filters
976 }
977 return nil
978 }
979
980 // A filter on a specific field.
981 type StructuredQuery_FieldFilter struct {
982 state protoimpl.MessageState
983 sizeCache protoimpl.SizeCache
984 unknownFields protoimpl.UnknownFields
985
986 // The field to filter by.
987 Field *StructuredQuery_FieldReference `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
988 // The operator to filter by.
989 Op StructuredQuery_FieldFilter_Operator `protobuf:"varint,2,opt,name=op,proto3,enum=google.firestore.v1.StructuredQuery_FieldFilter_Operator" json:"op,omitempty"`
990 // The value to compare to.
991 Value *Value `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
992 }
993
994 func (x *StructuredQuery_FieldFilter) Reset() {
995 *x = StructuredQuery_FieldFilter{}
996 mi := &file_google_firestore_v1_query_proto_msgTypes[6]
997 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
998 ms.StoreMessageInfo(mi)
999 }
1000
1001 func (x *StructuredQuery_FieldFilter) String() string {
1002 return protoimpl.X.MessageStringOf(x)
1003 }
1004
1005 func (*StructuredQuery_FieldFilter) ProtoMessage() {}
1006
1007 func (x *StructuredQuery_FieldFilter) ProtoReflect() protoreflect.Message {
1008 mi := &file_google_firestore_v1_query_proto_msgTypes[6]
1009 if x != nil {
1010 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1011 if ms.LoadMessageInfo() == nil {
1012 ms.StoreMessageInfo(mi)
1013 }
1014 return ms
1015 }
1016 return mi.MessageOf(x)
1017 }
1018
1019 // Deprecated: Use StructuredQuery_FieldFilter.ProtoReflect.Descriptor instead.
1020 func (*StructuredQuery_FieldFilter) Descriptor() ([]byte, []int) {
1021 return file_google_firestore_v1_query_proto_rawDescGZIP(), []int{0, 3}
1022 }
1023
1024 func (x *StructuredQuery_FieldFilter) GetField() *StructuredQuery_FieldReference {
1025 if x != nil {
1026 return x.Field
1027 }
1028 return nil
1029 }
1030
1031 func (x *StructuredQuery_FieldFilter) GetOp() StructuredQuery_FieldFilter_Operator {
1032 if x != nil {
1033 return x.Op
1034 }
1035 return StructuredQuery_FieldFilter_OPERATOR_UNSPECIFIED
1036 }
1037
1038 func (x *StructuredQuery_FieldFilter) GetValue() *Value {
1039 if x != nil {
1040 return x.Value
1041 }
1042 return nil
1043 }
1044
1045 // A filter with a single operand.
1046 type StructuredQuery_UnaryFilter struct {
1047 state protoimpl.MessageState
1048 sizeCache protoimpl.SizeCache
1049 unknownFields protoimpl.UnknownFields
1050
1051 // The unary operator to apply.
1052 Op StructuredQuery_UnaryFilter_Operator `protobuf:"varint,1,opt,name=op,proto3,enum=google.firestore.v1.StructuredQuery_UnaryFilter_Operator" json:"op,omitempty"`
1053 // The argument to the filter.
1054 //
1055 // Types that are assignable to OperandType:
1056 //
1057 // *StructuredQuery_UnaryFilter_Field
1058 OperandType isStructuredQuery_UnaryFilter_OperandType `protobuf_oneof:"operand_type"`
1059 }
1060
1061 func (x *StructuredQuery_UnaryFilter) Reset() {
1062 *x = StructuredQuery_UnaryFilter{}
1063 mi := &file_google_firestore_v1_query_proto_msgTypes[7]
1064 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1065 ms.StoreMessageInfo(mi)
1066 }
1067
1068 func (x *StructuredQuery_UnaryFilter) String() string {
1069 return protoimpl.X.MessageStringOf(x)
1070 }
1071
1072 func (*StructuredQuery_UnaryFilter) ProtoMessage() {}
1073
1074 func (x *StructuredQuery_UnaryFilter) ProtoReflect() protoreflect.Message {
1075 mi := &file_google_firestore_v1_query_proto_msgTypes[7]
1076 if x != nil {
1077 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1078 if ms.LoadMessageInfo() == nil {
1079 ms.StoreMessageInfo(mi)
1080 }
1081 return ms
1082 }
1083 return mi.MessageOf(x)
1084 }
1085
1086 // Deprecated: Use StructuredQuery_UnaryFilter.ProtoReflect.Descriptor instead.
1087 func (*StructuredQuery_UnaryFilter) Descriptor() ([]byte, []int) {
1088 return file_google_firestore_v1_query_proto_rawDescGZIP(), []int{0, 4}
1089 }
1090
1091 func (x *StructuredQuery_UnaryFilter) GetOp() StructuredQuery_UnaryFilter_Operator {
1092 if x != nil {
1093 return x.Op
1094 }
1095 return StructuredQuery_UnaryFilter_OPERATOR_UNSPECIFIED
1096 }
1097
1098 func (m *StructuredQuery_UnaryFilter) GetOperandType() isStructuredQuery_UnaryFilter_OperandType {
1099 if m != nil {
1100 return m.OperandType
1101 }
1102 return nil
1103 }
1104
1105 func (x *StructuredQuery_UnaryFilter) GetField() *StructuredQuery_FieldReference {
1106 if x, ok := x.GetOperandType().(*StructuredQuery_UnaryFilter_Field); ok {
1107 return x.Field
1108 }
1109 return nil
1110 }
1111
1112 type isStructuredQuery_UnaryFilter_OperandType interface {
1113 isStructuredQuery_UnaryFilter_OperandType()
1114 }
1115
1116 type StructuredQuery_UnaryFilter_Field struct {
1117 // The field to which to apply the operator.
1118 Field *StructuredQuery_FieldReference `protobuf:"bytes,2,opt,name=field,proto3,oneof"`
1119 }
1120
1121 func (*StructuredQuery_UnaryFilter_Field) isStructuredQuery_UnaryFilter_OperandType() {}
1122
1123 // An order on a field.
1124 type StructuredQuery_Order struct {
1125 state protoimpl.MessageState
1126 sizeCache protoimpl.SizeCache
1127 unknownFields protoimpl.UnknownFields
1128
1129 // The field to order by.
1130 Field *StructuredQuery_FieldReference `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
1131 // The direction to order by. Defaults to `ASCENDING`.
1132 Direction StructuredQuery_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=google.firestore.v1.StructuredQuery_Direction" json:"direction,omitempty"`
1133 }
1134
1135 func (x *StructuredQuery_Order) Reset() {
1136 *x = StructuredQuery_Order{}
1137 mi := &file_google_firestore_v1_query_proto_msgTypes[8]
1138 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1139 ms.StoreMessageInfo(mi)
1140 }
1141
1142 func (x *StructuredQuery_Order) String() string {
1143 return protoimpl.X.MessageStringOf(x)
1144 }
1145
1146 func (*StructuredQuery_Order) ProtoMessage() {}
1147
1148 func (x *StructuredQuery_Order) ProtoReflect() protoreflect.Message {
1149 mi := &file_google_firestore_v1_query_proto_msgTypes[8]
1150 if x != nil {
1151 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1152 if ms.LoadMessageInfo() == nil {
1153 ms.StoreMessageInfo(mi)
1154 }
1155 return ms
1156 }
1157 return mi.MessageOf(x)
1158 }
1159
1160 // Deprecated: Use StructuredQuery_Order.ProtoReflect.Descriptor instead.
1161 func (*StructuredQuery_Order) Descriptor() ([]byte, []int) {
1162 return file_google_firestore_v1_query_proto_rawDescGZIP(), []int{0, 5}
1163 }
1164
1165 func (x *StructuredQuery_Order) GetField() *StructuredQuery_FieldReference {
1166 if x != nil {
1167 return x.Field
1168 }
1169 return nil
1170 }
1171
1172 func (x *StructuredQuery_Order) GetDirection() StructuredQuery_Direction {
1173 if x != nil {
1174 return x.Direction
1175 }
1176 return StructuredQuery_DIRECTION_UNSPECIFIED
1177 }
1178
1179 // A reference to a field in a document, ex: `stats.operations`.
1180 type StructuredQuery_FieldReference struct {
1181 state protoimpl.MessageState
1182 sizeCache protoimpl.SizeCache
1183 unknownFields protoimpl.UnknownFields
1184
1185 // A reference to a field in a document.
1186 //
1187 // Requires:
1188 //
1189 // * MUST be a dot-delimited (`.`) string of segments, where each segment
1190 // conforms to [document field name][google.firestore.v1.Document.fields]
1191 // limitations.
1192 FieldPath string `protobuf:"bytes,2,opt,name=field_path,json=fieldPath,proto3" json:"field_path,omitempty"`
1193 }
1194
1195 func (x *StructuredQuery_FieldReference) Reset() {
1196 *x = StructuredQuery_FieldReference{}
1197 mi := &file_google_firestore_v1_query_proto_msgTypes[9]
1198 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1199 ms.StoreMessageInfo(mi)
1200 }
1201
1202 func (x *StructuredQuery_FieldReference) String() string {
1203 return protoimpl.X.MessageStringOf(x)
1204 }
1205
1206 func (*StructuredQuery_FieldReference) ProtoMessage() {}
1207
1208 func (x *StructuredQuery_FieldReference) ProtoReflect() protoreflect.Message {
1209 mi := &file_google_firestore_v1_query_proto_msgTypes[9]
1210 if x != nil {
1211 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1212 if ms.LoadMessageInfo() == nil {
1213 ms.StoreMessageInfo(mi)
1214 }
1215 return ms
1216 }
1217 return mi.MessageOf(x)
1218 }
1219
1220 // Deprecated: Use StructuredQuery_FieldReference.ProtoReflect.Descriptor instead.
1221 func (*StructuredQuery_FieldReference) Descriptor() ([]byte, []int) {
1222 return file_google_firestore_v1_query_proto_rawDescGZIP(), []int{0, 6}
1223 }
1224
1225 func (x *StructuredQuery_FieldReference) GetFieldPath() string {
1226 if x != nil {
1227 return x.FieldPath
1228 }
1229 return ""
1230 }
1231
1232 // The projection of document's fields to return.
1233 type StructuredQuery_Projection struct {
1234 state protoimpl.MessageState
1235 sizeCache protoimpl.SizeCache
1236 unknownFields protoimpl.UnknownFields
1237
1238 // The fields to return.
1239 //
1240 // If empty, all fields are returned. To only return the name
1241 // of the document, use `['__name__']`.
1242 Fields []*StructuredQuery_FieldReference `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"`
1243 }
1244
1245 func (x *StructuredQuery_Projection) Reset() {
1246 *x = StructuredQuery_Projection{}
1247 mi := &file_google_firestore_v1_query_proto_msgTypes[10]
1248 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1249 ms.StoreMessageInfo(mi)
1250 }
1251
1252 func (x *StructuredQuery_Projection) String() string {
1253 return protoimpl.X.MessageStringOf(x)
1254 }
1255
1256 func (*StructuredQuery_Projection) ProtoMessage() {}
1257
1258 func (x *StructuredQuery_Projection) ProtoReflect() protoreflect.Message {
1259 mi := &file_google_firestore_v1_query_proto_msgTypes[10]
1260 if x != nil {
1261 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1262 if ms.LoadMessageInfo() == nil {
1263 ms.StoreMessageInfo(mi)
1264 }
1265 return ms
1266 }
1267 return mi.MessageOf(x)
1268 }
1269
1270 // Deprecated: Use StructuredQuery_Projection.ProtoReflect.Descriptor instead.
1271 func (*StructuredQuery_Projection) Descriptor() ([]byte, []int) {
1272 return file_google_firestore_v1_query_proto_rawDescGZIP(), []int{0, 7}
1273 }
1274
1275 func (x *StructuredQuery_Projection) GetFields() []*StructuredQuery_FieldReference {
1276 if x != nil {
1277 return x.Fields
1278 }
1279 return nil
1280 }
1281
1282 // Nearest Neighbors search config. The ordering provided by FindNearest
1283 // supersedes the order_by stage. If multiple documents have the same vector
1284 // distance, the returned document order is not guaranteed to be stable
1285 // between queries.
1286 type StructuredQuery_FindNearest struct {
1287 state protoimpl.MessageState
1288 sizeCache protoimpl.SizeCache
1289 unknownFields protoimpl.UnknownFields
1290
1291 // Required. An indexed vector field to search upon. Only documents which
1292 // contain vectors whose dimensionality match the query_vector can be
1293 // returned.
1294 VectorField *StructuredQuery_FieldReference `protobuf:"bytes,1,opt,name=vector_field,json=vectorField,proto3" json:"vector_field,omitempty"`
1295 // Required. The query vector that we are searching on. Must be a vector of
1296 // no more than 2048 dimensions.
1297 QueryVector *Value `protobuf:"bytes,2,opt,name=query_vector,json=queryVector,proto3" json:"query_vector,omitempty"`
1298 // Required. The distance measure to use, required.
1299 DistanceMeasure StructuredQuery_FindNearest_DistanceMeasure `protobuf:"varint,3,opt,name=distance_measure,json=distanceMeasure,proto3,enum=google.firestore.v1.StructuredQuery_FindNearest_DistanceMeasure" json:"distance_measure,omitempty"`
1300 // Required. The number of nearest neighbors to return. Must be a positive
1301 // integer of no more than 1000.
1302 Limit *wrapperspb.Int32Value `protobuf:"bytes,4,opt,name=limit,proto3" json:"limit,omitempty"`
1303 // Optional. Optional name of the field to output the result of the vector
1304 // distance calculation. Must conform to [document field
1305 // name][google.firestore.v1.Document.fields] limitations.
1306 DistanceResultField string `protobuf:"bytes,5,opt,name=distance_result_field,json=distanceResultField,proto3" json:"distance_result_field,omitempty"`
1307 // Optional. Option to specify a threshold for which no less similar
1308 // documents will be returned. The behavior of the specified
1309 // `distance_measure` will affect the meaning of the distance threshold.
1310 // Since DOT_PRODUCT distances increase when the vectors are more similar,
1311 // the comparison is inverted.
1312 //
1313 // * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold
1314 // * For DOT_PRODUCT: WHERE distance >= distance_threshold
1315 DistanceThreshold *wrapperspb.DoubleValue `protobuf:"bytes,6,opt,name=distance_threshold,json=distanceThreshold,proto3" json:"distance_threshold,omitempty"`
1316 }
1317
1318 func (x *StructuredQuery_FindNearest) Reset() {
1319 *x = StructuredQuery_FindNearest{}
1320 mi := &file_google_firestore_v1_query_proto_msgTypes[11]
1321 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1322 ms.StoreMessageInfo(mi)
1323 }
1324
1325 func (x *StructuredQuery_FindNearest) String() string {
1326 return protoimpl.X.MessageStringOf(x)
1327 }
1328
1329 func (*StructuredQuery_FindNearest) ProtoMessage() {}
1330
1331 func (x *StructuredQuery_FindNearest) ProtoReflect() protoreflect.Message {
1332 mi := &file_google_firestore_v1_query_proto_msgTypes[11]
1333 if x != nil {
1334 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1335 if ms.LoadMessageInfo() == nil {
1336 ms.StoreMessageInfo(mi)
1337 }
1338 return ms
1339 }
1340 return mi.MessageOf(x)
1341 }
1342
1343 // Deprecated: Use StructuredQuery_FindNearest.ProtoReflect.Descriptor instead.
1344 func (*StructuredQuery_FindNearest) Descriptor() ([]byte, []int) {
1345 return file_google_firestore_v1_query_proto_rawDescGZIP(), []int{0, 8}
1346 }
1347
1348 func (x *StructuredQuery_FindNearest) GetVectorField() *StructuredQuery_FieldReference {
1349 if x != nil {
1350 return x.VectorField
1351 }
1352 return nil
1353 }
1354
1355 func (x *StructuredQuery_FindNearest) GetQueryVector() *Value {
1356 if x != nil {
1357 return x.QueryVector
1358 }
1359 return nil
1360 }
1361
1362 func (x *StructuredQuery_FindNearest) GetDistanceMeasure() StructuredQuery_FindNearest_DistanceMeasure {
1363 if x != nil {
1364 return x.DistanceMeasure
1365 }
1366 return StructuredQuery_FindNearest_DISTANCE_MEASURE_UNSPECIFIED
1367 }
1368
1369 func (x *StructuredQuery_FindNearest) GetLimit() *wrapperspb.Int32Value {
1370 if x != nil {
1371 return x.Limit
1372 }
1373 return nil
1374 }
1375
1376 func (x *StructuredQuery_FindNearest) GetDistanceResultField() string {
1377 if x != nil {
1378 return x.DistanceResultField
1379 }
1380 return ""
1381 }
1382
1383 func (x *StructuredQuery_FindNearest) GetDistanceThreshold() *wrapperspb.DoubleValue {
1384 if x != nil {
1385 return x.DistanceThreshold
1386 }
1387 return nil
1388 }
1389
1390 // Defines an aggregation that produces a single result.
1391 type StructuredAggregationQuery_Aggregation struct {
1392 state protoimpl.MessageState
1393 sizeCache protoimpl.SizeCache
1394 unknownFields protoimpl.UnknownFields
1395
1396 // The type of aggregation to perform, required.
1397 //
1398 // Types that are assignable to Operator:
1399 //
1400 // *StructuredAggregationQuery_Aggregation_Count_
1401 // *StructuredAggregationQuery_Aggregation_Sum_
1402 // *StructuredAggregationQuery_Aggregation_Avg_
1403 Operator isStructuredAggregationQuery_Aggregation_Operator `protobuf_oneof:"operator"`
1404 // Optional. Optional name of the field to store the result of the
1405 // aggregation into.
1406 //
1407 // If not provided, Firestore will pick a default name following the format
1408 // `field_<incremental_id++>`. For example:
1409 //
1410 // ```
1411 // AGGREGATE
1412 //
1413 // COUNT_UP_TO(1) AS count_up_to_1,
1414 // COUNT_UP_TO(2),
1415 // COUNT_UP_TO(3) AS count_up_to_3,
1416 // COUNT(*)
1417 //
1418 // OVER (
1419 //
1420 // ...
1421 //
1422 // );
1423 // ```
1424 //
1425 // becomes:
1426 //
1427 // ```
1428 // AGGREGATE
1429 //
1430 // COUNT_UP_TO(1) AS count_up_to_1,
1431 // COUNT_UP_TO(2) AS field_1,
1432 // COUNT_UP_TO(3) AS count_up_to_3,
1433 // COUNT(*) AS field_2
1434 //
1435 // OVER (
1436 //
1437 // ...
1438 //
1439 // );
1440 // ```
1441 //
1442 // Requires:
1443 //
1444 // * Must be unique across all aggregation aliases.
1445 // * Conform to [document field name][google.firestore.v1.Document.fields]
1446 // limitations.
1447 Alias string `protobuf:"bytes,7,opt,name=alias,proto3" json:"alias,omitempty"`
1448 }
1449
1450 func (x *StructuredAggregationQuery_Aggregation) Reset() {
1451 *x = StructuredAggregationQuery_Aggregation{}
1452 mi := &file_google_firestore_v1_query_proto_msgTypes[12]
1453 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1454 ms.StoreMessageInfo(mi)
1455 }
1456
1457 func (x *StructuredAggregationQuery_Aggregation) String() string {
1458 return protoimpl.X.MessageStringOf(x)
1459 }
1460
1461 func (*StructuredAggregationQuery_Aggregation) ProtoMessage() {}
1462
1463 func (x *StructuredAggregationQuery_Aggregation) ProtoReflect() protoreflect.Message {
1464 mi := &file_google_firestore_v1_query_proto_msgTypes[12]
1465 if x != nil {
1466 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1467 if ms.LoadMessageInfo() == nil {
1468 ms.StoreMessageInfo(mi)
1469 }
1470 return ms
1471 }
1472 return mi.MessageOf(x)
1473 }
1474
1475 // Deprecated: Use StructuredAggregationQuery_Aggregation.ProtoReflect.Descriptor instead.
1476 func (*StructuredAggregationQuery_Aggregation) Descriptor() ([]byte, []int) {
1477 return file_google_firestore_v1_query_proto_rawDescGZIP(), []int{1, 0}
1478 }
1479
1480 func (m *StructuredAggregationQuery_Aggregation) GetOperator() isStructuredAggregationQuery_Aggregation_Operator {
1481 if m != nil {
1482 return m.Operator
1483 }
1484 return nil
1485 }
1486
1487 func (x *StructuredAggregationQuery_Aggregation) GetCount() *StructuredAggregationQuery_Aggregation_Count {
1488 if x, ok := x.GetOperator().(*StructuredAggregationQuery_Aggregation_Count_); ok {
1489 return x.Count
1490 }
1491 return nil
1492 }
1493
1494 func (x *StructuredAggregationQuery_Aggregation) GetSum() *StructuredAggregationQuery_Aggregation_Sum {
1495 if x, ok := x.GetOperator().(*StructuredAggregationQuery_Aggregation_Sum_); ok {
1496 return x.Sum
1497 }
1498 return nil
1499 }
1500
1501 func (x *StructuredAggregationQuery_Aggregation) GetAvg() *StructuredAggregationQuery_Aggregation_Avg {
1502 if x, ok := x.GetOperator().(*StructuredAggregationQuery_Aggregation_Avg_); ok {
1503 return x.Avg
1504 }
1505 return nil
1506 }
1507
1508 func (x *StructuredAggregationQuery_Aggregation) GetAlias() string {
1509 if x != nil {
1510 return x.Alias
1511 }
1512 return ""
1513 }
1514
1515 type isStructuredAggregationQuery_Aggregation_Operator interface {
1516 isStructuredAggregationQuery_Aggregation_Operator()
1517 }
1518
1519 type StructuredAggregationQuery_Aggregation_Count_ struct {
1520 // Count aggregator.
1521 Count *StructuredAggregationQuery_Aggregation_Count `protobuf:"bytes,1,opt,name=count,proto3,oneof"`
1522 }
1523
1524 type StructuredAggregationQuery_Aggregation_Sum_ struct {
1525 // Sum aggregator.
1526 Sum *StructuredAggregationQuery_Aggregation_Sum `protobuf:"bytes,2,opt,name=sum,proto3,oneof"`
1527 }
1528
1529 type StructuredAggregationQuery_Aggregation_Avg_ struct {
1530 // Average aggregator.
1531 Avg *StructuredAggregationQuery_Aggregation_Avg `protobuf:"bytes,3,opt,name=avg,proto3,oneof"`
1532 }
1533
1534 func (*StructuredAggregationQuery_Aggregation_Count_) isStructuredAggregationQuery_Aggregation_Operator() {
1535 }
1536
1537 func (*StructuredAggregationQuery_Aggregation_Sum_) isStructuredAggregationQuery_Aggregation_Operator() {
1538 }
1539
1540 func (*StructuredAggregationQuery_Aggregation_Avg_) isStructuredAggregationQuery_Aggregation_Operator() {
1541 }
1542
1543 // Count of documents that match the query.
1544 //
1545 // The `COUNT(*)` aggregation function operates on the entire document
1546 // so it does not require a field reference.
1547 type StructuredAggregationQuery_Aggregation_Count struct {
1548 state protoimpl.MessageState
1549 sizeCache protoimpl.SizeCache
1550 unknownFields protoimpl.UnknownFields
1551
1552 // Optional. Optional constraint on the maximum number of documents to
1553 // count.
1554 //
1555 // This provides a way to set an upper bound on the number of documents
1556 // to scan, limiting latency, and cost.
1557 //
1558 // Unspecified is interpreted as no bound.
1559 //
1560 // High-Level Example:
1561 //
1562 // ```
1563 // AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
1564 // ```
1565 //
1566 // Requires:
1567 //
1568 // * Must be greater than zero when present.
1569 UpTo *wrapperspb.Int64Value `protobuf:"bytes,1,opt,name=up_to,json=upTo,proto3" json:"up_to,omitempty"`
1570 }
1571
1572 func (x *StructuredAggregationQuery_Aggregation_Count) Reset() {
1573 *x = StructuredAggregationQuery_Aggregation_Count{}
1574 mi := &file_google_firestore_v1_query_proto_msgTypes[13]
1575 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1576 ms.StoreMessageInfo(mi)
1577 }
1578
1579 func (x *StructuredAggregationQuery_Aggregation_Count) String() string {
1580 return protoimpl.X.MessageStringOf(x)
1581 }
1582
1583 func (*StructuredAggregationQuery_Aggregation_Count) ProtoMessage() {}
1584
1585 func (x *StructuredAggregationQuery_Aggregation_Count) ProtoReflect() protoreflect.Message {
1586 mi := &file_google_firestore_v1_query_proto_msgTypes[13]
1587 if x != nil {
1588 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1589 if ms.LoadMessageInfo() == nil {
1590 ms.StoreMessageInfo(mi)
1591 }
1592 return ms
1593 }
1594 return mi.MessageOf(x)
1595 }
1596
1597 // Deprecated: Use StructuredAggregationQuery_Aggregation_Count.ProtoReflect.Descriptor instead.
1598 func (*StructuredAggregationQuery_Aggregation_Count) Descriptor() ([]byte, []int) {
1599 return file_google_firestore_v1_query_proto_rawDescGZIP(), []int{1, 0, 0}
1600 }
1601
1602 func (x *StructuredAggregationQuery_Aggregation_Count) GetUpTo() *wrapperspb.Int64Value {
1603 if x != nil {
1604 return x.UpTo
1605 }
1606 return nil
1607 }
1608
1609 // Sum of the values of the requested field.
1610 //
1611 // * Only numeric values will be aggregated. All non-numeric values
1612 // including `NULL` are skipped.
1613 //
1614 // * If the aggregated values contain `NaN`, returns `NaN`. Infinity math
1615 // follows IEEE-754 standards.
1616 //
1617 // * If the aggregated value set is empty, returns 0.
1618 //
1619 // * Returns a 64-bit integer if all aggregated numbers are integers and the
1620 // sum result does not overflow. Otherwise, the result is returned as a
1621 // double. Note that even if all the aggregated values are integers, the
1622 // result is returned as a double if it cannot fit within a 64-bit signed
1623 // integer. When this occurs, the returned value will lose precision.
1624 //
1625 // * When underflow occurs, floating-point aggregation is non-deterministic.
1626 // This means that running the same query repeatedly without any changes to
1627 // the underlying values could produce slightly different results each
1628 // time. In those cases, values should be stored as integers over
1629 // floating-point numbers.
1630 type StructuredAggregationQuery_Aggregation_Sum struct {
1631 state protoimpl.MessageState
1632 sizeCache protoimpl.SizeCache
1633 unknownFields protoimpl.UnknownFields
1634
1635 // The field to aggregate on.
1636 Field *StructuredQuery_FieldReference `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
1637 }
1638
1639 func (x *StructuredAggregationQuery_Aggregation_Sum) Reset() {
1640 *x = StructuredAggregationQuery_Aggregation_Sum{}
1641 mi := &file_google_firestore_v1_query_proto_msgTypes[14]
1642 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1643 ms.StoreMessageInfo(mi)
1644 }
1645
1646 func (x *StructuredAggregationQuery_Aggregation_Sum) String() string {
1647 return protoimpl.X.MessageStringOf(x)
1648 }
1649
1650 func (*StructuredAggregationQuery_Aggregation_Sum) ProtoMessage() {}
1651
1652 func (x *StructuredAggregationQuery_Aggregation_Sum) ProtoReflect() protoreflect.Message {
1653 mi := &file_google_firestore_v1_query_proto_msgTypes[14]
1654 if x != nil {
1655 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1656 if ms.LoadMessageInfo() == nil {
1657 ms.StoreMessageInfo(mi)
1658 }
1659 return ms
1660 }
1661 return mi.MessageOf(x)
1662 }
1663
1664 // Deprecated: Use StructuredAggregationQuery_Aggregation_Sum.ProtoReflect.Descriptor instead.
1665 func (*StructuredAggregationQuery_Aggregation_Sum) Descriptor() ([]byte, []int) {
1666 return file_google_firestore_v1_query_proto_rawDescGZIP(), []int{1, 0, 1}
1667 }
1668
1669 func (x *StructuredAggregationQuery_Aggregation_Sum) GetField() *StructuredQuery_FieldReference {
1670 if x != nil {
1671 return x.Field
1672 }
1673 return nil
1674 }
1675
1676 // Average of the values of the requested field.
1677 //
1678 // * Only numeric values will be aggregated. All non-numeric values
1679 // including `NULL` are skipped.
1680 //
1681 // * If the aggregated values contain `NaN`, returns `NaN`. Infinity math
1682 // follows IEEE-754 standards.
1683 //
1684 // * If the aggregated value set is empty, returns `NULL`.
1685 //
1686 // * Always returns the result as a double.
1687 type StructuredAggregationQuery_Aggregation_Avg struct {
1688 state protoimpl.MessageState
1689 sizeCache protoimpl.SizeCache
1690 unknownFields protoimpl.UnknownFields
1691
1692 // The field to aggregate on.
1693 Field *StructuredQuery_FieldReference `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
1694 }
1695
1696 func (x *StructuredAggregationQuery_Aggregation_Avg) Reset() {
1697 *x = StructuredAggregationQuery_Aggregation_Avg{}
1698 mi := &file_google_firestore_v1_query_proto_msgTypes[15]
1699 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1700 ms.StoreMessageInfo(mi)
1701 }
1702
1703 func (x *StructuredAggregationQuery_Aggregation_Avg) String() string {
1704 return protoimpl.X.MessageStringOf(x)
1705 }
1706
1707 func (*StructuredAggregationQuery_Aggregation_Avg) ProtoMessage() {}
1708
1709 func (x *StructuredAggregationQuery_Aggregation_Avg) ProtoReflect() protoreflect.Message {
1710 mi := &file_google_firestore_v1_query_proto_msgTypes[15]
1711 if x != nil {
1712 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1713 if ms.LoadMessageInfo() == nil {
1714 ms.StoreMessageInfo(mi)
1715 }
1716 return ms
1717 }
1718 return mi.MessageOf(x)
1719 }
1720
1721 // Deprecated: Use StructuredAggregationQuery_Aggregation_Avg.ProtoReflect.Descriptor instead.
1722 func (*StructuredAggregationQuery_Aggregation_Avg) Descriptor() ([]byte, []int) {
1723 return file_google_firestore_v1_query_proto_rawDescGZIP(), []int{1, 0, 2}
1724 }
1725
1726 func (x *StructuredAggregationQuery_Aggregation_Avg) GetField() *StructuredQuery_FieldReference {
1727 if x != nil {
1728 return x.Field
1729 }
1730 return nil
1731 }
1732
1733 var File_google_firestore_v1_query_proto protoreflect.FileDescriptor
1734
1735 var file_google_firestore_v1_query_proto_rawDesc = []byte{
1736 0x0a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f,
1737 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74,
1738 0x6f, 0x12, 0x13, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74,
1739 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
1740 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f,
1741 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
1742 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x6f, 0x63,
1743 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f,
1744 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61,
1745 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb4, 0x16, 0x0a, 0x0f,
1746 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12,
1747 0x47, 0x0a, 0x06, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
1748 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f,
1749 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64,
1750 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
1751 0x52, 0x06, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x4b, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d,
1752 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
1753 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72,
1754 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x43, 0x6f, 0x6c,
1755 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52,
1756 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x41, 0x0a, 0x05, 0x77, 0x68, 0x65, 0x72, 0x65, 0x18, 0x03,
1757 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69,
1758 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63,
1759 0x74, 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65,
1760 0x72, 0x52, 0x05, 0x77, 0x68, 0x65, 0x72, 0x65, 0x12, 0x45, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65,
1761 0x72, 0x5f, 0x62, 0x79, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f,
1762 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31,
1763 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79,
1764 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12,
1765 0x36, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28,
1766 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73,
1767 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x07,
1768 0x73, 0x74, 0x61, 0x72, 0x74, 0x41, 0x74, 0x12, 0x32, 0x0a, 0x06, 0x65, 0x6e, 0x64, 0x5f, 0x61,
1769 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
1770 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75,
1771 0x72, 0x73, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x6e, 0x64, 0x41, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f,
1772 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6f, 0x66, 0x66,
1773 0x73, 0x65, 0x74, 0x12, 0x31, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01,
1774 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
1775 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52,
1776 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x58, 0x0a, 0x0c, 0x66, 0x69, 0x6e, 0x64, 0x5f, 0x6e,
1777 0x65, 0x61, 0x72, 0x65, 0x73, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67,
1778 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,
1779 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65,
1780 0x72, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x65, 0x61, 0x72, 0x65, 0x73, 0x74, 0x42, 0x03,
1781 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x65, 0x61, 0x72, 0x65, 0x73, 0x74,
1782 0x1a, 0x62, 0x0a, 0x12, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65,
1783 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63,
1784 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63,
1785 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x61,
1786 0x6c, 0x6c, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x65, 0x6e, 0x64, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x03,
1787 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x61, 0x6c, 0x6c, 0x44, 0x65, 0x73, 0x63, 0x65, 0x6e, 0x64,
1788 0x61, 0x6e, 0x74, 0x73, 0x1a, 0xa8, 0x02, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12,
1789 0x61, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x5f, 0x66, 0x69, 0x6c,
1790 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
1791 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e,
1792 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e,
1793 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48,
1794 0x00, 0x52, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x74,
1795 0x65, 0x72, 0x12, 0x55, 0x0a, 0x0c, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x74,
1796 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
1797 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,
1798 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x46,
1799 0x69, 0x65, 0x6c, 0x64, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0b, 0x66, 0x69,
1800 0x65, 0x6c, 0x64, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x55, 0x0a, 0x0c, 0x75, 0x6e, 0x61,
1801 0x72, 0x79, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
1802 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f,
1803 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64,
1804 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x55, 0x6e, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65,
1805 0x72, 0x48, 0x00, 0x52, 0x0b, 0x75, 0x6e, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72,
1806 0x42, 0x0d, 0x0a, 0x0b, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x1a,
1807 0xde, 0x01, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x46, 0x69, 0x6c,
1808 0x74, 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x02, 0x6f, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,
1809 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f,
1810 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64,
1811 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x46,
1812 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x02,
1813 0x6f, 0x70, 0x12, 0x45, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20,
1814 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72,
1815 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74,
1816 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72,
1817 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x22, 0x35, 0x0a, 0x08, 0x4f, 0x70, 0x65,
1818 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x14, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f,
1819 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
1820 0x07, 0x0a, 0x03, 0x41, 0x4e, 0x44, 0x10, 0x01, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x52, 0x10, 0x02,
1821 0x1a, 0xaa, 0x03, 0x0a, 0x0b, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72,
1822 0x12, 0x49, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
1823 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f,
1824 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64,
1825 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x65, 0x66, 0x65, 0x72,
1826 0x65, 0x6e, 0x63, 0x65, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x49, 0x0a, 0x02, 0x6f,
1827 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
1828 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74,
1829 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x46, 0x69,
1830 0x65, 0x6c, 0x64, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74,
1831 0x6f, 0x72, 0x52, 0x02, 0x6f, 0x70, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
1832 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66,
1833 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75,
1834 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xd2, 0x01, 0x0a, 0x08, 0x4f, 0x70, 0x65,
1835 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x14, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f,
1836 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
1837 0x0d, 0x0a, 0x09, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x10, 0x01, 0x12, 0x16,
1838 0x0a, 0x12, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x5f, 0x4f, 0x52, 0x5f, 0x45,
1839 0x51, 0x55, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x47, 0x52, 0x45, 0x41, 0x54, 0x45,
1840 0x52, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x10, 0x03, 0x12, 0x19, 0x0a, 0x15, 0x47, 0x52, 0x45, 0x41,
1841 0x54, 0x45, 0x52, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x5f, 0x4f, 0x52, 0x5f, 0x45, 0x51, 0x55, 0x41,
1842 0x4c, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x10, 0x05, 0x12, 0x0d,
1843 0x0a, 0x09, 0x4e, 0x4f, 0x54, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x10, 0x06, 0x12, 0x12, 0x0a,
1844 0x0e, 0x41, 0x52, 0x52, 0x41, 0x59, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e, 0x53, 0x10,
1845 0x07, 0x12, 0x06, 0x0a, 0x02, 0x49, 0x4e, 0x10, 0x08, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x52, 0x52,
1846 0x41, 0x59, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e, 0x53, 0x5f, 0x41, 0x4e, 0x59, 0x10,
1847 0x09, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x4f, 0x54, 0x5f, 0x49, 0x4e, 0x10, 0x0a, 0x1a, 0x95, 0x02,
1848 0x0a, 0x0b, 0x55, 0x6e, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x49, 0x0a,
1849 0x02, 0x6f, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
1850 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e,
1851 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e,
1852 0x55, 0x6e, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x4f, 0x70, 0x65, 0x72,
1853 0x61, 0x74, 0x6f, 0x72, 0x52, 0x02, 0x6f, 0x70, 0x12, 0x4b, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c,
1854 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
1855 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74,
1856 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x46, 0x69,
1857 0x65, 0x6c, 0x64, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x48, 0x00, 0x52, 0x05,
1858 0x66, 0x69, 0x65, 0x6c, 0x64, 0x22, 0x5e, 0x0a, 0x08, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f,
1859 0x72, 0x12, 0x18, 0x0a, 0x14, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x55, 0x4e,
1860 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x49,
1861 0x53, 0x5f, 0x4e, 0x41, 0x4e, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x53, 0x5f, 0x4e, 0x55,
1862 0x4c, 0x4c, 0x10, 0x03, 0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x53, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x4e,
1863 0x41, 0x4e, 0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b, 0x49, 0x53, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x4e,
1864 0x55, 0x4c, 0x4c, 0x10, 0x05, 0x42, 0x0e, 0x0a, 0x0c, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x6e, 0x64,
1865 0x5f, 0x74, 0x79, 0x70, 0x65, 0x1a, 0xa0, 0x01, 0x0a, 0x05, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12,
1866 0x49, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33,
1867 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72,
1868 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x51,
1869 0x75, 0x65, 0x72, 0x79, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65,
1870 0x6e, 0x63, 0x65, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x4c, 0x0a, 0x09, 0x64, 0x69,
1871 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e,
1872 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65,
1873 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x51, 0x75,
1874 0x65, 0x72, 0x79, 0x2e, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64,
1875 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x2f, 0x0a, 0x0e, 0x46, 0x69, 0x65, 0x6c,
1876 0x64, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69,
1877 0x65, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
1878 0x66, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x61, 0x74, 0x68, 0x1a, 0x59, 0x0a, 0x0a, 0x50, 0x72, 0x6f,
1879 0x6a, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64,
1880 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
1881 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74,
1882 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x46, 0x69,
1883 0x65, 0x6c, 0x64, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x06, 0x66, 0x69,
1884 0x65, 0x6c, 0x64, 0x73, 0x1a, 0xc4, 0x04, 0x0a, 0x0b, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x65, 0x61,
1885 0x72, 0x65, 0x73, 0x74, 0x12, 0x5b, 0x0a, 0x0c, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x66,
1886 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f,
1887 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31,
1888 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79,
1889 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x42,
1890 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x46, 0x69, 0x65, 0x6c,
1891 0x64, 0x12, 0x42, 0x0a, 0x0c, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x76, 0x65, 0x63, 0x74, 0x6f,
1892 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
1893 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61,
1894 0x6c, 0x75, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x71, 0x75, 0x65, 0x72, 0x79, 0x56,
1895 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x70, 0x0a, 0x10, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63,
1896 0x65, 0x5f, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32,
1897 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f,
1898 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64,
1899 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x65, 0x61, 0x72, 0x65, 0x73,
1900 0x74, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72,
1901 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0f, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
1902 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x12, 0x36, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74,
1903 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
1904 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61,
1905 0x6c, 0x75, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12,
1906 0x37, 0x0a, 0x15, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x75,
1907 0x6c, 0x74, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,
1908 0xe0, 0x41, 0x01, 0x52, 0x13, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73,
1909 0x75, 0x6c, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x50, 0x0a, 0x12, 0x64, 0x69, 0x73, 0x74,
1910 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x06,
1911 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
1912 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c,
1913 0x75, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x11, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63,
1914 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x22, 0x5f, 0x0a, 0x0f, 0x44, 0x69,
1915 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x12, 0x20, 0x0a,
1916 0x1c, 0x44, 0x49, 0x53, 0x54, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x4d, 0x45, 0x41, 0x53, 0x55, 0x52,
1917 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
1918 0x0d, 0x0a, 0x09, 0x45, 0x55, 0x43, 0x4c, 0x49, 0x44, 0x45, 0x41, 0x4e, 0x10, 0x01, 0x12, 0x0a,
1919 0x0a, 0x06, 0x43, 0x4f, 0x53, 0x49, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x4f,
1920 0x54, 0x5f, 0x50, 0x52, 0x4f, 0x44, 0x55, 0x43, 0x54, 0x10, 0x03, 0x22, 0x45, 0x0a, 0x09, 0x44,
1921 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x49, 0x52, 0x45,
1922 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
1923 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x53, 0x43, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47,
1924 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x45, 0x53, 0x43, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47,
1925 0x10, 0x02, 0x22, 0x83, 0x06, 0x0a, 0x1a, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65,
1926 0x64, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x72,
1927 0x79, 0x12, 0x51, 0x0a, 0x10, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x5f,
1928 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f,
1929 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76,
1930 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72,
1931 0x79, 0x48, 0x00, 0x52, 0x0f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x51,
1932 0x75, 0x65, 0x72, 0x79, 0x12, 0x64, 0x0a, 0x0c, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74,
1933 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f,
1934 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31,
1935 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x41, 0x67, 0x67, 0x72, 0x65,
1936 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x41, 0x67, 0x67, 0x72,
1937 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x61, 0x67,
1938 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x9d, 0x04, 0x0a, 0x0b, 0x41,
1939 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x59, 0x0a, 0x05, 0x63, 0x6f,
1940 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
1941 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e,
1942 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67,
1943 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65,
1944 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x05,
1945 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x53, 0x0a, 0x03, 0x73, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01,
1946 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65,
1947 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75,
1948 0x72, 0x65, 0x64, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x51, 0x75,
1949 0x65, 0x72, 0x79, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
1950 0x53, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x03, 0x73, 0x75, 0x6d, 0x12, 0x53, 0x0a, 0x03, 0x61, 0x76,
1951 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
1952 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74,
1953 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74,
1954 0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61,
1955 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x76, 0x67, 0x48, 0x00, 0x52, 0x03, 0x61, 0x76, 0x67, 0x12,
1956 0x19, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,
1957 0xe0, 0x41, 0x01, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x1a, 0x3e, 0x0a, 0x05, 0x43, 0x6f,
1958 0x75, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x05, 0x75, 0x70, 0x5f, 0x74, 0x6f, 0x18, 0x01, 0x20, 0x01,
1959 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
1960 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42,
1961 0x03, 0xe0, 0x41, 0x01, 0x52, 0x04, 0x75, 0x70, 0x54, 0x6f, 0x1a, 0x50, 0x0a, 0x03, 0x53, 0x75,
1962 0x6d, 0x12, 0x49, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
1963 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74,
1964 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65,
1965 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x65, 0x66, 0x65,
1966 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x1a, 0x50, 0x0a, 0x03,
1967 0x41, 0x76, 0x67, 0x12, 0x49, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01,
1968 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65,
1969 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75,
1970 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x65,
1971 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x0a,
1972 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x0c, 0x0a, 0x0a, 0x71, 0x75,
1973 0x65, 0x72, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x54, 0x0a, 0x06, 0x43, 0x75, 0x72, 0x73,
1974 0x6f, 0x72, 0x12, 0x32, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03,
1975 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65,
1976 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06,
1977 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65,
1978 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x42, 0xc2,
1979 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69,
1980 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72,
1981 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
1982 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x69,
1983 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x66, 0x69,
1984 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x70, 0x62, 0x3b, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74,
1985 0x6f, 0x72, 0x65, 0x70, 0x62, 0xa2, 0x02, 0x04, 0x47, 0x43, 0x46, 0x53, 0xaa, 0x02, 0x19, 0x47,
1986 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x46, 0x69, 0x72, 0x65,
1987 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
1988 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x46, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72,
1989 0x65, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1c, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43,
1990 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x46, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x3a,
1991 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
1992 }
1993
1994 var (
1995 file_google_firestore_v1_query_proto_rawDescOnce sync.Once
1996 file_google_firestore_v1_query_proto_rawDescData = file_google_firestore_v1_query_proto_rawDesc
1997 )
1998
1999 func file_google_firestore_v1_query_proto_rawDescGZIP() []byte {
2000 file_google_firestore_v1_query_proto_rawDescOnce.Do(func() {
2001 file_google_firestore_v1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_firestore_v1_query_proto_rawDescData)
2002 })
2003 return file_google_firestore_v1_query_proto_rawDescData
2004 }
2005
2006 var file_google_firestore_v1_query_proto_enumTypes = make([]protoimpl.EnumInfo, 5)
2007 var file_google_firestore_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
2008 var file_google_firestore_v1_query_proto_goTypes = []any{
2009 (StructuredQuery_Direction)(0), // 0: google.firestore.v1.StructuredQuery.Direction
2010 (StructuredQuery_CompositeFilter_Operator)(0), // 1: google.firestore.v1.StructuredQuery.CompositeFilter.Operator
2011 (StructuredQuery_FieldFilter_Operator)(0), // 2: google.firestore.v1.StructuredQuery.FieldFilter.Operator
2012 (StructuredQuery_UnaryFilter_Operator)(0), // 3: google.firestore.v1.StructuredQuery.UnaryFilter.Operator
2013 (StructuredQuery_FindNearest_DistanceMeasure)(0), // 4: google.firestore.v1.StructuredQuery.FindNearest.DistanceMeasure
2014 (*StructuredQuery)(nil), // 5: google.firestore.v1.StructuredQuery
2015 (*StructuredAggregationQuery)(nil), // 6: google.firestore.v1.StructuredAggregationQuery
2016 (*Cursor)(nil), // 7: google.firestore.v1.Cursor
2017 (*StructuredQuery_CollectionSelector)(nil), // 8: google.firestore.v1.StructuredQuery.CollectionSelector
2018 (*StructuredQuery_Filter)(nil), // 9: google.firestore.v1.StructuredQuery.Filter
2019 (*StructuredQuery_CompositeFilter)(nil), // 10: google.firestore.v1.StructuredQuery.CompositeFilter
2020 (*StructuredQuery_FieldFilter)(nil), // 11: google.firestore.v1.StructuredQuery.FieldFilter
2021 (*StructuredQuery_UnaryFilter)(nil), // 12: google.firestore.v1.StructuredQuery.UnaryFilter
2022 (*StructuredQuery_Order)(nil), // 13: google.firestore.v1.StructuredQuery.Order
2023 (*StructuredQuery_FieldReference)(nil), // 14: google.firestore.v1.StructuredQuery.FieldReference
2024 (*StructuredQuery_Projection)(nil), // 15: google.firestore.v1.StructuredQuery.Projection
2025 (*StructuredQuery_FindNearest)(nil), // 16: google.firestore.v1.StructuredQuery.FindNearest
2026 (*StructuredAggregationQuery_Aggregation)(nil), // 17: google.firestore.v1.StructuredAggregationQuery.Aggregation
2027 (*StructuredAggregationQuery_Aggregation_Count)(nil), // 18: google.firestore.v1.StructuredAggregationQuery.Aggregation.Count
2028 (*StructuredAggregationQuery_Aggregation_Sum)(nil), // 19: google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum
2029 (*StructuredAggregationQuery_Aggregation_Avg)(nil), // 20: google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg
2030 (*wrapperspb.Int32Value)(nil), // 21: google.protobuf.Int32Value
2031 (*Value)(nil), // 22: google.firestore.v1.Value
2032 (*wrapperspb.DoubleValue)(nil), // 23: google.protobuf.DoubleValue
2033 (*wrapperspb.Int64Value)(nil), // 24: google.protobuf.Int64Value
2034 }
2035 var file_google_firestore_v1_query_proto_depIdxs = []int32{
2036 15, // 0: google.firestore.v1.StructuredQuery.select:type_name -> google.firestore.v1.StructuredQuery.Projection
2037 8, // 1: google.firestore.v1.StructuredQuery.from:type_name -> google.firestore.v1.StructuredQuery.CollectionSelector
2038 9, // 2: google.firestore.v1.StructuredQuery.where:type_name -> google.firestore.v1.StructuredQuery.Filter
2039 13, // 3: google.firestore.v1.StructuredQuery.order_by:type_name -> google.firestore.v1.StructuredQuery.Order
2040 7, // 4: google.firestore.v1.StructuredQuery.start_at:type_name -> google.firestore.v1.Cursor
2041 7, // 5: google.firestore.v1.StructuredQuery.end_at:type_name -> google.firestore.v1.Cursor
2042 21, // 6: google.firestore.v1.StructuredQuery.limit:type_name -> google.protobuf.Int32Value
2043 16, // 7: google.firestore.v1.StructuredQuery.find_nearest:type_name -> google.firestore.v1.StructuredQuery.FindNearest
2044 5, // 8: google.firestore.v1.StructuredAggregationQuery.structured_query:type_name -> google.firestore.v1.StructuredQuery
2045 17, // 9: google.firestore.v1.StructuredAggregationQuery.aggregations:type_name -> google.firestore.v1.StructuredAggregationQuery.Aggregation
2046 22, // 10: google.firestore.v1.Cursor.values:type_name -> google.firestore.v1.Value
2047 10, // 11: google.firestore.v1.StructuredQuery.Filter.composite_filter:type_name -> google.firestore.v1.StructuredQuery.CompositeFilter
2048 11, // 12: google.firestore.v1.StructuredQuery.Filter.field_filter:type_name -> google.firestore.v1.StructuredQuery.FieldFilter
2049 12, // 13: google.firestore.v1.StructuredQuery.Filter.unary_filter:type_name -> google.firestore.v1.StructuredQuery.UnaryFilter
2050 1, // 14: google.firestore.v1.StructuredQuery.CompositeFilter.op:type_name -> google.firestore.v1.StructuredQuery.CompositeFilter.Operator
2051 9, // 15: google.firestore.v1.StructuredQuery.CompositeFilter.filters:type_name -> google.firestore.v1.StructuredQuery.Filter
2052 14, // 16: google.firestore.v1.StructuredQuery.FieldFilter.field:type_name -> google.firestore.v1.StructuredQuery.FieldReference
2053 2, // 17: google.firestore.v1.StructuredQuery.FieldFilter.op:type_name -> google.firestore.v1.StructuredQuery.FieldFilter.Operator
2054 22, // 18: google.firestore.v1.StructuredQuery.FieldFilter.value:type_name -> google.firestore.v1.Value
2055 3, // 19: google.firestore.v1.StructuredQuery.UnaryFilter.op:type_name -> google.firestore.v1.StructuredQuery.UnaryFilter.Operator
2056 14, // 20: google.firestore.v1.StructuredQuery.UnaryFilter.field:type_name -> google.firestore.v1.StructuredQuery.FieldReference
2057 14, // 21: google.firestore.v1.StructuredQuery.Order.field:type_name -> google.firestore.v1.StructuredQuery.FieldReference
2058 0, // 22: google.firestore.v1.StructuredQuery.Order.direction:type_name -> google.firestore.v1.StructuredQuery.Direction
2059 14, // 23: google.firestore.v1.StructuredQuery.Projection.fields:type_name -> google.firestore.v1.StructuredQuery.FieldReference
2060 14, // 24: google.firestore.v1.StructuredQuery.FindNearest.vector_field:type_name -> google.firestore.v1.StructuredQuery.FieldReference
2061 22, // 25: google.firestore.v1.StructuredQuery.FindNearest.query_vector:type_name -> google.firestore.v1.Value
2062 4, // 26: google.firestore.v1.StructuredQuery.FindNearest.distance_measure:type_name -> google.firestore.v1.StructuredQuery.FindNearest.DistanceMeasure
2063 21, // 27: google.firestore.v1.StructuredQuery.FindNearest.limit:type_name -> google.protobuf.Int32Value
2064 23, // 28: google.firestore.v1.StructuredQuery.FindNearest.distance_threshold:type_name -> google.protobuf.DoubleValue
2065 18, // 29: google.firestore.v1.StructuredAggregationQuery.Aggregation.count:type_name -> google.firestore.v1.StructuredAggregationQuery.Aggregation.Count
2066 19, // 30: google.firestore.v1.StructuredAggregationQuery.Aggregation.sum:type_name -> google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum
2067 20, // 31: google.firestore.v1.StructuredAggregationQuery.Aggregation.avg:type_name -> google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg
2068 24, // 32: google.firestore.v1.StructuredAggregationQuery.Aggregation.Count.up_to:type_name -> google.protobuf.Int64Value
2069 14, // 33: google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum.field:type_name -> google.firestore.v1.StructuredQuery.FieldReference
2070 14, // 34: google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg.field:type_name -> google.firestore.v1.StructuredQuery.FieldReference
2071 35, // [35:35] is the sub-list for method output_type
2072 35, // [35:35] is the sub-list for method input_type
2073 35, // [35:35] is the sub-list for extension type_name
2074 35, // [35:35] is the sub-list for extension extendee
2075 0, // [0:35] is the sub-list for field type_name
2076 }
2077
2078 func init() { file_google_firestore_v1_query_proto_init() }
2079 func file_google_firestore_v1_query_proto_init() {
2080 if File_google_firestore_v1_query_proto != nil {
2081 return
2082 }
2083 file_google_firestore_v1_document_proto_init()
2084 file_google_firestore_v1_query_proto_msgTypes[1].OneofWrappers = []any{
2085 (*StructuredAggregationQuery_StructuredQuery)(nil),
2086 }
2087 file_google_firestore_v1_query_proto_msgTypes[4].OneofWrappers = []any{
2088 (*StructuredQuery_Filter_CompositeFilter)(nil),
2089 (*StructuredQuery_Filter_FieldFilter)(nil),
2090 (*StructuredQuery_Filter_UnaryFilter)(nil),
2091 }
2092 file_google_firestore_v1_query_proto_msgTypes[7].OneofWrappers = []any{
2093 (*StructuredQuery_UnaryFilter_Field)(nil),
2094 }
2095 file_google_firestore_v1_query_proto_msgTypes[12].OneofWrappers = []any{
2096 (*StructuredAggregationQuery_Aggregation_Count_)(nil),
2097 (*StructuredAggregationQuery_Aggregation_Sum_)(nil),
2098 (*StructuredAggregationQuery_Aggregation_Avg_)(nil),
2099 }
2100 type x struct{}
2101 out := protoimpl.TypeBuilder{
2102 File: protoimpl.DescBuilder{
2103 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
2104 RawDescriptor: file_google_firestore_v1_query_proto_rawDesc,
2105 NumEnums: 5,
2106 NumMessages: 16,
2107 NumExtensions: 0,
2108 NumServices: 0,
2109 },
2110 GoTypes: file_google_firestore_v1_query_proto_goTypes,
2111 DependencyIndexes: file_google_firestore_v1_query_proto_depIdxs,
2112 EnumInfos: file_google_firestore_v1_query_proto_enumTypes,
2113 MessageInfos: file_google_firestore_v1_query_proto_msgTypes,
2114 }.Build()
2115 File_google_firestore_v1_query_proto = out.File
2116 file_google_firestore_v1_query_proto_rawDesc = nil
2117 file_google_firestore_v1_query_proto_goTypes = nil
2118 file_google_firestore_v1_query_proto_depIdxs = nil
2119 }