@firebase/firestore 3.4.2 → 3.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/firestore/src/api/snapshot.d.ts +6 -6
  3. package/dist/firestore/src/lite-api/snapshot.d.ts +2 -2
  4. package/dist/firestore/test/integration/bootstrap.d.ts +0 -1
  5. package/dist/firestore/test/integration/util/events_accumulator.d.ts +2 -2
  6. package/dist/firestore/test/integration/util/firebase_export.d.ts +6 -14
  7. package/dist/firestore/test/integration/util/helpers.d.ts +18 -18
  8. package/dist/firestore/test/integration/util/internal_helpers.d.ts +3 -3
  9. package/dist/firestore/test/integration/util/settings.d.ts +2 -2
  10. package/dist/firestore/test/unit/api/{blob.test.d.ts → bytes.test.d.ts} +0 -0
  11. package/dist/firestore/test/util/api_helpers.d.ts +1 -1
  12. package/dist/firestore/test/util/helpers.d.ts +4 -6
  13. package/dist/index.d.ts +6 -6
  14. package/dist/index.esm2017.js +869 -869
  15. package/dist/index.esm2017.js.map +1 -1
  16. package/dist/index.esm5.js +1257 -1257
  17. package/dist/index.esm5.js.map +1 -1
  18. package/dist/index.node.cjs.js +2674 -24
  19. package/dist/index.node.cjs.js.map +1 -1
  20. package/dist/index.node.mjs +2675 -25
  21. package/dist/index.node.mjs.map +1 -1
  22. package/dist/index.rn.js +1068 -1068
  23. package/dist/index.rn.js.map +1 -1
  24. package/dist/internal.d.ts +8 -8
  25. package/dist/lite/firestore/src/api/snapshot.d.ts +6 -6
  26. package/dist/lite/firestore/src/lite-api/snapshot.d.ts +2 -2
  27. package/dist/lite/firestore/test/integration/bootstrap.d.ts +0 -1
  28. package/dist/lite/firestore/test/integration/util/events_accumulator.d.ts +2 -2
  29. package/dist/lite/firestore/test/integration/util/firebase_export.d.ts +6 -14
  30. package/dist/lite/firestore/test/integration/util/helpers.d.ts +18 -18
  31. package/dist/lite/firestore/test/integration/util/internal_helpers.d.ts +3 -3
  32. package/dist/lite/firestore/test/integration/util/settings.d.ts +2 -2
  33. package/dist/lite/firestore/test/unit/api/{blob.test.d.ts → bytes.test.d.ts} +0 -0
  34. package/dist/lite/firestore/test/util/api_helpers.d.ts +1 -1
  35. package/dist/lite/firestore/test/util/helpers.d.ts +4 -6
  36. package/dist/lite/index.browser.esm2017.js +1136 -1136
  37. package/dist/lite/index.browser.esm2017.js.map +1 -1
  38. package/dist/lite/index.browser.esm5.js +105 -105
  39. package/dist/lite/index.browser.esm5.js.map +1 -1
  40. package/dist/lite/index.d.ts +2 -2
  41. package/dist/lite/index.node.cjs.js +11 -12
  42. package/dist/lite/index.node.cjs.js.map +1 -1
  43. package/dist/lite/index.node.mjs +11 -12
  44. package/dist/lite/index.node.mjs.map +1 -1
  45. package/dist/lite/index.rn.esm2017.js +148 -148
  46. package/dist/lite/index.rn.esm2017.js.map +1 -1
  47. package/dist/lite/internal.d.ts +2 -2
  48. package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +107 -107
  49. package/dist/lite/packages/firestore/src/api/snapshot.d.ts +6 -6
  50. package/dist/lite/packages/firestore/src/lite-api/snapshot.d.ts +2 -2
  51. package/dist/lite/packages/firestore/test/integration/bootstrap.d.ts +0 -1
  52. package/dist/lite/packages/firestore/test/integration/util/events_accumulator.d.ts +2 -2
  53. package/dist/lite/packages/firestore/test/integration/util/firebase_export.d.ts +6 -14
  54. package/dist/lite/packages/firestore/test/integration/util/helpers.d.ts +18 -18
  55. package/dist/lite/packages/firestore/test/integration/util/internal_helpers.d.ts +3 -3
  56. package/dist/lite/packages/firestore/test/integration/util/settings.d.ts +2 -2
  57. package/dist/lite/packages/firestore/test/unit/api/{blob.test.d.ts → bytes.test.d.ts} +0 -0
  58. package/dist/lite/packages/firestore/test/util/api_helpers.d.ts +1 -1
  59. package/dist/lite/packages/firestore/test/util/helpers.d.ts +4 -6
  60. package/dist/lite/private.d.ts +2 -2
  61. package/dist/packages/firestore/dist/index.esm2017.d.ts +105 -105
  62. package/dist/packages/firestore/src/api/snapshot.d.ts +6 -6
  63. package/dist/packages/firestore/src/lite-api/snapshot.d.ts +2 -2
  64. package/dist/packages/firestore/test/integration/bootstrap.d.ts +0 -1
  65. package/dist/packages/firestore/test/integration/util/events_accumulator.d.ts +2 -2
  66. package/dist/packages/firestore/test/integration/util/firebase_export.d.ts +6 -14
  67. package/dist/packages/firestore/test/integration/util/helpers.d.ts +18 -18
  68. package/dist/packages/firestore/test/integration/util/internal_helpers.d.ts +3 -3
  69. package/dist/packages/firestore/test/integration/util/settings.d.ts +2 -2
  70. package/dist/packages/firestore/test/unit/api/{blob.test.d.ts → bytes.test.d.ts} +0 -0
  71. package/dist/packages/firestore/test/util/api_helpers.d.ts +1 -1
  72. package/dist/packages/firestore/test/util/helpers.d.ts +4 -6
  73. package/dist/private.d.ts +8 -8
  74. package/package.json +4 -7
  75. package/dist/firestore/compat/api/blob.d.ts +0 -29
  76. package/dist/firestore/compat/api/database.d.ts +0 -228
  77. package/dist/firestore/compat/api/field_path.d.ts +0 -36
  78. package/dist/firestore/compat/api/field_value.d.ts +0 -29
  79. package/dist/firestore/compat/api/geo_point.d.ts +0 -17
  80. package/dist/firestore/compat/api/observer.d.ts +0 -29
  81. package/dist/firestore/compat/api/timestamp.d.ts +0 -17
  82. package/dist/firestore/compat/config.d.ts +0 -28
  83. package/dist/firestore/compat/index.console.d.ts +0 -42
  84. package/dist/firestore/compat/index.d.ts +0 -49
  85. package/dist/firestore/compat/index.node.d.ts +0 -22
  86. package/dist/firestore/compat/index.rn.d.ts +0 -22
  87. package/dist/firestore/compat/register-module.d.ts +0 -42
  88. package/dist/firestore/compat/util/input_validation.d.ts +0 -18
  89. package/dist/lite/firestore/compat/api/blob.d.ts +0 -29
  90. package/dist/lite/firestore/compat/api/database.d.ts +0 -228
  91. package/dist/lite/firestore/compat/api/field_path.d.ts +0 -36
  92. package/dist/lite/firestore/compat/api/field_value.d.ts +0 -29
  93. package/dist/lite/firestore/compat/api/geo_point.d.ts +0 -17
  94. package/dist/lite/firestore/compat/api/observer.d.ts +0 -29
  95. package/dist/lite/firestore/compat/api/timestamp.d.ts +0 -17
  96. package/dist/lite/firestore/compat/config.d.ts +0 -28
  97. package/dist/lite/firestore/compat/index.console.d.ts +0 -42
  98. package/dist/lite/firestore/compat/index.d.ts +0 -49
  99. package/dist/lite/firestore/compat/index.node.d.ts +0 -22
  100. package/dist/lite/firestore/compat/index.rn.d.ts +0 -22
  101. package/dist/lite/firestore/compat/register-module.d.ts +0 -42
  102. package/dist/lite/firestore/compat/util/input_validation.d.ts +0 -18
  103. package/dist/lite/packages/firestore/compat/api/blob.d.ts +0 -29
  104. package/dist/lite/packages/firestore/compat/api/database.d.ts +0 -228
  105. package/dist/lite/packages/firestore/compat/api/field_path.d.ts +0 -36
  106. package/dist/lite/packages/firestore/compat/api/field_value.d.ts +0 -29
  107. package/dist/lite/packages/firestore/compat/api/geo_point.d.ts +0 -17
  108. package/dist/lite/packages/firestore/compat/api/observer.d.ts +0 -29
  109. package/dist/lite/packages/firestore/compat/api/timestamp.d.ts +0 -17
  110. package/dist/lite/packages/firestore/compat/config.d.ts +0 -28
  111. package/dist/lite/packages/firestore/compat/index.console.d.ts +0 -42
  112. package/dist/lite/packages/firestore/compat/index.d.ts +0 -49
  113. package/dist/lite/packages/firestore/compat/index.node.d.ts +0 -22
  114. package/dist/lite/packages/firestore/compat/index.rn.d.ts +0 -22
  115. package/dist/lite/packages/firestore/compat/register-module.d.ts +0 -42
  116. package/dist/lite/packages/firestore/compat/util/input_validation.d.ts +0 -18
  117. package/dist/lite/src/protos/README.md +0 -2
  118. package/dist/lite/src/protos/firestore/bundle.proto +0 -121
  119. package/dist/lite/src/protos/firestore_bundle_proto.ts +0 -93
  120. package/dist/lite/src/protos/firestore_proto_api.ts +0 -1259
  121. package/dist/lite/src/protos/google/api/annotations.proto +0 -31
  122. package/dist/lite/src/protos/google/api/http.proto +0 -370
  123. package/dist/lite/src/protos/google/firestore/v1/common.proto +0 -84
  124. package/dist/lite/src/protos/google/firestore/v1/document.proto +0 -151
  125. package/dist/lite/src/protos/google/firestore/v1/firestore.proto +0 -761
  126. package/dist/lite/src/protos/google/firestore/v1/query.proto +0 -302
  127. package/dist/lite/src/protos/google/firestore/v1/write.proto +0 -264
  128. package/dist/lite/src/protos/google/protobuf/any.proto +0 -155
  129. package/dist/lite/src/protos/google/protobuf/descriptor.proto +0 -882
  130. package/dist/lite/src/protos/google/protobuf/empty.proto +0 -52
  131. package/dist/lite/src/protos/google/protobuf/struct.proto +0 -96
  132. package/dist/lite/src/protos/google/protobuf/timestamp.proto +0 -137
  133. package/dist/lite/src/protos/google/protobuf/wrappers.proto +0 -123
  134. package/dist/lite/src/protos/google/rpc/status.proto +0 -92
  135. package/dist/lite/src/protos/google/type/latlng.proto +0 -71
  136. package/dist/lite/src/protos/update.sh +0 -61
  137. package/dist/packages/firestore/compat/api/blob.d.ts +0 -29
  138. package/dist/packages/firestore/compat/api/database.d.ts +0 -228
  139. package/dist/packages/firestore/compat/api/field_path.d.ts +0 -36
  140. package/dist/packages/firestore/compat/api/field_value.d.ts +0 -29
  141. package/dist/packages/firestore/compat/api/geo_point.d.ts +0 -17
  142. package/dist/packages/firestore/compat/api/observer.d.ts +0 -29
  143. package/dist/packages/firestore/compat/api/timestamp.d.ts +0 -17
  144. package/dist/packages/firestore/compat/config.d.ts +0 -28
  145. package/dist/packages/firestore/compat/index.console.d.ts +0 -42
  146. package/dist/packages/firestore/compat/index.d.ts +0 -49
  147. package/dist/packages/firestore/compat/index.node.d.ts +0 -22
  148. package/dist/packages/firestore/compat/index.rn.d.ts +0 -22
  149. package/dist/packages/firestore/compat/register-module.d.ts +0 -42
  150. package/dist/packages/firestore/compat/util/input_validation.d.ts +0 -18
  151. package/dist/src/protos/README.md +0 -2
  152. package/dist/src/protos/firestore/bundle.proto +0 -121
  153. package/dist/src/protos/firestore_bundle_proto.ts +0 -93
  154. package/dist/src/protos/firestore_proto_api.ts +0 -1259
  155. package/dist/src/protos/google/api/annotations.proto +0 -31
  156. package/dist/src/protos/google/api/http.proto +0 -370
  157. package/dist/src/protos/google/firestore/v1/common.proto +0 -84
  158. package/dist/src/protos/google/firestore/v1/document.proto +0 -151
  159. package/dist/src/protos/google/firestore/v1/firestore.proto +0 -761
  160. package/dist/src/protos/google/firestore/v1/query.proto +0 -302
  161. package/dist/src/protos/google/firestore/v1/write.proto +0 -264
  162. package/dist/src/protos/google/protobuf/any.proto +0 -155
  163. package/dist/src/protos/google/protobuf/descriptor.proto +0 -882
  164. package/dist/src/protos/google/protobuf/empty.proto +0 -52
  165. package/dist/src/protos/google/protobuf/struct.proto +0 -96
  166. package/dist/src/protos/google/protobuf/timestamp.proto +0 -137
  167. package/dist/src/protos/google/protobuf/wrappers.proto +0 -123
  168. package/dist/src/protos/google/rpc/status.proto +0 -92
  169. package/dist/src/protos/google/type/latlng.proto +0 -71
  170. package/dist/src/protos/update.sh +0 -61
