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