@kurrent/kurrentdb-client 1.0.4 → 1.2.0-alpha.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 (270) hide show
  1. package/dist/Client/ServerFeatures.d.ts +2 -2
  2. package/dist/Client/ServerFeatures.js +2 -2
  3. package/dist/Client/ServerFeatures.js.map +1 -1
  4. package/dist/Client/discovery.js +2 -2
  5. package/dist/Client/discovery.js.map +1 -1
  6. package/dist/constants.d.ts +1 -0
  7. package/dist/constants.js +2 -1
  8. package/dist/constants.js.map +1 -1
  9. package/dist/index.d.ts +1 -0
  10. package/dist/index.js +1 -0
  11. package/dist/index.js.map +1 -1
  12. package/dist/persistentSubscription/createPersistentSubscriptionToAll.js +22 -12
  13. package/dist/persistentSubscription/createPersistentSubscriptionToAll.js.map +1 -1
  14. package/dist/persistentSubscription/createPersistentSubscriptionToStream.js +16 -6
  15. package/dist/persistentSubscription/createPersistentSubscriptionToStream.js.map +1 -1
  16. package/dist/persistentSubscription/deletePersistentSubscriptionToAll.js +7 -7
  17. package/dist/persistentSubscription/deletePersistentSubscriptionToAll.js.map +1 -1
  18. package/dist/persistentSubscription/deletePersistentSubscriptionToStream.js +5 -5
  19. package/dist/persistentSubscription/deletePersistentSubscriptionToStream.js.map +1 -1
  20. package/dist/persistentSubscription/getPersistentSubscriptionToAllInfo.js +7 -7
  21. package/dist/persistentSubscription/getPersistentSubscriptionToAllInfo.js.map +1 -1
  22. package/dist/persistentSubscription/getPersistentSubscriptionToStreamInfo.js +6 -6
  23. package/dist/persistentSubscription/getPersistentSubscriptionToStreamInfo.js.map +1 -1
  24. package/dist/persistentSubscription/listAllPersistentSubscriptions.js +7 -7
  25. package/dist/persistentSubscription/listAllPersistentSubscriptions.js.map +1 -1
  26. package/dist/persistentSubscription/listPersistentSubscriptionsToAll.js +8 -8
  27. package/dist/persistentSubscription/listPersistentSubscriptionsToAll.js.map +1 -1
  28. package/dist/persistentSubscription/listPersistentSubscriptionsToStream.js +7 -7
  29. package/dist/persistentSubscription/listPersistentSubscriptionsToStream.js.map +1 -1
  30. package/dist/persistentSubscription/replayParkedMessagesToAll.js +7 -7
  31. package/dist/persistentSubscription/replayParkedMessagesToAll.js.map +1 -1
  32. package/dist/persistentSubscription/replayParkedMessagesToStream.js +7 -7
  33. package/dist/persistentSubscription/replayParkedMessagesToStream.js.map +1 -1
  34. package/dist/persistentSubscription/restartPersistentSubscriptionSubsystem.js +4 -4
  35. package/dist/persistentSubscription/restartPersistentSubscriptionSubsystem.js.map +1 -1
  36. package/dist/persistentSubscription/subscribeToPersistentSubscriptionToAll.js +8 -8
  37. package/dist/persistentSubscription/subscribeToPersistentSubscriptionToAll.js.map +1 -1
  38. package/dist/persistentSubscription/subscribeToPersistentSubscriptionToStream.js +7 -7
  39. package/dist/persistentSubscription/subscribeToPersistentSubscriptionToStream.js.map +1 -1
  40. package/dist/persistentSubscription/updatePersistentSubscriptionToAll.js +10 -10
  41. package/dist/persistentSubscription/updatePersistentSubscriptionToAll.js.map +1 -1
  42. package/dist/persistentSubscription/updatePersistentSubscriptionToStream.js +6 -6
  43. package/dist/persistentSubscription/updatePersistentSubscriptionToStream.js.map +1 -1
  44. package/dist/persistentSubscription/utils/PersistentSubscriptionImpl.d.ts +1 -1
  45. package/dist/persistentSubscription/utils/PersistentSubscriptionImpl.js +9 -9
  46. package/dist/persistentSubscription/utils/PersistentSubscriptionImpl.js.map +1 -1
  47. package/dist/persistentSubscription/utils/mapPersistentSubscriptionInfo.d.ts +1 -1
  48. package/dist/persistentSubscription/utils/settingsToGRPC.d.ts +1 -1
  49. package/dist/persistentSubscription/utils/settingsToGRPC.js +13 -4
  50. package/dist/persistentSubscription/utils/settingsToGRPC.js.map +1 -1
  51. package/dist/projections/createProjection.js +7 -7
  52. package/dist/projections/createProjection.js.map +1 -1
  53. package/dist/projections/deleteProjection.js +5 -5
  54. package/dist/projections/deleteProjection.js.map +1 -1
  55. package/dist/projections/disableProjection.js +5 -5
  56. package/dist/projections/disableProjection.js.map +1 -1
  57. package/dist/projections/enableProjection.js +5 -5
  58. package/dist/projections/enableProjection.js.map +1 -1
  59. package/dist/projections/getProjectionResult.js +5 -5
  60. package/dist/projections/getProjectionResult.js.map +1 -1
  61. package/dist/projections/getProjectionState.js +5 -5
  62. package/dist/projections/getProjectionState.js.map +1 -1
  63. package/dist/projections/getProjectionStatus.js +5 -5
  64. package/dist/projections/getProjectionStatus.js.map +1 -1
  65. package/dist/projections/listProjections.js +6 -6
  66. package/dist/projections/listProjections.js.map +1 -1
  67. package/dist/projections/resetProjection.js +5 -5
  68. package/dist/projections/resetProjection.js.map +1 -1
  69. package/dist/projections/restartSubsystem.js +3 -3
  70. package/dist/projections/restartSubsystem.js.map +1 -1
  71. package/dist/projections/updateProjection.js +6 -6
  72. package/dist/projections/updateProjection.js.map +1 -1
  73. package/dist/projections/utils/mapGrpcProjectionDetails.d.ts +1 -1
  74. package/dist/schemaRegistry/checkSchemaCompatibility.d.ts +12 -0
  75. package/dist/schemaRegistry/checkSchemaCompatibility.js +60 -0
  76. package/dist/schemaRegistry/checkSchemaCompatibility.js.map +1 -0
  77. package/dist/schemaRegistry/createSchema.d.ts +13 -0
  78. package/dist/schemaRegistry/createSchema.js +36 -0
  79. package/dist/schemaRegistry/createSchema.js.map +1 -0
  80. package/dist/schemaRegistry/deleteSchema.d.ts +11 -0
  81. package/dist/schemaRegistry/deleteSchema.js +23 -0
  82. package/dist/schemaRegistry/deleteSchema.js.map +1 -0
  83. package/dist/schemaRegistry/deleteSchemaVersions.d.ts +13 -0
  84. package/dist/schemaRegistry/deleteSchemaVersions.js +29 -0
  85. package/dist/schemaRegistry/deleteSchemaVersions.js.map +1 -0
  86. package/dist/schemaRegistry/getSchema.d.ts +12 -0
  87. package/dist/schemaRegistry/getSchema.js +28 -0
  88. package/dist/schemaRegistry/getSchema.js.map +1 -0
  89. package/dist/schemaRegistry/getSchemaVersion.d.ts +12 -0
  90. package/dist/schemaRegistry/getSchemaVersion.js +33 -0
  91. package/dist/schemaRegistry/getSchemaVersion.js.map +1 -0
  92. package/dist/schemaRegistry/getSchemaVersionById.d.ts +12 -0
  93. package/dist/schemaRegistry/getSchemaVersionById.js +28 -0
  94. package/dist/schemaRegistry/getSchemaVersionById.js.map +1 -0
  95. package/dist/schemaRegistry/index.d.ts +14 -0
  96. package/dist/schemaRegistry/index.js +35 -0
  97. package/dist/schemaRegistry/index.js.map +1 -0
  98. package/dist/schemaRegistry/listRegisteredSchemas.d.ts +11 -0
  99. package/dist/schemaRegistry/listRegisteredSchemas.js +41 -0
  100. package/dist/schemaRegistry/listRegisteredSchemas.js.map +1 -0
  101. package/dist/schemaRegistry/listSchemaVersions.d.ts +12 -0
  102. package/dist/schemaRegistry/listSchemaVersions.js +28 -0
  103. package/dist/schemaRegistry/listSchemaVersions.js.map +1 -0
  104. package/dist/schemaRegistry/listSchemas.d.ts +11 -0
  105. package/dist/schemaRegistry/listSchemas.js +35 -0
  106. package/dist/schemaRegistry/listSchemas.js.map +1 -0
  107. package/dist/schemaRegistry/lookupSchemaName.d.ts +12 -0
  108. package/dist/schemaRegistry/lookupSchemaName.js +23 -0
  109. package/dist/schemaRegistry/lookupSchemaName.js.map +1 -0
  110. package/dist/schemaRegistry/registerSchemaVersion.d.ts +13 -0
  111. package/dist/schemaRegistry/registerSchemaVersion.js +31 -0
  112. package/dist/schemaRegistry/registerSchemaVersion.js.map +1 -0
  113. package/dist/schemaRegistry/types.d.ts +347 -0
  114. package/dist/schemaRegistry/types.js +3 -0
  115. package/dist/schemaRegistry/types.js.map +1 -0
  116. package/dist/schemaRegistry/updateSchema.d.ts +11 -0
  117. package/dist/schemaRegistry/updateSchema.js +51 -0
  118. package/dist/schemaRegistry/updateSchema.js.map +1 -0
  119. package/dist/schemaRegistry/utils/index.d.ts +1 -0
  120. package/dist/schemaRegistry/utils/index.js +18 -0
  121. package/dist/schemaRegistry/utils/index.js.map +1 -0
  122. package/dist/schemaRegistry/utils/mappers.d.ts +24 -0
  123. package/dist/schemaRegistry/utils/mappers.js +198 -0
  124. package/dist/schemaRegistry/utils/mappers.js.map +1 -0
  125. package/dist/streams/appendToStream/append.js +3 -3
  126. package/dist/streams/appendToStream/append.js.map +1 -1
  127. package/dist/streams/appendToStream/batchAppend.js +3 -3
  128. package/dist/streams/appendToStream/batchAppend.js.map +1 -1
  129. package/dist/streams/appendToStream/index.d.ts +2 -1
  130. package/dist/streams/appendToStream/index.js +10 -1
  131. package/dist/streams/appendToStream/index.js.map +1 -1
  132. package/dist/streams/appendToStream/multiStreamAppend.d.ts +3 -0
  133. package/dist/streams/appendToStream/multiStreamAppend.js +130 -0
  134. package/dist/streams/appendToStream/multiStreamAppend.js.map +1 -0
  135. package/dist/streams/appendToStream/unpackError.d.ts +2 -2
  136. package/dist/streams/appendToStream/unpackError.js +1 -1
  137. package/dist/streams/appendToStream/unpackError.js.map +1 -1
  138. package/dist/streams/deleteStream.js +3 -3
  139. package/dist/streams/deleteStream.js.map +1 -1
  140. package/dist/streams/subscribeToAll.js +3 -3
  141. package/dist/streams/subscribeToAll.js.map +1 -1
  142. package/dist/streams/subscribeToStream.js +3 -3
  143. package/dist/streams/subscribeToStream.js.map +1 -1
  144. package/dist/streams/tombstoneStream.js +3 -3
  145. package/dist/streams/tombstoneStream.js.map +1 -1
  146. package/dist/streams/utils/ReadStream.d.ts +1 -1
  147. package/dist/streams/utils/Subscription.d.ts +1 -1
  148. package/dist/types/index.d.ts +35 -4
  149. package/dist/types/index.js +5 -2
  150. package/dist/types/index.js.map +1 -1
  151. package/dist/utils/CommandError.d.ts +26 -2
  152. package/dist/utils/CommandError.js +100 -3
  153. package/dist/utils/CommandError.js.map +1 -1
  154. package/dist/utils/convertGrpcEvent.d.ts +2 -2
  155. package/dist/utils/getGrpcStatusDetails.d.ts +5 -0
  156. package/dist/utils/getGrpcStatusDetails.js +17 -0
  157. package/dist/utils/getGrpcStatusDetails.js.map +1 -0
  158. package/dist/utils/grpcStreamIdentifier.d.ts +1 -1
  159. package/dist/utils/grpcStreamIdentifier.js +1 -1
  160. package/dist/utils/grpcStreamIdentifier.js.map +1 -1
  161. package/dist/utils/grpcUUID.d.ts +1 -1
  162. package/dist/utils/grpcUUID.js +1 -1
  163. package/dist/utils/grpcUUID.js.map +1 -1
  164. package/dist/utils/index.d.ts +3 -0
  165. package/dist/utils/index.js +3 -0
  166. package/dist/utils/index.js.map +1 -1
  167. package/dist/utils/mapToValue.d.ts +3 -0
  168. package/dist/utils/mapToValue.js +19 -0
  169. package/dist/utils/mapToValue.js.map +1 -0
  170. package/dist/utils/schema.d.ts +7 -0
  171. package/dist/utils/schema.js +21 -0
  172. package/dist/utils/schema.js.map +1 -0
  173. package/generated/{code_pb.d.ts → kurrentdb/protocols/v1/code_pb.d.ts} +1 -1
  174. package/generated/{code_pb.js → kurrentdb/protocols/v1/code_pb.js} +1 -1
  175. package/generated/kurrentdb/protocols/v1/gossip_grpc_pb.d.ts +42 -0
  176. package/generated/{gossip_grpc_pb.js → kurrentdb/protocols/v1/gossip_grpc_pb.js} +8 -8
  177. package/generated/{gossip_pb.d.ts → kurrentdb/protocols/v1/gossip_pb.d.ts} +5 -5
  178. package/generated/{gossip_pb.js → kurrentdb/protocols/v1/gossip_pb.js} +8 -8
  179. package/generated/kurrentdb/protocols/v1/operations_grpc_pb.d.ts +144 -0
  180. package/generated/{operations_grpc_pb.js → kurrentdb/protocols/v1/operations_grpc_pb.js} +26 -26
  181. package/generated/{operations_pb.d.ts → kurrentdb/protocols/v1/operations_pb.d.ts} +2 -2
  182. package/generated/{operations_pb.js → kurrentdb/protocols/v1/operations_pb.js} +3 -3
  183. package/generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb.d.ts +160 -0
  184. package/generated/{persistent_grpc_pb.js → kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb.js} +48 -48
  185. package/generated/{persistent_pb.d.ts → kurrentdb/protocols/v1/persistentsubscriptions_pb.d.ts} +106 -106
  186. package/generated/{persistent_pb.js → kurrentdb/protocols/v1/persistentsubscriptions_pb.js} +173 -173
  187. package/generated/kurrentdb/protocols/v1/projectionmanagement_grpc_pb.d.ts +194 -0
  188. package/generated/{projections_grpc_pb.js → kurrentdb/protocols/v1/projectionmanagement_grpc_pb.js} +60 -60
  189. package/generated/{projections_pb.d.ts → kurrentdb/protocols/v1/projectionmanagement_pb.d.ts} +20 -20
  190. package/generated/{projections_pb.js → kurrentdb/protocols/v1/projectionmanagement_pb.js} +33 -33
  191. package/generated/kurrentdb/protocols/v1/serverfeatures_grpc_pb.d.ts +42 -0
  192. package/generated/{serverfeatures_grpc_pb.js → kurrentdb/protocols/v1/serverfeatures_grpc_pb.js} +8 -8
  193. package/generated/{serverfeatures_pb.d.ts → kurrentdb/protocols/v1/serverfeatures_pb.d.ts} +2 -2
  194. package/generated/{serverfeatures_pb.js → kurrentdb/protocols/v1/serverfeatures_pb.js} +3 -3
  195. package/generated/{shared_pb.d.ts → kurrentdb/protocols/v1/shared_pb.d.ts} +1 -1
  196. package/generated/{shared_pb.js → kurrentdb/protocols/v1/shared_pb.js} +1 -1
  197. package/generated/{status_pb.d.ts → kurrentdb/protocols/v1/status_pb.d.ts} +5 -5
  198. package/generated/{status_pb.js → kurrentdb/protocols/v1/status_pb.js} +3 -3
  199. package/generated/kurrentdb/protocols/v1/streams_grpc_pb.d.ts +113 -0
  200. package/generated/{streams_grpc_pb.js → kurrentdb/protocols/v1/streams_grpc_pb.js} +33 -33
  201. package/generated/{streams_pb.d.ts → kurrentdb/protocols/v1/streams_pb.d.ts} +138 -138
  202. package/generated/{streams_pb.js → kurrentdb/protocols/v1/streams_pb.js} +230 -230
  203. package/generated/kurrentdb/protocols/v1/usermanagement_grpc_pb.d.ts +158 -0
  204. package/generated/{users_grpc_pb.js → kurrentdb/protocols/v1/usermanagement_grpc_pb.js} +49 -49
  205. package/generated/{users_pb.d.ts → kurrentdb/protocols/v1/usermanagement_pb.d.ts} +1 -1
  206. package/generated/{users_pb.js → kurrentdb/protocols/v1/usermanagement_pb.js} +1 -1
  207. package/generated/kurrentdb/protocols/v2/core_grpc_pb.js +1 -0
  208. package/generated/kurrentdb/protocols/v2/core_pb.d.ts +188 -0
  209. package/generated/kurrentdb/protocols/v2/core_pb.js +1301 -0
  210. package/generated/kurrentdb/protocols/v2/errors_grpc_pb.js +1 -0
  211. package/generated/kurrentdb/protocols/v2/errors_pb.d.ts +105 -0
  212. package/generated/kurrentdb/protocols/v2/errors_pb.js +692 -0
  213. package/generated/kurrentdb/protocols/v2/features/service_grpc_pb.d.ts +43 -0
  214. package/generated/kurrentdb/protocols/v2/features/service_grpc_pb.js +50 -0
  215. package/generated/kurrentdb/protocols/v2/features/service_pb.d.ts +227 -0
  216. package/generated/kurrentdb/protocols/v2/features/service_pb.js +1753 -0
  217. package/generated/kurrentdb/protocols/v2/registry/errors_grpc_pb.js +1 -0
  218. package/generated/kurrentdb/protocols/v2/registry/errors_pb.d.ts +75 -0
  219. package/generated/kurrentdb/protocols/v2/registry/errors_pb.js +493 -0
  220. package/generated/kurrentdb/protocols/v2/registry/events_grpc_pb.js +1 -0
  221. package/generated/kurrentdb/protocols/v2/registry/events_pb.d.ts +255 -0
  222. package/generated/kurrentdb/protocols/v2/registry/events_pb.js +2057 -0
  223. package/generated/kurrentdb/protocols/v2/registry/groups_grpc_pb.js +1 -0
  224. package/generated/kurrentdb/protocols/v2/registry/groups_pb.d.ts +474 -0
  225. package/generated/kurrentdb/protocols/v2/registry/groups_pb.js +3593 -0
  226. package/generated/kurrentdb/protocols/v2/registry/schemas_grpc_pb.js +1 -0
  227. package/generated/kurrentdb/protocols/v2/registry/schemas_pb.d.ts +825 -0
  228. package/generated/kurrentdb/protocols/v2/registry/schemas_pb.js +6500 -0
  229. package/generated/kurrentdb/protocols/v2/registry/service_grpc_pb.d.ts +350 -0
  230. package/generated/kurrentdb/protocols/v2/registry/service_grpc_pb.js +654 -0
  231. package/generated/kurrentdb/protocols/v2/registry/service_pb.d.ts +10 -0
  232. package/generated/kurrentdb/protocols/v2/registry/service_pb.js +29 -0
  233. package/generated/kurrentdb/protocols/v2/registry/shared_grpc_pb.js +1 -0
  234. package/generated/kurrentdb/protocols/v2/registry/shared_pb.d.ts +26 -0
  235. package/generated/kurrentdb/protocols/v2/registry/shared_pb.js +51 -0
  236. package/generated/kurrentdb/protocols/v2/registry/validation_grpc_pb.js +1 -0
  237. package/generated/kurrentdb/protocols/v2/registry/validation_pb.d.ts +247 -0
  238. package/generated/kurrentdb/protocols/v2/registry/validation_pb.js +1789 -0
  239. package/generated/kurrentdb/protocols/v2/rpc_grpc_pb.js +1 -0
  240. package/generated/kurrentdb/protocols/v2/rpc_pb.d.ts +34 -0
  241. package/generated/kurrentdb/protocols/v2/rpc_pb.js +236 -0
  242. package/generated/kurrentdb/protocols/v2/streams/errors_grpc_pb.js +1 -0
  243. package/generated/kurrentdb/protocols/v2/streams/errors_pb.d.ts +199 -0
  244. package/generated/kurrentdb/protocols/v2/streams/errors_pb.js +1439 -0
  245. package/generated/kurrentdb/protocols/v2/streams/shared_grpc_pb.js +1 -0
  246. package/generated/kurrentdb/protocols/v2/streams/shared_pb.d.ts +218 -0
  247. package/generated/kurrentdb/protocols/v2/streams/shared_pb.js +1561 -0
  248. package/generated/kurrentdb/protocols/v2/streams/streams_grpc_pb.d.ts +44 -0
  249. package/generated/kurrentdb/protocols/v2/streams/streams_grpc_pb.js +69 -0
  250. package/generated/kurrentdb/protocols/v2/streams/streams_pb.d.ts +176 -0
  251. package/generated/kurrentdb/protocols/v2/streams/streams_pb.js +1289 -0
  252. package/package.json +66 -64
  253. package/generated/cluster_grpc_pb.d.ts +0 -211
  254. package/generated/cluster_grpc_pb.js +0 -247
  255. package/generated/cluster_pb.d.ts +0 -546
  256. package/generated/cluster_pb.js +0 -4357
  257. package/generated/gossip_grpc_pb.d.ts +0 -42
  258. package/generated/monitoring_grpc_pb.d.ts +0 -39
  259. package/generated/monitoring_grpc_pb.js +0 -44
  260. package/generated/monitoring_pb.d.ts +0 -52
  261. package/generated/monitoring_pb.js +0 -361
  262. package/generated/operations_grpc_pb.d.ts +0 -144
  263. package/generated/persistent_grpc_pb.d.ts +0 -160
  264. package/generated/projections_grpc_pb.d.ts +0 -194
  265. package/generated/serverfeatures_grpc_pb.d.ts +0 -42
  266. package/generated/streams_grpc_pb.d.ts +0 -113
  267. package/generated/users_grpc_pb.d.ts +0 -158
  268. /package/generated/{code_grpc_pb.js → kurrentdb/protocols/v1/code_grpc_pb.js} +0 -0
  269. /package/generated/{shared_grpc_pb.js → kurrentdb/protocols/v1/shared_grpc_pb.js} +0 -0
  270. /package/generated/{status_grpc_pb.js → kurrentdb/protocols/v1/status_grpc_pb.js} +0 -0