@@ -5,12 +5,10 @@ import { inspect, TextEncoder, TextDecoder } from 'util';
5
5
  import { FirebaseError, createMockUserToken, getModularInstance, deepEqual, getUA, isIndexedDBAvailable, isSafari } from '@firebase/util';
6
6
  import { randomBytes as randomBytes$1 } from 'crypto';
7
7
  import { credentials, loadPackageDefinition, Metadata } from '@grpc/grpc-js';
8
- import { dirname, resolve, join } from 'path';
9
- import { fileURLToPath } from 'url';
10
- import { loadSync } from '@grpc/proto-loader';
8
+ import { fromJSON } from '@grpc/proto-loader';
11
9
 
12
10
  const name = "@firebase/firestore";
13
- const version$1 = "3.4.2";
11
+ const version$1 = "3.4.3";
14
12
 
15
13
  /**
16
14
  * @license
@@ -63,7 +61,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
63
61
  User.FIRST_PARTY = new User('first-party-uid');
64
62
  User.MOCK_USER = new User('mock-user');
65
63
 
66
- const version = "9.6.2";
64
+ const version = "9.6.3";
67
65
 
68
66
  /**
69
67
  * @license
@@ -14480,6 +14478,2665 @@ class GrpcConnection {
14480
14478
  }
14481
14479
  }
14482
14480
 
14481
+ const nested = {
14482
+ google: {
14483
+ nested: {
14484
+ protobuf: {
14485
+ options: {
14486
+ csharp_namespace: "Google.Protobuf.WellKnownTypes",
14487
+ go_package: "github.com/golang/protobuf/ptypes/wrappers",
14488
+ java_package: "com.google.protobuf",
14489
+ java_outer_classname: "WrappersProto",
14490
+ java_multiple_files: true,
14491
+ objc_class_prefix: "GPB",
14492
+ cc_enable_arenas: true,
14493
+ optimize_for: "SPEED"
14494
+ },
14495
+ nested: {
14496
+ Timestamp: {
14497
+ fields: {
14498
+ seconds: {
14499
+ type: "int64",
14500
+ id: 1
14501
+ },
14502
+ nanos: {
14503
+ type: "int32",
14504
+ id: 2
14505
+ }
14506
+ }
14507
+ },
14508
+ FileDescriptorSet: {
14509
+ fields: {
14510
+ file: {
14511
+ rule: "repeated",
14512
+ type: "FileDescriptorProto",
14513
+ id: 1
14514
+ }
14515
+ }
14516
+ },
14517
+ FileDescriptorProto: {
14518
+ fields: {
14519
+ name: {
14520
+ type: "string",
14521
+ id: 1
14522
+ },
14523
+ "package": {
14524
+ type: "string",
14525
+ id: 2
14526
+ },
14527
+ dependency: {
14528
+ rule: "repeated",
14529
+ type: "string",
14530
+ id: 3
14531
+ },
14532
+ publicDependency: {
14533
+ rule: "repeated",
14534
+ type: "int32",
14535
+ id: 10,
14536
+ options: {
14537
+ packed: false
14538
+ }
14539
+ },
14540
+ weakDependency: {
14541
+ rule: "repeated",
14542
+ type: "int32",
14543
+ id: 11,
14544
+ options: {
14545
+ packed: false
14546
+ }
14547
+ },
14548
+ messageType: {
14549
+ rule: "repeated",
14550
+ type: "DescriptorProto",
14551
+ id: 4
14552
+ },
14553
+ enumType: {
14554
+ rule: "repeated",
14555
+ type: "EnumDescriptorProto",
14556
+ id: 5
14557
+ },
14558
+ service: {
14559
+ rule: "repeated",
14560
+ type: "ServiceDescriptorProto",
14561
+ id: 6
14562
+ },
14563
+ extension: {
14564
+ rule: "repeated",
14565
+ type: "FieldDescriptorProto",
14566
+ id: 7
14567
+ },
14568
+ options: {
14569
+ type: "FileOptions",
14570
+ id: 8
14571
+ },
14572
+ sourceCodeInfo: {
14573
+ type: "SourceCodeInfo",
14574
+ id: 9
14575
+ },
14576
+ syntax: {
14577
+ type: "string",
14578
+ id: 12
14579
+ }
14580
+ }
14581
+ },
14582
+ DescriptorProto: {
14583
+ fields: {
14584
+ name: {
14585
+ type: "string",
14586
+ id: 1
14587
+ },
14588
+ field: {
14589
+ rule: "repeated",
14590
+ type: "FieldDescriptorProto",
14591
+ id: 2
14592
+ },
14593
+ extension: {
14594
+ rule: "repeated",
14595
+ type: "FieldDescriptorProto",
14596
+ id: 6
14597
+ },
14598
+ nestedType: {
14599
+ rule: "repeated",
14600
+ type: "DescriptorProto",
14601
+ id: 3
14602
+ },
14603
+ enumType: {
14604
+ rule: "repeated",
14605
+ type: "EnumDescriptorProto",
14606
+ id: 4
14607
+ },
14608
+ extensionRange: {
14609
+ rule: "repeated",
14610
+ type: "ExtensionRange",
14611
+ id: 5
14612
+ },
14613
+ oneofDecl: {
14614
+ rule: "repeated",
14615
+ type: "OneofDescriptorProto",
14616
+ id: 8
14617
+ },
14618
+ options: {
14619
+ type: "MessageOptions",
14620
+ id: 7
14621
+ },
14622
+ reservedRange: {
14623
+ rule: "repeated",
14624
+ type: "ReservedRange",
14625
+ id: 9
14626
+ },
14627
+ reservedName: {
14628
+ rule: "repeated",
14629
+ type: "string",
14630
+ id: 10
14631
+ }
14632
+ },
14633
+ nested: {
14634
+ ExtensionRange: {
14635
+ fields: {
14636
+ start: {
14637
+ type: "int32",
14638
+ id: 1
14639
+ },
14640
+ end: {
14641
+ type: "int32",
14642
+ id: 2
14643
+ }
14644
+ }
14645
+ },
14646
+ ReservedRange: {
14647
+ fields: {
14648
+ start: {
14649
+ type: "int32",
14650
+ id: 1
14651
+ },
14652
+ end: {
14653
+ type: "int32",
14654
+ id: 2
14655
+ }
14656
+ }
14657
+ }
14658
+ }
14659
+ },
14660
+ FieldDescriptorProto: {
14661
+ fields: {
14662
+ name: {
14663
+ type: "string",
14664
+ id: 1
14665
+ },
14666
+ number: {
14667
+ type: "int32",
14668
+ id: 3
14669
+ },
14670
+ label: {
14671
+ type: "Label",
14672
+ id: 4
14673
+ },
14674
+ type: {
14675
+ type: "Type",
14676
+ id: 5
14677
+ },
14678
+ typeName: {
14679
+ type: "string",
14680
+ id: 6
14681
+ },
14682
+ extendee: {
14683
+ type: "string",
14684
+ id: 2
14685
+ },
14686
+ defaultValue: {
14687
+ type: "string",
14688
+ id: 7
14689
+ },
14690
+ oneofIndex: {
14691
+ type: "int32",
14692
+ id: 9
14693
+ },
14694
+ jsonName: {
14695
+ type: "string",
14696
+ id: 10
14697
+ },
14698
+ options: {
14699
+ type: "FieldOptions",
14700
+ id: 8
14701
+ }
14702
+ },
14703
+ nested: {
14704
+ Type: {
14705
+ values: {
14706
+ TYPE_DOUBLE: 1,
14707
+ TYPE_FLOAT: 2,
14708
+ TYPE_INT64: 3,
14709
+ TYPE_UINT64: 4,
14710
+ TYPE_INT32: 5,
14711
+ TYPE_FIXED64: 6,
14712
+ TYPE_FIXED32: 7,
14713
+ TYPE_BOOL: 8,
14714
+ TYPE_STRING: 9,
14715
+ TYPE_GROUP: 10,
14716
+ TYPE_MESSAGE: 11,
14717
+ TYPE_BYTES: 12,
14718
+ TYPE_UINT32: 13,
14719
+ TYPE_ENUM: 14,
14720
+ TYPE_SFIXED32: 15,
14721
+ TYPE_SFIXED64: 16,
14722
+ TYPE_SINT32: 17,
14723
+ TYPE_SINT64: 18
14724
+ }
14725
+ },
14726
+ Label: {
14727
+ values: {
14728
+ LABEL_OPTIONAL: 1,
14729
+ LABEL_REQUIRED: 2,
14730
+ LABEL_REPEATED: 3
14731
+ }
14732
+ }
14733
+ }
14734
+ },
14735
+ OneofDescriptorProto: {
14736
+ fields: {
14737
+ name: {
14738
+ type: "string",
14739
+ id: 1
14740
+ },
14741
+ options: {
14742
+ type: "OneofOptions",
14743
+ id: 2
14744
+ }
14745
+ }
14746
+ },
14747
+ EnumDescriptorProto: {
14748
+ fields: {
14749
+ name: {
14750
+ type: "string",
14751
+ id: 1
14752
+ },
14753
+ value: {
14754
+ rule: "repeated",
14755
+ type: "EnumValueDescriptorProto",
14756
+ id: 2
14757
+ },
14758
+ options: {
14759
+ type: "EnumOptions",
14760
+ id: 3
14761
+ }
14762
+ }
14763
+ },
14764
+ EnumValueDescriptorProto: {
14765
+ fields: {
14766
+ name: {
14767
+ type: "string",
14768
+ id: 1
14769
+ },
14770
+ number: {
14771
+ type: "int32",
14772
+ id: 2
14773
+ },
14774
+ options: {
14775
+ type: "EnumValueOptions",
14776
+ id: 3
14777
+ }
14778
+ }
14779
+ },
14780
+ ServiceDescriptorProto: {
14781
+ fields: {
14782
+ name: {
14783
+ type: "string",
14784
+ id: 1
14785
+ },
14786
+ method: {
14787
+ rule: "repeated",
14788
+ type: "MethodDescriptorProto",
14789
+ id: 2
14790
+ },
14791
+ options: {
14792
+ type: "ServiceOptions",
14793
+ id: 3
14794
+ }
14795
+ }
14796
+ },
14797
+ MethodDescriptorProto: {
14798
+ fields: {
14799
+ name: {
14800
+ type: "string",
14801
+ id: 1
14802
+ },
14803
+ inputType: {
14804
+ type: "string",
14805
+ id: 2
14806
+ },
14807
+ outputType: {
14808
+ type: "string",
14809
+ id: 3
14810
+ },
14811
+ options: {
14812
+ type: "MethodOptions",
14813
+ id: 4
14814
+ },
14815
+ clientStreaming: {
14816
+ type: "bool",
14817
+ id: 5
14818
+ },
14819
+ serverStreaming: {
14820
+ type: "bool",
14821
+ id: 6
14822
+ }
14823
+ }
14824
+ },
14825
+ FileOptions: {
14826
+ fields: {
14827
+ javaPackage: {
14828
+ type: "string",
14829
+ id: 1
14830
+ },
14831
+ javaOuterClassname: {
14832
+ type: "string",
14833
+ id: 8
14834
+ },
14835
+ javaMultipleFiles: {
14836
+ type: "bool",
14837
+ id: 10
14838
+ },
14839
+ javaGenerateEqualsAndHash: {
14840
+ type: "bool",
14841
+ id: 20,
14842
+ options: {
14843
+ deprecated: true
14844
+ }
14845
+ },
14846
+ javaStringCheckUtf8: {
14847
+ type: "bool",
14848
+ id: 27
14849
+ },
14850
+ optimizeFor: {
14851
+ type: "OptimizeMode",
14852
+ id: 9,
14853
+ options: {
14854
+ "default": "SPEED"
14855
+ }
14856
+ },
14857
+ goPackage: {
14858
+ type: "string",
14859
+ id: 11
14860
+ },
14861
+ ccGenericServices: {
14862
+ type: "bool",
14863
+ id: 16
14864
+ },
14865
+ javaGenericServices: {
14866
+ type: "bool",
14867
+ id: 17
14868
+ },
14869
+ pyGenericServices: {
14870
+ type: "bool",
14871
+ id: 18
14872
+ },
14873
+ deprecated: {
14874
+ type: "bool",
14875
+ id: 23
14876
+ },
14877
+ ccEnableArenas: {
14878
+ type: "bool",
14879
+ id: 31
14880
+ },
14881
+ objcClassPrefix: {
14882
+ type: "string",
14883
+ id: 36
14884
+ },
14885
+ csharpNamespace: {
14886
+ type: "string",
14887
+ id: 37
14888
+ },
14889
+ uninterpretedOption: {
14890
+ rule: "repeated",
14891
+ type: "UninterpretedOption",
14892
+ id: 999
14893
+ }
14894
+ },
14895
+ extensions: [
14896
+ [
14897
+ 1000,
14898
+ 536870911
14899
+ ]
14900
+ ],
14901
+ reserved: [
14902
+ [
14903
+ 38,
14904
+ 38
14905
+ ]
14906
+ ],
14907
+ nested: {
14908
+ OptimizeMode: {
14909
+ values: {
14910
+ SPEED: 1,
14911
+ CODE_SIZE: 2,
14912
+ LITE_RUNTIME: 3
14913
+ }
14914
+ }
14915
+ }
14916
+ },
14917
+ MessageOptions: {
14918
+ fields: {
14919
+ messageSetWireFormat: {
14920
+ type: "bool",
14921
+ id: 1
14922
+ },
14923
+ noStandardDescriptorAccessor: {
14924
+ type: "bool",
14925
+ id: 2
14926
+ },
14927
+ deprecated: {
14928
+ type: "bool",
14929
+ id: 3
14930
+ },
14931
+ mapEntry: {
14932
+ type: "bool",
14933
+ id: 7
14934
+ },
14935
+ uninterpretedOption: {
14936
+ rule: "repeated",
14937
+ type: "UninterpretedOption",
14938
+ id: 999
14939
+ }
14940
+ },
14941
+ extensions: [
14942
+ [
14943
+ 1000,
14944
+ 536870911
14945
+ ]
14946
+ ],
14947
+ reserved: [
14948
+ [
14949
+ 8,
14950
+ 8
14951
+ ]
14952
+ ]
14953
+ },
14954
+ FieldOptions: {
14955
+ fields: {
14956
+ ctype: {
14957
+ type: "CType",
14958
+ id: 1,
14959
+ options: {
14960
+ "default": "STRING"
14961
+ }
14962
+ },
14963
+ packed: {
14964
+ type: "bool",
14965
+ id: 2
14966
+ },
14967
+ jstype: {
14968
+ type: "JSType",
14969
+ id: 6,
14970
+ options: {
14971
+ "default": "JS_NORMAL"
14972
+ }
14973
+ },
14974
+ lazy: {
14975
+ type: "bool",
14976
+ id: 5
14977
+ },
14978
+ deprecated: {
14979
+ type: "bool",
14980
+ id: 3
14981
+ },
14982
+ weak: {
14983
+ type: "bool",
14984
+ id: 10
14985
+ },
14986
+ uninterpretedOption: {
14987
+ rule: "repeated",
14988
+ type: "UninterpretedOption",
14989
+ id: 999
14990
+ }
14991
+ },
14992
+ extensions: [
14993
+ [
14994
+ 1000,
14995
+ 536870911
14996
+ ]
14997
+ ],
14998
+ reserved: [
14999
+ [
15000
+ 4,
15001
+ 4
15002
+ ]
15003
+ ],
15004
+ nested: {
15005
+ CType: {
15006
+ values: {
15007
+ STRING: 0,
15008
+ CORD: 1,
15009
+ STRING_PIECE: 2
15010
+ }
15011
+ },
15012
+ JSType: {
15013
+ values: {
15014
+ JS_NORMAL: 0,
15015
+ JS_STRING: 1,
15016
+ JS_NUMBER: 2
15017
+ }
15018
+ }
15019
+ }
15020
+ },
15021
+ OneofOptions: {
15022
+ fields: {
15023
+ uninterpretedOption: {
15024
+ rule: "repeated",
15025
+ type: "UninterpretedOption",
15026
+ id: 999
15027
+ }
15028
+ },
15029
+ extensions: [
15030
+ [
15031
+ 1000,
15032
+ 536870911
15033
+ ]
15034
+ ]
15035
+ },
15036
+ EnumOptions: {
15037
+ fields: {
15038
+ allowAlias: {
15039
+ type: "bool",
15040
+ id: 2
15041
+ },
15042
+ deprecated: {
15043
+ type: "bool",
15044
+ id: 3
15045
+ },
15046
+ uninterpretedOption: {
15047
+ rule: "repeated",
15048
+ type: "UninterpretedOption",
15049
+ id: 999
15050
+ }
15051
+ },
15052
+ extensions: [
15053
+ [
15054
+ 1000,
15055
+ 536870911
15056
+ ]
15057
+ ]
15058
+ },
15059
+ EnumValueOptions: {
15060
+ fields: {
15061
+ deprecated: {
15062
+ type: "bool",
15063
+ id: 1
15064
+ },
15065
+ uninterpretedOption: {
15066
+ rule: "repeated",
15067
+ type: "UninterpretedOption",
15068
+ id: 999
15069
+ }
15070
+ },
15071
+ extensions: [
15072
+ [
15073
+ 1000,
15074
+ 536870911
15075
+ ]
15076
+ ]
15077
+ },
15078
+ ServiceOptions: {
15079
+ fields: {
15080
+ deprecated: {
15081
+ type: "bool",
15082
+ id: 33
15083
+ },
15084
+ uninterpretedOption: {
15085
+ rule: "repeated",
15086
+ type: "UninterpretedOption",
15087
+ id: 999
15088
+ }
15089
+ },
15090
+ extensions: [
15091
+ [
15092
+ 1000,
15093
+ 536870911
15094
+ ]
15095
+ ]
15096
+ },
15097
+ MethodOptions: {
15098
+ fields: {
15099
+ deprecated: {
15100
+ type: "bool",
15101
+ id: 33
15102
+ },
15103
+ uninterpretedOption: {
15104
+ rule: "repeated",
15105
+ type: "UninterpretedOption",
15106
+ id: 999
15107
+ }
15108
+ },
15109
+ extensions: [
15110
+ [
15111
+ 1000,
15112
+ 536870911
15113
+ ]
15114
+ ]
15115
+ },
15116
+ UninterpretedOption: {
15117
+ fields: {
15118
+ name: {
15119
+ rule: "repeated",
15120
+ type: "NamePart",
15121
+ id: 2
15122
+ },
15123
+ identifierValue: {
15124
+ type: "string",
15125
+ id: 3
15126
+ },
15127
+ positiveIntValue: {
15128
+ type: "uint64",
15129
+ id: 4
15130
+ },
15131
+ negativeIntValue: {
15132
+ type: "int64",
15133
+ id: 5
15134
+ },
15135
+ doubleValue: {
15136
+ type: "double",
15137
+ id: 6
15138
+ },
15139
+ stringValue: {
15140
+ type: "bytes",
15141
+ id: 7
15142
+ },
15143
+ aggregateValue: {
15144
+ type: "string",
15145
+ id: 8
15146
+ }
15147
+ },
15148
+ nested: {
15149
+ NamePart: {
15150
+ fields: {
15151
+ namePart: {
15152
+ rule: "required",
15153
+ type: "string",
15154
+ id: 1
15155
+ },
15156
+ isExtension: {
15157
+ rule: "required",
15158
+ type: "bool",
15159
+ id: 2
15160
+ }
15161
+ }
15162
+ }
15163
+ }
15164
+ },
15165
+ SourceCodeInfo: {
15166
+ fields: {
15167
+ location: {
15168
+ rule: "repeated",
15169
+ type: "Location",
15170
+ id: 1
15171
+ }
15172
+ },
15173
+ nested: {
15174
+ Location: {
15175
+ fields: {
15176
+ path: {
15177
+ rule: "repeated",
15178
+ type: "int32",
15179
+ id: 1
15180
+ },
15181
+ span: {
15182
+ rule: "repeated",
15183
+ type: "int32",
15184
+ id: 2
15185
+ },
15186
+ leadingComments: {
15187
+ type: "string",
15188
+ id: 3
15189
+ },
15190
+ trailingComments: {
15191
+ type: "string",
15192
+ id: 4
15193
+ },
15194
+ leadingDetachedComments: {
15195
+ rule: "repeated",
15196
+ type: "string",
15197
+ id: 6
15198
+ }
15199
+ }
15200
+ }
15201
+ }
15202
+ },
15203
+ GeneratedCodeInfo: {
15204
+ fields: {
15205
+ annotation: {
15206
+ rule: "repeated",
15207
+ type: "Annotation",
15208
+ id: 1
15209
+ }
15210
+ },
15211
+ nested: {
15212
+ Annotation: {
15213
+ fields: {
15214
+ path: {
15215
+ rule: "repeated",
15216
+ type: "int32",
15217
+ id: 1
15218
+ },
15219
+ sourceFile: {
15220
+ type: "string",
15221
+ id: 2
15222
+ },
15223
+ begin: {
15224
+ type: "int32",
15225
+ id: 3
15226
+ },
15227
+ end: {
15228
+ type: "int32",
15229
+ id: 4
15230
+ }
15231
+ }
15232
+ }
15233
+ }
15234
+ },
15235
+ Struct: {
15236
+ fields: {
15237
+ fields: {
15238
+ keyType: "string",
15239
+ type: "Value",
15240
+ id: 1
15241
+ }
15242
+ }
15243
+ },
15244
+ Value: {
15245
+ oneofs: {
15246
+ kind: {
15247
+ oneof: [
15248
+ "nullValue",
15249
+ "numberValue",
15250
+ "stringValue",
15251
+ "boolValue",
15252
+ "structValue",
15253
+ "listValue"
15254
+ ]
15255
+ }
15256
+ },
15257
+ fields: {
15258
+ nullValue: {
15259
+ type: "NullValue",
15260
+ id: 1
15261
+ },
15262
+ numberValue: {
15263
+ type: "double",
15264
+ id: 2
15265
+ },
15266
+ stringValue: {
15267
+ type: "string",
15268
+ id: 3
15269
+ },
15270
+ boolValue: {
15271
+ type: "bool",
15272
+ id: 4
15273
+ },
15274
+ structValue: {
15275
+ type: "Struct",
15276
+ id: 5
15277
+ },
15278
+ listValue: {
15279
+ type: "ListValue",
15280
+ id: 6
15281
+ }
15282
+ }
15283
+ },
15284
+ NullValue: {
15285
+ values: {
15286
+ NULL_VALUE: 0
15287
+ }
15288
+ },
15289
+ ListValue: {
15290
+ fields: {
15291
+ values: {
15292
+ rule: "repeated",
15293
+ type: "Value",
15294
+ id: 1
15295
+ }
15296
+ }
15297
+ },
15298
+ Empty: {
15299
+ fields: {
15300
+ }
15301
+ },
15302
+ DoubleValue: {
15303
+ fields: {
15304
+ value: {
15305
+ type: "double",
15306
+ id: 1
15307
+ }
15308
+ }
15309
+ },
15310
+ FloatValue: {
15311
+ fields: {
15312
+ value: {
15313
+ type: "float",
15314
+ id: 1
15315
+ }
15316
+ }
15317
+ },
15318
+ Int64Value: {
15319
+ fields: {
15320
+ value: {
15321
+ type: "int64",
15322
+ id: 1
15323
+ }
15324
+ }
15325
+ },
15326
+ UInt64Value: {
15327
+ fields: {
15328
+ value: {
15329
+ type: "uint64",
15330
+ id: 1
15331
+ }
15332
+ }
15333
+ },
15334
+ Int32Value: {
15335
+ fields: {
15336
+ value: {
15337
+ type: "int32",
15338
+ id: 1
15339
+ }
15340
+ }
15341
+ },
15342
+ UInt32Value: {
15343
+ fields: {
15344
+ value: {
15345
+ type: "uint32",
15346
+ id: 1
15347
+ }
15348
+ }
15349
+ },
15350
+ BoolValue: {
15351
+ fields: {
15352
+ value: {
15353
+ type: "bool",
15354
+ id: 1
15355
+ }
15356
+ }
15357
+ },
15358
+ StringValue: {
15359
+ fields: {
15360
+ value: {
15361
+ type: "string",
15362
+ id: 1
15363
+ }
15364
+ }
15365
+ },
15366
+ BytesValue: {
15367
+ fields: {
15368
+ value: {
15369
+ type: "bytes",
15370
+ id: 1
15371
+ }
15372
+ }
15373
+ },
15374
+ Any: {
15375
+ fields: {
15376
+ typeUrl: {
15377
+ type: "string",
15378
+ id: 1
15379
+ },
15380
+ value: {
15381
+ type: "bytes",
15382
+ id: 2
15383
+ }
15384
+ }
15385
+ }
15386
+ }
15387
+ },
15388
+ firestore: {
15389
+ nested: {
15390
+ v1: {
15391
+ options: {
15392
+ csharp_namespace: "Google.Cloud.Firestore.V1",
15393
+ go_package: "google.golang.org/genproto/googleapis/firestore/v1;firestore",
15394
+ java_multiple_files: true,
15395
+ java_outer_classname: "WriteProto",
15396
+ java_package: "com.google.firestore.v1",
15397
+ objc_class_prefix: "GCFS",
15398
+ php_namespace: "Google\\Cloud\\Firestore\\V1",
15399
+ ruby_package: "Google::Cloud::Firestore::V1"
15400
+ },
15401
+ nested: {
15402
+ DocumentMask: {
15403
+ fields: {
15404
+ fieldPaths: {
15405
+ rule: "repeated",
15406
+ type: "string",
15407
+ id: 1
15408
+ }
15409
+ }
15410
+ },
15411
+ Precondition: {
15412
+ oneofs: {
15413
+ conditionType: {
15414
+ oneof: [
15415
+ "exists",
15416
+ "updateTime"
15417
+ ]
15418
+ }
15419
+ },
15420
+ fields: {
15421
+ exists: {
15422
+ type: "bool",
15423
+ id: 1
15424
+ },
15425
+ updateTime: {
15426
+ type: "google.protobuf.Timestamp",
15427
+ id: 2
15428
+ }
15429
+ }
15430
+ },
15431
+ TransactionOptions: {
15432
+ oneofs: {
15433
+ mode: {
15434
+ oneof: [
15435
+ "readOnly",
15436
+ "readWrite"
15437
+ ]
15438
+ }
15439
+ },
15440
+ fields: {
15441
+ readOnly: {
15442
+ type: "ReadOnly",
15443
+ id: 2
15444
+ },
15445
+ readWrite: {
15446
+ type: "ReadWrite",
15447
+ id: 3
15448
+ }
15449
+ },
15450
+ nested: {
15451
+ ReadWrite: {
15452
+ fields: {
15453
+ retryTransaction: {
15454
+ type: "bytes",
15455
+ id: 1
15456
+ }
15457
+ }
15458
+ },
15459
+ ReadOnly: {
15460
+ oneofs: {
15461
+ consistencySelector: {
15462
+ oneof: [
15463
+ "readTime"
15464
+ ]
15465
+ }
15466
+ },
15467
+ fields: {
15468
+ readTime: {
15469
+ type: "google.protobuf.Timestamp",
15470
+ id: 2
15471
+ }
15472
+ }
15473
+ }
15474
+ }
15475
+ },
15476
+ Document: {
15477
+ fields: {
15478
+ name: {
15479
+ type: "string",
15480
+ id: 1
15481
+ },
15482
+ fields: {
15483
+ keyType: "string",
15484
+ type: "Value",
15485
+ id: 2
15486
+ },
15487
+ createTime: {
15488
+ type: "google.protobuf.Timestamp",
15489
+ id: 3
15490
+ },
15491
+ updateTime: {
15492
+ type: "google.protobuf.Timestamp",
15493
+ id: 4
15494
+ }
15495
+ }
15496
+ },
15497
+ Value: {
15498
+ oneofs: {
15499
+ valueType: {
15500
+ oneof: [
15501
+ "nullValue",
15502
+ "booleanValue",
15503
+ "integerValue",
15504
+ "doubleValue",
15505
+ "timestampValue",
15506
+ "stringValue",
15507
+ "bytesValue",
15508
+ "referenceValue",
15509
+ "geoPointValue",
15510
+ "arrayValue",
15511
+ "mapValue"
15512
+ ]
15513
+ }
15514
+ },
15515
+ fields: {
15516
+ nullValue: {
15517
+ type: "google.protobuf.NullValue",
15518
+ id: 11
15519
+ },
15520
+ booleanValue: {
15521
+ type: "bool",
15522
+ id: 1
15523
+ },
15524
+ integerValue: {
15525
+ type: "int64",
15526
+ id: 2
15527
+ },
15528
+ doubleValue: {
15529
+ type: "double",
15530
+ id: 3
15531
+ },
15532
+ timestampValue: {
15533
+ type: "google.protobuf.Timestamp",
15534
+ id: 10
15535
+ },
15536
+ stringValue: {
15537
+ type: "string",
15538
+ id: 17
15539
+ },
15540
+ bytesValue: {
15541
+ type: "bytes",
15542
+ id: 18
15543
+ },
15544
+ referenceValue: {
15545
+ type: "string",
15546
+ id: 5
15547
+ },
15548
+ geoPointValue: {
15549
+ type: "google.type.LatLng",
15550
+ id: 8
15551
+ },
15552
+ arrayValue: {
15553
+ type: "ArrayValue",
15554
+ id: 9
15555
+ },
15556
+ mapValue: {
15557
+ type: "MapValue",
15558
+ id: 6
15559
+ }
15560
+ }
15561
+ },
15562
+ ArrayValue: {
15563
+ fields: {
15564
+ values: {
15565
+ rule: "repeated",
15566
+ type: "Value",
15567
+ id: 1
15568
+ }
15569
+ }
15570
+ },
15571
+ MapValue: {
15572
+ fields: {
15573
+ fields: {
15574
+ keyType: "string",
15575
+ type: "Value",
15576
+ id: 1
15577
+ }
15578
+ }
15579
+ },
15580
+ Firestore: {
15581
+ options: {
15582
+ "(google.api.default_host)": "firestore.googleapis.com",
15583
+ "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/datastore"
15584
+ },
15585
+ methods: {
15586
+ GetDocument: {
15587
+ requestType: "GetDocumentRequest",
15588
+ responseType: "Document",
15589
+ options: {
15590
+ "(google.api.http).get": "/v1/{name=projects/*/databases/*/documents/*/**}"
15591
+ },
15592
+ parsedOptions: [
15593
+ {
15594
+ "(google.api.http)": {
15595
+ get: "/v1/{name=projects/*/databases/*/documents/*/**}"
15596
+ }
15597
+ }
15598
+ ]
15599
+ },
15600
+ ListDocuments: {
15601
+ requestType: "ListDocumentsRequest",
15602
+ responseType: "ListDocumentsResponse",
15603
+ options: {
15604
+ "(google.api.http).get": "/v1/{parent=projects/*/databases/*/documents/*/**}/{collection_id}"
15605
+ },
15606
+ parsedOptions: [
15607
+ {
15608
+ "(google.api.http)": {
15609
+ get: "/v1/{parent=projects/*/databases/*/documents/*/**}/{collection_id}"
15610
+ }
15611
+ }
15612
+ ]
15613
+ },
15614
+ UpdateDocument: {
15615
+ requestType: "UpdateDocumentRequest",
15616
+ responseType: "Document",
15617
+ options: {
15618
+ "(google.api.http).patch": "/v1/{document.name=projects/*/databases/*/documents/*/**}",
15619
+ "(google.api.http).body": "document",
15620
+ "(google.api.method_signature)": "document,update_mask"
15621
+ },
15622
+ parsedOptions: [
15623
+ {
15624
+ "(google.api.http)": {
15625
+ patch: "/v1/{document.name=projects/*/databases/*/documents/*/**}",
15626
+ body: "document"
15627
+ }
15628
+ },
15629
+ {
15630
+ "(google.api.method_signature)": "document,update_mask"
15631
+ }
15632
+ ]
15633
+ },
15634
+ DeleteDocument: {
15635
+ requestType: "DeleteDocumentRequest",
15636
+ responseType: "google.protobuf.Empty",
15637
+ options: {
15638
+ "(google.api.http).delete": "/v1/{name=projects/*/databases/*/documents/*/**}",
15639
+ "(google.api.method_signature)": "name"
15640
+ },
15641
+ parsedOptions: [
15642
+ {
15643
+ "(google.api.http)": {
15644
+ "delete": "/v1/{name=projects/*/databases/*/documents/*/**}"
15645
+ }
15646
+ },
15647
+ {
15648
+ "(google.api.method_signature)": "name"
15649
+ }
15650
+ ]
15651
+ },
15652
+ BatchGetDocuments: {
15653
+ requestType: "BatchGetDocumentsRequest",
15654
+ responseType: "BatchGetDocumentsResponse",
15655
+ responseStream: true,
15656
+ options: {
15657
+ "(google.api.http).post": "/v1/{database=projects/*/databases/*}/documents:batchGet",
15658
+ "(google.api.http).body": "*"
15659
+ },
15660
+ parsedOptions: [
15661
+ {
15662
+ "(google.api.http)": {
15663
+ post: "/v1/{database=projects/*/databases/*}/documents:batchGet",
15664
+ body: "*"
15665
+ }
15666
+ }
15667
+ ]
15668
+ },
15669
+ BeginTransaction: {
15670
+ requestType: "BeginTransactionRequest",
15671
+ responseType: "BeginTransactionResponse",
15672
+ options: {
15673
+ "(google.api.http).post": "/v1/{database=projects/*/databases/*}/documents:beginTransaction",
15674
+ "(google.api.http).body": "*",
15675
+ "(google.api.method_signature)": "database"
15676
+ },
15677
+ parsedOptions: [
15678
+ {
15679
+ "(google.api.http)": {
15680
+ post: "/v1/{database=projects/*/databases/*}/documents:beginTransaction",
15681
+ body: "*"
15682
+ }
15683
+ },
15684
+ {
15685
+ "(google.api.method_signature)": "database"
15686
+ }
15687
+ ]
15688
+ },
15689
+ Commit: {
15690
+ requestType: "CommitRequest",
15691
+ responseType: "CommitResponse",
15692
+ options: {
15693
+ "(google.api.http).post": "/v1/{database=projects/*/databases/*}/documents:commit",
15694
+ "(google.api.http).body": "*",
15695
+ "(google.api.method_signature)": "database,writes"
15696
+ },
15697
+ parsedOptions: [
15698
+ {
15699
+ "(google.api.http)": {
15700
+ post: "/v1/{database=projects/*/databases/*}/documents:commit",
15701
+ body: "*"
15702
+ }
15703
+ },
15704
+ {
15705
+ "(google.api.method_signature)": "database,writes"
15706
+ }
15707
+ ]
15708
+ },
15709
+ Rollback: {
15710
+ requestType: "RollbackRequest",
15711
+ responseType: "google.protobuf.Empty",
15712
+ options: {
15713
+ "(google.api.http).post": "/v1/{database=projects/*/databases/*}/documents:rollback",
15714
+ "(google.api.http).body": "*",
15715
+ "(google.api.method_signature)": "database,transaction"
15716
+ },
15717
+ parsedOptions: [
15718
+ {
15719
+ "(google.api.http)": {
15720
+ post: "/v1/{database=projects/*/databases/*}/documents:rollback",
15721
+ body: "*"
15722
+ }
15723
+ },
15724
+ {
15725
+ "(google.api.method_signature)": "database,transaction"
15726
+ }
15727
+ ]
15728
+ },
15729
+ RunQuery: {
15730
+ requestType: "RunQueryRequest",
15731
+ responseType: "RunQueryResponse",
15732
+ responseStream: true,
15733
+ options: {
15734
+ "(google.api.http).post": "/v1/{parent=projects/*/databases/*/documents}:runQuery",
15735
+ "(google.api.http).body": "*",
15736
+ "(google.api.http).additional_bindings.post": "/v1/{parent=projects/*/databases/*/documents/*/**}:runQuery",
15737
+ "(google.api.http).additional_bindings.body": "*"
15738
+ },
15739
+ parsedOptions: [
15740
+ {
15741
+ "(google.api.http)": {
15742
+ post: "/v1/{parent=projects/*/databases/*/documents}:runQuery",
15743
+ body: "*",
15744
+ additional_bindings: {
15745
+ post: "/v1/{parent=projects/*/databases/*/documents/*/**}:runQuery",
15746
+ body: "*"
15747
+ }
15748
+ }
15749
+ }
15750
+ ]
15751
+ },
15752
+ PartitionQuery: {
15753
+ requestType: "PartitionQueryRequest",
15754
+ responseType: "PartitionQueryResponse",
15755
+ options: {
15756
+ "(google.api.http).post": "/v1/{parent=projects/*/databases/*/documents}:partitionQuery",
15757
+ "(google.api.http).body": "*",
15758
+ "(google.api.http).additional_bindings.post": "/v1/{parent=projects/*/databases/*/documents/*/**}:partitionQuery",
15759
+ "(google.api.http).additional_bindings.body": "*"
15760
+ },
15761
+ parsedOptions: [
15762
+ {
15763
+ "(google.api.http)": {
15764
+ post: "/v1/{parent=projects/*/databases/*/documents}:partitionQuery",
15765
+ body: "*",
15766
+ additional_bindings: {
15767
+ post: "/v1/{parent=projects/*/databases/*/documents/*/**}:partitionQuery",
15768
+ body: "*"
15769
+ }
15770
+ }
15771
+ }
15772
+ ]
15773
+ },
15774
+ Write: {
15775
+ requestType: "WriteRequest",
15776
+ requestStream: true,
15777
+ responseType: "WriteResponse",
15778
+ responseStream: true,
15779
+ options: {
15780
+ "(google.api.http).post": "/v1/{database=projects/*/databases/*}/documents:write",
15781
+ "(google.api.http).body": "*"
15782
+ },
15783
+ parsedOptions: [
15784
+ {
15785
+ "(google.api.http)": {
15786
+ post: "/v1/{database=projects/*/databases/*}/documents:write",
15787
+ body: "*"
15788
+ }
15789
+ }
15790
+ ]
15791
+ },
15792
+ Listen: {
15793
+ requestType: "ListenRequest",
15794
+ requestStream: true,
15795
+ responseType: "ListenResponse",
15796
+ responseStream: true,
15797
+ options: {
15798
+ "(google.api.http).post": "/v1/{database=projects/*/databases/*}/documents:listen",
15799
+ "(google.api.http).body": "*"
15800
+ },
15801
+ parsedOptions: [
15802
+ {
15803
+ "(google.api.http)": {
15804
+ post: "/v1/{database=projects/*/databases/*}/documents:listen",
15805
+ body: "*"
15806
+ }
15807
+ }
15808
+ ]
15809
+ },
15810
+ ListCollectionIds: {
15811
+ requestType: "ListCollectionIdsRequest",
15812
+ responseType: "ListCollectionIdsResponse",
15813
+ options: {
15814
+ "(google.api.http).post": "/v1/{parent=projects/*/databases/*/documents}:listCollectionIds",
15815
+ "(google.api.http).body": "*",
15816
+ "(google.api.http).additional_bindings.post": "/v1/{parent=projects/*/databases/*/documents/*/**}:listCollectionIds",
15817
+ "(google.api.http).additional_bindings.body": "*",
15818
+ "(google.api.method_signature)": "parent"
15819
+ },
15820
+ parsedOptions: [
15821
+ {
15822
+ "(google.api.http)": {
15823
+ post: "/v1/{parent=projects/*/databases/*/documents}:listCollectionIds",
15824
+ body: "*",
15825
+ additional_bindings: {
15826
+ post: "/v1/{parent=projects/*/databases/*/documents/*/**}:listCollectionIds",
15827
+ body: "*"
15828
+ }
15829
+ }
15830
+ },
15831
+ {
15832
+ "(google.api.method_signature)": "parent"
15833
+ }
15834
+ ]
15835
+ },
15836
+ BatchWrite: {
15837
+ requestType: "BatchWriteRequest",
15838
+ responseType: "BatchWriteResponse",
15839
+ options: {
15840
+ "(google.api.http).post": "/v1/{database=projects/*/databases/*}/documents:batchWrite",
15841
+ "(google.api.http).body": "*"
15842
+ },
15843
+ parsedOptions: [
15844
+ {
15845
+ "(google.api.http)": {
15846
+ post: "/v1/{database=projects/*/databases/*}/documents:batchWrite",
15847
+ body: "*"
15848
+ }
15849
+ }
15850
+ ]
15851
+ },
15852
+ CreateDocument: {
15853
+ requestType: "CreateDocumentRequest",
15854
+ responseType: "Document",
15855
+ options: {
15856
+ "(google.api.http).post": "/v1/{parent=projects/*/databases/*/documents/**}/{collection_id}",
15857
+ "(google.api.http).body": "document"
15858
+ },
15859
+ parsedOptions: [
15860
+ {
15861
+ "(google.api.http)": {
15862
+ post: "/v1/{parent=projects/*/databases/*/documents/**}/{collection_id}",
15863
+ body: "document"
15864
+ }
15865
+ }
15866
+ ]
15867
+ }
15868
+ }
15869
+ },
15870
+ GetDocumentRequest: {
15871
+ oneofs: {
15872
+ consistencySelector: {
15873
+ oneof: [
15874
+ "transaction",
15875
+ "readTime"
15876
+ ]
15877
+ }
15878
+ },
15879
+ fields: {
15880
+ name: {
15881
+ type: "string",
15882
+ id: 1,
15883
+ options: {
15884
+ "(google.api.field_behavior)": "REQUIRED"
15885
+ }
15886
+ },
15887
+ mask: {
15888
+ type: "DocumentMask",
15889
+ id: 2
15890
+ },
15891
+ transaction: {
15892
+ type: "bytes",
15893
+ id: 3
15894
+ },
15895
+ readTime: {
15896
+ type: "google.protobuf.Timestamp",
15897
+ id: 5
15898
+ }
15899
+ }
15900
+ },
15901
+ ListDocumentsRequest: {
15902
+ oneofs: {
15903
+ consistencySelector: {
15904
+ oneof: [
15905
+ "transaction",
15906
+ "readTime"
15907
+ ]
15908
+ }
15909
+ },
15910
+ fields: {
15911
+ parent: {
15912
+ type: "string",
15913
+ id: 1,
15914
+ options: {
15915
+ "(google.api.field_behavior)": "REQUIRED"
15916
+ }
15917
+ },
15918
+ collectionId: {
15919
+ type: "string",
15920
+ id: 2,
15921
+ options: {
15922
+ "(google.api.field_behavior)": "REQUIRED"
15923
+ }
15924
+ },
15925
+ pageSize: {
15926
+ type: "int32",
15927
+ id: 3
15928
+ },
15929
+ pageToken: {
15930
+ type: "string",
15931
+ id: 4
15932
+ },
15933
+ orderBy: {
15934
+ type: "string",
15935
+ id: 6
15936
+ },
15937
+ mask: {
15938
+ type: "DocumentMask",
15939
+ id: 7
15940
+ },
15941
+ transaction: {
15942
+ type: "bytes",
15943
+ id: 8
15944
+ },
15945
+ readTime: {
15946
+ type: "google.protobuf.Timestamp",
15947
+ id: 10
15948
+ },
15949
+ showMissing: {
15950
+ type: "bool",
15951
+ id: 12
15952
+ }
15953
+ }
15954
+ },
15955
+ ListDocumentsResponse: {
15956
+ fields: {
15957
+ documents: {
15958
+ rule: "repeated",
15959
+ type: "Document",
15960
+ id: 1
15961
+ },
15962
+ nextPageToken: {
15963
+ type: "string",
15964
+ id: 2
15965
+ }
15966
+ }
15967
+ },
15968
+ CreateDocumentRequest: {
15969
+ fields: {
15970
+ parent: {
15971
+ type: "string",
15972
+ id: 1,
15973
+ options: {
15974
+ "(google.api.field_behavior)": "REQUIRED"
15975
+ }
15976
+ },
15977
+ collectionId: {
15978
+ type: "string",
15979
+ id: 2,
15980
+ options: {
15981
+ "(google.api.field_behavior)": "REQUIRED"
15982
+ }
15983
+ },
15984
+ documentId: {
15985
+ type: "string",
15986
+ id: 3
15987
+ },
15988
+ document: {
15989
+ type: "Document",
15990
+ id: 4,
15991
+ options: {
15992
+ "(google.api.field_behavior)": "REQUIRED"
15993
+ }
15994
+ },
15995
+ mask: {
15996
+ type: "DocumentMask",
15997
+ id: 5
15998
+ }
15999
+ }
16000
+ },
16001
+ UpdateDocumentRequest: {
16002
+ fields: {
16003
+ document: {
16004
+ type: "Document",
16005
+ id: 1,
16006
+ options: {
16007
+ "(google.api.field_behavior)": "REQUIRED"
16008
+ }
16009
+ },
16010
+ updateMask: {
16011
+ type: "DocumentMask",
16012
+ id: 2
16013
+ },
16014
+ mask: {
16015
+ type: "DocumentMask",
16016
+ id: 3
16017
+ },
16018
+ currentDocument: {
16019
+ type: "Precondition",
16020
+ id: 4
16021
+ }
16022
+ }
16023
+ },
16024
+ DeleteDocumentRequest: {
16025
+ fields: {
16026
+ name: {
16027
+ type: "string",
16028
+ id: 1,
16029
+ options: {
16030
+ "(google.api.field_behavior)": "REQUIRED"
16031
+ }
16032
+ },
16033
+ currentDocument: {
16034
+ type: "Precondition",
16035
+ id: 2
16036
+ }
16037
+ }
16038
+ },
16039
+ BatchGetDocumentsRequest: {
16040
+ oneofs: {
16041
+ consistencySelector: {
16042
+ oneof: [
16043
+ "transaction",
16044
+ "newTransaction",
16045
+ "readTime"
16046
+ ]
16047
+ }
16048
+ },
16049
+ fields: {
16050
+ database: {
16051
+ type: "string",
16052
+ id: 1,
16053
+ options: {
16054
+ "(google.api.field_behavior)": "REQUIRED"
16055
+ }
16056
+ },
16057
+ documents: {
16058
+ rule: "repeated",
16059
+ type: "string",
16060
+ id: 2
16061
+ },
16062
+ mask: {
16063
+ type: "DocumentMask",
16064
+ id: 3
16065
+ },
16066
+ transaction: {
16067
+ type: "bytes",
16068
+ id: 4
16069
+ },
16070
+ newTransaction: {
16071
+ type: "TransactionOptions",
16072
+ id: 5
16073
+ },
16074
+ readTime: {
16075
+ type: "google.protobuf.Timestamp",
16076
+ id: 7
16077
+ }
16078
+ }
16079
+ },
16080
+ BatchGetDocumentsResponse: {
16081
+ oneofs: {
16082
+ result: {
16083
+ oneof: [
16084
+ "found",
16085
+ "missing"
16086
+ ]
16087
+ }
16088
+ },
16089
+ fields: {
16090
+ found: {
16091
+ type: "Document",
16092
+ id: 1
16093
+ },
16094
+ missing: {
16095
+ type: "string",
16096
+ id: 2
16097
+ },
16098
+ transaction: {
16099
+ type: "bytes",
16100
+ id: 3
16101
+ },
16102
+ readTime: {
16103
+ type: "google.protobuf.Timestamp",
16104
+ id: 4
16105
+ }
16106
+ }
16107
+ },
16108
+ BeginTransactionRequest: {
16109
+ fields: {
16110
+ database: {
16111
+ type: "string",
16112
+ id: 1,
16113
+ options: {
16114
+ "(google.api.field_behavior)": "REQUIRED"
16115
+ }
16116
+ },
16117
+ options: {
16118
+ type: "TransactionOptions",
16119
+ id: 2
16120
+ }
16121
+ }
16122
+ },
16123
+ BeginTransactionResponse: {
16124
+ fields: {
16125
+ transaction: {
16126
+ type: "bytes",
16127
+ id: 1
16128
+ }
16129
+ }
16130
+ },
16131
+ CommitRequest: {
16132
+ fields: {
16133
+ database: {
16134
+ type: "string",
16135
+ id: 1,
16136
+ options: {
16137
+ "(google.api.field_behavior)": "REQUIRED"
16138
+ }
16139
+ },
16140
+ writes: {
16141
+ rule: "repeated",
16142
+ type: "Write",
16143
+ id: 2
16144
+ },
16145
+ transaction: {
16146
+ type: "bytes",
16147
+ id: 3
16148
+ }
16149
+ }
16150
+ },
16151
+ CommitResponse: {
16152
+ fields: {
16153
+ writeResults: {
16154
+ rule: "repeated",
16155
+ type: "WriteResult",
16156
+ id: 1
16157
+ },
16158
+ commitTime: {
16159
+ type: "google.protobuf.Timestamp",
16160
+ id: 2
16161
+ }
16162
+ }
16163
+ },
16164
+ RollbackRequest: {
16165
+ fields: {
16166
+ database: {
16167
+ type: "string",
16168
+ id: 1,
16169
+ options: {
16170
+ "(google.api.field_behavior)": "REQUIRED"
16171
+ }
16172
+ },
16173
+ transaction: {
16174
+ type: "bytes",
16175
+ id: 2,
16176
+ options: {
16177
+ "(google.api.field_behavior)": "REQUIRED"
16178
+ }
16179
+ }
16180
+ }
16181
+ },
16182
+ RunQueryRequest: {
16183
+ oneofs: {
16184
+ queryType: {
16185
+ oneof: [
16186
+ "structuredQuery"
16187
+ ]
16188
+ },
16189
+ consistencySelector: {
16190
+ oneof: [
16191
+ "transaction",
16192
+ "newTransaction",
16193
+ "readTime"
16194
+ ]
16195
+ }
16196
+ },
16197
+ fields: {
16198
+ parent: {
16199
+ type: "string",
16200
+ id: 1,
16201
+ options: {
16202
+ "(google.api.field_behavior)": "REQUIRED"
16203
+ }
16204
+ },
16205
+ structuredQuery: {
16206
+ type: "StructuredQuery",
16207
+ id: 2
16208
+ },
16209
+ transaction: {
16210
+ type: "bytes",
16211
+ id: 5
16212
+ },
16213
+ newTransaction: {
16214
+ type: "TransactionOptions",
16215
+ id: 6
16216
+ },
16217
+ readTime: {
16218
+ type: "google.protobuf.Timestamp",
16219
+ id: 7
16220
+ }
16221
+ }
16222
+ },
16223
+ RunQueryResponse: {
16224
+ fields: {
16225
+ transaction: {
16226
+ type: "bytes",
16227
+ id: 2
16228
+ },
16229
+ document: {
16230
+ type: "Document",
16231
+ id: 1
16232
+ },
16233
+ readTime: {
16234
+ type: "google.protobuf.Timestamp",
16235
+ id: 3
16236
+ },
16237
+ skippedResults: {
16238
+ type: "int32",
16239
+ id: 4
16240
+ }
16241
+ }
16242
+ },
16243
+ PartitionQueryRequest: {
16244
+ oneofs: {
16245
+ queryType: {
16246
+ oneof: [
16247
+ "structuredQuery"
16248
+ ]
16249
+ }
16250
+ },
16251
+ fields: {
16252
+ parent: {
16253
+ type: "string",
16254
+ id: 1,
16255
+ options: {
16256
+ "(google.api.field_behavior)": "REQUIRED"
16257
+ }
16258
+ },
16259
+ structuredQuery: {
16260
+ type: "StructuredQuery",
16261
+ id: 2
16262
+ },
16263
+ partitionCount: {
16264
+ type: "int64",
16265
+ id: 3
16266
+ },
16267
+ pageToken: {
16268
+ type: "string",
16269
+ id: 4
16270
+ },
16271
+ pageSize: {
16272
+ type: "int32",
16273
+ id: 5
16274
+ }
16275
+ }
16276
+ },
16277
+ PartitionQueryResponse: {
16278
+ fields: {
16279
+ partitions: {
16280
+ rule: "repeated",
16281
+ type: "Cursor",
16282
+ id: 1
16283
+ },
16284
+ nextPageToken: {
16285
+ type: "string",
16286
+ id: 2
16287
+ }
16288
+ }
16289
+ },
16290
+ WriteRequest: {
16291
+ fields: {
16292
+ database: {
16293
+ type: "string",
16294
+ id: 1,
16295
+ options: {
16296
+ "(google.api.field_behavior)": "REQUIRED"
16297
+ }
16298
+ },
16299
+ streamId: {
16300
+ type: "string",
16301
+ id: 2
16302
+ },
16303
+ writes: {
16304
+ rule: "repeated",
16305
+ type: "Write",
16306
+ id: 3
16307
+ },
16308
+ streamToken: {
16309
+ type: "bytes",
16310
+ id: 4
16311
+ },
16312
+ labels: {
16313
+ keyType: "string",
16314
+ type: "string",
16315
+ id: 5
16316
+ }
16317
+ }
16318
+ },
16319
+ WriteResponse: {
16320
+ fields: {
16321
+ streamId: {
16322
+ type: "string",
16323
+ id: 1
16324
+ },
16325
+ streamToken: {
16326
+ type: "bytes",
16327
+ id: 2
16328
+ },
16329
+ writeResults: {
16330
+ rule: "repeated",
16331
+ type: "WriteResult",
16332
+ id: 3
16333
+ },
16334
+ commitTime: {
16335
+ type: "google.protobuf.Timestamp",
16336
+ id: 4
16337
+ }
16338
+ }
16339
+ },
16340
+ ListenRequest: {
16341
+ oneofs: {
16342
+ targetChange: {
16343
+ oneof: [
16344
+ "addTarget",
16345
+ "removeTarget"
16346
+ ]
16347
+ }
16348
+ },
16349
+ fields: {
16350
+ database: {
16351
+ type: "string",
16352
+ id: 1,
16353
+ options: {
16354
+ "(google.api.field_behavior)": "REQUIRED"
16355
+ }
16356
+ },
16357
+ addTarget: {
16358
+ type: "Target",
16359
+ id: 2
16360
+ },
16361
+ removeTarget: {
16362
+ type: "int32",
16363
+ id: 3
16364
+ },
16365
+ labels: {
16366
+ keyType: "string",
16367
+ type: "string",
16368
+ id: 4
16369
+ }
16370
+ }
16371
+ },
16372
+ ListenResponse: {
16373
+ oneofs: {
16374
+ responseType: {
16375
+ oneof: [
16376
+ "targetChange",
16377
+ "documentChange",
16378
+ "documentDelete",
16379
+ "documentRemove",
16380
+ "filter"
16381
+ ]
16382
+ }
16383
+ },
16384
+ fields: {
16385
+ targetChange: {
16386
+ type: "TargetChange",
16387
+ id: 2
16388
+ },
16389
+ documentChange: {
16390
+ type: "DocumentChange",
16391
+ id: 3
16392
+ },
16393
+ documentDelete: {
16394
+ type: "DocumentDelete",
16395
+ id: 4
16396
+ },
16397
+ documentRemove: {
16398
+ type: "DocumentRemove",
16399
+ id: 6
16400
+ },
16401
+ filter: {
16402
+ type: "ExistenceFilter",
16403
+ id: 5
16404
+ }
16405
+ }
16406
+ },
16407
+ Target: {
16408
+ oneofs: {
16409
+ targetType: {
16410
+ oneof: [
16411
+ "query",
16412
+ "documents"
16413
+ ]
16414
+ },
16415
+ resumeType: {
16416
+ oneof: [
16417
+ "resumeToken",
16418
+ "readTime"
16419
+ ]
16420
+ }
16421
+ },
16422
+ fields: {
16423
+ query: {
16424
+ type: "QueryTarget",
16425
+ id: 2
16426
+ },
16427
+ documents: {
16428
+ type: "DocumentsTarget",
16429
+ id: 3
16430
+ },
16431
+ resumeToken: {
16432
+ type: "bytes",
16433
+ id: 4
16434
+ },
16435
+ readTime: {
16436
+ type: "google.protobuf.Timestamp",
16437
+ id: 11
16438
+ },
16439
+ targetId: {
16440
+ type: "int32",
16441
+ id: 5
16442
+ },
16443
+ once: {
16444
+ type: "bool",
16445
+ id: 6
16446
+ }
16447
+ },
16448
+ nested: {
16449
+ DocumentsTarget: {
16450
+ fields: {
16451
+ documents: {
16452
+ rule: "repeated",
16453
+ type: "string",
16454
+ id: 2
16455
+ }
16456
+ }
16457
+ },
16458
+ QueryTarget: {
16459
+ oneofs: {
16460
+ queryType: {
16461
+ oneof: [
16462
+ "structuredQuery"
16463
+ ]
16464
+ }
16465
+ },
16466
+ fields: {
16467
+ parent: {
16468
+ type: "string",
16469
+ id: 1
16470
+ },
16471
+ structuredQuery: {
16472
+ type: "StructuredQuery",
16473
+ id: 2
16474
+ }
16475
+ }
16476
+ }
16477
+ }
16478
+ },
16479
+ TargetChange: {
16480
+ fields: {
16481
+ targetChangeType: {
16482
+ type: "TargetChangeType",
16483
+ id: 1
16484
+ },
16485
+ targetIds: {
16486
+ rule: "repeated",
16487
+ type: "int32",
16488
+ id: 2
16489
+ },
16490
+ cause: {
16491
+ type: "google.rpc.Status",
16492
+ id: 3
16493
+ },
16494
+ resumeToken: {
16495
+ type: "bytes",
16496
+ id: 4
16497
+ },
16498
+ readTime: {
16499
+ type: "google.protobuf.Timestamp",
16500
+ id: 6
16501
+ }
16502
+ },
16503
+ nested: {
16504
+ TargetChangeType: {
16505
+ values: {
16506
+ NO_CHANGE: 0,
16507
+ ADD: 1,
16508
+ REMOVE: 2,
16509
+ CURRENT: 3,
16510
+ RESET: 4
16511
+ }
16512
+ }
16513
+ }
16514
+ },
16515
+ ListCollectionIdsRequest: {
16516
+ fields: {
16517
+ parent: {
16518
+ type: "string",
16519
+ id: 1,
16520
+ options: {
16521
+ "(google.api.field_behavior)": "REQUIRED"
16522
+ }
16523
+ },
16524
+ pageSize: {
16525
+ type: "int32",
16526
+ id: 2
16527
+ },
16528
+ pageToken: {
16529
+ type: "string",
16530
+ id: 3
16531
+ }
16532
+ }
16533
+ },
16534
+ ListCollectionIdsResponse: {
16535
+ fields: {
16536
+ collectionIds: {
16537
+ rule: "repeated",
16538
+ type: "string",
16539
+ id: 1
16540
+ },
16541
+ nextPageToken: {
16542
+ type: "string",
16543
+ id: 2
16544
+ }
16545
+ }
16546
+ },
16547
+ BatchWriteRequest: {
16548
+ fields: {
16549
+ database: {
16550
+ type: "string",
16551
+ id: 1,
16552
+ options: {
16553
+ "(google.api.field_behavior)": "REQUIRED"
16554
+ }
16555
+ },
16556
+ writes: {
16557
+ rule: "repeated",
16558
+ type: "Write",
16559
+ id: 2
16560
+ },
16561
+ labels: {
16562
+ keyType: "string",
16563
+ type: "string",
16564
+ id: 3
16565
+ }
16566
+ }
16567
+ },
16568
+ BatchWriteResponse: {
16569
+ fields: {
16570
+ writeResults: {
16571
+ rule: "repeated",
16572
+ type: "WriteResult",
16573
+ id: 1
16574
+ },
16575
+ status: {
16576
+ rule: "repeated",
16577
+ type: "google.rpc.Status",
16578
+ id: 2
16579
+ }
16580
+ }
16581
+ },
16582
+ StructuredQuery: {
16583
+ fields: {
16584
+ select: {
16585
+ type: "Projection",
16586
+ id: 1
16587
+ },
16588
+ from: {
16589
+ rule: "repeated",
16590
+ type: "CollectionSelector",
16591
+ id: 2
16592
+ },
16593
+ where: {
16594
+ type: "Filter",
16595
+ id: 3
16596
+ },
16597
+ orderBy: {
16598
+ rule: "repeated",
16599
+ type: "Order",
16600
+ id: 4
16601
+ },
16602
+ startAt: {
16603
+ type: "Cursor",
16604
+ id: 7
16605
+ },
16606
+ endAt: {
16607
+ type: "Cursor",
16608
+ id: 8
16609
+ },
16610
+ offset: {
16611
+ type: "int32",
16612
+ id: 6
16613
+ },
16614
+ limit: {
16615
+ type: "google.protobuf.Int32Value",
16616
+ id: 5
16617
+ }
16618
+ },
16619
+ nested: {
16620
+ CollectionSelector: {
16621
+ fields: {
16622
+ collectionId: {
16623
+ type: "string",
16624
+ id: 2
16625
+ },
16626
+ allDescendants: {
16627
+ type: "bool",
16628
+ id: 3
16629
+ }
16630
+ }
16631
+ },
16632
+ Filter: {
16633
+ oneofs: {
16634
+ filterType: {
16635
+ oneof: [
16636
+ "compositeFilter",
16637
+ "fieldFilter",
16638
+ "unaryFilter"
16639
+ ]
16640
+ }
16641
+ },
16642
+ fields: {
16643
+ compositeFilter: {
16644
+ type: "CompositeFilter",
16645
+ id: 1
16646
+ },
16647
+ fieldFilter: {
16648
+ type: "FieldFilter",
16649
+ id: 2
16650
+ },
16651
+ unaryFilter: {
16652
+ type: "UnaryFilter",
16653
+ id: 3
16654
+ }
16655
+ }
16656
+ },
16657
+ CompositeFilter: {
16658
+ fields: {
16659
+ op: {
16660
+ type: "Operator",
16661
+ id: 1
16662
+ },
16663
+ filters: {
16664
+ rule: "repeated",
16665
+ type: "Filter",
16666
+ id: 2
16667
+ }
16668
+ },
16669
+ nested: {
16670
+ Operator: {
16671
+ values: {
16672
+ OPERATOR_UNSPECIFIED: 0,
16673
+ AND: 1
16674
+ }
16675
+ }
16676
+ }
16677
+ },
16678
+ FieldFilter: {
16679
+ fields: {
16680
+ field: {
16681
+ type: "FieldReference",
16682
+ id: 1
16683
+ },
16684
+ op: {
16685
+ type: "Operator",
16686
+ id: 2
16687
+ },
16688
+ value: {
16689
+ type: "Value",
16690
+ id: 3
16691
+ }
16692
+ },
16693
+ nested: {
16694
+ Operator: {
16695
+ values: {
16696
+ OPERATOR_UNSPECIFIED: 0,
16697
+ LESS_THAN: 1,
16698
+ LESS_THAN_OR_EQUAL: 2,
16699
+ GREATER_THAN: 3,
16700
+ GREATER_THAN_OR_EQUAL: 4,
16701
+ EQUAL: 5,
16702
+ NOT_EQUAL: 6,
16703
+ ARRAY_CONTAINS: 7,
16704
+ IN: 8,
16705
+ ARRAY_CONTAINS_ANY: 9,
16706
+ NOT_IN: 10
16707
+ }
16708
+ }
16709
+ }
16710
+ },
16711
+ UnaryFilter: {
16712
+ oneofs: {
16713
+ operandType: {
16714
+ oneof: [
16715
+ "field"
16716
+ ]
16717
+ }
16718
+ },
16719
+ fields: {
16720
+ op: {
16721
+ type: "Operator",
16722
+ id: 1
16723
+ },
16724
+ field: {
16725
+ type: "FieldReference",
16726
+ id: 2
16727
+ }
16728
+ },
16729
+ nested: {
16730
+ Operator: {
16731
+ values: {
16732
+ OPERATOR_UNSPECIFIED: 0,
16733
+ IS_NAN: 2,
16734
+ IS_NULL: 3,
16735
+ IS_NOT_NAN: 4,
16736
+ IS_NOT_NULL: 5
16737
+ }
16738
+ }
16739
+ }
16740
+ },
16741
+ Order: {
16742
+ fields: {
16743
+ field: {
16744
+ type: "FieldReference",
16745
+ id: 1
16746
+ },
16747
+ direction: {
16748
+ type: "Direction",
16749
+ id: 2
16750
+ }
16751
+ }
16752
+ },
16753
+ FieldReference: {
16754
+ fields: {
16755
+ fieldPath: {
16756
+ type: "string",
16757
+ id: 2
16758
+ }
16759
+ }
16760
+ },
16761
+ Projection: {
16762
+ fields: {
16763
+ fields: {
16764
+ rule: "repeated",
16765
+ type: "FieldReference",
16766
+ id: 2
16767
+ }
16768
+ }
16769
+ },
16770
+ Direction: {
16771
+ values: {
16772
+ DIRECTION_UNSPECIFIED: 0,
16773
+ ASCENDING: 1,
16774
+ DESCENDING: 2
16775
+ }
16776
+ }
16777
+ }
16778
+ },
16779
+ Cursor: {
16780
+ fields: {
16781
+ values: {
16782
+ rule: "repeated",
16783
+ type: "Value",
16784
+ id: 1
16785
+ },
16786
+ before: {
16787
+ type: "bool",
16788
+ id: 2
16789
+ }
16790
+ }
16791
+ },
16792
+ Write: {
16793
+ oneofs: {
16794
+ operation: {
16795
+ oneof: [
16796
+ "update",
16797
+ "delete",
16798
+ "verify",
16799
+ "transform"
16800
+ ]
16801
+ }
16802
+ },
16803
+ fields: {
16804
+ update: {
16805
+ type: "Document",
16806
+ id: 1
16807
+ },
16808
+ "delete": {
16809
+ type: "string",
16810
+ id: 2
16811
+ },
16812
+ verify: {
16813
+ type: "string",
16814
+ id: 5
16815
+ },
16816
+ transform: {
16817
+ type: "DocumentTransform",
16818
+ id: 6
16819
+ },
16820
+ updateMask: {
16821
+ type: "DocumentMask",
16822
+ id: 3
16823
+ },
16824
+ updateTransforms: {
16825
+ rule: "repeated",
16826
+ type: "DocumentTransform.FieldTransform",
16827
+ id: 7
16828
+ },
16829
+ currentDocument: {
16830
+ type: "Precondition",
16831
+ id: 4
16832
+ }
16833
+ }
16834
+ },
16835
+ DocumentTransform: {
16836
+ fields: {
16837
+ document: {
16838
+ type: "string",
16839
+ id: 1
16840
+ },
16841
+ fieldTransforms: {
16842
+ rule: "repeated",
16843
+ type: "FieldTransform",
16844
+ id: 2
16845
+ }
16846
+ },
16847
+ nested: {
16848
+ FieldTransform: {
16849
+ oneofs: {
16850
+ transformType: {
16851
+ oneof: [
16852
+ "setToServerValue",
16853
+ "increment",
16854
+ "maximum",
16855
+ "minimum",
16856
+ "appendMissingElements",
16857
+ "removeAllFromArray"
16858
+ ]
16859
+ }
16860
+ },
16861
+ fields: {
16862
+ fieldPath: {
16863
+ type: "string",
16864
+ id: 1
16865
+ },
16866
+ setToServerValue: {
16867
+ type: "ServerValue",
16868
+ id: 2
16869
+ },
16870
+ increment: {
16871
+ type: "Value",
16872
+ id: 3
16873
+ },
16874
+ maximum: {
16875
+ type: "Value",
16876
+ id: 4
16877
+ },
16878
+ minimum: {
16879
+ type: "Value",
16880
+ id: 5
16881
+ },
16882
+ appendMissingElements: {
16883
+ type: "ArrayValue",
16884
+ id: 6
16885
+ },
16886
+ removeAllFromArray: {
16887
+ type: "ArrayValue",
16888
+ id: 7
16889
+ }
16890
+ },
16891
+ nested: {
16892
+ ServerValue: {
16893
+ values: {
16894
+ SERVER_VALUE_UNSPECIFIED: 0,
16895
+ REQUEST_TIME: 1
16896
+ }
16897
+ }
16898
+ }
16899
+ }
16900
+ }
16901
+ },
16902
+ WriteResult: {
16903
+ fields: {
16904
+ updateTime: {
16905
+ type: "google.protobuf.Timestamp",
16906
+ id: 1
16907
+ },
16908
+ transformResults: {
16909
+ rule: "repeated",
16910
+ type: "Value",
16911
+ id: 2
16912
+ }
16913
+ }
16914
+ },
16915
+ DocumentChange: {
16916
+ fields: {
16917
+ document: {
16918
+ type: "Document",
16919
+ id: 1
16920
+ },
16921
+ targetIds: {
16922
+ rule: "repeated",
16923
+ type: "int32",
16924
+ id: 5
16925
+ },
16926
+ removedTargetIds: {
16927
+ rule: "repeated",
16928
+ type: "int32",
16929
+ id: 6
16930
+ }
16931
+ }
16932
+ },
16933
+ DocumentDelete: {
16934
+ fields: {
16935
+ document: {
16936
+ type: "string",
16937
+ id: 1
16938
+ },
16939
+ removedTargetIds: {
16940
+ rule: "repeated",
16941
+ type: "int32",
16942
+ id: 6
16943
+ },
16944
+ readTime: {
16945
+ type: "google.protobuf.Timestamp",
16946
+ id: 4
16947
+ }
16948
+ }
16949
+ },
16950
+ DocumentRemove: {
16951
+ fields: {
16952
+ document: {
16953
+ type: "string",
16954
+ id: 1
16955
+ },
16956
+ removedTargetIds: {
16957
+ rule: "repeated",
16958
+ type: "int32",
16959
+ id: 2
16960
+ },
16961
+ readTime: {
16962
+ type: "google.protobuf.Timestamp",
16963
+ id: 4
16964
+ }
16965
+ }
16966
+ },
16967
+ ExistenceFilter: {
16968
+ fields: {
16969
+ targetId: {
16970
+ type: "int32",
16971
+ id: 1
16972
+ },
16973
+ count: {
16974
+ type: "int32",
16975
+ id: 2
16976
+ }
16977
+ }
16978
+ }
16979
+ }
16980
+ }
16981
+ }
16982
+ },
16983
+ api: {
16984
+ options: {
16985
+ go_package: "google.golang.org/genproto/googleapis/api/annotations;annotations",
16986
+ java_multiple_files: true,
16987
+ java_outer_classname: "HttpProto",
16988
+ java_package: "com.google.api",
16989
+ objc_class_prefix: "GAPI",
16990
+ cc_enable_arenas: true
16991
+ },
16992
+ nested: {
16993
+ http: {
16994
+ type: "HttpRule",
16995
+ id: 72295728,
16996
+ extend: "google.protobuf.MethodOptions"
16997
+ },
16998
+ Http: {
16999
+ fields: {
17000
+ rules: {
17001
+ rule: "repeated",
17002
+ type: "HttpRule",
17003
+ id: 1
17004
+ }
17005
+ }
17006
+ },
17007
+ HttpRule: {
17008
+ oneofs: {
17009
+ pattern: {
17010
+ oneof: [
17011
+ "get",
17012
+ "put",
17013
+ "post",
17014
+ "delete",
17015
+ "patch",
17016
+ "custom"
17017
+ ]
17018
+ }
17019
+ },
17020
+ fields: {
17021
+ get: {
17022
+ type: "string",
17023
+ id: 2
17024
+ },
17025
+ put: {
17026
+ type: "string",
17027
+ id: 3
17028
+ },
17029
+ post: {
17030
+ type: "string",
17031
+ id: 4
17032
+ },
17033
+ "delete": {
17034
+ type: "string",
17035
+ id: 5
17036
+ },
17037
+ patch: {
17038
+ type: "string",
17039
+ id: 6
17040
+ },
17041
+ custom: {
17042
+ type: "CustomHttpPattern",
17043
+ id: 8
17044
+ },
17045
+ selector: {
17046
+ type: "string",
17047
+ id: 1
17048
+ },
17049
+ body: {
17050
+ type: "string",
17051
+ id: 7
17052
+ },
17053
+ additionalBindings: {
17054
+ rule: "repeated",
17055
+ type: "HttpRule",
17056
+ id: 11
17057
+ }
17058
+ }
17059
+ },
17060
+ CustomHttpPattern: {
17061
+ fields: {
17062
+ kind: {
17063
+ type: "string",
17064
+ id: 1
17065
+ },
17066
+ path: {
17067
+ type: "string",
17068
+ id: 2
17069
+ }
17070
+ }
17071
+ }
17072
+ }
17073
+ },
17074
+ type: {
17075
+ options: {
17076
+ cc_enable_arenas: true,
17077
+ go_package: "google.golang.org/genproto/googleapis/type/latlng;latlng",
17078
+ java_multiple_files: true,
17079
+ java_outer_classname: "LatLngProto",
17080
+ java_package: "com.google.type",
17081
+ objc_class_prefix: "GTP"
17082
+ },
17083
+ nested: {
17084
+ LatLng: {
17085
+ fields: {
17086
+ latitude: {
17087
+ type: "double",
17088
+ id: 1
17089
+ },
17090
+ longitude: {
17091
+ type: "double",
17092
+ id: 2
17093
+ }
17094
+ }
17095
+ }
17096
+ }
17097
+ },
17098
+ rpc: {
17099
+ options: {
17100
+ cc_enable_arenas: true,
17101
+ go_package: "google.golang.org/genproto/googleapis/rpc/status;status",
17102
+ java_multiple_files: true,
17103
+ java_outer_classname: "StatusProto",
17104
+ java_package: "com.google.rpc",
17105
+ objc_class_prefix: "RPC"
17106
+ },
17107
+ nested: {
17108
+ Status: {
17109
+ fields: {
17110
+ code: {
17111
+ type: "int32",
17112
+ id: 1
17113
+ },
17114
+ message: {
17115
+ type: "string",
17116
+ id: 2
17117
+ },
17118
+ details: {
17119
+ rule: "repeated",
17120
+ type: "google.protobuf.Any",
17121
+ id: 3
17122
+ }
17123
+ }
17124
+ }
17125
+ }
17126
+ }
17127
+ }
17128
+ }
17129
+ };
17130
+ var protos = {
17131
+ nested: nested
17132
+ };
17133
+
17134
+ var protos$1 = /*#__PURE__*/Object.freeze({
17135
+ __proto__: null,
17136
+ nested: nested,
17137
+ 'default': protos
17138
+ });
17139
+
14483
17140
  /**
14484
17141
  * @license
14485
17142
  * Copyright 2020 Google LLC
@@ -14496,10 +17153,6 @@ class GrpcConnection {
14496
17153
  * See the License for the specific language governing permissions and
14497
17154
  * limitations under the License.
14498
17155
  */
