@canton-network/core-ledger-proto 0.1.0

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 (218) hide show
  1. package/README.md +1 -0
  2. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts +58 -0
  3. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts.map +1 -0
  4. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.js +34 -0
  5. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts +232 -0
  6. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts.map +1 -0
  7. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.js +560 -0
  8. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts +144 -0
  9. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts.map +1 -0
  10. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.js +85 -0
  11. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts +291 -0
  12. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts.map +1 -0
  13. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.js +663 -0
  14. package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts +76 -0
  15. package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts.map +1 -0
  16. package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.js +96 -0
  17. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts +106 -0
  18. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts.map +1 -0
  19. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.js +62 -0
  20. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts +199 -0
  21. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts.map +1 -0
  22. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.js +427 -0
  23. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts +56 -0
  24. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts.map +1 -0
  25. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.js +35 -0
  26. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts +81 -0
  27. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts.map +1 -0
  28. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.js +135 -0
  29. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts +196 -0
  30. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts.map +1 -0
  31. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.js +113 -0
  32. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts +413 -0
  33. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts.map +1 -0
  34. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.js +867 -0
  35. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts +210 -0
  36. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts.map +1 -0
  37. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.js +126 -0
  38. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts +758 -0
  39. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts.map +1 -0
  40. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.js +1580 -0
  41. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts +66 -0
  42. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts.map +1 -0
  43. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.js +38 -0
  44. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts +90 -0
  45. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts.map +1 -0
  46. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.js +178 -0
  47. package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts +99 -0
  48. package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts.map +1 -0
  49. package/dist/_proto/com/daml/ledger/api/v2/command_service.client.js +61 -0
  50. package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts +210 -0
  51. package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts.map +1 -0
  52. package/dist/_proto/com/daml/ledger/api/v2/command_service.js +436 -0
  53. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts +80 -0
  54. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts.map +1 -0
  55. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.js +47 -0
  56. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts +91 -0
  57. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts.map +1 -0
  58. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.js +200 -0
  59. package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts +491 -0
  60. package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts.map +1 -0
  61. package/dist/_proto/com/daml/ledger/api/v2/commands.js +828 -0
  62. package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts +149 -0
  63. package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts.map +1 -0
  64. package/dist/_proto/com/daml/ledger/api/v2/completion.js +196 -0
  65. package/dist/_proto/com/daml/ledger/api/v2/event.d.ts +495 -0
  66. package/dist/_proto/com/daml/ledger/api/v2/event.d.ts.map +1 -0
  67. package/dist/_proto/com/daml/ledger/api/v2/event.js +723 -0
  68. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts +52 -0
  69. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts.map +1 -0
  70. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.js +31 -0
  71. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts +150 -0
  72. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts.map +1 -0
  73. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.js +291 -0
  74. package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts +96 -0
  75. package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts.map +1 -0
  76. package/dist/_proto/com/daml/ledger/api/v2/experimental_features.js +225 -0
  77. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts +43 -0
  78. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts.map +1 -0
  79. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.js +85 -0
  80. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts +100 -0
  81. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts.map +1 -0
  82. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.js +59 -0
  83. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts +877 -0
  84. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts.map +1 -0
  85. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.js +1768 -0
  86. package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts +259 -0
  87. package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts.map +1 -0
  88. package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.js +667 -0
  89. package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts +69 -0
  90. package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts.map +1 -0
  91. package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.js +133 -0
  92. package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts +41 -0
  93. package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts.map +1 -0
  94. package/dist/_proto/com/daml/ledger/api/v2/package_reference.js +84 -0
  95. package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts +68 -0
  96. package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts.map +1 -0
  97. package/dist/_proto/com/daml/ledger/api/v2/package_service.client.js +43 -0
  98. package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts +181 -0
  99. package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts.map +1 -0
  100. package/dist/_proto/com/daml/ledger/api/v2/package_service.js +395 -0
  101. package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts +308 -0
  102. package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts.map +1 -0
  103. package/dist/_proto/com/daml/ledger/api/v2/reassignment.js +521 -0
  104. package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts +193 -0
  105. package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts.map +1 -0
  106. package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.js +350 -0
  107. package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts +91 -0
  108. package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts.map +1 -0
  109. package/dist/_proto/com/daml/ledger/api/v2/state_service.client.js +56 -0
  110. package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts +448 -0
  111. package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts.map +1 -0
  112. package/dist/_proto/com/daml/ledger/api/v2/state_service.js +874 -0
  113. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts +54 -0
  114. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts.map +1 -0
  115. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.js +34 -0
  116. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts +78 -0
  117. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts.map +1 -0
  118. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.js +168 -0
  119. package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts +211 -0
  120. package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts.map +1 -0
  121. package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.js +447 -0
  122. package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts +33 -0
  123. package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts.map +1 -0
  124. package/dist/_proto/com/daml/ledger/api/v2/trace_context.js +69 -0
  125. package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts +252 -0
  126. package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts.map +1 -0
  127. package/dist/_proto/com/daml/ledger/api/v2/transaction.js +410 -0
  128. package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts +453 -0
  129. package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts.map +1 -0
  130. package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.js +815 -0
  131. package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts +199 -0
  132. package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts.map +1 -0
  133. package/dist/_proto/com/daml/ledger/api/v2/update_service.client.js +121 -0
  134. package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts +424 -0
  135. package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts.map +1 -0
  136. package/dist/_proto/com/daml/ledger/api/v2/update_service.js +853 -0
  137. package/dist/_proto/com/daml/ledger/api/v2/value.d.ts +500 -0
  138. package/dist/_proto/com/daml/ledger/api/v2/value.d.ts.map +1 -0
  139. package/dist/_proto/com/daml/ledger/api/v2/value.js +937 -0
  140. package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts +40 -0
  141. package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts.map +1 -0
  142. package/dist/_proto/com/daml/ledger/api/v2/version_service.client.js +25 -0
  143. package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts +190 -0
  144. package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts.map +1 -0
  145. package/dist/_proto/com/daml/ledger/api/v2/version_service.js +400 -0
  146. package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts +1028 -0
  147. package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts.map +1 -0
  148. package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.js +2110 -0
  149. package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts +30 -0
  150. package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts.map +1 -0
  151. package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.js +62 -0
  152. package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts +168 -0
  153. package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts.map +1 -0
  154. package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.js +395 -0
  155. package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts +1105 -0
  156. package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts.map +1 -0
  157. package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.js +2294 -0
  158. package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts +278 -0
  159. package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts.map +1 -0
  160. package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.js +654 -0
  161. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts +166 -0
  162. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts.map +1 -0
  163. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.js +379 -0
  164. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts +199 -0
  165. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts.map +1 -0
  166. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.js +136 -0
  167. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts +1195 -0
  168. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts.map +1 -0
  169. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.js +3342 -0
  170. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts +119 -0
  171. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts.map +1 -0
  172. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.js +76 -0
  173. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts +607 -0
  174. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts.map +1 -0
  175. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.js +1292 -0
  176. package/dist/_proto/google/protobuf/any.d.ts +177 -0
  177. package/dist/_proto/google/protobuf/any.d.ts.map +1 -0
  178. package/dist/_proto/google/protobuf/any.js +175 -0
  179. package/dist/_proto/google/protobuf/descriptor.d.ts +1638 -0
  180. package/dist/_proto/google/protobuf/descriptor.d.ts.map +1 -0
  181. package/dist/_proto/google/protobuf/descriptor.js +2999 -0
  182. package/dist/_proto/google/protobuf/duration.d.ts +114 -0
  183. package/dist/_proto/google/protobuf/duration.d.ts.map +1 -0
  184. package/dist/_proto/google/protobuf/duration.js +113 -0
  185. package/dist/_proto/google/protobuf/empty.d.ts +33 -0
  186. package/dist/_proto/google/protobuf/empty.d.ts.map +1 -0
  187. package/dist/_proto/google/protobuf/empty.js +41 -0
  188. package/dist/_proto/google/protobuf/field_mask.d.ts +240 -0
  189. package/dist/_proto/google/protobuf/field_mask.d.ts.map +1 -0
  190. package/dist/_proto/google/protobuf/field_mask.js +95 -0
  191. package/dist/_proto/google/protobuf/struct.d.ts +187 -0
  192. package/dist/_proto/google/protobuf/struct.d.ts.map +1 -0
  193. package/dist/_proto/google/protobuf/struct.js +417 -0
  194. package/dist/_proto/google/protobuf/timestamp.d.ts +159 -0
  195. package/dist/_proto/google/protobuf/timestamp.d.ts.map +1 -0
  196. package/dist/_proto/google/protobuf/timestamp.js +157 -0
  197. package/dist/_proto/google/rpc/code.d.ts +219 -0
  198. package/dist/_proto/google/rpc/code.d.ts.map +1 -0
  199. package/dist/_proto/google/rpc/code.js +237 -0
  200. package/dist/_proto/google/rpc/context/attribute_context.d.ts +594 -0
  201. package/dist/_proto/google/rpc/context/attribute_context.d.ts.map +1 -0
  202. package/dist/_proto/google/rpc/context/attribute_context.js +1007 -0
  203. package/dist/_proto/google/rpc/context/audit_context.d.ts +62 -0
  204. package/dist/_proto/google/rpc/context/audit_context.d.ts.map +1 -0
  205. package/dist/_proto/google/rpc/context/audit_context.js +111 -0
  206. package/dist/_proto/google/rpc/error_details.d.ts +549 -0
  207. package/dist/_proto/google/rpc/error_details.d.ts.map +1 -0
  208. package/dist/_proto/google/rpc/error_details.js +918 -0
  209. package/dist/_proto/google/rpc/status.d.ts +55 -0
  210. package/dist/_proto/google/rpc/status.d.ts.map +1 -0
  211. package/dist/_proto/google/rpc/status.js +79 -0
  212. package/dist/_proto/scalapb/scalapb.d.ts +779 -0
  213. package/dist/_proto/scalapb/scalapb.d.ts.map +1 -0
  214. package/dist/_proto/scalapb/scalapb.js +1658 -0
  215. package/dist/index.d.ts +13 -0
  216. package/dist/index.d.ts.map +1 -0
  217. package/dist/index.js +12 -0
  218. package/package.json +29 -0