@@ -0,0 +1,1301 @@
1
+ // source: kurrentdb/protocols/v2/core.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
23
+
24
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
25
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
26
+ var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js');
27
+ goog.object.extend(proto, google_protobuf_duration_pb);
28
+ var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
29
+ goog.object.extend(proto, google_protobuf_struct_pb);
30
+ var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
31
+ goog.object.extend(proto, google_protobuf_descriptor_pb);
32
+ goog.exportSymbol('proto.kurrentdb.protocol.DynamicValue', null, global);
33
+ goog.exportSymbol('proto.kurrentdb.protocol.DynamicValue.KindCase', null, global);
34
+ goog.exportSymbol('proto.kurrentdb.protocol.DynamicValueList', null, global);
35
+ goog.exportSymbol('proto.kurrentdb.protocol.DynamicValueMap', null, global);
36
+ goog.exportSymbol('proto.kurrentdb.protocol.ErrorAnnotations', null, global);
37
+ goog.exportSymbol('proto.kurrentdb.protocol.ErrorAnnotations.Severity', null, global);
38
+ goog.exportSymbol('proto.kurrentdb.protocol.errorInfo', null, global);
39
+ /**
40
+ * Generated by JsPbCodeGenerator.
41
+ * @param {Array=} opt_data Optional initial data array, typically from a
42
+ * server response, or constructed directly in Javascript. The array is used
43
+ * in place and becomes part of the constructed object. It is not cloned.
44
+ * If no data is provided, the constructed object will be empty, but still
45
+ * valid.
46
+ * @extends {jspb.Message}
47
+ * @constructor
48
+ */
49
+ proto.kurrentdb.protocol.ErrorAnnotations = function(opt_data) {
50
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
51
+ };
52
+ goog.inherits(proto.kurrentdb.protocol.ErrorAnnotations, jspb.Message);
53
+ if (goog.DEBUG && !COMPILED) {
54
+ /**
55
+ * @public
56
+ * @override
57
+ */
58
+ proto.kurrentdb.protocol.ErrorAnnotations.displayName = 'proto.kurrentdb.protocol.ErrorAnnotations';
59
+ }
60
+ /**
61
+ * Generated by JsPbCodeGenerator.
62
+ * @param {Array=} opt_data Optional initial data array, typically from a
63
+ * server response, or constructed directly in Javascript. The array is used
64
+ * in place and becomes part of the constructed object. It is not cloned.
65
+ * If no data is provided, the constructed object will be empty, but still
66
+ * valid.
67
+ * @extends {jspb.Message}
68
+ * @constructor
69
+ */
70
+ proto.kurrentdb.protocol.DynamicValueList = function(opt_data) {
71
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.DynamicValueList.repeatedFields_, null);
72
+ };
73
+ goog.inherits(proto.kurrentdb.protocol.DynamicValueList, jspb.Message);
74
+ if (goog.DEBUG && !COMPILED) {
75
+ /**
76
+ * @public
77
+ * @override
78
+ */
79
+ proto.kurrentdb.protocol.DynamicValueList.displayName = 'proto.kurrentdb.protocol.DynamicValueList';
80
+ }
81
+ /**
82
+ * Generated by JsPbCodeGenerator.
83
+ * @param {Array=} opt_data Optional initial data array, typically from a
84
+ * server response, or constructed directly in Javascript. The array is used
85
+ * in place and becomes part of the constructed object. It is not cloned.
86
+ * If no data is provided, the constructed object will be empty, but still
87
+ * valid.
88
+ * @extends {jspb.Message}
89
+ * @constructor
90
+ */
91
+ proto.kurrentdb.protocol.DynamicValueMap = function(opt_data) {
92
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
93
+ };
94
+ goog.inherits(proto.kurrentdb.protocol.DynamicValueMap, jspb.Message);
95
+ if (goog.DEBUG && !COMPILED) {
96
+ /**
97
+ * @public
98
+ * @override
99
+ */
100
+ proto.kurrentdb.protocol.DynamicValueMap.displayName = 'proto.kurrentdb.protocol.DynamicValueMap';
101
+ }
102
+ /**
103
+ * Generated by JsPbCodeGenerator.
104
+ * @param {Array=} opt_data Optional initial data array, typically from a
105
+ * server response, or constructed directly in Javascript. The array is used
106
+ * in place and becomes part of the constructed object. It is not cloned.
107
+ * If no data is provided, the constructed object will be empty, but still
108
+ * valid.
109
+ * @extends {jspb.Message}
110
+ * @constructor
111
+ */
112
+ proto.kurrentdb.protocol.DynamicValue = function(opt_data) {
113
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.kurrentdb.protocol.DynamicValue.oneofGroups_);
114
+ };
115
+ goog.inherits(proto.kurrentdb.protocol.DynamicValue, jspb.Message);
116
+ if (goog.DEBUG && !COMPILED) {
117
+ /**
118
+ * @public
119
+ * @override
120
+ */
121
+ proto.kurrentdb.protocol.DynamicValue.displayName = 'proto.kurrentdb.protocol.DynamicValue';
122
+ }
123
+
124
+
125
+
126
+ if (jspb.Message.GENERATE_TO_OBJECT) {
127
+ /**
128
+ * Creates an object representation of this proto.
129
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
130
+ * Optional fields that are not set will be set to undefined.
131
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
132
+ * For the list of reserved names please see:
133
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
134
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
135
+ * JSPB instance for transitional soy proto support:
136
+ * http://goto/soy-param-migration
137
+ * @return {!Object}
138
+ */
139
+ proto.kurrentdb.protocol.ErrorAnnotations.prototype.toObject = function(opt_includeInstance) {
140
+ return proto.kurrentdb.protocol.ErrorAnnotations.toObject(opt_includeInstance, this);
141
+ };
142
+
143
+
144
+ /**
145
+ * Static version of the {@see toObject} method.
146
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
147
+ * the JSPB instance for transitional soy proto support:
148
+ * http://goto/soy-param-migration
149
+ * @param {!proto.kurrentdb.protocol.ErrorAnnotations} msg The msg instance to transform.
150
+ * @return {!Object}
151
+ * @suppress {unusedLocalVariables} f is only used for nested messages
152
+ */
153
+ proto.kurrentdb.protocol.ErrorAnnotations.toObject = function(includeInstance, msg) {
154
+ var f, obj = {
155
+ code: jspb.Message.getFieldWithDefault(msg, 1, ""),
156
+ severity: jspb.Message.getFieldWithDefault(msg, 2, 0),
157
+ message: jspb.Message.getFieldWithDefault(msg, 3, "")
158
+ };
159
+
160
+ if (includeInstance) {
161
+ obj.$jspbMessageInstance = msg;
162
+ }
163
+ return obj;
164
+ };
165
+ }
166
+
167
+
168
+ /**
169
+ * Deserializes binary data (in protobuf wire format).
170
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
171
+ * @return {!proto.kurrentdb.protocol.ErrorAnnotations}
172
+ */
173
+ proto.kurrentdb.protocol.ErrorAnnotations.deserializeBinary = function(bytes) {
174
+ var reader = new jspb.BinaryReader(bytes);
175
+ var msg = new proto.kurrentdb.protocol.ErrorAnnotations;
176
+ return proto.kurrentdb.protocol.ErrorAnnotations.deserializeBinaryFromReader(msg, reader);
177
+ };
178
+
179
+
180
+ /**
181
+ * Deserializes binary data (in protobuf wire format) from the
182
+ * given reader into the given message object.
183
+ * @param {!proto.kurrentdb.protocol.ErrorAnnotations} msg The message object to deserialize into.
184
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
185
+ * @return {!proto.kurrentdb.protocol.ErrorAnnotations}
186
+ */
187
+ proto.kurrentdb.protocol.ErrorAnnotations.deserializeBinaryFromReader = function(msg, reader) {
188
+ while (reader.nextField()) {
189
+ if (reader.isEndGroup()) {
190
+ break;
191
+ }
192
+ var field = reader.getFieldNumber();
193
+ switch (field) {
194
+ case 1:
195
+ var value = /** @type {string} */ (reader.readString());
196
+ msg.setCode(value);
197
+ break;
198
+ case 2:
199
+ var value = /** @type {!proto.kurrentdb.protocol.ErrorAnnotations.Severity} */ (reader.readEnum());
200
+ msg.setSeverity(value);
201
+ break;
202
+ case 3:
203
+ var value = /** @type {string} */ (reader.readString());
204
+ msg.setMessage(value);
205
+ break;
206
+ default:
207
+ reader.skipField();
208
+ break;
209
+ }
210
+ }
211
+ return msg;
212
+ };
213
+
214
+
215
+ /**
216
+ * Serializes the message to binary data (in protobuf wire format).
217
+ * @return {!Uint8Array}
218
+ */
219
+ proto.kurrentdb.protocol.ErrorAnnotations.prototype.serializeBinary = function() {
220
+ var writer = new jspb.BinaryWriter();
221
+ proto.kurrentdb.protocol.ErrorAnnotations.serializeBinaryToWriter(this, writer);
222
+ return writer.getResultBuffer();
223
+ };
224
+
225
+
226
+ /**
227
+ * Serializes the given message to binary data (in protobuf wire
228
+ * format), writing to the given BinaryWriter.
229
+ * @param {!proto.kurrentdb.protocol.ErrorAnnotations} message
230
+ * @param {!jspb.BinaryWriter} writer
231
+ * @suppress {unusedLocalVariables} f is only used for nested messages
232
+ */
233
+ proto.kurrentdb.protocol.ErrorAnnotations.serializeBinaryToWriter = function(message, writer) {
234
+ var f = undefined;
235
+ f = message.getCode();
236
+ if (f.length > 0) {
237
+ writer.writeString(
238
+ 1,
239
+ f
240
+ );
241
+ }
242
+ f = message.getSeverity();
243
+ if (f !== 0.0) {
244
+ writer.writeEnum(
245
+ 2,
246
+ f
247
+ );
248
+ }
249
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
250
+ if (f != null) {
251
+ writer.writeString(
252
+ 3,
253
+ f
254
+ );
255
+ }
256
+ };
257
+
258
+
259
+ /**
260
+ * @enum {number}
261
+ */
262
+ proto.kurrentdb.protocol.ErrorAnnotations.Severity = {
263
+ RECOVERABLE: 0,
264
+ FATAL: 1
265
+ };
266
+
267
+ /**
268
+ * optional string code = 1;
269
+ * @return {string}
270
+ */
271
+ proto.kurrentdb.protocol.ErrorAnnotations.prototype.getCode = function() {
272
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
273
+ };
274
+
275
+
276
+ /**
277
+ * @param {string} value
278
+ * @return {!proto.kurrentdb.protocol.ErrorAnnotations} returns this
279
+ */
280
+ proto.kurrentdb.protocol.ErrorAnnotations.prototype.setCode = function(value) {
281
+ return jspb.Message.setProto3StringField(this, 1, value);
282
+ };
283
+
284
+
285
+ /**
286
+ * optional Severity severity = 2;
287
+ * @return {!proto.kurrentdb.protocol.ErrorAnnotations.Severity}
288
+ */
289
+ proto.kurrentdb.protocol.ErrorAnnotations.prototype.getSeverity = function() {
290
+ return /** @type {!proto.kurrentdb.protocol.ErrorAnnotations.Severity} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
291
+ };
292
+
293
+
294
+ /**
295
+ * @param {!proto.kurrentdb.protocol.ErrorAnnotations.Severity} value
296
+ * @return {!proto.kurrentdb.protocol.ErrorAnnotations} returns this
297
+ */
298
+ proto.kurrentdb.protocol.ErrorAnnotations.prototype.setSeverity = function(value) {
299
+ return jspb.Message.setProto3EnumField(this, 2, value);
300
+ };
301
+
302
+
303
+ /**
304
+ * optional string message = 3;
305
+ * @return {string}
306
+ */
307
+ proto.kurrentdb.protocol.ErrorAnnotations.prototype.getMessage = function() {
308
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
309
+ };
310
+
311
+
312
+ /**
313
+ * @param {string} value
314
+ * @return {!proto.kurrentdb.protocol.ErrorAnnotations} returns this
315
+ */
316
+ proto.kurrentdb.protocol.ErrorAnnotations.prototype.setMessage = function(value) {
317
+ return jspb.Message.setField(this, 3, value);
318
+ };
319
+
320
+
321
+ /**
322
+ * Clears the field making it undefined.
323
+ * @return {!proto.kurrentdb.protocol.ErrorAnnotations} returns this
324
+ */
325
+ proto.kurrentdb.protocol.ErrorAnnotations.prototype.clearMessage = function() {
326
+ return jspb.Message.setField(this, 3, undefined);
327
+ };
328
+
329
+
330
+ /**
331
+ * Returns whether this field is set.
332
+ * @return {boolean}
333
+ */
334
+ proto.kurrentdb.protocol.ErrorAnnotations.prototype.hasMessage = function() {
335
+ return jspb.Message.getField(this, 3) != null;
336
+ };
337
+
338
+
339
+
340
+ /**
341
+ * List of repeated fields within this message type.
342
+ * @private {!Array<number>}
343
+ * @const
344
+ */
345
+ proto.kurrentdb.protocol.DynamicValueList.repeatedFields_ = [1];
346
+
347
+
348
+
349
+ if (jspb.Message.GENERATE_TO_OBJECT) {
350
+ /**
351
+ * Creates an object representation of this proto.
352
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
353
+ * Optional fields that are not set will be set to undefined.
354
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
355
+ * For the list of reserved names please see:
356
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
357
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
358
+ * JSPB instance for transitional soy proto support:
359
+ * http://goto/soy-param-migration
360
+ * @return {!Object}
361
+ */
362
+ proto.kurrentdb.protocol.DynamicValueList.prototype.toObject = function(opt_includeInstance) {
363
+ return proto.kurrentdb.protocol.DynamicValueList.toObject(opt_includeInstance, this);
364
+ };
365
+
366
+
367
+ /**
368
+ * Static version of the {@see toObject} method.
369
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
370
+ * the JSPB instance for transitional soy proto support:
371
+ * http://goto/soy-param-migration
372
+ * @param {!proto.kurrentdb.protocol.DynamicValueList} msg The msg instance to transform.
373
+ * @return {!Object}
374
+ * @suppress {unusedLocalVariables} f is only used for nested messages
375
+ */
376
+ proto.kurrentdb.protocol.DynamicValueList.toObject = function(includeInstance, msg) {
377
+ var f, obj = {
378
+ valuesList: jspb.Message.toObjectList(msg.getValuesList(),
379
+ proto.kurrentdb.protocol.DynamicValue.toObject, includeInstance)
380
+ };
381
+
382
+ if (includeInstance) {
383
+ obj.$jspbMessageInstance = msg;
384
+ }
385
+ return obj;
386
+ };
387
+ }
388
+
389
+
390
+ /**
391
+ * Deserializes binary data (in protobuf wire format).
392
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
393
+ * @return {!proto.kurrentdb.protocol.DynamicValueList}
394
+ */
395
+ proto.kurrentdb.protocol.DynamicValueList.deserializeBinary = function(bytes) {
396
+ var reader = new jspb.BinaryReader(bytes);
397
+ var msg = new proto.kurrentdb.protocol.DynamicValueList;
398
+ return proto.kurrentdb.protocol.DynamicValueList.deserializeBinaryFromReader(msg, reader);
399
+ };
400
+
401
+
402
+ /**
403
+ * Deserializes binary data (in protobuf wire format) from the
404
+ * given reader into the given message object.
405
+ * @param {!proto.kurrentdb.protocol.DynamicValueList} msg The message object to deserialize into.
406
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
407
+ * @return {!proto.kurrentdb.protocol.DynamicValueList}
408
+ */
409
+ proto.kurrentdb.protocol.DynamicValueList.deserializeBinaryFromReader = function(msg, reader) {
410
+ while (reader.nextField()) {
411
+ if (reader.isEndGroup()) {
412
+ break;
413
+ }
414
+ var field = reader.getFieldNumber();
415
+ switch (field) {
416
+ case 1:
417
+ var value = new proto.kurrentdb.protocol.DynamicValue;
418
+ reader.readMessage(value,proto.kurrentdb.protocol.DynamicValue.deserializeBinaryFromReader);
419
+ msg.addValues(value);
420
+ break;
421
+ default:
422
+ reader.skipField();
423
+ break;
424
+ }
425
+ }
426
+ return msg;
427
+ };
428
+
429
+
430
+ /**
431
+ * Serializes the message to binary data (in protobuf wire format).
432
+ * @return {!Uint8Array}
433
+ */
434
+ proto.kurrentdb.protocol.DynamicValueList.prototype.serializeBinary = function() {
435
+ var writer = new jspb.BinaryWriter();
436
+ proto.kurrentdb.protocol.DynamicValueList.serializeBinaryToWriter(this, writer);
437
+ return writer.getResultBuffer();
438
+ };
439
+
440
+
441
+ /**
442
+ * Serializes the given message to binary data (in protobuf wire
443
+ * format), writing to the given BinaryWriter.
444
+ * @param {!proto.kurrentdb.protocol.DynamicValueList} message
445
+ * @param {!jspb.BinaryWriter} writer
446
+ * @suppress {unusedLocalVariables} f is only used for nested messages
447
+ */
448
+ proto.kurrentdb.protocol.DynamicValueList.serializeBinaryToWriter = function(message, writer) {
449
+ var f = undefined;
450
+ f = message.getValuesList();
451
+ if (f.length > 0) {
452
+ writer.writeRepeatedMessage(
453
+ 1,
454
+ f,
455
+ proto.kurrentdb.protocol.DynamicValue.serializeBinaryToWriter
456
+ );
457
+ }
458
+ };
459
+
460
+
461
+ /**
462
+ * repeated DynamicValue values = 1;
463
+ * @return {!Array<!proto.kurrentdb.protocol.DynamicValue>}
464
+ */
465
+ proto.kurrentdb.protocol.DynamicValueList.prototype.getValuesList = function() {
466
+ return /** @type{!Array<!proto.kurrentdb.protocol.DynamicValue>} */ (
467
+ jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.DynamicValue, 1));
468
+ };
469
+
470
+
471
+ /**
472
+ * @param {!Array<!proto.kurrentdb.protocol.DynamicValue>} value
473
+ * @return {!proto.kurrentdb.protocol.DynamicValueList} returns this
474
+ */
475
+ proto.kurrentdb.protocol.DynamicValueList.prototype.setValuesList = function(value) {
476
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
477
+ };
478
+
479
+
480
+ /**
481
+ * @param {!proto.kurrentdb.protocol.DynamicValue=} opt_value
482
+ * @param {number=} opt_index
483
+ * @return {!proto.kurrentdb.protocol.DynamicValue}
484
+ */
485
+ proto.kurrentdb.protocol.DynamicValueList.prototype.addValues = function(opt_value, opt_index) {
486
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.kurrentdb.protocol.DynamicValue, opt_index);
487
+ };
488
+
489
+
490
+ /**
491
+ * Clears the list making it empty but non-null.
492
+ * @return {!proto.kurrentdb.protocol.DynamicValueList} returns this
493
+ */
494
+ proto.kurrentdb.protocol.DynamicValueList.prototype.clearValuesList = function() {
495
+ return this.setValuesList([]);
496
+ };
497
+
498
+
499
+
500
+
501
+
502
+ if (jspb.Message.GENERATE_TO_OBJECT) {
503
+ /**
504
+ * Creates an object representation of this proto.
505
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
506
+ * Optional fields that are not set will be set to undefined.
507
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
508
+ * For the list of reserved names please see:
509
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
510
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
511
+ * JSPB instance for transitional soy proto support:
512
+ * http://goto/soy-param-migration
513
+ * @return {!Object}
514
+ */
515
+ proto.kurrentdb.protocol.DynamicValueMap.prototype.toObject = function(opt_includeInstance) {
516
+ return proto.kurrentdb.protocol.DynamicValueMap.toObject(opt_includeInstance, this);
517
+ };
518
+
519
+
520
+ /**
521
+ * Static version of the {@see toObject} method.
522
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
523
+ * the JSPB instance for transitional soy proto support:
524
+ * http://goto/soy-param-migration
525
+ * @param {!proto.kurrentdb.protocol.DynamicValueMap} msg The msg instance to transform.
526
+ * @return {!Object}
527
+ * @suppress {unusedLocalVariables} f is only used for nested messages
528
+ */
529
+ proto.kurrentdb.protocol.DynamicValueMap.toObject = function(includeInstance, msg) {
530
+ var f, obj = {
531
+ valuesMap: (f = msg.getValuesMap()) ? f.toObject(includeInstance, proto.kurrentdb.protocol.DynamicValue.toObject) : []
532
+ };
533
+
534
+ if (includeInstance) {
535
+ obj.$jspbMessageInstance = msg;
536
+ }
537
+ return obj;
538
+ };
539
+ }
540
+
541
+
542
+ /**
543
+ * Deserializes binary data (in protobuf wire format).
544
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
545
+ * @return {!proto.kurrentdb.protocol.DynamicValueMap}
546
+ */
547
+ proto.kurrentdb.protocol.DynamicValueMap.deserializeBinary = function(bytes) {
548
+ var reader = new jspb.BinaryReader(bytes);
549
+ var msg = new proto.kurrentdb.protocol.DynamicValueMap;
550
+ return proto.kurrentdb.protocol.DynamicValueMap.deserializeBinaryFromReader(msg, reader);
551
+ };
552
+
553
+
554
+ /**
555
+ * Deserializes binary data (in protobuf wire format) from the
556
+ * given reader into the given message object.
557
+ * @param {!proto.kurrentdb.protocol.DynamicValueMap} msg The message object to deserialize into.
558
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
559
+ * @return {!proto.kurrentdb.protocol.DynamicValueMap}
560
+ */
561
+ proto.kurrentdb.protocol.DynamicValueMap.deserializeBinaryFromReader = function(msg, reader) {
562
+ while (reader.nextField()) {
563
+ if (reader.isEndGroup()) {
564
+ break;
565
+ }
566
+ var field = reader.getFieldNumber();
567
+ switch (field) {
568
+ case 1:
569
+ var value = msg.getValuesMap();
570
+ reader.readMessage(value, function(message, reader) {
571
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.kurrentdb.protocol.DynamicValue.deserializeBinaryFromReader, "", new proto.kurrentdb.protocol.DynamicValue());
572
+ });
573
+ break;
574
+ default:
575
+ reader.skipField();
576
+ break;
577
+ }
578
+ }
579
+ return msg;
580
+ };
581
+
582
+
583
+ /**
584
+ * Serializes the message to binary data (in protobuf wire format).
585
+ * @return {!Uint8Array}
586
+ */
587
+ proto.kurrentdb.protocol.DynamicValueMap.prototype.serializeBinary = function() {
588
+ var writer = new jspb.BinaryWriter();
589
+ proto.kurrentdb.protocol.DynamicValueMap.serializeBinaryToWriter(this, writer);
590
+ return writer.getResultBuffer();
591
+ };
592
+
593
+
594
+ /**
595
+ * Serializes the given message to binary data (in protobuf wire
596
+ * format), writing to the given BinaryWriter.
597
+ * @param {!proto.kurrentdb.protocol.DynamicValueMap} message
598
+ * @param {!jspb.BinaryWriter} writer
599
+ * @suppress {unusedLocalVariables} f is only used for nested messages
600
+ */
601
+ proto.kurrentdb.protocol.DynamicValueMap.serializeBinaryToWriter = function(message, writer) {
602
+ var f = undefined;
603
+ f = message.getValuesMap(true);
604
+ if (f && f.getLength() > 0) {
605
+ f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.kurrentdb.protocol.DynamicValue.serializeBinaryToWriter);
606
+ }
607
+ };
608
+
609
+
610
+ /**
611
+ * map<string, DynamicValue> values = 1;
612
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
613
+ * empty, instead returning `undefined`
614
+ * @return {!jspb.Map<string,!proto.kurrentdb.protocol.DynamicValue>}
615
+ */
616
+ proto.kurrentdb.protocol.DynamicValueMap.prototype.getValuesMap = function(opt_noLazyCreate) {
617
+ return /** @type {!jspb.Map<string,!proto.kurrentdb.protocol.DynamicValue>} */ (
618
+ jspb.Message.getMapField(this, 1, opt_noLazyCreate,
619
+ proto.kurrentdb.protocol.DynamicValue));
620
+ };
621
+
622
+
623
+ /**
624
+ * Clears values from the map. The map will be non-null.
625
+ * @return {!proto.kurrentdb.protocol.DynamicValueMap} returns this
626
+ */
627
+ proto.kurrentdb.protocol.DynamicValueMap.prototype.clearValuesMap = function() {
628
+ this.getValuesMap().clear();
629
+ return this;};
630
+
631
+
632
+
633
+ /**
634
+ * Oneof group definitions for this message. Each group defines the field
635
+ * numbers belonging to that group. When of these fields' value is set, all
636
+ * other fields in the group are cleared. During deserialization, if multiple
637
+ * fields are encountered for a group, only the last value seen will be kept.
638
+ * @private {!Array<!Array<number>>}
639
+ * @const
640
+ */
641
+ proto.kurrentdb.protocol.DynamicValue.oneofGroups_ = [[1,2,3,4,5,6,7,8,9,10]];
642
+
643
+ /**
644
+ * @enum {number}
645
+ */
646
+ proto.kurrentdb.protocol.DynamicValue.KindCase = {
647
+ KIND_NOT_SET: 0,
648
+ NULL_VALUE: 1,
649
+ INT32_VALUE: 2,
650
+ INT64_VALUE: 3,
651
+ BYTES_VALUE: 4,
652
+ DOUBLE_VALUE: 5,
653
+ FLOAT_VALUE: 6,
654
+ STRING_VALUE: 7,
655
+ BOOLEAN_VALUE: 8,
656
+ TIMESTAMP_VALUE: 9,
657
+ DURATION_VALUE: 10
658
+ };
659
+
660
+ /**
661
+ * @return {proto.kurrentdb.protocol.DynamicValue.KindCase}
662
+ */
663
+ proto.kurrentdb.protocol.DynamicValue.prototype.getKindCase = function() {
664
+ return /** @type {proto.kurrentdb.protocol.DynamicValue.KindCase} */(jspb.Message.computeOneofCase(this, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0]));
665
+ };
666
+
667
+
668
+
669
+ if (jspb.Message.GENERATE_TO_OBJECT) {
670
+ /**
671
+ * Creates an object representation of this proto.
672
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
673
+ * Optional fields that are not set will be set to undefined.
674
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
675
+ * For the list of reserved names please see:
676
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
677
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
678
+ * JSPB instance for transitional soy proto support:
679
+ * http://goto/soy-param-migration
680
+ * @return {!Object}
681
+ */
682
+ proto.kurrentdb.protocol.DynamicValue.prototype.toObject = function(opt_includeInstance) {
683
+ return proto.kurrentdb.protocol.DynamicValue.toObject(opt_includeInstance, this);
684
+ };
685
+
686
+
687
+ /**
688
+ * Static version of the {@see toObject} method.
689
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
690
+ * the JSPB instance for transitional soy proto support:
691
+ * http://goto/soy-param-migration
692
+ * @param {!proto.kurrentdb.protocol.DynamicValue} msg The msg instance to transform.
693
+ * @return {!Object}
694
+ * @suppress {unusedLocalVariables} f is only used for nested messages
695
+ */
696
+ proto.kurrentdb.protocol.DynamicValue.toObject = function(includeInstance, msg) {
697
+ var f, obj = {
698
+ nullValue: jspb.Message.getFieldWithDefault(msg, 1, 0),
699
+ int32Value: jspb.Message.getFieldWithDefault(msg, 2, 0),
700
+ int64Value: jspb.Message.getFieldWithDefault(msg, 3, 0),
701
+ bytesValue: msg.getBytesValue_asB64(),
702
+ doubleValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
703
+ floatValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
704
+ stringValue: jspb.Message.getFieldWithDefault(msg, 7, ""),
705
+ booleanValue: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
706
+ timestampValue: (f = msg.getTimestampValue()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
707
+ durationValue: (f = msg.getDurationValue()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f)
708
+ };
709
+
710
+ if (includeInstance) {
711
+ obj.$jspbMessageInstance = msg;
712
+ }
713
+ return obj;
714
+ };
715
+ }
716
+
717
+
718
+ /**
719
+ * Deserializes binary data (in protobuf wire format).
720
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
721
+ * @return {!proto.kurrentdb.protocol.DynamicValue}
722
+ */
723
+ proto.kurrentdb.protocol.DynamicValue.deserializeBinary = function(bytes) {
724
+ var reader = new jspb.BinaryReader(bytes);
725
+ var msg = new proto.kurrentdb.protocol.DynamicValue;
726
+ return proto.kurrentdb.protocol.DynamicValue.deserializeBinaryFromReader(msg, reader);
727
+ };
728
+
729
+
730
+ /**
731
+ * Deserializes binary data (in protobuf wire format) from the
732
+ * given reader into the given message object.
733
+ * @param {!proto.kurrentdb.protocol.DynamicValue} msg The message object to deserialize into.
734
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
735
+ * @return {!proto.kurrentdb.protocol.DynamicValue}
736
+ */
737
+ proto.kurrentdb.protocol.DynamicValue.deserializeBinaryFromReader = function(msg, reader) {
738
+ while (reader.nextField()) {
739
+ if (reader.isEndGroup()) {
740
+ break;
741
+ }
742
+ var field = reader.getFieldNumber();
743
+ switch (field) {
744
+ case 1:
745
+ var value = /** @type {!proto.google.protobuf.NullValue} */ (reader.readEnum());
746
+ msg.setNullValue(value);
747
+ break;
748
+ case 2:
749
+ var value = /** @type {number} */ (reader.readSint32());
750
+ msg.setInt32Value(value);
751
+ break;
752
+ case 3:
753
+ var value = /** @type {number} */ (reader.readSint64());
754
+ msg.setInt64Value(value);
755
+ break;
756
+ case 4:
757
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
758
+ msg.setBytesValue(value);
759
+ break;
760
+ case 5:
761
+ var value = /** @type {number} */ (reader.readDouble());
762
+ msg.setDoubleValue(value);
763
+ break;
764
+ case 6:
765
+ var value = /** @type {number} */ (reader.readFloat());
766
+ msg.setFloatValue(value);
767
+ break;
768
+ case 7:
769
+ var value = /** @type {string} */ (reader.readString());
770
+ msg.setStringValue(value);
771
+ break;
772
+ case 8:
773
+ var value = /** @type {boolean} */ (reader.readBool());
774
+ msg.setBooleanValue(value);
775
+ break;
776
+ case 9:
777
+ var value = new google_protobuf_timestamp_pb.Timestamp;
778
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
779
+ msg.setTimestampValue(value);
780
+ break;
781
+ case 10:
782
+ var value = new google_protobuf_duration_pb.Duration;
783
+ reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
784
+ msg.setDurationValue(value);
785
+ break;
786
+ default:
787
+ reader.skipField();
788
+ break;
789
+ }
790
+ }
791
+ return msg;
792
+ };
793
+
794
+
795
+ /**
796
+ * Serializes the message to binary data (in protobuf wire format).
797
+ * @return {!Uint8Array}
798
+ */
799
+ proto.kurrentdb.protocol.DynamicValue.prototype.serializeBinary = function() {
800
+ var writer = new jspb.BinaryWriter();
801
+ proto.kurrentdb.protocol.DynamicValue.serializeBinaryToWriter(this, writer);
802
+ return writer.getResultBuffer();
803
+ };
804
+
805
+
806
+ /**
807
+ * Serializes the given message to binary data (in protobuf wire
808
+ * format), writing to the given BinaryWriter.
809
+ * @param {!proto.kurrentdb.protocol.DynamicValue} message
810
+ * @param {!jspb.BinaryWriter} writer
811
+ * @suppress {unusedLocalVariables} f is only used for nested messages
812
+ */
813
+ proto.kurrentdb.protocol.DynamicValue.serializeBinaryToWriter = function(message, writer) {
814
+ var f = undefined;
815
+ f = /** @type {!proto.google.protobuf.NullValue} */ (jspb.Message.getField(message, 1));
816
+ if (f != null) {
817
+ writer.writeEnum(
818
+ 1,
819
+ f
820
+ );
821
+ }
822
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
823
+ if (f != null) {
824
+ writer.writeSint32(
825
+ 2,
826
+ f
827
+ );
828
+ }
829
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
830
+ if (f != null) {
831
+ writer.writeSint64(
832
+ 3,
833
+ f
834
+ );
835
+ }
836
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 4));
837
+ if (f != null) {
838
+ writer.writeBytes(
839
+ 4,
840
+ f
841
+ );
842
+ }
843
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
844
+ if (f != null) {
845
+ writer.writeDouble(
846
+ 5,
847
+ f
848
+ );
849
+ }
850
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
851
+ if (f != null) {
852
+ writer.writeFloat(
853
+ 6,
854
+ f
855
+ );
856
+ }
857
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
858
+ if (f != null) {
859
+ writer.writeString(
860
+ 7,
861
+ f
862
+ );
863
+ }
864
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 8));
865
+ if (f != null) {
866
+ writer.writeBool(
867
+ 8,
868
+ f
869
+ );
870
+ }
871
+ f = message.getTimestampValue();
872
+ if (f != null) {
873
+ writer.writeMessage(
874
+ 9,
875
+ f,
876
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
877
+ );
878
+ }
879
+ f = message.getDurationValue();
880
+ if (f != null) {
881
+ writer.writeMessage(
882
+ 10,
883
+ f,
884
+ google_protobuf_duration_pb.Duration.serializeBinaryToWriter
885
+ );
886
+ }
887
+ };
888
+
889
+
890
+ /**
891
+ * optional google.protobuf.NullValue null_value = 1;
892
+ * @return {!proto.google.protobuf.NullValue}
893
+ */
894
+ proto.kurrentdb.protocol.DynamicValue.prototype.getNullValue = function() {
895
+ return /** @type {!proto.google.protobuf.NullValue} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
896
+ };
897
+
898
+
899
+ /**
900
+ * @param {!proto.google.protobuf.NullValue} value
901
+ * @return {!proto.kurrentdb.protocol.DynamicValue} returns this
902
+ */
903
+ proto.kurrentdb.protocol.DynamicValue.prototype.setNullValue = function(value) {
904
+ return jspb.Message.setOneofField(this, 1, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], value);
905
+ };
906
+
907
+
908
+ /**
909
+ * Clears the field making it undefined.
910
+ * @return {!proto.kurrentdb.protocol.DynamicValue} returns this
911
+ */
912
+ proto.kurrentdb.protocol.DynamicValue.prototype.clearNullValue = function() {
913
+ return jspb.Message.setOneofField(this, 1, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], undefined);
914
+ };
915
+
916
+
917
+ /**
918
+ * Returns whether this field is set.
919
+ * @return {boolean}
920
+ */
921
+ proto.kurrentdb.protocol.DynamicValue.prototype.hasNullValue = function() {
922
+ return jspb.Message.getField(this, 1) != null;
923
+ };
924
+
925
+
926
+ /**
927
+ * optional sint32 int32_value = 2;
928
+ * @return {number}
929
+ */
930
+ proto.kurrentdb.protocol.DynamicValue.prototype.getInt32Value = function() {
931
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
932
+ };
933
+
934
+
935
+ /**
936
+ * @param {number} value
937
+ * @return {!proto.kurrentdb.protocol.DynamicValue} returns this
938
+ */
939
+ proto.kurrentdb.protocol.DynamicValue.prototype.setInt32Value = function(value) {
940
+ return jspb.Message.setOneofField(this, 2, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], value);
941
+ };
942
+
943
+
944
+ /**
945
+ * Clears the field making it undefined.
946
+ * @return {!proto.kurrentdb.protocol.DynamicValue} returns this
947
+ */
948
+ proto.kurrentdb.protocol.DynamicValue.prototype.clearInt32Value = function() {
949
+ return jspb.Message.setOneofField(this, 2, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], undefined);
950
+ };
951
+
952
+
953
+ /**
954
+ * Returns whether this field is set.
955
+ * @return {boolean}
956
+ */
957
+ proto.kurrentdb.protocol.DynamicValue.prototype.hasInt32Value = function() {
958
+ return jspb.Message.getField(this, 2) != null;
959
+ };
960
+
961
+
962
+ /**
963
+ * optional sint64 int64_value = 3;
964
+ * @return {number}
965
+ */
966
+ proto.kurrentdb.protocol.DynamicValue.prototype.getInt64Value = function() {
967
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
968
+ };
969
+
970
+
971
+ /**
972
+ * @param {number} value
973
+ * @return {!proto.kurrentdb.protocol.DynamicValue} returns this
974
+ */
975
+ proto.kurrentdb.protocol.DynamicValue.prototype.setInt64Value = function(value) {
976
+ return jspb.Message.setOneofField(this, 3, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], value);
977
+ };
978
+
979
+
980
+ /**
981
+ * Clears the field making it undefined.
982
+ * @return {!proto.kurrentdb.protocol.DynamicValue} returns this
983
+ */
984
+ proto.kurrentdb.protocol.DynamicValue.prototype.clearInt64Value = function() {
985
+ return jspb.Message.setOneofField(this, 3, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], undefined);
986
+ };
987
+
988
+
989
+ /**
990
+ * Returns whether this field is set.
991
+ * @return {boolean}
992
+ */
993
+ proto.kurrentdb.protocol.DynamicValue.prototype.hasInt64Value = function() {
994
+ return jspb.Message.getField(this, 3) != null;
995
+ };
996
+
997
+
998
+ /**
999
+ * optional bytes bytes_value = 4;
1000
+ * @return {!(string|Uint8Array)}
1001
+ */
1002
+ proto.kurrentdb.protocol.DynamicValue.prototype.getBytesValue = function() {
1003
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1004
+ };
1005
+
1006
+
1007
+ /**
1008
+ * optional bytes bytes_value = 4;
1009
+ * This is a type-conversion wrapper around `getBytesValue()`
1010
+ * @return {string}
1011
+ */
1012
+ proto.kurrentdb.protocol.DynamicValue.prototype.getBytesValue_asB64 = function() {
1013
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1014
+ this.getBytesValue()));
1015
+ };
1016
+
1017
+
1018
+ /**
1019
+ * optional bytes bytes_value = 4;
1020
+ * Note that Uint8Array is not supported on all browsers.
1021
+ * @see http://caniuse.com/Uint8Array
1022
+ * This is a type-conversion wrapper around `getBytesValue()`
1023
+ * @return {!Uint8Array}
1024
+ */
1025
+ proto.kurrentdb.protocol.DynamicValue.prototype.getBytesValue_asU8 = function() {
1026
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1027
+ this.getBytesValue()));
1028
+ };
1029
+
1030
+
1031
+ /**
1032
+ * @param {!(string|Uint8Array)} value
1033
+ * @return {!proto.kurrentdb.protocol.DynamicValue} returns this
1034
+ */
1035
+ proto.kurrentdb.protocol.DynamicValue.prototype.setBytesValue = function(value) {
1036
+ return jspb.Message.setOneofField(this, 4, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], value);
1037
+ };
1038
+
1039
+
1040
+ /**
1041
+ * Clears the field making it undefined.
1042
+ * @return {!proto.kurrentdb.protocol.DynamicValue} returns this
1043
+ */
1044
+ proto.kurrentdb.protocol.DynamicValue.prototype.clearBytesValue = function() {
1045
+ return jspb.Message.setOneofField(this, 4, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], undefined);
1046
+ };
1047
+
1048
+
1049
+ /**
1050
+ * Returns whether this field is set.
1051
+ * @return {boolean}
1052
+ */
1053
+ proto.kurrentdb.protocol.DynamicValue.prototype.hasBytesValue = function() {
1054
+ return jspb.Message.getField(this, 4) != null;
1055
+ };
1056
+
1057
+
1058
+ /**
1059
+ * optional double double_value = 5;
1060
+ * @return {number}
1061
+ */
1062
+ proto.kurrentdb.protocol.DynamicValue.prototype.getDoubleValue = function() {
1063
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
1064
+ };
1065
+
1066
+
1067
+ /**
1068
+ * @param {number} value
1069
+ * @return {!proto.kurrentdb.protocol.DynamicValue} returns this
1070
+ */
1071
+ proto.kurrentdb.protocol.DynamicValue.prototype.setDoubleValue = function(value) {
1072
+ return jspb.Message.setOneofField(this, 5, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], value);
1073
+ };
1074
+
1075
+
1076
+ /**
1077
+ * Clears the field making it undefined.
1078
+ * @return {!proto.kurrentdb.protocol.DynamicValue} returns this
1079
+ */
1080
+ proto.kurrentdb.protocol.DynamicValue.prototype.clearDoubleValue = function() {
1081
+ return jspb.Message.setOneofField(this, 5, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], undefined);
1082
+ };
1083
+
1084
+
1085
+ /**
1086
+ * Returns whether this field is set.
1087
+ * @return {boolean}
1088
+ */
1089
+ proto.kurrentdb.protocol.DynamicValue.prototype.hasDoubleValue = function() {
1090
+ return jspb.Message.getField(this, 5) != null;
1091
+ };
1092
+
1093
+
1094
+ /**
1095
+ * optional float float_value = 6;
1096
+ * @return {number}
1097
+ */
1098
+ proto.kurrentdb.protocol.DynamicValue.prototype.getFloatValue = function() {
1099
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
1100
+ };
1101
+
1102
+
1103
+ /**
1104
+ * @param {number} value
1105
+ * @return {!proto.kurrentdb.protocol.DynamicValue} returns this
1106
+ */
1107
+ proto.kurrentdb.protocol.DynamicValue.prototype.setFloatValue = function(value) {
1108
+ return jspb.Message.setOneofField(this, 6, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], value);
1109
+ };
1110
+
1111
+
1112
+ /**
1113
+ * Clears the field making it undefined.
1114
+ * @return {!proto.kurrentdb.protocol.DynamicValue} returns this
1115
+ */
1116
+ proto.kurrentdb.protocol.DynamicValue.prototype.clearFloatValue = function() {
1117
+ return jspb.Message.setOneofField(this, 6, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], undefined);
1118
+ };
1119
+
1120
+
1121
+ /**
1122
+ * Returns whether this field is set.
1123
+ * @return {boolean}
1124
+ */
1125
+ proto.kurrentdb.protocol.DynamicValue.prototype.hasFloatValue = function() {
1126
+ return jspb.Message.getField(this, 6) != null;
1127
+ };
1128
+
1129
+
1130
+ /**
1131
+ * optional string string_value = 7;
1132
+ * @return {string}
1133
+ */
1134
+ proto.kurrentdb.protocol.DynamicValue.prototype.getStringValue = function() {
1135
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1136
+ };
1137
+
1138
+
1139
+ /**
1140
+ * @param {string} value
1141
+ * @return {!proto.kurrentdb.protocol.DynamicValue} returns this
1142
+ */
1143
+ proto.kurrentdb.protocol.DynamicValue.prototype.setStringValue = function(value) {
1144
+ return jspb.Message.setOneofField(this, 7, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], value);
1145
+ };
1146
+
1147
+
1148
+ /**
1149
+ * Clears the field making it undefined.
1150
+ * @return {!proto.kurrentdb.protocol.DynamicValue} returns this
1151
+ */
1152
+ proto.kurrentdb.protocol.DynamicValue.prototype.clearStringValue = function() {
1153
+ return jspb.Message.setOneofField(this, 7, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], undefined);
1154
+ };
1155
+
1156
+
1157
+ /**
1158
+ * Returns whether this field is set.
1159
+ * @return {boolean}
1160
+ */
1161
+ proto.kurrentdb.protocol.DynamicValue.prototype.hasStringValue = function() {
1162
+ return jspb.Message.getField(this, 7) != null;
1163
+ };
1164
+
1165
+
1166
+ /**
1167
+ * optional bool boolean_value = 8;
1168
+ * @return {boolean}
1169
+ */
1170
+ proto.kurrentdb.protocol.DynamicValue.prototype.getBooleanValue = function() {
1171
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
1172
+ };
1173
+
1174
+
1175
+ /**
1176
+ * @param {boolean} value
1177
+ * @return {!proto.kurrentdb.protocol.DynamicValue} returns this
1178
+ */
1179
+ proto.kurrentdb.protocol.DynamicValue.prototype.setBooleanValue = function(value) {
1180
+ return jspb.Message.setOneofField(this, 8, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], value);
1181
+ };
1182
+
1183
+
1184
+ /**
1185
+ * Clears the field making it undefined.
1186
+ * @return {!proto.kurrentdb.protocol.DynamicValue} returns this
1187
+ */
1188
+ proto.kurrentdb.protocol.DynamicValue.prototype.clearBooleanValue = function() {
1189
+ return jspb.Message.setOneofField(this, 8, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], undefined);
1190
+ };
1191
+
1192
+
1193
+ /**
1194
+ * Returns whether this field is set.
1195
+ * @return {boolean}
1196
+ */
1197
+ proto.kurrentdb.protocol.DynamicValue.prototype.hasBooleanValue = function() {
1198
+ return jspb.Message.getField(this, 8) != null;
1199
+ };
1200
+
1201
+
1202
+ /**
1203
+ * optional google.protobuf.Timestamp timestamp_value = 9;
1204
+ * @return {?proto.google.protobuf.Timestamp}
1205
+ */
1206
+ proto.kurrentdb.protocol.DynamicValue.prototype.getTimestampValue = function() {
1207
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1208
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
1209
+ };
1210
+
1211
+
1212
+ /**
1213
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1214
+ * @return {!proto.kurrentdb.protocol.DynamicValue} returns this
1215
+ */
1216
+ proto.kurrentdb.protocol.DynamicValue.prototype.setTimestampValue = function(value) {
1217
+ return jspb.Message.setOneofWrapperField(this, 9, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], value);
1218
+ };
1219
+
1220
+
1221
+ /**
1222
+ * Clears the message field making it undefined.
1223
+ * @return {!proto.kurrentdb.protocol.DynamicValue} returns this
1224
+ */
1225
+ proto.kurrentdb.protocol.DynamicValue.prototype.clearTimestampValue = function() {
1226
+ return this.setTimestampValue(undefined);
1227
+ };
1228
+
1229
+
1230
+ /**
1231
+ * Returns whether this field is set.
1232
+ * @return {boolean}
1233
+ */
1234
+ proto.kurrentdb.protocol.DynamicValue.prototype.hasTimestampValue = function() {
1235
+ return jspb.Message.getField(this, 9) != null;
1236
+ };
1237
+
1238
+
1239
+ /**
1240
+ * optional google.protobuf.Duration duration_value = 10;
1241
+ * @return {?proto.google.protobuf.Duration}
1242
+ */
1243
+ proto.kurrentdb.protocol.DynamicValue.prototype.getDurationValue = function() {
1244
+ return /** @type{?proto.google.protobuf.Duration} */ (
1245
+ jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 10));
1246
+ };
1247
+
1248
+
1249
+ /**
1250
+ * @param {?proto.google.protobuf.Duration|undefined} value
1251
+ * @return {!proto.kurrentdb.protocol.DynamicValue} returns this
1252
+ */
1253
+ proto.kurrentdb.protocol.DynamicValue.prototype.setDurationValue = function(value) {
1254
+ return jspb.Message.setOneofWrapperField(this, 10, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], value);
1255
+ };
1256
+
1257
+
1258
+ /**
1259
+ * Clears the message field making it undefined.
1260
+ * @return {!proto.kurrentdb.protocol.DynamicValue} returns this
1261
+ */
1262
+ proto.kurrentdb.protocol.DynamicValue.prototype.clearDurationValue = function() {
1263
+ return this.setDurationValue(undefined);
1264
+ };
1265
+
1266
+
1267
+ /**
1268
+ * Returns whether this field is set.
1269
+ * @return {boolean}
1270
+ */
1271
+ proto.kurrentdb.protocol.DynamicValue.prototype.hasDurationValue = function() {
1272
+ return jspb.Message.getField(this, 10) != null;
1273
+ };
1274
+
1275
+
1276
+
1277
+ /**
1278
+ * A tuple of {field number, class constructor} for the extension
1279
+ * field named `errorInfo`.
1280
+ * @type {!jspb.ExtensionFieldInfo<!proto.kurrentdb.protocol.ErrorAnnotations>}
1281
+ */
1282
+ proto.kurrentdb.protocol.errorInfo = new jspb.ExtensionFieldInfo(
1283
+ 50000,
1284
+ {errorInfo: 0},
1285
+ proto.kurrentdb.protocol.ErrorAnnotations,
1286
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
1287
+ proto.kurrentdb.protocol.ErrorAnnotations.toObject),
1288
+ 0);
1289
+
1290
+ google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[50000] = new jspb.ExtensionFieldBinaryInfo(
1291
+ proto.kurrentdb.protocol.errorInfo,
1292
+ jspb.BinaryReader.prototype.readMessage,
1293
+ jspb.BinaryWriter.prototype.writeMessage,
1294
+ proto.kurrentdb.protocol.ErrorAnnotations.serializeBinaryToWriter,
1295
+ proto.kurrentdb.protocol.ErrorAnnotations.deserializeBinaryFromReader,
1296
+ false);
1297
+ // This registers the extension field with the extended class, so that
1298
+ // toObject() will function correctly.
1299
+ google_protobuf_descriptor_pb.MessageOptions.extensions[50000] = proto.kurrentdb.protocol.errorInfo;
1300
+
1301
+ goog.object.extend(exports, proto.kurrentdb.protocol);