14499
- // __filename and __dirname globals are unavailable in ES modules
14500
- // @ts-ignore To avoid using `--module es2020` flag.
14501
- const __filenameInESM = fileURLToPath(import.meta.url);
14502
- const __dirnameInESM = dirname(__filenameInESM);
14503
17156
  /** Used by tests so we can match @grpc/proto-loader behavior. */
14504
17157
  const protoLoaderOptions = {
14505
17158
  longs: String,
@@ -14513,9 +17166,7 @@ const protoLoaderOptions = {
14513
17166
  * @returns The GrpcObject representing our protos.
14514
17167
  */
14515
17168
  function loadProtos() {
14516
- const root = resolve(__dirnameInESM, "src/protos" );
14517
- const firestoreProtoFile = join(root, 'google/firestore/v1/firestore.proto');
14518
- const packageDefinition = loadSync(firestoreProtoFile, Object.assign(Object.assign({}, protoLoaderOptions), { includeDirs: [root] }));
17169
+ const packageDefinition = fromJSON(protos$1, protoLoaderOptions);
14519
17170
  return loadPackageDefinition(packageDefinition);
14520
17171
  }
14521
17172
 
@@ -21584,7 +24235,7 @@ function parseData(input, context) {
21584
24235
  return parseObject(input, context);
21585
24236
  }
21586
24237
  else if (input instanceof FieldValue) {
21587
- // FieldValues usually parse into transforms (except FieldValue.delete())
24238
+ // FieldValues usually parse into transforms (except deleteField())
21588
24239
  // in which case we do not want to include this field in our parsed data
21589
24240
  // (as doing so will overwrite the field directly prior to the transform
21590
24241
  // trying to transform it). So we don't add this location to
@@ -21778,7 +24429,7 @@ function fieldPathFromArgument$1(methodName, path, targetDoc) {
21778
24429
  return fieldPathFromDotSeparatedString(methodName, path);
21779
24430
  }
21780
24431
  else {
21781
- const message = 'Field path arguments must be of type string or FieldPath.';
24432
+ const message = 'Field path arguments must be of type string or ';
21782
24433
  throw createError(message, methodName,
21783
24434
  /* hasConverter= */ false,
21784
24435
  /* path= */ undefined, targetDoc);
@@ -22041,7 +24692,7 @@ class DocumentSnapshot extends DocumentSnapshot$1 {
22041
24692
  * Retrieves all fields in the document as an `Object`. Returns `undefined` if
22042
24693
  * the document doesn't exist.
22043
24694
  *
22044
- * By default, `FieldValue.serverTimestamp()` values that have not yet been
24695
+ * By default, `serverTimestamp()` values that have not yet been
22045
24696
  * set to their final value will be returned as `null`. You can override
22046
24697
  * this by passing an options object.
22047
24698
  *
@@ -22070,7 +24721,7 @@ class DocumentSnapshot extends DocumentSnapshot$1 {
22070
24721
  * Retrieves the field specified by `fieldPath`. Returns `undefined` if the
22071
24722
  * document or field doesn't exist.
22072
24723
  *
22073
- * By default, a `FieldValue.serverTimestamp()` that has not yet been set to
24724
+ * By default, a `serverTimestamp()` that has not yet been set to
22074
24725
  * its final value will be returned as `null`. You can override this by
22075
24726
  * passing an options object.
22076
24727
  *
@@ -22109,7 +24760,7 @@ class QueryDocumentSnapshot extends DocumentSnapshot {
22109
24760
  /**
22110
24761
  * Retrieves all fields in the document as an `Object`.
22111
24762
  *
22112
- * By default, `FieldValue.serverTimestamp()` values that have not yet been
24763
+ * By default, `serverTimestamp()` values that have not yet been
22113
24764
  * set to their final value will be returned as `null`. You can override
22114
24765
  * this by passing an options object.
22115
24766
  *
@@ -22457,8 +25108,7 @@ function newQueryFilter(query, methodName, dataReader, databaseId, fieldPath, op
22457
25108
  let fieldValue;
22458
25109
  if (fieldPath.isKeyField()) {
22459
25110
  if (op === "array-contains" /* ARRAY_CONTAINS */ || op === "array-contains-any" /* ARRAY_CONTAINS_ANY */) {
22460
- throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid Query. You can't perform '${op}' ` +
22461
- 'queries on FieldPath.documentId().');
25111
+ throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid Query. You can't perform '${op}' queries on documentId().`);
22462
25112
  }
22463
25113
  else if (op === "in" /* IN */ || op === "not-in" /* NOT_IN */) {
22464
25114
  validateDisjunctiveFilterElements(value, op);
@@ -22569,14 +25219,14 @@ function newQueryBoundFromFields(query, databaseId, dataReader, methodName, valu
22569
25219
  `${methodName}(), but got a ${typeof rawValue}`);
22570
25220
  }
22571
25221
  if (!isCollectionGroupQuery(query) && rawValue.indexOf('/') !== -1) {
22572
- throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying a collection and ordering by FieldPath.documentId(), ` +
25222
+ throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying a collection and ordering by documentId(), ` +
22573
25223
  `the value passed to ${methodName}() must be a plain document ID, but ` +
22574
25224
  `'${rawValue}' contains a slash.`);
22575
25225
  }
22576
25226
  const path = query.path.child(ResourcePath.fromString(rawValue));
22577
25227
  if (!DocumentKey.isDocumentKey(path)) {
22578
25228
  throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying a collection group and ordering by ` +
22579
- `FieldPath.documentId(), the value passed to ${methodName}() must result in a ` +
25229
+ `documentId(), the value passed to ${methodName}() must result in a ` +
22580
25230
  `valid document path, but '${path}' is not because it contains an odd number ` +
22581
25231
  `of segments.`);
22582
25232
  }
@@ -22599,18 +25249,18 @@ function parseDocumentIdValue(databaseId, query, documentIdValue) {
22599
25249
  documentIdValue = getModularInstance(documentIdValue);
22600
25250
  if (typeof documentIdValue === 'string') {
22601
25251
  if (documentIdValue === '') {
22602
- throw new FirestoreError(Code.INVALID_ARGUMENT, 'Invalid query. When querying with FieldPath.documentId(), you ' +
25252
+ throw new FirestoreError(Code.INVALID_ARGUMENT, 'Invalid query. When querying with documentId(), you ' +
22603
25253
  'must provide a valid document ID, but it was an empty string.');
22604
25254
  }
22605
25255
  if (!isCollectionGroupQuery(query) && documentIdValue.indexOf('/') !== -1) {
22606
25256
  throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying a collection by ` +
22607
- `FieldPath.documentId(), you must provide a plain document ID, but ` +
25257
+ `documentId(), you must provide a plain document ID, but ` +
22608
25258
  `'${documentIdValue}' contains a '/' character.`);
22609
25259
  }
22610
25260
  const path = query.path.child(ResourcePath.fromString(documentIdValue));
22611
25261
  if (!DocumentKey.isDocumentKey(path)) {
22612
25262
  throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying a collection group by ` +
22613
- `FieldPath.documentId(), the value provided must result in a valid document path, ` +
25263
+ `documentId(), the value provided must result in a valid document path, ` +
22614
25264
  `but '${path}' is not because it has an odd number of segments (${path.length}).`);
22615
25265
  }
22616
25266
  return refValue(databaseId, new DocumentKey(path));
@@ -22619,7 +25269,7 @@ function parseDocumentIdValue(databaseId, query, documentIdValue) {
22619
25269
  return refValue(databaseId, documentIdValue._key);
22620
25270
  }
22621
25271
  else {
22622
- throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying with FieldPath.documentId(), you must provide a valid ` +
25272
+ throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying with documentId(), you must provide a valid ` +
22623
25273
  `string or a DocumentReference, but it was: ` +
22624
25274
  `${valueDescription(documentIdValue)}.`);
22625
25275
  }