@@ -0,0 +1,114 @@
1
+ import type { BinaryWriteOptions } from '@protobuf-ts/runtime';
2
+ import type { IBinaryWriter } from '@protobuf-ts/runtime';
3
+ import type { BinaryReadOptions } from '@protobuf-ts/runtime';
4
+ import type { IBinaryReader } from '@protobuf-ts/runtime';
5
+ import type { PartialMessage } from '@protobuf-ts/runtime';
6
+ import type { JsonValue } from '@protobuf-ts/runtime';
7
+ import type { JsonReadOptions } from '@protobuf-ts/runtime';
8
+ import type { JsonWriteOptions } from '@protobuf-ts/runtime';
9
+ import { MessageType } from '@protobuf-ts/runtime';
10
+ /**
11
+ * A Duration represents a signed, fixed-length span of time represented
12
+ * as a count of seconds and fractions of seconds at nanosecond
13
+ * resolution. It is independent of any calendar and concepts like "day"
14
+ * or "month". It is related to Timestamp in that the difference between
15
+ * two Timestamp values is a Duration and it can be added or subtracted
16
+ * from a Timestamp. Range is approximately +-10,000 years.
17
+ *
18
+ * # Examples
19
+ *
20
+ * Example 1: Compute Duration from two Timestamps in pseudo code.
21
+ *
22
+ * Timestamp start = ...;
23
+ * Timestamp end = ...;
24
+ * Duration duration = ...;
25
+ *
26
+ * duration.seconds = end.seconds - start.seconds;
27
+ * duration.nanos = end.nanos - start.nanos;
28
+ *
29
+ * if (duration.seconds < 0 && duration.nanos > 0) {
30
+ * duration.seconds += 1;
31
+ * duration.nanos -= 1000000000;
32
+ * } else if (duration.seconds > 0 && duration.nanos < 0) {
33
+ * duration.seconds -= 1;
34
+ * duration.nanos += 1000000000;
35
+ * }
36
+ *
37
+ * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
38
+ *
39
+ * Timestamp start = ...;
40
+ * Duration duration = ...;
41
+ * Timestamp end = ...;
42
+ *
43
+ * end.seconds = start.seconds + duration.seconds;
44
+ * end.nanos = start.nanos + duration.nanos;
45
+ *
46
+ * if (end.nanos < 0) {
47
+ * end.seconds -= 1;
48
+ * end.nanos += 1000000000;
49
+ * } else if (end.nanos >= 1000000000) {
50
+ * end.seconds += 1;
51
+ * end.nanos -= 1000000000;
52
+ * }
53
+ *
54
+ * Example 3: Compute Duration from datetime.timedelta in Python.
55
+ *
56
+ * td = datetime.timedelta(days=3, minutes=10)
57
+ * duration = Duration()
58
+ * duration.FromTimedelta(td)
59
+ *
60
+ * # JSON Mapping
61
+ *
62
+ * In JSON format, the Duration type is encoded as a string rather than an
63
+ * object, where the string ends in the suffix "s" (indicating seconds) and
64
+ * is preceded by the number of seconds, with nanoseconds expressed as
65
+ * fractional seconds. For example, 3 seconds with 0 nanoseconds should be
66
+ * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
67
+ * be expressed in JSON format as "3.000000001s", and 3 seconds and 1
68
+ * microsecond should be expressed in JSON format as "3.000001s".
69
+ *
70
+ *
71
+ *
72
+ * @generated from protobuf message google.protobuf.Duration
73
+ */
74
+ export interface Duration {
75
+ /**
76
+ * Signed seconds of the span of time. Must be from -315,576,000,000
77
+ * to +315,576,000,000 inclusive. Note: these bounds are computed from:
78
+ * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
79
+ *
80
+ * @generated from protobuf field: int64 seconds = 1
81
+ */
82
+ seconds: bigint;
83
+ /**
84
+ * Signed fractions of a second at nanosecond resolution of the span
85
+ * of time. Durations less than one second are represented with a 0
86
+ * `seconds` field and a positive or negative `nanos` field. For durations
87
+ * of one second or more, a non-zero value for the `nanos` field must be
88
+ * of the same sign as the `seconds` field. Must be from -999,999,999
89
+ * to +999,999,999 inclusive.
90
+ *
91
+ * @generated from protobuf field: int32 nanos = 2
92
+ */
93
+ nanos: number;
94
+ }
95
+ declare class Duration$Type extends MessageType<Duration> {
96
+ constructor();
97
+ /**
98
+ * Encode `Duration` to JSON string like "3.000001s".
99
+ */
100
+ internalJsonWrite(message: Duration, options: JsonWriteOptions): JsonValue;
101
+ /**
102
+ * Decode `Duration` from JSON string like "3.000001s"
103
+ */
104
+ internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Duration): Duration;
105
+ create(value?: PartialMessage<Duration>): Duration;
106
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Duration): Duration;
107
+ internalBinaryWrite(message: Duration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
108
+ }
109
+ /**
110
+ * @generated MessageType for protobuf message google.protobuf.Duration
111
+ */
112
+ export declare const Duration: Duration$Type;
113
+ export {};
114
+ //# sourceMappingURL=duration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"duration.d.ts","sourceRoot":"","sources":["../../../../src/_proto/google/protobuf/duration.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAG1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAE5D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;;;;;;;;OASG;IACH,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,cAAM,aAAc,SAAQ,WAAW,CAAC,QAAQ,CAAC;;IAa7C;;OAEG;IACH,iBAAiB,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,gBAAgB,GAAG,SAAS;IAiB1E;;OAEG;IACH,gBAAgB,CACZ,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,eAAe,EACxB,MAAM,CAAC,EAAE,QAAQ,GAClB,QAAQ;IA6BX,MAAM,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,GAAG,QAAQ;IAQlD,kBAAkB,CACd,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,iBAAiB,EAC1B,MAAM,CAAC,EAAE,QAAQ,GAClB,QAAQ;IA+BX,mBAAmB,CACf,OAAO,EAAE,QAAQ,EACjB,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,kBAAkB,GAC5B,aAAa;CAgBnB;AACD;;GAEG;AACH,eAAO,MAAM,QAAQ,eAAsB,CAAA"}
@@ -0,0 +1,113 @@
1
+ import { WireType } from '@protobuf-ts/runtime';
2
+ import { UnknownFieldHandler } from '@protobuf-ts/runtime';
3
+ import { reflectionMergePartial } from '@protobuf-ts/runtime';
4
+ import { typeofJsonValue } from '@protobuf-ts/runtime';
5
+ import { PbLong } from '@protobuf-ts/runtime';
6
+ import { MessageType } from '@protobuf-ts/runtime';
7
+ // @generated message type with reflection information, may provide speed optimized methods
8
+ class Duration$Type extends MessageType {
9
+ constructor() {
10
+ super('google.protobuf.Duration', [
11
+ {
12
+ no: 1,
13
+ name: 'seconds',
14
+ kind: 'scalar',
15
+ T: 3 /*ScalarType.INT64*/,
16
+ L: 0 /*LongType.BIGINT*/,
17
+ },
18
+ { no: 2, name: 'nanos', kind: 'scalar', T: 5 /*ScalarType.INT32*/ },
19
+ ]);
20
+ }
21
+ /**
22
+ * Encode `Duration` to JSON string like "3.000001s".
23
+ */
24
+ internalJsonWrite(message, options) {
25
+ let s = PbLong.from(message.seconds).toNumber();
26
+ if (s > 315576000000 || s < -315576000000)
27
+ throw new Error('Duration value out of range.');
28
+ let text = message.seconds.toString();
29
+ if (s === 0 && message.nanos < 0)
30
+ text = '-' + text;
31
+ if (message.nanos !== 0) {
32
+ let nanosStr = Math.abs(message.nanos).toString();
33
+ nanosStr = '0'.repeat(9 - nanosStr.length) + nanosStr;
34
+ if (nanosStr.substring(3) === '000000')
35
+ nanosStr = nanosStr.substring(0, 3);
36
+ else if (nanosStr.substring(6) === '000')
37
+ nanosStr = nanosStr.substring(0, 6);
38
+ text += '.' + nanosStr;
39
+ }
40
+ return text + 's';
41
+ }
42
+ /**
43
+ * Decode `Duration` from JSON string like "3.000001s"
44
+ */
45
+ internalJsonRead(json, options, target) {
46
+ if (typeof json !== 'string')
47
+ throw new Error('Unable to parse Duration from JSON ' +
48
+ typeofJsonValue(json) +
49
+ '. Expected string.');
50
+ let match = json.match(/^(-?)([0-9]+)(?:\.([0-9]+))?s/);
51
+ if (match === null)
52
+ throw new Error('Unable to parse Duration from JSON string. Invalid format.');
53
+ if (!target)
54
+ target = this.create();
55
+ let [, sign, secs, nanos] = match;
56
+ let longSeconds = PbLong.from(sign + secs);
57
+ if (longSeconds.toNumber() > 315576000000 ||
58
+ longSeconds.toNumber() < -315576000000)
59
+ throw new Error('Unable to parse Duration from JSON string. Value out of range.');
60
+ target.seconds = longSeconds.toBigInt();
61
+ if (typeof nanos == 'string') {
62
+ let nanosStr = sign + nanos + '0'.repeat(9 - nanos.length);
63
+ target.nanos = parseInt(nanosStr);
64
+ }
65
+ return target;
66
+ }
67
+ create(value) {
68
+ const message = globalThis.Object.create(this.messagePrototype);
69
+ message.seconds = 0n;
70
+ message.nanos = 0;
71
+ if (value !== undefined)
72
+ reflectionMergePartial(this, message, value);
73
+ return message;
74
+ }
75
+ internalBinaryRead(reader, length, options, target) {
76
+ let message = target ?? this.create(), end = reader.pos + length;
77
+ while (reader.pos < end) {
78
+ let [fieldNo, wireType] = reader.tag();
79
+ switch (fieldNo) {
80
+ case /* int64 seconds */ 1:
81
+ message.seconds = reader.int64().toBigInt();
82
+ break;
83
+ case /* int32 nanos */ 2:
84
+ message.nanos = reader.int32();
85
+ break;
86
+ default:
87
+ let u = options.readUnknownField;
88
+ if (u === 'throw')
89
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
90
+ let d = reader.skip(wireType);
91
+ if (u !== false)
92
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
93
+ }
94
+ }
95
+ return message;
96
+ }
97
+ internalBinaryWrite(message, writer, options) {
98
+ /* int64 seconds = 1; */
99
+ if (message.seconds !== 0n)
100
+ writer.tag(1, WireType.Varint).int64(message.seconds);
101
+ /* int32 nanos = 2; */
102
+ if (message.nanos !== 0)
103
+ writer.tag(2, WireType.Varint).int32(message.nanos);
104
+ let u = options.writeUnknownFields;
105
+ if (u !== false)
106
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
107
+ return writer;
108
+ }
109
+ }
110
+ /**
111
+ * @generated MessageType for protobuf message google.protobuf.Duration
112
+ */
113
+ export const Duration = new Duration$Type();
@@ -0,0 +1,33 @@
1
+ import type { BinaryWriteOptions } from '@protobuf-ts/runtime';
2
+ import type { IBinaryWriter } from '@protobuf-ts/runtime';
3
+ import type { BinaryReadOptions } from '@protobuf-ts/runtime';
4
+ import type { IBinaryReader } from '@protobuf-ts/runtime';
5
+ import type { PartialMessage } from '@protobuf-ts/runtime';
6
+ import { MessageType } from '@protobuf-ts/runtime';
7
+ /**
8
+ * A generic empty message that you can re-use to avoid defining duplicated
9
+ * empty messages in your APIs. A typical example is to use it as the request
10
+ * or the response type of an API method. For instance:
11
+ *
12
+ * service Foo {
13
+ * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
14
+ * }
15
+ *
16
+ * The JSON representation for `Empty` is empty JSON object `{}`.
17
+ *
18
+ * @generated from protobuf message google.protobuf.Empty
19
+ */
20
+ export interface Empty {
21
+ }
22
+ declare class Empty$Type extends MessageType<Empty> {
23
+ constructor();
24
+ create(value?: PartialMessage<Empty>): Empty;
25
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Empty): Empty;
26
+ internalBinaryWrite(message: Empty, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
27
+ }
28
+ /**
29
+ * @generated MessageType for protobuf message google.protobuf.Empty
30
+ */
31
+ export declare const Empty: Empty$Type;
32
+ export {};
33
+ //# sourceMappingURL=empty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["../../../../src/_proto/google/protobuf/empty.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,KAAK;CAAG;AAEzB,cAAM,UAAW,SAAQ,WAAW,CAAC,KAAK,CAAC;;IAIvC,MAAM,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK;IAM5C,kBAAkB,CACd,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,iBAAiB,EAC1B,MAAM,CAAC,EAAE,KAAK,GACf,KAAK;IAyBR,mBAAmB,CACf,OAAO,EAAE,KAAK,EACd,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,kBAAkB,GAC5B,aAAa;CAUnB;AACD;;GAEG;AACH,eAAO,MAAM,KAAK,YAAmB,CAAA"}
@@ -0,0 +1,41 @@
1
+ import { UnknownFieldHandler } from '@protobuf-ts/runtime';
2
+ import { reflectionMergePartial } from '@protobuf-ts/runtime';
3
+ import { MessageType } from '@protobuf-ts/runtime';
4
+ // @generated message type with reflection information, may provide speed optimized methods
5
+ class Empty$Type extends MessageType {
6
+ constructor() {
7
+ super('google.protobuf.Empty', []);
8
+ }
9
+ create(value) {
10
+ const message = globalThis.Object.create(this.messagePrototype);
11
+ if (value !== undefined)
12
+ reflectionMergePartial(this, message, value);
13
+ return message;
14
+ }
15
+ internalBinaryRead(reader, length, options, target) {
16
+ let message = target ?? this.create(), end = reader.pos + length;
17
+ while (reader.pos < end) {
18
+ let [fieldNo, wireType] = reader.tag();
19
+ switch (fieldNo) {
20
+ default:
21
+ let u = options.readUnknownField;
22
+ if (u === 'throw')
23
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
24
+ let d = reader.skip(wireType);
25
+ if (u !== false)
26
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
27
+ }
28
+ }
29
+ return message;
30
+ }
31
+ internalBinaryWrite(message, writer, options) {
32
+ let u = options.writeUnknownFields;
33
+ if (u !== false)
34
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
35
+ return writer;
36
+ }
37
+ }
38
+ /**
39
+ * @generated MessageType for protobuf message google.protobuf.Empty
40
+ */
41
+ export const Empty = new Empty$Type();
@@ -0,0 +1,240 @@
1
+ import type { BinaryWriteOptions } from '@protobuf-ts/runtime';
2
+ import type { IBinaryWriter } from '@protobuf-ts/runtime';
3
+ import type { BinaryReadOptions } from '@protobuf-ts/runtime';
4
+ import type { IBinaryReader } from '@protobuf-ts/runtime';
5
+ import type { PartialMessage } from '@protobuf-ts/runtime';
6
+ import type { JsonValue } from '@protobuf-ts/runtime';
7
+ import type { JsonReadOptions } from '@protobuf-ts/runtime';
8
+ import type { JsonWriteOptions } from '@protobuf-ts/runtime';
9
+ import { MessageType } from '@protobuf-ts/runtime';
10
+ /**
11
+ * `FieldMask` represents a set of symbolic field paths, for example:
12
+ *
13
+ * paths: "f.a"
14
+ * paths: "f.b.d"
15
+ *
16
+ * Here `f` represents a field in some root message, `a` and `b`
17
+ * fields in the message found in `f`, and `d` a field found in the
18
+ * message in `f.b`.
19
+ *
20
+ * Field masks are used to specify a subset of fields that should be
21
+ * returned by a get operation or modified by an update operation.
22
+ * Field masks also have a custom JSON encoding (see below).
23
+ *
24
+ * # Field Masks in Projections
25
+ *
26
+ * When used in the context of a projection, a response message or
27
+ * sub-message is filtered by the API to only contain those fields as
28
+ * specified in the mask. For example, if the mask in the previous
29
+ * example is applied to a response message as follows:
30
+ *
31
+ * f {
32
+ * a : 22
33
+ * b {
34
+ * d : 1
35
+ * x : 2
36
+ * }
37
+ * y : 13
38
+ * }
39
+ * z: 8
40
+ *
41
+ * The result will not contain specific values for fields x,y and z
42
+ * (their value will be set to the default, and omitted in proto text
43
+ * output):
44
+ *
45
+ *
46
+ * f {
47
+ * a : 22
48
+ * b {
49
+ * d : 1
50
+ * }
51
+ * }
52
+ *
53
+ * A repeated field is not allowed except at the last position of a
54
+ * paths string.
55
+ *
56
+ * If a FieldMask object is not present in a get operation, the
57
+ * operation applies to all fields (as if a FieldMask of all fields
58
+ * had been specified).
59
+ *
60
+ * Note that a field mask does not necessarily apply to the
61
+ * top-level response message. In case of a REST get operation, the
62
+ * field mask applies directly to the response, but in case of a REST
63
+ * list operation, the mask instead applies to each individual message
64
+ * in the returned resource list. In case of a REST custom method,
65
+ * other definitions may be used. Where the mask applies will be
66
+ * clearly documented together with its declaration in the API. In
67
+ * any case, the effect on the returned resource/resources is required
68
+ * behavior for APIs.
69
+ *
70
+ * # Field Masks in Update Operations
71
+ *
72
+ * A field mask in update operations specifies which fields of the
73
+ * targeted resource are going to be updated. The API is required
74
+ * to only change the values of the fields as specified in the mask
75
+ * and leave the others untouched. If a resource is passed in to
76
+ * describe the updated values, the API ignores the values of all
77
+ * fields not covered by the mask.
78
+ *
79
+ * If a repeated field is specified for an update operation, new values will
80
+ * be appended to the existing repeated field in the target resource. Note that
81
+ * a repeated field is only allowed in the last position of a `paths` string.
82
+ *
83
+ * If a sub-message is specified in the last position of the field mask for an
84
+ * update operation, then new value will be merged into the existing sub-message
85
+ * in the target resource.
86
+ *
87
+ * For example, given the target message:
88
+ *
89
+ * f {
90
+ * b {
91
+ * d: 1
92
+ * x: 2
93
+ * }
94
+ * c: [1]
95
+ * }
96
+ *
97
+ * And an update message:
98
+ *
99
+ * f {
100
+ * b {
101
+ * d: 10
102
+ * }
103
+ * c: [2]
104
+ * }
105
+ *
106
+ * then if the field mask is:
107
+ *
108
+ * paths: ["f.b", "f.c"]
109
+ *
110
+ * then the result will be:
111
+ *
112
+ * f {
113
+ * b {
114
+ * d: 10
115
+ * x: 2
116
+ * }
117
+ * c: [1, 2]
118
+ * }
119
+ *
120
+ * An implementation may provide options to override this default behavior for
121
+ * repeated and message fields.
122
+ *
123
+ * In order to reset a field's value to the default, the field must
124
+ * be in the mask and set to the default value in the provided resource.
125
+ * Hence, in order to reset all fields of a resource, provide a default
126
+ * instance of the resource and set all fields in the mask, or do
127
+ * not provide a mask as described below.
128
+ *
129
+ * If a field mask is not present on update, the operation applies to
130
+ * all fields (as if a field mask of all fields has been specified).
131
+ * Note that in the presence of schema evolution, this may mean that
132
+ * fields the client does not know and has therefore not filled into
133
+ * the request will be reset to their default. If this is unwanted
134
+ * behavior, a specific service may require a client to always specify
135
+ * a field mask, producing an error if not.
136
+ *
137
+ * As with get operations, the location of the resource which
138
+ * describes the updated values in the request message depends on the
139
+ * operation kind. In any case, the effect of the field mask is
140
+ * required to be honored by the API.
141
+ *
142
+ * ## Considerations for HTTP REST
143
+ *
144
+ * The HTTP kind of an update operation which uses a field mask must
145
+ * be set to PATCH instead of PUT in order to satisfy HTTP semantics
146
+ * (PUT must only be used for full updates).
147
+ *
148
+ * # JSON Encoding of Field Masks
149
+ *
150
+ * In JSON, a field mask is encoded as a single string where paths are
151
+ * separated by a comma. Fields name in each path are converted
152
+ * to/from lower-camel naming conventions.
153
+ *
154
+ * As an example, consider the following message declarations:
155
+ *
156
+ * message Profile {
157
+ * User user = 1;
158
+ * Photo photo = 2;
159
+ * }
160
+ * message User {
161
+ * string display_name = 1;
162
+ * string address = 2;
163
+ * }
164
+ *
165
+ * In proto a field mask for `Profile` may look as such:
166
+ *
167
+ * mask {
168
+ * paths: "user.display_name"
169
+ * paths: "photo"
170
+ * }
171
+ *
172
+ * In JSON, the same mask is represented as below:
173
+ *
174
+ * {
175
+ * mask: "user.displayName,photo"
176
+ * }
177
+ *
178
+ * # Field Masks and Oneof Fields
179
+ *
180
+ * Field masks treat fields in oneofs just as regular fields. Consider the
181
+ * following message:
182
+ *
183
+ * message SampleMessage {
184
+ * oneof test_oneof {
185
+ * string name = 4;
186
+ * SubMessage sub_message = 9;
187
+ * }
188
+ * }
189
+ *
190
+ * The field mask can be:
191
+ *
192
+ * mask {
193
+ * paths: "name"
194
+ * }
195
+ *
196
+ * Or:
197
+ *
198
+ * mask {
199
+ * paths: "sub_message"
200
+ * }
201
+ *
202
+ * Note that oneof type names ("test_oneof" in this case) cannot be used in
203
+ * paths.
204
+ *
205
+ * ## Field Mask Verification
206
+ *
207
+ * The implementation of any API method which has a FieldMask type field in the
208
+ * request should verify the included field paths, and return an
209
+ * `INVALID_ARGUMENT` error if any path is unmappable.
210
+ *
211
+ * @generated from protobuf message google.protobuf.FieldMask
212
+ */
213
+ export interface FieldMask {
214
+ /**
215
+ * The set of field mask paths.
216
+ *
217
+ * @generated from protobuf field: repeated string paths = 1
218
+ */
219
+ paths: string[];
220
+ }
221
+ declare class FieldMask$Type extends MessageType<FieldMask> {
222
+ constructor();
223
+ /**
224
+ * Encode `FieldMask` to JSON object.
225
+ */
226
+ internalJsonWrite(message: FieldMask, options: JsonWriteOptions): JsonValue;
227
+ /**
228
+ * Decode `FieldMask` from JSON object.
229
+ */
230
+ internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: FieldMask): FieldMask;
231
+ create(value?: PartialMessage<FieldMask>): FieldMask;
232
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldMask): FieldMask;
233
+ internalBinaryWrite(message: FieldMask, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
234
+ }
235
+ /**
236
+ * @generated MessageType for protobuf message google.protobuf.FieldMask
237
+ */
238
+ export declare const FieldMask: FieldMask$Type;
239
+ export {};
240
+ //# sourceMappingURL=field_mask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field_mask.d.ts","sourceRoot":"","sources":["../../../../src/_proto/google/protobuf/field_mask.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAG1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0MG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,KAAK,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,cAAM,cAAe,SAAQ,WAAW,CAAC,SAAS,CAAC;;IAY/C;;OAEG;IACH,iBAAiB,CACb,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,gBAAgB,GAC1B,SAAS;IAcZ;;OAEG;IACH,gBAAgB,CACZ,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,eAAe,EACxB,MAAM,CAAC,EAAE,SAAS,GACnB,SAAS;IAuBZ,MAAM,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS;IAOpD,kBAAkB,CACd,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,iBAAiB,EAC1B,MAAM,CAAC,EAAE,SAAS,GACnB,SAAS;IA4BZ,mBAAmB,CACf,OAAO,EAAE,SAAS,EAClB,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,kBAAkB,GAC5B,aAAa;CAanB;AACD;;GAEG;AACH,eAAO,MAAM,SAAS,gBAAuB,CAAA"}
@@ -0,0 +1,95 @@
1
+ import { WireType } from '@protobuf-ts/runtime';
2
+ import { UnknownFieldHandler } from '@protobuf-ts/runtime';
3
+ import { reflectionMergePartial } from '@protobuf-ts/runtime';
4
+ import { typeofJsonValue } from '@protobuf-ts/runtime';
5
+ import { lowerCamelCase } from '@protobuf-ts/runtime';
6
+ import { MessageType } from '@protobuf-ts/runtime';
7
+ // @generated message type with reflection information, may provide speed optimized methods
8
+ class FieldMask$Type extends MessageType {
9
+ constructor() {
10
+ super('google.protobuf.FieldMask', [
11
+ {
12
+ no: 1,
13
+ name: 'paths',
14
+ kind: 'scalar',
15
+ repeat: 2 /*RepeatType.UNPACKED*/,
16
+ T: 9 /*ScalarType.STRING*/,
17
+ },
18
+ ]);
19
+ }
20
+ /**
21
+ * Encode `FieldMask` to JSON object.
22
+ */
23
+ internalJsonWrite(message, options) {
24
+ const invalidFieldMaskJsonRegex = /[A-Z]|(_([.0-9_]|$))/g;
25
+ return message.paths
26
+ .map((p) => {
27
+ if (invalidFieldMaskJsonRegex.test(p))
28
+ throw new Error('Unable to encode FieldMask to JSON. lowerCamelCase of path name "' +
29
+ p +
30
+ '" is irreversible.');
31
+ return lowerCamelCase(p);
32
+ })
33
+ .join(',');
34
+ }
35
+ /**
36
+ * Decode `FieldMask` from JSON object.
37
+ */
38
+ internalJsonRead(json, options, target) {
39
+ if (typeof json !== 'string')
40
+ throw new Error('Unable to parse FieldMask from JSON ' +
41
+ typeofJsonValue(json) +
42
+ '. Expected string.');
43
+ if (!target)
44
+ target = this.create();
45
+ if (json === '')
46
+ return target;
47
+ let camelToSnake = (str) => {
48
+ if (str.includes('_'))
49
+ throw new Error('Unable to parse FieldMask from JSON. Path names must be lowerCamelCase.');
50
+ let sc = str.replace(/[A-Z]/g, (letter) => '_' + letter.toLowerCase());
51
+ return sc;
52
+ };
53
+ target.paths = json.split(',').map(camelToSnake);
54
+ return target;
55
+ }
56
+ create(value) {
57
+ const message = globalThis.Object.create(this.messagePrototype);
58
+ message.paths = [];
59
+ if (value !== undefined)
60
+ reflectionMergePartial(this, message, value);
61
+ return message;
62
+ }
63
+ internalBinaryRead(reader, length, options, target) {
64
+ let message = target ?? this.create(), end = reader.pos + length;
65
+ while (reader.pos < end) {
66
+ let [fieldNo, wireType] = reader.tag();
67
+ switch (fieldNo) {
68
+ case /* repeated string paths */ 1:
69
+ message.paths.push(reader.string());
70
+ break;
71
+ default:
72
+ let u = options.readUnknownField;
73
+ if (u === 'throw')
74
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
75
+ let d = reader.skip(wireType);
76
+ if (u !== false)
77
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
78
+ }
79
+ }
80
+ return message;
81
+ }
82
+ internalBinaryWrite(message, writer, options) {
83
+ /* repeated string paths = 1; */
84
+ for (let i = 0; i < message.paths.length; i++)
85
+ writer.tag(1, WireType.LengthDelimited).string(message.paths[i]);
86
+ let u = options.writeUnknownFields;
87
+ if (u !== false)
88
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
89
+ return writer;
90
+ }
91
+ }
92
+ /**
93
+ * @generated MessageType for protobuf message google.protobuf.FieldMask
94
+ */
95
+ export const FieldMask = new FieldMask$Type();