-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdata.pb.dart
768 lines (693 loc) · 26 KB
/
data.pb.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
//
// Generated code. Do not modify.
// source: google/events/cloud/firestore/v1/data.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:core' as $core;
import 'package:fixnum/fixnum.dart' as $fixnum;
import 'package:protobuf/protobuf.dart' as $pb;
import '../../../../protobuf/struct.pbenum.dart' as $0;
import '../../../../protobuf/timestamp.pb.dart' as $2;
import '../../../../type/latlng.pb.dart' as $24;
/// The data within all Firestore document events.
class DocumentEventData extends $pb.GeneratedMessage {
factory DocumentEventData({
Document? value,
Document? oldValue,
DocumentMask? updateMask,
}) {
final $result = create();
if (value != null) {
$result.value = value;
}
if (oldValue != null) {
$result.oldValue = oldValue;
}
if (updateMask != null) {
$result.updateMask = updateMask;
}
return $result;
}
DocumentEventData._() : super();
factory DocumentEventData.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory DocumentEventData.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'DocumentEventData',
package: const $pb.PackageName(
_omitMessageNames ? '' : 'google.events.cloud.firestore.v1'),
createEmptyInstance: create)
..aOM<Document>(1, _omitFieldNames ? '' : 'value',
subBuilder: Document.create)
..aOM<Document>(2, _omitFieldNames ? '' : 'oldValue',
subBuilder: Document.create)
..aOM<DocumentMask>(3, _omitFieldNames ? '' : 'updateMask',
subBuilder: DocumentMask.create)
..hasRequiredFields = false;
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
DocumentEventData clone() => DocumentEventData()..mergeFromMessage(this);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
DocumentEventData copyWith(void Function(DocumentEventData) updates) =>
super.copyWith((message) => updates(message as DocumentEventData))
as DocumentEventData;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static DocumentEventData create() => DocumentEventData._();
DocumentEventData createEmptyInstance() => create();
static $pb.PbList<DocumentEventData> createRepeated() =>
$pb.PbList<DocumentEventData>();
@$core.pragma('dart2js:noInline')
static DocumentEventData getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<DocumentEventData>(create);
static DocumentEventData? _defaultInstance;
/// A Document object containing a post-operation document snapshot.
/// This is not populated for delete events.
@$pb.TagNumber(1)
Document get value => $_getN(0);
@$pb.TagNumber(1)
set value(Document v) {
setField(1, v);
}
@$pb.TagNumber(1)
$core.bool hasValue() => $_has(0);
@$pb.TagNumber(1)
void clearValue() => clearField(1);
@$pb.TagNumber(1)
Document ensureValue() => $_ensure(0);
/// A Document object containing a pre-operation document snapshot.
/// This is only populated for update and delete events.
@$pb.TagNumber(2)
Document get oldValue => $_getN(1);
@$pb.TagNumber(2)
set oldValue(Document v) {
setField(2, v);
}
@$pb.TagNumber(2)
$core.bool hasOldValue() => $_has(1);
@$pb.TagNumber(2)
void clearOldValue() => clearField(2);
@$pb.TagNumber(2)
Document ensureOldValue() => $_ensure(1);
/// A DocumentMask object that lists changed fields.
/// This is only populated for update events.
@$pb.TagNumber(3)
DocumentMask get updateMask => $_getN(2);
@$pb.TagNumber(3)
set updateMask(DocumentMask v) {
setField(3, v);
}
@$pb.TagNumber(3)
$core.bool hasUpdateMask() => $_has(2);
@$pb.TagNumber(3)
void clearUpdateMask() => clearField(3);
@$pb.TagNumber(3)
DocumentMask ensureUpdateMask() => $_ensure(2);
}
/// A set of field paths on a document.
class DocumentMask extends $pb.GeneratedMessage {
factory DocumentMask({
$core.Iterable<$core.String>? fieldPaths,
}) {
final $result = create();
if (fieldPaths != null) {
$result.fieldPaths.addAll(fieldPaths);
}
return $result;
}
DocumentMask._() : super();
factory DocumentMask.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory DocumentMask.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'DocumentMask',
package: const $pb.PackageName(
_omitMessageNames ? '' : 'google.events.cloud.firestore.v1'),
createEmptyInstance: create)
..pPS(1, _omitFieldNames ? '' : 'fieldPaths')
..hasRequiredFields = false;
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
DocumentMask clone() => DocumentMask()..mergeFromMessage(this);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
DocumentMask copyWith(void Function(DocumentMask) updates) =>
super.copyWith((message) => updates(message as DocumentMask))
as DocumentMask;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static DocumentMask create() => DocumentMask._();
DocumentMask createEmptyInstance() => create();
static $pb.PbList<DocumentMask> createRepeated() =>
$pb.PbList<DocumentMask>();
@$core.pragma('dart2js:noInline')
static DocumentMask getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<DocumentMask>(create);
static DocumentMask? _defaultInstance;
/// The list of field paths in the mask.
/// See [Document.fields][google.cloud.firestore.v1.events.Document.fields]
/// for a field path syntax reference.
@$pb.TagNumber(1)
$core.List<$core.String> get fieldPaths => $_getList(0);
}
/// A Firestore document.
class Document extends $pb.GeneratedMessage {
factory Document({
$core.String? name,
$core.Map<$core.String, Value>? fields,
$2.Timestamp? createTime,
$2.Timestamp? updateTime,
}) {
final $result = create();
if (name != null) {
$result.name = name;
}
if (fields != null) {
$result.fields.addAll(fields);
}
if (createTime != null) {
$result.createTime = createTime;
}
if (updateTime != null) {
$result.updateTime = updateTime;
}
return $result;
}
Document._() : super();
factory Document.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory Document.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'Document',
package: const $pb.PackageName(
_omitMessageNames ? '' : 'google.events.cloud.firestore.v1'),
createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'name')
..m<$core.String, Value>(2, _omitFieldNames ? '' : 'fields',
entryClassName: 'Document.FieldsEntry',
keyFieldType: $pb.PbFieldType.OS,
valueFieldType: $pb.PbFieldType.OM,
valueCreator: Value.create,
valueDefaultOrMaker: Value.getDefault,
packageName: const $pb.PackageName('google.events.cloud.firestore.v1'))
..aOM<$2.Timestamp>(3, _omitFieldNames ? '' : 'createTime',
subBuilder: $2.Timestamp.create)
..aOM<$2.Timestamp>(4, _omitFieldNames ? '' : 'updateTime',
subBuilder: $2.Timestamp.create)
..hasRequiredFields = false;
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
Document clone() => Document()..mergeFromMessage(this);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
Document copyWith(void Function(Document) updates) =>
super.copyWith((message) => updates(message as Document)) as Document;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Document create() => Document._();
Document createEmptyInstance() => create();
static $pb.PbList<Document> createRepeated() => $pb.PbList<Document>();
@$core.pragma('dart2js:noInline')
static Document getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Document>(create);
static Document? _defaultInstance;
/// The resource name of the document. For example:
/// `projects/{project_id}/databases/{database_id}/documents/{document_path}`
@$pb.TagNumber(1)
$core.String get name => $_getSZ(0);
@$pb.TagNumber(1)
set name($core.String v) {
$_setString(0, v);
}
@$pb.TagNumber(1)
$core.bool hasName() => $_has(0);
@$pb.TagNumber(1)
void clearName() => clearField(1);
/// The document's fields.
///
/// The map keys represent field names.
///
/// A simple field name contains only characters `a` to `z`, `A` to `Z`,
/// `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
/// `foo_bar_17`.
///
/// Field names matching the regular expression `__.*__` are reserved. Reserved
/// field names are forbidden except in certain documented contexts. The map
/// keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be
/// empty.
///
/// Field paths may be used in other contexts to refer to structured fields
/// defined here. For `map_value`, the field path is represented by the simple
/// or quoted field names of the containing fields, delimited by `.`. For
/// example, the structured field
/// `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be
/// represented by the field path `foo.x&y`.
///
/// Within a field path, a quoted field name starts and ends with `` ` `` and
/// may contain any character. Some characters, including `` ` ``, must be
/// escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
/// `` `bak\`tik` `` represents `` bak`tik ``.
@$pb.TagNumber(2)
$core.Map<$core.String, Value> get fields => $_getMap(1);
/// The time at which the document was created.
///
/// This value increases monotonically when a document is deleted then
/// recreated. It can also be compared to values from other documents and
/// the `read_time` of a query.
@$pb.TagNumber(3)
$2.Timestamp get createTime => $_getN(2);
@$pb.TagNumber(3)
set createTime($2.Timestamp v) {
setField(3, v);
}
@$pb.TagNumber(3)
$core.bool hasCreateTime() => $_has(2);
@$pb.TagNumber(3)
void clearCreateTime() => clearField(3);
@$pb.TagNumber(3)
$2.Timestamp ensureCreateTime() => $_ensure(2);
/// The time at which the document was last changed.
///
/// This value is initially set to the `create_time` then increases
/// monotonically with each change to the document. It can also be
/// compared to values from other documents and the `read_time` of a query.
@$pb.TagNumber(4)
$2.Timestamp get updateTime => $_getN(3);
@$pb.TagNumber(4)
set updateTime($2.Timestamp v) {
setField(4, v);
}
@$pb.TagNumber(4)
$core.bool hasUpdateTime() => $_has(3);
@$pb.TagNumber(4)
void clearUpdateTime() => clearField(4);
@$pb.TagNumber(4)
$2.Timestamp ensureUpdateTime() => $_ensure(3);
}
enum Value_ValueType {
booleanValue,
integerValue,
doubleValue,
referenceValue,
mapValue,
geoPointValue,
arrayValue,
timestampValue,
nullValue,
stringValue,
bytesValue,
notSet
}
/// A message that can hold any of the supported value types.
class Value extends $pb.GeneratedMessage {
factory Value({
$core.bool? booleanValue,
$fixnum.Int64? integerValue,
$core.double? doubleValue,
$core.String? referenceValue,
MapValue? mapValue,
$24.LatLng? geoPointValue,
ArrayValue? arrayValue,
$2.Timestamp? timestampValue,
$0.NullValue? nullValue,
$core.String? stringValue,
$core.List<$core.int>? bytesValue,
}) {
final $result = create();
if (booleanValue != null) {
$result.booleanValue = booleanValue;
}
if (integerValue != null) {
$result.integerValue = integerValue;
}
if (doubleValue != null) {
$result.doubleValue = doubleValue;
}
if (referenceValue != null) {
$result.referenceValue = referenceValue;
}
if (mapValue != null) {
$result.mapValue = mapValue;
}
if (geoPointValue != null) {
$result.geoPointValue = geoPointValue;
}
if (arrayValue != null) {
$result.arrayValue = arrayValue;
}
if (timestampValue != null) {
$result.timestampValue = timestampValue;
}
if (nullValue != null) {
$result.nullValue = nullValue;
}
if (stringValue != null) {
$result.stringValue = stringValue;
}
if (bytesValue != null) {
$result.bytesValue = bytesValue;
}
return $result;
}
Value._() : super();
factory Value.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory Value.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
static const $core.Map<$core.int, Value_ValueType> _Value_ValueTypeByTag = {
1: Value_ValueType.booleanValue,
2: Value_ValueType.integerValue,
3: Value_ValueType.doubleValue,
5: Value_ValueType.referenceValue,
6: Value_ValueType.mapValue,
8: Value_ValueType.geoPointValue,
9: Value_ValueType.arrayValue,
10: Value_ValueType.timestampValue,
11: Value_ValueType.nullValue,
17: Value_ValueType.stringValue,
18: Value_ValueType.bytesValue,
0: Value_ValueType.notSet
};
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'Value',
package: const $pb.PackageName(
_omitMessageNames ? '' : 'google.events.cloud.firestore.v1'),
createEmptyInstance: create)
..oo(0, [1, 2, 3, 5, 6, 8, 9, 10, 11, 17, 18])
..aOB(1, _omitFieldNames ? '' : 'booleanValue')
..aInt64(2, _omitFieldNames ? '' : 'integerValue')
..a<$core.double>(
3, _omitFieldNames ? '' : 'doubleValue', $pb.PbFieldType.OD)
..aOS(5, _omitFieldNames ? '' : 'referenceValue')
..aOM<MapValue>(6, _omitFieldNames ? '' : 'mapValue',
subBuilder: MapValue.create)
..aOM<$24.LatLng>(8, _omitFieldNames ? '' : 'geoPointValue',
subBuilder: $24.LatLng.create)
..aOM<ArrayValue>(9, _omitFieldNames ? '' : 'arrayValue',
subBuilder: ArrayValue.create)
..aOM<$2.Timestamp>(10, _omitFieldNames ? '' : 'timestampValue',
subBuilder: $2.Timestamp.create)
..e<$0.NullValue>(
11, _omitFieldNames ? '' : 'nullValue', $pb.PbFieldType.OE,
defaultOrMaker: $0.NullValue.NULL_VALUE,
valueOf: $0.NullValue.valueOf,
enumValues: $0.NullValue.values)
..aOS(17, _omitFieldNames ? '' : 'stringValue')
..a<$core.List<$core.int>>(
18, _omitFieldNames ? '' : 'bytesValue', $pb.PbFieldType.OY)
..hasRequiredFields = false;
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
Value clone() => Value()..mergeFromMessage(this);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
Value copyWith(void Function(Value) updates) =>
super.copyWith((message) => updates(message as Value)) as Value;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Value create() => Value._();
Value createEmptyInstance() => create();
static $pb.PbList<Value> createRepeated() => $pb.PbList<Value>();
@$core.pragma('dart2js:noInline')
static Value getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Value>(create);
static Value? _defaultInstance;
Value_ValueType whichValueType() => _Value_ValueTypeByTag[$_whichOneof(0)]!;
void clearValueType() => clearField($_whichOneof(0));
/// A boolean value.
@$pb.TagNumber(1)
$core.bool get booleanValue => $_getBF(0);
@$pb.TagNumber(1)
set booleanValue($core.bool v) {
$_setBool(0, v);
}
@$pb.TagNumber(1)
$core.bool hasBooleanValue() => $_has(0);
@$pb.TagNumber(1)
void clearBooleanValue() => clearField(1);
/// An integer value.
@$pb.TagNumber(2)
$fixnum.Int64 get integerValue => $_getI64(1);
@$pb.TagNumber(2)
set integerValue($fixnum.Int64 v) {
$_setInt64(1, v);
}
@$pb.TagNumber(2)
$core.bool hasIntegerValue() => $_has(1);
@$pb.TagNumber(2)
void clearIntegerValue() => clearField(2);
/// A double value.
@$pb.TagNumber(3)
$core.double get doubleValue => $_getN(2);
@$pb.TagNumber(3)
set doubleValue($core.double v) {
$_setDouble(2, v);
}
@$pb.TagNumber(3)
$core.bool hasDoubleValue() => $_has(2);
@$pb.TagNumber(3)
void clearDoubleValue() => clearField(3);
/// A reference to a document. For example:
/// `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
@$pb.TagNumber(5)
$core.String get referenceValue => $_getSZ(3);
@$pb.TagNumber(5)
set referenceValue($core.String v) {
$_setString(3, v);
}
@$pb.TagNumber(5)
$core.bool hasReferenceValue() => $_has(3);
@$pb.TagNumber(5)
void clearReferenceValue() => clearField(5);
/// A map value.
@$pb.TagNumber(6)
MapValue get mapValue => $_getN(4);
@$pb.TagNumber(6)
set mapValue(MapValue v) {
setField(6, v);
}
@$pb.TagNumber(6)
$core.bool hasMapValue() => $_has(4);
@$pb.TagNumber(6)
void clearMapValue() => clearField(6);
@$pb.TagNumber(6)
MapValue ensureMapValue() => $_ensure(4);
/// A geo point value representing a point on the surface of Earth.
@$pb.TagNumber(8)
$24.LatLng get geoPointValue => $_getN(5);
@$pb.TagNumber(8)
set geoPointValue($24.LatLng v) {
setField(8, v);
}
@$pb.TagNumber(8)
$core.bool hasGeoPointValue() => $_has(5);
@$pb.TagNumber(8)
void clearGeoPointValue() => clearField(8);
@$pb.TagNumber(8)
$24.LatLng ensureGeoPointValue() => $_ensure(5);
/// An array value.
///
/// Cannot directly contain another array value, though can contain an
/// map which contains another array.
@$pb.TagNumber(9)
ArrayValue get arrayValue => $_getN(6);
@$pb.TagNumber(9)
set arrayValue(ArrayValue v) {
setField(9, v);
}
@$pb.TagNumber(9)
$core.bool hasArrayValue() => $_has(6);
@$pb.TagNumber(9)
void clearArrayValue() => clearField(9);
@$pb.TagNumber(9)
ArrayValue ensureArrayValue() => $_ensure(6);
/// A timestamp value.
///
/// Precise only to microseconds. When stored, any additional precision is
/// rounded down.
@$pb.TagNumber(10)
$2.Timestamp get timestampValue => $_getN(7);
@$pb.TagNumber(10)
set timestampValue($2.Timestamp v) {
setField(10, v);
}
@$pb.TagNumber(10)
$core.bool hasTimestampValue() => $_has(7);
@$pb.TagNumber(10)
void clearTimestampValue() => clearField(10);
@$pb.TagNumber(10)
$2.Timestamp ensureTimestampValue() => $_ensure(7);
/// A null value.
@$pb.TagNumber(11)
$0.NullValue get nullValue => $_getN(8);
@$pb.TagNumber(11)
set nullValue($0.NullValue v) {
setField(11, v);
}
@$pb.TagNumber(11)
$core.bool hasNullValue() => $_has(8);
@$pb.TagNumber(11)
void clearNullValue() => clearField(11);
/// A string value.
///
/// The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes.
/// Only the first 1,500 bytes of the UTF-8 representation are considered by
/// queries.
@$pb.TagNumber(17)
$core.String get stringValue => $_getSZ(9);
@$pb.TagNumber(17)
set stringValue($core.String v) {
$_setString(9, v);
}
@$pb.TagNumber(17)
$core.bool hasStringValue() => $_has(9);
@$pb.TagNumber(17)
void clearStringValue() => clearField(17);
/// A bytes value.
///
/// Must not exceed 1 MiB - 89 bytes.
/// Only the first 1,500 bytes are considered by queries.
@$pb.TagNumber(18)
$core.List<$core.int> get bytesValue => $_getN(10);
@$pb.TagNumber(18)
set bytesValue($core.List<$core.int> v) {
$_setBytes(10, v);
}
@$pb.TagNumber(18)
$core.bool hasBytesValue() => $_has(10);
@$pb.TagNumber(18)
void clearBytesValue() => clearField(18);
}
/// An array value.
class ArrayValue extends $pb.GeneratedMessage {
factory ArrayValue({
$core.Iterable<Value>? values,
}) {
final $result = create();
if (values != null) {
$result.values.addAll(values);
}
return $result;
}
ArrayValue._() : super();
factory ArrayValue.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory ArrayValue.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'ArrayValue',
package: const $pb.PackageName(
_omitMessageNames ? '' : 'google.events.cloud.firestore.v1'),
createEmptyInstance: create)
..pc<Value>(1, _omitFieldNames ? '' : 'values', $pb.PbFieldType.PM,
subBuilder: Value.create)
..hasRequiredFields = false;
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
ArrayValue clone() => ArrayValue()..mergeFromMessage(this);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
ArrayValue copyWith(void Function(ArrayValue) updates) =>
super.copyWith((message) => updates(message as ArrayValue)) as ArrayValue;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static ArrayValue create() => ArrayValue._();
ArrayValue createEmptyInstance() => create();
static $pb.PbList<ArrayValue> createRepeated() => $pb.PbList<ArrayValue>();
@$core.pragma('dart2js:noInline')
static ArrayValue getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<ArrayValue>(create);
static ArrayValue? _defaultInstance;
/// Values in the array.
@$pb.TagNumber(1)
$core.List<Value> get values => $_getList(0);
}
/// A map value.
class MapValue extends $pb.GeneratedMessage {
factory MapValue({
$core.Map<$core.String, Value>? fields,
}) {
final $result = create();
if (fields != null) {
$result.fields.addAll(fields);
}
return $result;
}
MapValue._() : super();
factory MapValue.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory MapValue.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'MapValue',
package: const $pb.PackageName(
_omitMessageNames ? '' : 'google.events.cloud.firestore.v1'),
createEmptyInstance: create)
..m<$core.String, Value>(1, _omitFieldNames ? '' : 'fields',
entryClassName: 'MapValue.FieldsEntry',
keyFieldType: $pb.PbFieldType.OS,
valueFieldType: $pb.PbFieldType.OM,
valueCreator: Value.create,
valueDefaultOrMaker: Value.getDefault,
packageName: const $pb.PackageName('google.events.cloud.firestore.v1'))
..hasRequiredFields = false;
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
MapValue clone() => MapValue()..mergeFromMessage(this);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
MapValue copyWith(void Function(MapValue) updates) =>
super.copyWith((message) => updates(message as MapValue)) as MapValue;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static MapValue create() => MapValue._();
MapValue createEmptyInstance() => create();
static $pb.PbList<MapValue> createRepeated() => $pb.PbList<MapValue>();
@$core.pragma('dart2js:noInline')
static MapValue getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<MapValue>(create);
static MapValue? _defaultInstance;
/// The map's fields.
///
/// The map keys represent field names. Field names matching the regular
/// expression `__.*__` are reserved. Reserved field names are forbidden except
/// in certain documented contexts. The map keys, represented as UTF-8, must
/// not exceed 1,500 bytes and cannot be empty.
@$pb.TagNumber(1)
$core.Map<$core.String, Value> get fields => $_getMap(0);
}
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames =
$core.bool.fromEnvironment('protobuf.omit_message_names');