@kurrent/kurrentdb-client 1.0.0-alpha.1

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 (281) hide show
  1. package/README.md +201 -0
  2. package/dist/Client/ServerFeatures.d.ts +17 -0
  3. package/dist/Client/ServerFeatures.js +56 -0
  4. package/dist/Client/ServerFeatures.js.map +1 -0
  5. package/dist/Client/discovery.d.ts +15 -0
  6. package/dist/Client/discovery.js +135 -0
  7. package/dist/Client/discovery.js.map +1 -0
  8. package/dist/Client/http.d.ts +19 -0
  9. package/dist/Client/http.js +97 -0
  10. package/dist/Client/http.js.map +1 -0
  11. package/dist/Client/index.d.ts +119 -0
  12. package/dist/Client/index.js +390 -0
  13. package/dist/Client/index.js.map +1 -0
  14. package/dist/Client/parseConnectionString.d.ts +23 -0
  15. package/dist/Client/parseConnectionString.js +238 -0
  16. package/dist/Client/parseConnectionString.js.map +1 -0
  17. package/dist/bridge/index.d.ts +66 -0
  18. package/dist/bridge/index.js +83 -0
  19. package/dist/bridge/index.js.map +1 -0
  20. package/dist/bridge/load.d.ts +1 -0
  21. package/dist/bridge/load.js +20 -0
  22. package/dist/bridge/load.js.map +1 -0
  23. package/dist/constants.d.ts +58 -0
  24. package/dist/constants.js +75 -0
  25. package/dist/constants.js.map +1 -0
  26. package/dist/events/binaryEvent.d.ts +16 -0
  27. package/dist/events/binaryEvent.js +14 -0
  28. package/dist/events/binaryEvent.js.map +1 -0
  29. package/dist/events/convertMetadata.d.ts +1 -0
  30. package/dist/events/convertMetadata.js +11 -0
  31. package/dist/events/convertMetadata.js.map +1 -0
  32. package/dist/events/index.d.ts +2 -0
  33. package/dist/events/index.js +19 -0
  34. package/dist/events/index.js.map +1 -0
  35. package/dist/events/jsonEvent.d.ts +8 -0
  36. package/dist/events/jsonEvent.js +14 -0
  37. package/dist/events/jsonEvent.js.map +1 -0
  38. package/dist/index.d.ts +13 -0
  39. package/dist/index.js +32 -0
  40. package/dist/index.js.map +1 -0
  41. package/dist/persistentSubscription/createPersistentSubscriptionToAll.d.ts +23 -0
  42. package/dist/persistentSubscription/createPersistentSubscriptionToAll.js +90 -0
  43. package/dist/persistentSubscription/createPersistentSubscriptionToAll.js.map +1 -0
  44. package/dist/persistentSubscription/createPersistentSubscriptionToStream.d.ts +17 -0
  45. package/dist/persistentSubscription/createPersistentSubscriptionToStream.js +49 -0
  46. package/dist/persistentSubscription/createPersistentSubscriptionToStream.js.map +1 -0
  47. package/dist/persistentSubscription/deletePersistentSubscriptionToAll.d.ts +13 -0
  48. package/dist/persistentSubscription/deletePersistentSubscriptionToAll.js +30 -0
  49. package/dist/persistentSubscription/deletePersistentSubscriptionToAll.js.map +1 -0
  50. package/dist/persistentSubscription/deletePersistentSubscriptionToStream.d.ts +13 -0
  51. package/dist/persistentSubscription/deletePersistentSubscriptionToStream.js +28 -0
  52. package/dist/persistentSubscription/deletePersistentSubscriptionToStream.js.map +1 -0
  53. package/dist/persistentSubscription/getPersistentSubscriptionToAllInfo.d.ts +13 -0
  54. package/dist/persistentSubscription/getPersistentSubscriptionToAllInfo.js +31 -0
  55. package/dist/persistentSubscription/getPersistentSubscriptionToAllInfo.js.map +1 -0
  56. package/dist/persistentSubscription/getPersistentSubscriptionToStreamInfo.d.ts +14 -0
  57. package/dist/persistentSubscription/getPersistentSubscriptionToStreamInfo.js +49 -0
  58. package/dist/persistentSubscription/getPersistentSubscriptionToStreamInfo.js.map +1 -0
  59. package/dist/persistentSubscription/index.d.ts +16 -0
  60. package/dist/persistentSubscription/index.js +33 -0
  61. package/dist/persistentSubscription/index.js.map +1 -0
  62. package/dist/persistentSubscription/listAllPersistentSubscriptions.d.ts +13 -0
  63. package/dist/persistentSubscription/listAllPersistentSubscriptions.js +42 -0
  64. package/dist/persistentSubscription/listAllPersistentSubscriptions.js.map +1 -0
  65. package/dist/persistentSubscription/listPersistentSubscriptionsToAll.d.ts +13 -0
  66. package/dist/persistentSubscription/listPersistentSubscriptionsToAll.js +33 -0
  67. package/dist/persistentSubscription/listPersistentSubscriptionsToAll.js.map +1 -0
  68. package/dist/persistentSubscription/listPersistentSubscriptionsToStream.d.ts +14 -0
  69. package/dist/persistentSubscription/listPersistentSubscriptionsToStream.js +51 -0
  70. package/dist/persistentSubscription/listPersistentSubscriptionsToStream.js.map +1 -0
  71. package/dist/persistentSubscription/replayParkedMessagesToAll.d.ts +18 -0
  72. package/dist/persistentSubscription/replayParkedMessagesToAll.js +36 -0
  73. package/dist/persistentSubscription/replayParkedMessagesToAll.js.map +1 -0
  74. package/dist/persistentSubscription/replayParkedMessagesToStream.d.ts +19 -0
  75. package/dist/persistentSubscription/replayParkedMessagesToStream.js +57 -0
  76. package/dist/persistentSubscription/replayParkedMessagesToStream.js.map +1 -0
  77. package/dist/persistentSubscription/restartPersistentSubscriptionSubsystem.d.ts +11 -0
  78. package/dist/persistentSubscription/restartPersistentSubscriptionSubsystem.js +30 -0
  79. package/dist/persistentSubscription/restartPersistentSubscriptionSubsystem.js.map +1 -0
  80. package/dist/persistentSubscription/subscribeToPersistentSubscriptionToAll.d.ts +20 -0
  81. package/dist/persistentSubscription/subscribeToPersistentSubscriptionToAll.js +38 -0
  82. package/dist/persistentSubscription/subscribeToPersistentSubscriptionToAll.js.map +1 -0
  83. package/dist/persistentSubscription/subscribeToPersistentSubscriptionToStream.d.ts +20 -0
  84. package/dist/persistentSubscription/subscribeToPersistentSubscriptionToStream.js +37 -0
  85. package/dist/persistentSubscription/subscribeToPersistentSubscriptionToStream.js.map +1 -0
  86. package/dist/persistentSubscription/updatePersistentSubscriptionToAll.d.ts +15 -0
  87. package/dist/persistentSubscription/updatePersistentSubscriptionToAll.js +53 -0
  88. package/dist/persistentSubscription/updatePersistentSubscriptionToAll.js.map +1 -0
  89. package/dist/persistentSubscription/updatePersistentSubscriptionToStream.d.ts +15 -0
  90. package/dist/persistentSubscription/updatePersistentSubscriptionToStream.js +49 -0
  91. package/dist/persistentSubscription/updatePersistentSubscriptionToStream.js.map +1 -0
  92. package/dist/persistentSubscription/utils/PersistentSubscriptionImpl.d.ts +18 -0
  93. package/dist/persistentSubscription/utils/PersistentSubscriptionImpl.js +112 -0
  94. package/dist/persistentSubscription/utils/PersistentSubscriptionImpl.js.map +1 -0
  95. package/dist/persistentSubscription/utils/mapPersistentSubscriptionInfo.d.ts +146 -0
  96. package/dist/persistentSubscription/utils/mapPersistentSubscriptionInfo.js +204 -0
  97. package/dist/persistentSubscription/utils/mapPersistentSubscriptionInfo.js.map +1 -0
  98. package/dist/persistentSubscription/utils/persistentSubscriptionSettings.d.ts +90 -0
  99. package/dist/persistentSubscription/utils/persistentSubscriptionSettings.js +39 -0
  100. package/dist/persistentSubscription/utils/persistentSubscriptionSettings.js.map +1 -0
  101. package/dist/persistentSubscription/utils/settingsToGRPC.d.ts +5 -0
  102. package/dist/persistentSubscription/utils/settingsToGRPC.js +49 -0
  103. package/dist/persistentSubscription/utils/settingsToGRPC.js.map +1 -0
  104. package/dist/projections/createProjection.d.ts +24 -0
  105. package/dist/projections/createProjection.js +48 -0
  106. package/dist/projections/createProjection.js.map +1 -0
  107. package/dist/projections/deleteProjection.d.ts +28 -0
  108. package/dist/projections/deleteProjection.js +33 -0
  109. package/dist/projections/deleteProjection.js.map +1 -0
  110. package/dist/projections/disableProjection.d.ts +19 -0
  111. package/dist/projections/disableProjection.js +34 -0
  112. package/dist/projections/disableProjection.js.map +1 -0
  113. package/dist/projections/enableProjection.d.ts +12 -0
  114. package/dist/projections/enableProjection.js +25 -0
  115. package/dist/projections/enableProjection.js.map +1 -0
  116. package/dist/projections/getProjectionResult.d.ts +17 -0
  117. package/dist/projections/getProjectionResult.js +29 -0
  118. package/dist/projections/getProjectionResult.js.map +1 -0
  119. package/dist/projections/getProjectionState.d.ts +17 -0
  120. package/dist/projections/getProjectionState.js +29 -0
  121. package/dist/projections/getProjectionState.js.map +1 -0
  122. package/dist/projections/getProjectionStatus.d.ts +12 -0
  123. package/dist/projections/getProjectionStatus.js +36 -0
  124. package/dist/projections/getProjectionStatus.js.map +1 -0
  125. package/dist/projections/index.d.ts +11 -0
  126. package/dist/projections/index.js +28 -0
  127. package/dist/projections/index.js.map +1 -0
  128. package/dist/projections/listProjections.d.ts +12 -0
  129. package/dist/projections/listProjections.js +36 -0
  130. package/dist/projections/listProjections.js.map +1 -0
  131. package/dist/projections/resetProjection.d.ts +13 -0
  132. package/dist/projections/resetProjection.js +25 -0
  133. package/dist/projections/resetProjection.js.map +1 -0
  134. package/dist/projections/restartSubsystem.d.ts +11 -0
  135. package/dist/projections/restartSubsystem.js +21 -0
  136. package/dist/projections/restartSubsystem.js.map +1 -0
  137. package/dist/projections/updateProjection.d.ts +20 -0
  138. package/dist/projections/updateProjection.js +34 -0
  139. package/dist/projections/updateProjection.js.map +1 -0
  140. package/dist/projections/utils/mapGrpcProjectionDetails.d.ts +3 -0
  141. package/dist/projections/utils/mapGrpcProjectionDetails.js +31 -0
  142. package/dist/projections/utils/mapGrpcProjectionDetails.js.map +1 -0
  143. package/dist/streams/appendToStream/append.d.ts +5 -0
  144. package/dist/streams/appendToStream/append.js +131 -0
  145. package/dist/streams/appendToStream/append.js.map +1 -0
  146. package/dist/streams/appendToStream/batchAppend.d.ts +5 -0
  147. package/dist/streams/appendToStream/batchAppend.js +145 -0
  148. package/dist/streams/appendToStream/batchAppend.js.map +1 -0
  149. package/dist/streams/appendToStream/index.d.ts +24 -0
  150. package/dist/streams/appendToStream/index.js +24 -0
  151. package/dist/streams/appendToStream/index.js.map +1 -0
  152. package/dist/streams/appendToStream/unpackError.d.ts +5 -0
  153. package/dist/streams/appendToStream/unpackError.js +54 -0
  154. package/dist/streams/appendToStream/unpackError.js.map +1 -0
  155. package/dist/streams/deleteStream.d.ts +18 -0
  156. package/dist/streams/deleteStream.js +51 -0
  157. package/dist/streams/deleteStream.js.map +1 -0
  158. package/dist/streams/getStreamMetadata.d.ts +27 -0
  159. package/dist/streams/getStreamMetadata.js +40 -0
  160. package/dist/streams/getStreamMetadata.js.map +1 -0
  161. package/dist/streams/index.d.ts +9 -0
  162. package/dist/streams/index.js +27 -0
  163. package/dist/streams/index.js.map +1 -0
  164. package/dist/streams/readAll.d.ts +35 -0
  165. package/dist/streams/readAll.js +37 -0
  166. package/dist/streams/readAll.js.map +1 -0
  167. package/dist/streams/readStream.d.ts +35 -0
  168. package/dist/streams/readStream.js +58 -0
  169. package/dist/streams/readStream.js.map +1 -0
  170. package/dist/streams/setStreamMetadata.d.ts +20 -0
  171. package/dist/streams/setStreamMetadata.js +20 -0
  172. package/dist/streams/setStreamMetadata.js.map +1 -0
  173. package/dist/streams/subscribeToAll.d.ts +30 -0
  174. package/dist/streams/subscribeToAll.js +89 -0
  175. package/dist/streams/subscribeToAll.js.map +1 -0
  176. package/dist/streams/subscribeToStream.d.ts +27 -0
  177. package/dist/streams/subscribeToStream.js +52 -0
  178. package/dist/streams/subscribeToStream.js.map +1 -0
  179. package/dist/streams/tombstoneStream.d.ts +18 -0
  180. package/dist/streams/tombstoneStream.js +51 -0
  181. package/dist/streams/tombstoneStream.js.map +1 -0
  182. package/dist/streams/utils/ReadStream.d.ts +14 -0
  183. package/dist/streams/utils/ReadStream.js +61 -0
  184. package/dist/streams/utils/ReadStream.js.map +1 -0
  185. package/dist/streams/utils/Subscription.d.ts +16 -0
  186. package/dist/streams/utils/Subscription.js +71 -0
  187. package/dist/streams/utils/Subscription.js.map +1 -0
  188. package/dist/streams/utils/streamMetadata.d.ts +53 -0
  189. package/dist/streams/utils/streamMetadata.js +77 -0
  190. package/dist/streams/utils/streamMetadata.js.map +1 -0
  191. package/dist/streams/utils/systemStreams.d.ts +20 -0
  192. package/dist/streams/utils/systemStreams.js +28 -0
  193. package/dist/streams/utils/systemStreams.js.map +1 -0
  194. package/dist/types/events.d.ts +157 -0
  195. package/dist/types/events.js +3 -0
  196. package/dist/types/events.js.map +1 -0
  197. package/dist/types/index.d.ts +348 -0
  198. package/dist/types/index.js +22 -0
  199. package/dist/types/index.js.map +1 -0
  200. package/dist/utils/CommandError.d.ts +174 -0
  201. package/dist/utils/CommandError.js +403 -0
  202. package/dist/utils/CommandError.js.map +1 -0
  203. package/dist/utils/backpressuredWrite.d.ts +2 -0
  204. package/dist/utils/backpressuredWrite.js +50 -0
  205. package/dist/utils/backpressuredWrite.js.map +1 -0
  206. package/dist/utils/convertBridgeError.d.ts +1 -0
  207. package/dist/utils/convertBridgeError.js +41 -0
  208. package/dist/utils/convertBridgeError.js.map +1 -0
  209. package/dist/utils/convertGrpcEvent.d.ts +10 -0
  210. package/dist/utils/convertGrpcEvent.js +135 -0
  211. package/dist/utils/convertGrpcEvent.js.map +1 -0
  212. package/dist/utils/convertRustEvent.d.ts +4 -0
  213. package/dist/utils/convertRustEvent.js +85 -0
  214. package/dist/utils/convertRustEvent.js.map +1 -0
  215. package/dist/utils/debug.d.ts +7 -0
  216. package/dist/utils/debug.js +30 -0
  217. package/dist/utils/debug.js.map +1 -0
  218. package/dist/utils/filter.d.ts +44 -0
  219. package/dist/utils/filter.js +29 -0
  220. package/dist/utils/filter.js.map +1 -0
  221. package/dist/utils/grpcStreamIdentifier.d.ts +2 -0
  222. package/dist/utils/grpcStreamIdentifier.js +11 -0
  223. package/dist/utils/grpcStreamIdentifier.js.map +1 -0
  224. package/dist/utils/grpcUUID.d.ts +4 -0
  225. package/dist/utils/grpcUUID.js +29 -0
  226. package/dist/utils/grpcUUID.js.map +1 -0
  227. package/dist/utils/index.d.ts +9 -0
  228. package/dist/utils/index.js +26 -0
  229. package/dist/utils/index.js.map +1 -0
  230. package/dist/utils/isClientCancellationError.d.ts +1 -0
  231. package/dist/utils/isClientCancellationError.js +13 -0
  232. package/dist/utils/isClientCancellationError.js.map +1 -0
  233. package/dist/utils/utilityTypes.d.ts +2 -0
  234. package/dist/utils/utilityTypes.js +3 -0
  235. package/dist/utils/utilityTypes.js.map +1 -0
  236. package/generated/cluster_grpc_pb.d.ts +211 -0
  237. package/generated/cluster_grpc_pb.js +247 -0
  238. package/generated/cluster_pb.d.ts +546 -0
  239. package/generated/cluster_pb.js +4357 -0
  240. package/generated/code_grpc_pb.js +1 -0
  241. package/generated/code_pb.d.ts +27 -0
  242. package/generated/code_pb.js +48 -0
  243. package/generated/gossip_grpc_pb.d.ts +42 -0
  244. package/generated/gossip_grpc_pb.js +45 -0
  245. package/generated/gossip_pb.d.ts +111 -0
  246. package/generated/gossip_pb.js +727 -0
  247. package/generated/monitoring_grpc_pb.d.ts +39 -0
  248. package/generated/monitoring_grpc_pb.js +44 -0
  249. package/generated/monitoring_pb.d.ts +52 -0
  250. package/generated/monitoring_pb.js +361 -0
  251. package/generated/operations_grpc_pb.d.ts +144 -0
  252. package/generated/operations_grpc_pb.js +144 -0
  253. package/generated/operations_pb.d.ts +151 -0
  254. package/generated/operations_pb.js +1050 -0
  255. package/generated/persistent_grpc_pb.d.ts +160 -0
  256. package/generated/persistent_grpc_pb.js +265 -0
  257. package/generated/persistent_pb.d.ts +1702 -0
  258. package/generated/persistent_pb.js +12340 -0
  259. package/generated/projections_grpc_pb.d.ts +194 -0
  260. package/generated/projections_grpc_pb.js +332 -0
  261. package/generated/projections_pb.d.ts +821 -0
  262. package/generated/projections_pb.js +6065 -0
  263. package/generated/serverfeatures_grpc_pb.d.ts +42 -0
  264. package/generated/serverfeatures_grpc_pb.js +45 -0
  265. package/generated/serverfeatures_pb.d.ts +61 -0
  266. package/generated/serverfeatures_pb.js +476 -0
  267. package/generated/shared_grpc_pb.js +1 -0
  268. package/generated/shared_pb.d.ts +335 -0
  269. package/generated/shared_pb.js +2374 -0
  270. package/generated/status_grpc_pb.js +1 -0
  271. package/generated/status_pb.d.ts +38 -0
  272. package/generated/status_pb.js +261 -0
  273. package/generated/streams_grpc_pb.d.ts +112 -0
  274. package/generated/streams_grpc_pb.js +180 -0
  275. package/generated/streams_pb.d.ts +1660 -0
  276. package/generated/streams_pb.js +11556 -0
  277. package/generated/users_grpc_pb.d.ts +158 -0
  278. package/generated/users_grpc_pb.js +275 -0
  279. package/generated/users_pb.d.ts +601 -0
  280. package/generated/users_pb.js +4451 -0
  281. package/package.json +65 -0
@@ -0,0 +1,2374 @@
1
+ // source: shared.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_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
25
+ goog.object.extend(proto, google_protobuf_empty_pb);
26
+ goog.exportSymbol('proto.event_store.client.AccessDenied', null, global);
27
+ goog.exportSymbol('proto.event_store.client.AllStreamPosition', null, global);
28
+ goog.exportSymbol('proto.event_store.client.BadRequest', null, global);
29
+ goog.exportSymbol('proto.event_store.client.Empty', null, global);
30
+ goog.exportSymbol('proto.event_store.client.InvalidTransaction', null, global);
31
+ goog.exportSymbol('proto.event_store.client.MaximumAppendSizeExceeded', null, global);
32
+ goog.exportSymbol('proto.event_store.client.StreamDeleted', null, global);
33
+ goog.exportSymbol('proto.event_store.client.StreamIdentifier', null, global);
34
+ goog.exportSymbol('proto.event_store.client.Timeout', null, global);
35
+ goog.exportSymbol('proto.event_store.client.UUID', null, global);
36
+ goog.exportSymbol('proto.event_store.client.UUID.Structured', null, global);
37
+ goog.exportSymbol('proto.event_store.client.UUID.ValueCase', null, global);
38
+ goog.exportSymbol('proto.event_store.client.Unknown', null, global);
39
+ goog.exportSymbol('proto.event_store.client.WrongExpectedVersion', null, global);
40
+ goog.exportSymbol('proto.event_store.client.WrongExpectedVersion.CurrentStreamRevisionOptionCase', null, global);
41
+ goog.exportSymbol('proto.event_store.client.WrongExpectedVersion.ExpectedStreamPositionOptionCase', null, global);
42
+ /**
43
+ * Generated by JsPbCodeGenerator.
44
+ * @param {Array=} opt_data Optional initial data array, typically from a
45
+ * server response, or constructed directly in Javascript. The array is used
46
+ * in place and becomes part of the constructed object. It is not cloned.
47
+ * If no data is provided, the constructed object will be empty, but still
48
+ * valid.
49
+ * @extends {jspb.Message}
50
+ * @constructor
51
+ */
52
+ proto.event_store.client.UUID = function(opt_data) {
53
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.UUID.oneofGroups_);
54
+ };
55
+ goog.inherits(proto.event_store.client.UUID, jspb.Message);
56
+ if (goog.DEBUG && !COMPILED) {
57
+ /**
58
+ * @public
59
+ * @override
60
+ */
61
+ proto.event_store.client.UUID.displayName = 'proto.event_store.client.UUID';
62
+ }
63
+ /**
64
+ * Generated by JsPbCodeGenerator.
65
+ * @param {Array=} opt_data Optional initial data array, typically from a
66
+ * server response, or constructed directly in Javascript. The array is used
67
+ * in place and becomes part of the constructed object. It is not cloned.
68
+ * If no data is provided, the constructed object will be empty, but still
69
+ * valid.
70
+ * @extends {jspb.Message}
71
+ * @constructor
72
+ */
73
+ proto.event_store.client.UUID.Structured = function(opt_data) {
74
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
75
+ };
76
+ goog.inherits(proto.event_store.client.UUID.Structured, jspb.Message);
77
+ if (goog.DEBUG && !COMPILED) {
78
+ /**
79
+ * @public
80
+ * @override
81
+ */
82
+ proto.event_store.client.UUID.Structured.displayName = 'proto.event_store.client.UUID.Structured';
83
+ }
84
+ /**
85
+ * Generated by JsPbCodeGenerator.
86
+ * @param {Array=} opt_data Optional initial data array, typically from a
87
+ * server response, or constructed directly in Javascript. The array is used
88
+ * in place and becomes part of the constructed object. It is not cloned.
89
+ * If no data is provided, the constructed object will be empty, but still
90
+ * valid.
91
+ * @extends {jspb.Message}
92
+ * @constructor
93
+ */
94
+ proto.event_store.client.Empty = function(opt_data) {
95
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
96
+ };
97
+ goog.inherits(proto.event_store.client.Empty, jspb.Message);
98
+ if (goog.DEBUG && !COMPILED) {
99
+ /**
100
+ * @public
101
+ * @override
102
+ */
103
+ proto.event_store.client.Empty.displayName = 'proto.event_store.client.Empty';
104
+ }
105
+ /**
106
+ * Generated by JsPbCodeGenerator.
107
+ * @param {Array=} opt_data Optional initial data array, typically from a
108
+ * server response, or constructed directly in Javascript. The array is used
109
+ * in place and becomes part of the constructed object. It is not cloned.
110
+ * If no data is provided, the constructed object will be empty, but still
111
+ * valid.
112
+ * @extends {jspb.Message}
113
+ * @constructor
114
+ */
115
+ proto.event_store.client.StreamIdentifier = function(opt_data) {
116
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
117
+ };
118
+ goog.inherits(proto.event_store.client.StreamIdentifier, jspb.Message);
119
+ if (goog.DEBUG && !COMPILED) {
120
+ /**
121
+ * @public
122
+ * @override
123
+ */
124
+ proto.event_store.client.StreamIdentifier.displayName = 'proto.event_store.client.StreamIdentifier';
125
+ }
126
+ /**
127
+ * Generated by JsPbCodeGenerator.
128
+ * @param {Array=} opt_data Optional initial data array, typically from a
129
+ * server response, or constructed directly in Javascript. The array is used
130
+ * in place and becomes part of the constructed object. It is not cloned.
131
+ * If no data is provided, the constructed object will be empty, but still
132
+ * valid.
133
+ * @extends {jspb.Message}
134
+ * @constructor
135
+ */
136
+ proto.event_store.client.AllStreamPosition = function(opt_data) {
137
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
138
+ };
139
+ goog.inherits(proto.event_store.client.AllStreamPosition, jspb.Message);
140
+ if (goog.DEBUG && !COMPILED) {
141
+ /**
142
+ * @public
143
+ * @override
144
+ */
145
+ proto.event_store.client.AllStreamPosition.displayName = 'proto.event_store.client.AllStreamPosition';
146
+ }
147
+ /**
148
+ * Generated by JsPbCodeGenerator.
149
+ * @param {Array=} opt_data Optional initial data array, typically from a
150
+ * server response, or constructed directly in Javascript. The array is used
151
+ * in place and becomes part of the constructed object. It is not cloned.
152
+ * If no data is provided, the constructed object will be empty, but still
153
+ * valid.
154
+ * @extends {jspb.Message}
155
+ * @constructor
156
+ */
157
+ proto.event_store.client.WrongExpectedVersion = function(opt_data) {
158
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.WrongExpectedVersion.oneofGroups_);
159
+ };
160
+ goog.inherits(proto.event_store.client.WrongExpectedVersion, jspb.Message);
161
+ if (goog.DEBUG && !COMPILED) {
162
+ /**
163
+ * @public
164
+ * @override
165
+ */
166
+ proto.event_store.client.WrongExpectedVersion.displayName = 'proto.event_store.client.WrongExpectedVersion';
167
+ }
168
+ /**
169
+ * Generated by JsPbCodeGenerator.
170
+ * @param {Array=} opt_data Optional initial data array, typically from a
171
+ * server response, or constructed directly in Javascript. The array is used
172
+ * in place and becomes part of the constructed object. It is not cloned.
173
+ * If no data is provided, the constructed object will be empty, but still
174
+ * valid.
175
+ * @extends {jspb.Message}
176
+ * @constructor
177
+ */
178
+ proto.event_store.client.AccessDenied = function(opt_data) {
179
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
180
+ };
181
+ goog.inherits(proto.event_store.client.AccessDenied, jspb.Message);
182
+ if (goog.DEBUG && !COMPILED) {
183
+ /**
184
+ * @public
185
+ * @override
186
+ */
187
+ proto.event_store.client.AccessDenied.displayName = 'proto.event_store.client.AccessDenied';
188
+ }
189
+ /**
190
+ * Generated by JsPbCodeGenerator.
191
+ * @param {Array=} opt_data Optional initial data array, typically from a
192
+ * server response, or constructed directly in Javascript. The array is used
193
+ * in place and becomes part of the constructed object. It is not cloned.
194
+ * If no data is provided, the constructed object will be empty, but still
195
+ * valid.
196
+ * @extends {jspb.Message}
197
+ * @constructor
198
+ */
199
+ proto.event_store.client.StreamDeleted = function(opt_data) {
200
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
201
+ };
202
+ goog.inherits(proto.event_store.client.StreamDeleted, jspb.Message);
203
+ if (goog.DEBUG && !COMPILED) {
204
+ /**
205
+ * @public
206
+ * @override
207
+ */
208
+ proto.event_store.client.StreamDeleted.displayName = 'proto.event_store.client.StreamDeleted';
209
+ }
210
+ /**
211
+ * Generated by JsPbCodeGenerator.
212
+ * @param {Array=} opt_data Optional initial data array, typically from a
213
+ * server response, or constructed directly in Javascript. The array is used
214
+ * in place and becomes part of the constructed object. It is not cloned.
215
+ * If no data is provided, the constructed object will be empty, but still
216
+ * valid.
217
+ * @extends {jspb.Message}
218
+ * @constructor
219
+ */
220
+ proto.event_store.client.Timeout = function(opt_data) {
221
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
222
+ };
223
+ goog.inherits(proto.event_store.client.Timeout, jspb.Message);
224
+ if (goog.DEBUG && !COMPILED) {
225
+ /**
226
+ * @public
227
+ * @override
228
+ */
229
+ proto.event_store.client.Timeout.displayName = 'proto.event_store.client.Timeout';
230
+ }
231
+ /**
232
+ * Generated by JsPbCodeGenerator.
233
+ * @param {Array=} opt_data Optional initial data array, typically from a
234
+ * server response, or constructed directly in Javascript. The array is used
235
+ * in place and becomes part of the constructed object. It is not cloned.
236
+ * If no data is provided, the constructed object will be empty, but still
237
+ * valid.
238
+ * @extends {jspb.Message}
239
+ * @constructor
240
+ */
241
+ proto.event_store.client.Unknown = function(opt_data) {
242
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
243
+ };
244
+ goog.inherits(proto.event_store.client.Unknown, jspb.Message);
245
+ if (goog.DEBUG && !COMPILED) {
246
+ /**
247
+ * @public
248
+ * @override
249
+ */
250
+ proto.event_store.client.Unknown.displayName = 'proto.event_store.client.Unknown';
251
+ }
252
+ /**
253
+ * Generated by JsPbCodeGenerator.
254
+ * @param {Array=} opt_data Optional initial data array, typically from a
255
+ * server response, or constructed directly in Javascript. The array is used
256
+ * in place and becomes part of the constructed object. It is not cloned.
257
+ * If no data is provided, the constructed object will be empty, but still
258
+ * valid.
259
+ * @extends {jspb.Message}
260
+ * @constructor
261
+ */
262
+ proto.event_store.client.InvalidTransaction = function(opt_data) {
263
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
264
+ };
265
+ goog.inherits(proto.event_store.client.InvalidTransaction, jspb.Message);
266
+ if (goog.DEBUG && !COMPILED) {
267
+ /**
268
+ * @public
269
+ * @override
270
+ */
271
+ proto.event_store.client.InvalidTransaction.displayName = 'proto.event_store.client.InvalidTransaction';
272
+ }
273
+ /**
274
+ * Generated by JsPbCodeGenerator.
275
+ * @param {Array=} opt_data Optional initial data array, typically from a
276
+ * server response, or constructed directly in Javascript. The array is used
277
+ * in place and becomes part of the constructed object. It is not cloned.
278
+ * If no data is provided, the constructed object will be empty, but still
279
+ * valid.
280
+ * @extends {jspb.Message}
281
+ * @constructor
282
+ */
283
+ proto.event_store.client.MaximumAppendSizeExceeded = function(opt_data) {
284
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
285
+ };
286
+ goog.inherits(proto.event_store.client.MaximumAppendSizeExceeded, jspb.Message);
287
+ if (goog.DEBUG && !COMPILED) {
288
+ /**
289
+ * @public
290
+ * @override
291
+ */
292
+ proto.event_store.client.MaximumAppendSizeExceeded.displayName = 'proto.event_store.client.MaximumAppendSizeExceeded';
293
+ }
294
+ /**
295
+ * Generated by JsPbCodeGenerator.
296
+ * @param {Array=} opt_data Optional initial data array, typically from a
297
+ * server response, or constructed directly in Javascript. The array is used
298
+ * in place and becomes part of the constructed object. It is not cloned.
299
+ * If no data is provided, the constructed object will be empty, but still
300
+ * valid.
301
+ * @extends {jspb.Message}
302
+ * @constructor
303
+ */
304
+ proto.event_store.client.BadRequest = function(opt_data) {
305
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
306
+ };
307
+ goog.inherits(proto.event_store.client.BadRequest, jspb.Message);
308
+ if (goog.DEBUG && !COMPILED) {
309
+ /**
310
+ * @public
311
+ * @override
312
+ */
313
+ proto.event_store.client.BadRequest.displayName = 'proto.event_store.client.BadRequest';
314
+ }
315
+
316
+ /**
317
+ * Oneof group definitions for this message. Each group defines the field
318
+ * numbers belonging to that group. When of these fields' value is set, all
319
+ * other fields in the group are cleared. During deserialization, if multiple
320
+ * fields are encountered for a group, only the last value seen will be kept.
321
+ * @private {!Array<!Array<number>>}
322
+ * @const
323
+ */
324
+ proto.event_store.client.UUID.oneofGroups_ = [[1,2]];
325
+
326
+ /**
327
+ * @enum {number}
328
+ */
329
+ proto.event_store.client.UUID.ValueCase = {
330
+ VALUE_NOT_SET: 0,
331
+ STRUCTURED: 1,
332
+ STRING: 2
333
+ };
334
+
335
+ /**
336
+ * @return {proto.event_store.client.UUID.ValueCase}
337
+ */
338
+ proto.event_store.client.UUID.prototype.getValueCase = function() {
339
+ return /** @type {proto.event_store.client.UUID.ValueCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.UUID.oneofGroups_[0]));
340
+ };
341
+
342
+
343
+
344
+ if (jspb.Message.GENERATE_TO_OBJECT) {
345
+ /**
346
+ * Creates an object representation of this proto.
347
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
348
+ * Optional fields that are not set will be set to undefined.
349
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
350
+ * For the list of reserved names please see:
351
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
352
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
353
+ * JSPB instance for transitional soy proto support:
354
+ * http://goto/soy-param-migration
355
+ * @return {!Object}
356
+ */
357
+ proto.event_store.client.UUID.prototype.toObject = function(opt_includeInstance) {
358
+ return proto.event_store.client.UUID.toObject(opt_includeInstance, this);
359
+ };
360
+
361
+
362
+ /**
363
+ * Static version of the {@see toObject} method.
364
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
365
+ * the JSPB instance for transitional soy proto support:
366
+ * http://goto/soy-param-migration
367
+ * @param {!proto.event_store.client.UUID} msg The msg instance to transform.
368
+ * @return {!Object}
369
+ * @suppress {unusedLocalVariables} f is only used for nested messages
370
+ */
371
+ proto.event_store.client.UUID.toObject = function(includeInstance, msg) {
372
+ var f, obj = {
373
+ structured: (f = msg.getStructured()) && proto.event_store.client.UUID.Structured.toObject(includeInstance, f),
374
+ string: jspb.Message.getFieldWithDefault(msg, 2, "")
375
+ };
376
+
377
+ if (includeInstance) {
378
+ obj.$jspbMessageInstance = msg;
379
+ }
380
+ return obj;
381
+ };
382
+ }
383
+
384
+
385
+ /**
386
+ * Deserializes binary data (in protobuf wire format).
387
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
388
+ * @return {!proto.event_store.client.UUID}
389
+ */
390
+ proto.event_store.client.UUID.deserializeBinary = function(bytes) {
391
+ var reader = new jspb.BinaryReader(bytes);
392
+ var msg = new proto.event_store.client.UUID;
393
+ return proto.event_store.client.UUID.deserializeBinaryFromReader(msg, reader);
394
+ };
395
+
396
+
397
+ /**
398
+ * Deserializes binary data (in protobuf wire format) from the
399
+ * given reader into the given message object.
400
+ * @param {!proto.event_store.client.UUID} msg The message object to deserialize into.
401
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
402
+ * @return {!proto.event_store.client.UUID}
403
+ */
404
+ proto.event_store.client.UUID.deserializeBinaryFromReader = function(msg, reader) {
405
+ while (reader.nextField()) {
406
+ if (reader.isEndGroup()) {
407
+ break;
408
+ }
409
+ var field = reader.getFieldNumber();
410
+ switch (field) {
411
+ case 1:
412
+ var value = new proto.event_store.client.UUID.Structured;
413
+ reader.readMessage(value,proto.event_store.client.UUID.Structured.deserializeBinaryFromReader);
414
+ msg.setStructured(value);
415
+ break;
416
+ case 2:
417
+ var value = /** @type {string} */ (reader.readString());
418
+ msg.setString(value);
419
+ break;
420
+ default:
421
+ reader.skipField();
422
+ break;
423
+ }
424
+ }
425
+ return msg;
426
+ };
427
+
428
+
429
+ /**
430
+ * Serializes the message to binary data (in protobuf wire format).
431
+ * @return {!Uint8Array}
432
+ */
433
+ proto.event_store.client.UUID.prototype.serializeBinary = function() {
434
+ var writer = new jspb.BinaryWriter();
435
+ proto.event_store.client.UUID.serializeBinaryToWriter(this, writer);
436
+ return writer.getResultBuffer();
437
+ };
438
+
439
+
440
+ /**
441
+ * Serializes the given message to binary data (in protobuf wire
442
+ * format), writing to the given BinaryWriter.
443
+ * @param {!proto.event_store.client.UUID} message
444
+ * @param {!jspb.BinaryWriter} writer
445
+ * @suppress {unusedLocalVariables} f is only used for nested messages
446
+ */
447
+ proto.event_store.client.UUID.serializeBinaryToWriter = function(message, writer) {
448
+ var f = undefined;
449
+ f = message.getStructured();
450
+ if (f != null) {
451
+ writer.writeMessage(
452
+ 1,
453
+ f,
454
+ proto.event_store.client.UUID.Structured.serializeBinaryToWriter
455
+ );
456
+ }
457
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
458
+ if (f != null) {
459
+ writer.writeString(
460
+ 2,
461
+ f
462
+ );
463
+ }
464
+ };
465
+
466
+
467
+
468
+
469
+
470
+ if (jspb.Message.GENERATE_TO_OBJECT) {
471
+ /**
472
+ * Creates an object representation of this proto.
473
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
474
+ * Optional fields that are not set will be set to undefined.
475
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
476
+ * For the list of reserved names please see:
477
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
478
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
479
+ * JSPB instance for transitional soy proto support:
480
+ * http://goto/soy-param-migration
481
+ * @return {!Object}
482
+ */
483
+ proto.event_store.client.UUID.Structured.prototype.toObject = function(opt_includeInstance) {
484
+ return proto.event_store.client.UUID.Structured.toObject(opt_includeInstance, this);
485
+ };
486
+
487
+
488
+ /**
489
+ * Static version of the {@see toObject} method.
490
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
491
+ * the JSPB instance for transitional soy proto support:
492
+ * http://goto/soy-param-migration
493
+ * @param {!proto.event_store.client.UUID.Structured} msg The msg instance to transform.
494
+ * @return {!Object}
495
+ * @suppress {unusedLocalVariables} f is only used for nested messages
496
+ */
497
+ proto.event_store.client.UUID.Structured.toObject = function(includeInstance, msg) {
498
+ var f, obj = {
499
+ mostSignificantBits: jspb.Message.getFieldWithDefault(msg, 1, "0"),
500
+ leastSignificantBits: jspb.Message.getFieldWithDefault(msg, 2, "0")
501
+ };
502
+
503
+ if (includeInstance) {
504
+ obj.$jspbMessageInstance = msg;
505
+ }
506
+ return obj;
507
+ };
508
+ }
509
+
510
+
511
+ /**
512
+ * Deserializes binary data (in protobuf wire format).
513
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
514
+ * @return {!proto.event_store.client.UUID.Structured}
515
+ */
516
+ proto.event_store.client.UUID.Structured.deserializeBinary = function(bytes) {
517
+ var reader = new jspb.BinaryReader(bytes);
518
+ var msg = new proto.event_store.client.UUID.Structured;
519
+ return proto.event_store.client.UUID.Structured.deserializeBinaryFromReader(msg, reader);
520
+ };
521
+
522
+
523
+ /**
524
+ * Deserializes binary data (in protobuf wire format) from the
525
+ * given reader into the given message object.
526
+ * @param {!proto.event_store.client.UUID.Structured} msg The message object to deserialize into.
527
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
528
+ * @return {!proto.event_store.client.UUID.Structured}
529
+ */
530
+ proto.event_store.client.UUID.Structured.deserializeBinaryFromReader = function(msg, reader) {
531
+ while (reader.nextField()) {
532
+ if (reader.isEndGroup()) {
533
+ break;
534
+ }
535
+ var field = reader.getFieldNumber();
536
+ switch (field) {
537
+ case 1:
538
+ var value = /** @type {string} */ (reader.readInt64String());
539
+ msg.setMostSignificantBits(value);
540
+ break;
541
+ case 2:
542
+ var value = /** @type {string} */ (reader.readInt64String());
543
+ msg.setLeastSignificantBits(value);
544
+ break;
545
+ default:
546
+ reader.skipField();
547
+ break;
548
+ }
549
+ }
550
+ return msg;
551
+ };
552
+
553
+
554
+ /**
555
+ * Serializes the message to binary data (in protobuf wire format).
556
+ * @return {!Uint8Array}
557
+ */
558
+ proto.event_store.client.UUID.Structured.prototype.serializeBinary = function() {
559
+ var writer = new jspb.BinaryWriter();
560
+ proto.event_store.client.UUID.Structured.serializeBinaryToWriter(this, writer);
561
+ return writer.getResultBuffer();
562
+ };
563
+
564
+
565
+ /**
566
+ * Serializes the given message to binary data (in protobuf wire
567
+ * format), writing to the given BinaryWriter.
568
+ * @param {!proto.event_store.client.UUID.Structured} message
569
+ * @param {!jspb.BinaryWriter} writer
570
+ * @suppress {unusedLocalVariables} f is only used for nested messages
571
+ */
572
+ proto.event_store.client.UUID.Structured.serializeBinaryToWriter = function(message, writer) {
573
+ var f = undefined;
574
+ f = message.getMostSignificantBits();
575
+ if (parseInt(f, 10) !== 0) {
576
+ writer.writeInt64String(
577
+ 1,
578
+ f
579
+ );
580
+ }
581
+ f = message.getLeastSignificantBits();
582
+ if (parseInt(f, 10) !== 0) {
583
+ writer.writeInt64String(
584
+ 2,
585
+ f
586
+ );
587
+ }
588
+ };
589
+
590
+
591
+ /**
592
+ * optional int64 most_significant_bits = 1;
593
+ * @return {string}
594
+ */
595
+ proto.event_store.client.UUID.Structured.prototype.getMostSignificantBits = function() {
596
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0"));
597
+ };
598
+
599
+
600
+ /**
601
+ * @param {string} value
602
+ * @return {!proto.event_store.client.UUID.Structured} returns this
603
+ */
604
+ proto.event_store.client.UUID.Structured.prototype.setMostSignificantBits = function(value) {
605
+ return jspb.Message.setProto3StringIntField(this, 1, value);
606
+ };
607
+
608
+
609
+ /**
610
+ * optional int64 least_significant_bits = 2;
611
+ * @return {string}
612
+ */
613
+ proto.event_store.client.UUID.Structured.prototype.getLeastSignificantBits = function() {
614
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0"));
615
+ };
616
+
617
+
618
+ /**
619
+ * @param {string} value
620
+ * @return {!proto.event_store.client.UUID.Structured} returns this
621
+ */
622
+ proto.event_store.client.UUID.Structured.prototype.setLeastSignificantBits = function(value) {
623
+ return jspb.Message.setProto3StringIntField(this, 2, value);
624
+ };
625
+
626
+
627
+ /**
628
+ * optional Structured structured = 1;
629
+ * @return {?proto.event_store.client.UUID.Structured}
630
+ */
631
+ proto.event_store.client.UUID.prototype.getStructured = function() {
632
+ return /** @type{?proto.event_store.client.UUID.Structured} */ (
633
+ jspb.Message.getWrapperField(this, proto.event_store.client.UUID.Structured, 1));
634
+ };
635
+
636
+
637
+ /**
638
+ * @param {?proto.event_store.client.UUID.Structured|undefined} value
639
+ * @return {!proto.event_store.client.UUID} returns this
640
+ */
641
+ proto.event_store.client.UUID.prototype.setStructured = function(value) {
642
+ return jspb.Message.setOneofWrapperField(this, 1, proto.event_store.client.UUID.oneofGroups_[0], value);
643
+ };
644
+
645
+
646
+ /**
647
+ * Clears the message field making it undefined.
648
+ * @return {!proto.event_store.client.UUID} returns this
649
+ */
650
+ proto.event_store.client.UUID.prototype.clearStructured = function() {
651
+ return this.setStructured(undefined);
652
+ };
653
+
654
+
655
+ /**
656
+ * Returns whether this field is set.
657
+ * @return {boolean}
658
+ */
659
+ proto.event_store.client.UUID.prototype.hasStructured = function() {
660
+ return jspb.Message.getField(this, 1) != null;
661
+ };
662
+
663
+
664
+ /**
665
+ * optional string string = 2;
666
+ * @return {string}
667
+ */
668
+ proto.event_store.client.UUID.prototype.getString = function() {
669
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
670
+ };
671
+
672
+
673
+ /**
674
+ * @param {string} value
675
+ * @return {!proto.event_store.client.UUID} returns this
676
+ */
677
+ proto.event_store.client.UUID.prototype.setString = function(value) {
678
+ return jspb.Message.setOneofField(this, 2, proto.event_store.client.UUID.oneofGroups_[0], value);
679
+ };
680
+
681
+
682
+ /**
683
+ * Clears the field making it undefined.
684
+ * @return {!proto.event_store.client.UUID} returns this
685
+ */
686
+ proto.event_store.client.UUID.prototype.clearString = function() {
687
+ return jspb.Message.setOneofField(this, 2, proto.event_store.client.UUID.oneofGroups_[0], undefined);
688
+ };
689
+
690
+
691
+ /**
692
+ * Returns whether this field is set.
693
+ * @return {boolean}
694
+ */
695
+ proto.event_store.client.UUID.prototype.hasString = function() {
696
+ return jspb.Message.getField(this, 2) != null;
697
+ };
698
+
699
+
700
+
701
+
702
+
703
+ if (jspb.Message.GENERATE_TO_OBJECT) {
704
+ /**
705
+ * Creates an object representation of this proto.
706
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
707
+ * Optional fields that are not set will be set to undefined.
708
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
709
+ * For the list of reserved names please see:
710
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
711
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
712
+ * JSPB instance for transitional soy proto support:
713
+ * http://goto/soy-param-migration
714
+ * @return {!Object}
715
+ */
716
+ proto.event_store.client.Empty.prototype.toObject = function(opt_includeInstance) {
717
+ return proto.event_store.client.Empty.toObject(opt_includeInstance, this);
718
+ };
719
+
720
+
721
+ /**
722
+ * Static version of the {@see toObject} method.
723
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
724
+ * the JSPB instance for transitional soy proto support:
725
+ * http://goto/soy-param-migration
726
+ * @param {!proto.event_store.client.Empty} msg The msg instance to transform.
727
+ * @return {!Object}
728
+ * @suppress {unusedLocalVariables} f is only used for nested messages
729
+ */
730
+ proto.event_store.client.Empty.toObject = function(includeInstance, msg) {
731
+ var f, obj = {
732
+
733
+ };
734
+
735
+ if (includeInstance) {
736
+ obj.$jspbMessageInstance = msg;
737
+ }
738
+ return obj;
739
+ };
740
+ }
741
+
742
+
743
+ /**
744
+ * Deserializes binary data (in protobuf wire format).
745
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
746
+ * @return {!proto.event_store.client.Empty}
747
+ */
748
+ proto.event_store.client.Empty.deserializeBinary = function(bytes) {
749
+ var reader = new jspb.BinaryReader(bytes);
750
+ var msg = new proto.event_store.client.Empty;
751
+ return proto.event_store.client.Empty.deserializeBinaryFromReader(msg, reader);
752
+ };
753
+
754
+
755
+ /**
756
+ * Deserializes binary data (in protobuf wire format) from the
757
+ * given reader into the given message object.
758
+ * @param {!proto.event_store.client.Empty} msg The message object to deserialize into.
759
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
760
+ * @return {!proto.event_store.client.Empty}
761
+ */
762
+ proto.event_store.client.Empty.deserializeBinaryFromReader = function(msg, reader) {
763
+ while (reader.nextField()) {
764
+ if (reader.isEndGroup()) {
765
+ break;
766
+ }
767
+ var field = reader.getFieldNumber();
768
+ switch (field) {
769
+ default:
770
+ reader.skipField();
771
+ break;
772
+ }
773
+ }
774
+ return msg;
775
+ };
776
+
777
+
778
+ /**
779
+ * Serializes the message to binary data (in protobuf wire format).
780
+ * @return {!Uint8Array}
781
+ */
782
+ proto.event_store.client.Empty.prototype.serializeBinary = function() {
783
+ var writer = new jspb.BinaryWriter();
784
+ proto.event_store.client.Empty.serializeBinaryToWriter(this, writer);
785
+ return writer.getResultBuffer();
786
+ };
787
+
788
+
789
+ /**
790
+ * Serializes the given message to binary data (in protobuf wire
791
+ * format), writing to the given BinaryWriter.
792
+ * @param {!proto.event_store.client.Empty} message
793
+ * @param {!jspb.BinaryWriter} writer
794
+ * @suppress {unusedLocalVariables} f is only used for nested messages
795
+ */
796
+ proto.event_store.client.Empty.serializeBinaryToWriter = function(message, writer) {
797
+ var f = undefined;
798
+ };
799
+
800
+
801
+
802
+
803
+
804
+ if (jspb.Message.GENERATE_TO_OBJECT) {
805
+ /**
806
+ * Creates an object representation of this proto.
807
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
808
+ * Optional fields that are not set will be set to undefined.
809
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
810
+ * For the list of reserved names please see:
811
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
812
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
813
+ * JSPB instance for transitional soy proto support:
814
+ * http://goto/soy-param-migration
815
+ * @return {!Object}
816
+ */
817
+ proto.event_store.client.StreamIdentifier.prototype.toObject = function(opt_includeInstance) {
818
+ return proto.event_store.client.StreamIdentifier.toObject(opt_includeInstance, this);
819
+ };
820
+
821
+
822
+ /**
823
+ * Static version of the {@see toObject} method.
824
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
825
+ * the JSPB instance for transitional soy proto support:
826
+ * http://goto/soy-param-migration
827
+ * @param {!proto.event_store.client.StreamIdentifier} msg The msg instance to transform.
828
+ * @return {!Object}
829
+ * @suppress {unusedLocalVariables} f is only used for nested messages
830
+ */
831
+ proto.event_store.client.StreamIdentifier.toObject = function(includeInstance, msg) {
832
+ var f, obj = {
833
+ streamName: msg.getStreamName_asB64()
834
+ };
835
+
836
+ if (includeInstance) {
837
+ obj.$jspbMessageInstance = msg;
838
+ }
839
+ return obj;
840
+ };
841
+ }
842
+
843
+
844
+ /**
845
+ * Deserializes binary data (in protobuf wire format).
846
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
847
+ * @return {!proto.event_store.client.StreamIdentifier}
848
+ */
849
+ proto.event_store.client.StreamIdentifier.deserializeBinary = function(bytes) {
850
+ var reader = new jspb.BinaryReader(bytes);
851
+ var msg = new proto.event_store.client.StreamIdentifier;
852
+ return proto.event_store.client.StreamIdentifier.deserializeBinaryFromReader(msg, reader);
853
+ };
854
+
855
+
856
+ /**
857
+ * Deserializes binary data (in protobuf wire format) from the
858
+ * given reader into the given message object.
859
+ * @param {!proto.event_store.client.StreamIdentifier} msg The message object to deserialize into.
860
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
861
+ * @return {!proto.event_store.client.StreamIdentifier}
862
+ */
863
+ proto.event_store.client.StreamIdentifier.deserializeBinaryFromReader = function(msg, reader) {
864
+ while (reader.nextField()) {
865
+ if (reader.isEndGroup()) {
866
+ break;
867
+ }
868
+ var field = reader.getFieldNumber();
869
+ switch (field) {
870
+ case 3:
871
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
872
+ msg.setStreamName(value);
873
+ break;
874
+ default:
875
+ reader.skipField();
876
+ break;
877
+ }
878
+ }
879
+ return msg;
880
+ };
881
+
882
+
883
+ /**
884
+ * Serializes the message to binary data (in protobuf wire format).
885
+ * @return {!Uint8Array}
886
+ */
887
+ proto.event_store.client.StreamIdentifier.prototype.serializeBinary = function() {
888
+ var writer = new jspb.BinaryWriter();
889
+ proto.event_store.client.StreamIdentifier.serializeBinaryToWriter(this, writer);
890
+ return writer.getResultBuffer();
891
+ };
892
+
893
+
894
+ /**
895
+ * Serializes the given message to binary data (in protobuf wire
896
+ * format), writing to the given BinaryWriter.
897
+ * @param {!proto.event_store.client.StreamIdentifier} message
898
+ * @param {!jspb.BinaryWriter} writer
899
+ * @suppress {unusedLocalVariables} f is only used for nested messages
900
+ */
901
+ proto.event_store.client.StreamIdentifier.serializeBinaryToWriter = function(message, writer) {
902
+ var f = undefined;
903
+ f = message.getStreamName_asU8();
904
+ if (f.length > 0) {
905
+ writer.writeBytes(
906
+ 3,
907
+ f
908
+ );
909
+ }
910
+ };
911
+
912
+
913
+ /**
914
+ * optional bytes stream_name = 3;
915
+ * @return {!(string|Uint8Array)}
916
+ */
917
+ proto.event_store.client.StreamIdentifier.prototype.getStreamName = function() {
918
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
919
+ };
920
+
921
+
922
+ /**
923
+ * optional bytes stream_name = 3;
924
+ * This is a type-conversion wrapper around `getStreamName()`
925
+ * @return {string}
926
+ */
927
+ proto.event_store.client.StreamIdentifier.prototype.getStreamName_asB64 = function() {
928
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
929
+ this.getStreamName()));
930
+ };
931
+
932
+
933
+ /**
934
+ * optional bytes stream_name = 3;
935
+ * Note that Uint8Array is not supported on all browsers.
936
+ * @see http://caniuse.com/Uint8Array
937
+ * This is a type-conversion wrapper around `getStreamName()`
938
+ * @return {!Uint8Array}
939
+ */
940
+ proto.event_store.client.StreamIdentifier.prototype.getStreamName_asU8 = function() {
941
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
942
+ this.getStreamName()));
943
+ };
944
+
945
+
946
+ /**
947
+ * @param {!(string|Uint8Array)} value
948
+ * @return {!proto.event_store.client.StreamIdentifier} returns this
949
+ */
950
+ proto.event_store.client.StreamIdentifier.prototype.setStreamName = function(value) {
951
+ return jspb.Message.setProto3BytesField(this, 3, value);
952
+ };
953
+
954
+
955
+
956
+
957
+
958
+ if (jspb.Message.GENERATE_TO_OBJECT) {
959
+ /**
960
+ * Creates an object representation of this proto.
961
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
962
+ * Optional fields that are not set will be set to undefined.
963
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
964
+ * For the list of reserved names please see:
965
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
966
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
967
+ * JSPB instance for transitional soy proto support:
968
+ * http://goto/soy-param-migration
969
+ * @return {!Object}
970
+ */
971
+ proto.event_store.client.AllStreamPosition.prototype.toObject = function(opt_includeInstance) {
972
+ return proto.event_store.client.AllStreamPosition.toObject(opt_includeInstance, this);
973
+ };
974
+
975
+
976
+ /**
977
+ * Static version of the {@see toObject} method.
978
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
979
+ * the JSPB instance for transitional soy proto support:
980
+ * http://goto/soy-param-migration
981
+ * @param {!proto.event_store.client.AllStreamPosition} msg The msg instance to transform.
982
+ * @return {!Object}
983
+ * @suppress {unusedLocalVariables} f is only used for nested messages
984
+ */
985
+ proto.event_store.client.AllStreamPosition.toObject = function(includeInstance, msg) {
986
+ var f, obj = {
987
+ commitPosition: jspb.Message.getFieldWithDefault(msg, 1, "0"),
988
+ preparePosition: jspb.Message.getFieldWithDefault(msg, 2, "0")
989
+ };
990
+
991
+ if (includeInstance) {
992
+ obj.$jspbMessageInstance = msg;
993
+ }
994
+ return obj;
995
+ };
996
+ }
997
+
998
+
999
+ /**
1000
+ * Deserializes binary data (in protobuf wire format).
1001
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1002
+ * @return {!proto.event_store.client.AllStreamPosition}
1003
+ */
1004
+ proto.event_store.client.AllStreamPosition.deserializeBinary = function(bytes) {
1005
+ var reader = new jspb.BinaryReader(bytes);
1006
+ var msg = new proto.event_store.client.AllStreamPosition;
1007
+ return proto.event_store.client.AllStreamPosition.deserializeBinaryFromReader(msg, reader);
1008
+ };
1009
+
1010
+
1011
+ /**
1012
+ * Deserializes binary data (in protobuf wire format) from the
1013
+ * given reader into the given message object.
1014
+ * @param {!proto.event_store.client.AllStreamPosition} msg The message object to deserialize into.
1015
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1016
+ * @return {!proto.event_store.client.AllStreamPosition}
1017
+ */
1018
+ proto.event_store.client.AllStreamPosition.deserializeBinaryFromReader = function(msg, reader) {
1019
+ while (reader.nextField()) {
1020
+ if (reader.isEndGroup()) {
1021
+ break;
1022
+ }
1023
+ var field = reader.getFieldNumber();
1024
+ switch (field) {
1025
+ case 1:
1026
+ var value = /** @type {string} */ (reader.readUint64String());
1027
+ msg.setCommitPosition(value);
1028
+ break;
1029
+ case 2:
1030
+ var value = /** @type {string} */ (reader.readUint64String());
1031
+ msg.setPreparePosition(value);
1032
+ break;
1033
+ default:
1034
+ reader.skipField();
1035
+ break;
1036
+ }
1037
+ }
1038
+ return msg;
1039
+ };
1040
+
1041
+
1042
+ /**
1043
+ * Serializes the message to binary data (in protobuf wire format).
1044
+ * @return {!Uint8Array}
1045
+ */
1046
+ proto.event_store.client.AllStreamPosition.prototype.serializeBinary = function() {
1047
+ var writer = new jspb.BinaryWriter();
1048
+ proto.event_store.client.AllStreamPosition.serializeBinaryToWriter(this, writer);
1049
+ return writer.getResultBuffer();
1050
+ };
1051
+
1052
+
1053
+ /**
1054
+ * Serializes the given message to binary data (in protobuf wire
1055
+ * format), writing to the given BinaryWriter.
1056
+ * @param {!proto.event_store.client.AllStreamPosition} message
1057
+ * @param {!jspb.BinaryWriter} writer
1058
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1059
+ */
1060
+ proto.event_store.client.AllStreamPosition.serializeBinaryToWriter = function(message, writer) {
1061
+ var f = undefined;
1062
+ f = message.getCommitPosition();
1063
+ if (parseInt(f, 10) !== 0) {
1064
+ writer.writeUint64String(
1065
+ 1,
1066
+ f
1067
+ );
1068
+ }
1069
+ f = message.getPreparePosition();
1070
+ if (parseInt(f, 10) !== 0) {
1071
+ writer.writeUint64String(
1072
+ 2,
1073
+ f
1074
+ );
1075
+ }
1076
+ };
1077
+
1078
+
1079
+ /**
1080
+ * optional uint64 commit_position = 1;
1081
+ * @return {string}
1082
+ */
1083
+ proto.event_store.client.AllStreamPosition.prototype.getCommitPosition = function() {
1084
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0"));
1085
+ };
1086
+
1087
+
1088
+ /**
1089
+ * @param {string} value
1090
+ * @return {!proto.event_store.client.AllStreamPosition} returns this
1091
+ */
1092
+ proto.event_store.client.AllStreamPosition.prototype.setCommitPosition = function(value) {
1093
+ return jspb.Message.setProto3StringIntField(this, 1, value);
1094
+ };
1095
+
1096
+
1097
+ /**
1098
+ * optional uint64 prepare_position = 2;
1099
+ * @return {string}
1100
+ */
1101
+ proto.event_store.client.AllStreamPosition.prototype.getPreparePosition = function() {
1102
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0"));
1103
+ };
1104
+
1105
+
1106
+ /**
1107
+ * @param {string} value
1108
+ * @return {!proto.event_store.client.AllStreamPosition} returns this
1109
+ */
1110
+ proto.event_store.client.AllStreamPosition.prototype.setPreparePosition = function(value) {
1111
+ return jspb.Message.setProto3StringIntField(this, 2, value);
1112
+ };
1113
+
1114
+
1115
+
1116
+ /**
1117
+ * Oneof group definitions for this message. Each group defines the field
1118
+ * numbers belonging to that group. When of these fields' value is set, all
1119
+ * other fields in the group are cleared. During deserialization, if multiple
1120
+ * fields are encountered for a group, only the last value seen will be kept.
1121
+ * @private {!Array<!Array<number>>}
1122
+ * @const
1123
+ */
1124
+ proto.event_store.client.WrongExpectedVersion.oneofGroups_ = [[1,2],[3,4,5,6]];
1125
+
1126
+ /**
1127
+ * @enum {number}
1128
+ */
1129
+ proto.event_store.client.WrongExpectedVersion.CurrentStreamRevisionOptionCase = {
1130
+ CURRENT_STREAM_REVISION_OPTION_NOT_SET: 0,
1131
+ CURRENT_STREAM_REVISION: 1,
1132
+ CURRENT_NO_STREAM: 2
1133
+ };
1134
+
1135
+ /**
1136
+ * @return {proto.event_store.client.WrongExpectedVersion.CurrentStreamRevisionOptionCase}
1137
+ */
1138
+ proto.event_store.client.WrongExpectedVersion.prototype.getCurrentStreamRevisionOptionCase = function() {
1139
+ return /** @type {proto.event_store.client.WrongExpectedVersion.CurrentStreamRevisionOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.WrongExpectedVersion.oneofGroups_[0]));
1140
+ };
1141
+
1142
+ /**
1143
+ * @enum {number}
1144
+ */
1145
+ proto.event_store.client.WrongExpectedVersion.ExpectedStreamPositionOptionCase = {
1146
+ EXPECTED_STREAM_POSITION_OPTION_NOT_SET: 0,
1147
+ EXPECTED_STREAM_POSITION: 3,
1148
+ EXPECTED_ANY: 4,
1149
+ EXPECTED_STREAM_EXISTS: 5,
1150
+ EXPECTED_NO_STREAM: 6
1151
+ };
1152
+
1153
+ /**
1154
+ * @return {proto.event_store.client.WrongExpectedVersion.ExpectedStreamPositionOptionCase}
1155
+ */
1156
+ proto.event_store.client.WrongExpectedVersion.prototype.getExpectedStreamPositionOptionCase = function() {
1157
+ return /** @type {proto.event_store.client.WrongExpectedVersion.ExpectedStreamPositionOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.WrongExpectedVersion.oneofGroups_[1]));
1158
+ };
1159
+
1160
+
1161
+
1162
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1163
+ /**
1164
+ * Creates an object representation of this proto.
1165
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1166
+ * Optional fields that are not set will be set to undefined.
1167
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1168
+ * For the list of reserved names please see:
1169
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1170
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1171
+ * JSPB instance for transitional soy proto support:
1172
+ * http://goto/soy-param-migration
1173
+ * @return {!Object}
1174
+ */
1175
+ proto.event_store.client.WrongExpectedVersion.prototype.toObject = function(opt_includeInstance) {
1176
+ return proto.event_store.client.WrongExpectedVersion.toObject(opt_includeInstance, this);
1177
+ };
1178
+
1179
+
1180
+ /**
1181
+ * Static version of the {@see toObject} method.
1182
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1183
+ * the JSPB instance for transitional soy proto support:
1184
+ * http://goto/soy-param-migration
1185
+ * @param {!proto.event_store.client.WrongExpectedVersion} msg The msg instance to transform.
1186
+ * @return {!Object}
1187
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1188
+ */
1189
+ proto.event_store.client.WrongExpectedVersion.toObject = function(includeInstance, msg) {
1190
+ var f, obj = {
1191
+ currentStreamRevision: jspb.Message.getFieldWithDefault(msg, 1, "0"),
1192
+ currentNoStream: (f = msg.getCurrentNoStream()) && google_protobuf_empty_pb.Empty.toObject(includeInstance, f),
1193
+ expectedStreamPosition: jspb.Message.getFieldWithDefault(msg, 3, "0"),
1194
+ expectedAny: (f = msg.getExpectedAny()) && google_protobuf_empty_pb.Empty.toObject(includeInstance, f),
1195
+ expectedStreamExists: (f = msg.getExpectedStreamExists()) && google_protobuf_empty_pb.Empty.toObject(includeInstance, f),
1196
+ expectedNoStream: (f = msg.getExpectedNoStream()) && google_protobuf_empty_pb.Empty.toObject(includeInstance, f)
1197
+ };
1198
+
1199
+ if (includeInstance) {
1200
+ obj.$jspbMessageInstance = msg;
1201
+ }
1202
+ return obj;
1203
+ };
1204
+ }
1205
+
1206
+
1207
+ /**
1208
+ * Deserializes binary data (in protobuf wire format).
1209
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1210
+ * @return {!proto.event_store.client.WrongExpectedVersion}
1211
+ */
1212
+ proto.event_store.client.WrongExpectedVersion.deserializeBinary = function(bytes) {
1213
+ var reader = new jspb.BinaryReader(bytes);
1214
+ var msg = new proto.event_store.client.WrongExpectedVersion;
1215
+ return proto.event_store.client.WrongExpectedVersion.deserializeBinaryFromReader(msg, reader);
1216
+ };
1217
+
1218
+
1219
+ /**
1220
+ * Deserializes binary data (in protobuf wire format) from the
1221
+ * given reader into the given message object.
1222
+ * @param {!proto.event_store.client.WrongExpectedVersion} msg The message object to deserialize into.
1223
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1224
+ * @return {!proto.event_store.client.WrongExpectedVersion}
1225
+ */
1226
+ proto.event_store.client.WrongExpectedVersion.deserializeBinaryFromReader = function(msg, reader) {
1227
+ while (reader.nextField()) {
1228
+ if (reader.isEndGroup()) {
1229
+ break;
1230
+ }
1231
+ var field = reader.getFieldNumber();
1232
+ switch (field) {
1233
+ case 1:
1234
+ var value = /** @type {string} */ (reader.readUint64String());
1235
+ msg.setCurrentStreamRevision(value);
1236
+ break;
1237
+ case 2:
1238
+ var value = new google_protobuf_empty_pb.Empty;
1239
+ reader.readMessage(value,google_protobuf_empty_pb.Empty.deserializeBinaryFromReader);
1240
+ msg.setCurrentNoStream(value);
1241
+ break;
1242
+ case 3:
1243
+ var value = /** @type {string} */ (reader.readUint64String());
1244
+ msg.setExpectedStreamPosition(value);
1245
+ break;
1246
+ case 4:
1247
+ var value = new google_protobuf_empty_pb.Empty;
1248
+ reader.readMessage(value,google_protobuf_empty_pb.Empty.deserializeBinaryFromReader);
1249
+ msg.setExpectedAny(value);
1250
+ break;
1251
+ case 5:
1252
+ var value = new google_protobuf_empty_pb.Empty;
1253
+ reader.readMessage(value,google_protobuf_empty_pb.Empty.deserializeBinaryFromReader);
1254
+ msg.setExpectedStreamExists(value);
1255
+ break;
1256
+ case 6:
1257
+ var value = new google_protobuf_empty_pb.Empty;
1258
+ reader.readMessage(value,google_protobuf_empty_pb.Empty.deserializeBinaryFromReader);
1259
+ msg.setExpectedNoStream(value);
1260
+ break;
1261
+ default:
1262
+ reader.skipField();
1263
+ break;
1264
+ }
1265
+ }
1266
+ return msg;
1267
+ };
1268
+
1269
+
1270
+ /**
1271
+ * Serializes the message to binary data (in protobuf wire format).
1272
+ * @return {!Uint8Array}
1273
+ */
1274
+ proto.event_store.client.WrongExpectedVersion.prototype.serializeBinary = function() {
1275
+ var writer = new jspb.BinaryWriter();
1276
+ proto.event_store.client.WrongExpectedVersion.serializeBinaryToWriter(this, writer);
1277
+ return writer.getResultBuffer();
1278
+ };
1279
+
1280
+
1281
+ /**
1282
+ * Serializes the given message to binary data (in protobuf wire
1283
+ * format), writing to the given BinaryWriter.
1284
+ * @param {!proto.event_store.client.WrongExpectedVersion} message
1285
+ * @param {!jspb.BinaryWriter} writer
1286
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1287
+ */
1288
+ proto.event_store.client.WrongExpectedVersion.serializeBinaryToWriter = function(message, writer) {
1289
+ var f = undefined;
1290
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
1291
+ if (f != null) {
1292
+ writer.writeUint64String(
1293
+ 1,
1294
+ f
1295
+ );
1296
+ }
1297
+ f = message.getCurrentNoStream();
1298
+ if (f != null) {
1299
+ writer.writeMessage(
1300
+ 2,
1301
+ f,
1302
+ google_protobuf_empty_pb.Empty.serializeBinaryToWriter
1303
+ );
1304
+ }
1305
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
1306
+ if (f != null) {
1307
+ writer.writeUint64String(
1308
+ 3,
1309
+ f
1310
+ );
1311
+ }
1312
+ f = message.getExpectedAny();
1313
+ if (f != null) {
1314
+ writer.writeMessage(
1315
+ 4,
1316
+ f,
1317
+ google_protobuf_empty_pb.Empty.serializeBinaryToWriter
1318
+ );
1319
+ }
1320
+ f = message.getExpectedStreamExists();
1321
+ if (f != null) {
1322
+ writer.writeMessage(
1323
+ 5,
1324
+ f,
1325
+ google_protobuf_empty_pb.Empty.serializeBinaryToWriter
1326
+ );
1327
+ }
1328
+ f = message.getExpectedNoStream();
1329
+ if (f != null) {
1330
+ writer.writeMessage(
1331
+ 6,
1332
+ f,
1333
+ google_protobuf_empty_pb.Empty.serializeBinaryToWriter
1334
+ );
1335
+ }
1336
+ };
1337
+
1338
+
1339
+ /**
1340
+ * optional uint64 current_stream_revision = 1;
1341
+ * @return {string}
1342
+ */
1343
+ proto.event_store.client.WrongExpectedVersion.prototype.getCurrentStreamRevision = function() {
1344
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0"));
1345
+ };
1346
+
1347
+
1348
+ /**
1349
+ * @param {string} value
1350
+ * @return {!proto.event_store.client.WrongExpectedVersion} returns this
1351
+ */
1352
+ proto.event_store.client.WrongExpectedVersion.prototype.setCurrentStreamRevision = function(value) {
1353
+ return jspb.Message.setOneofField(this, 1, proto.event_store.client.WrongExpectedVersion.oneofGroups_[0], value);
1354
+ };
1355
+
1356
+
1357
+ /**
1358
+ * Clears the field making it undefined.
1359
+ * @return {!proto.event_store.client.WrongExpectedVersion} returns this
1360
+ */
1361
+ proto.event_store.client.WrongExpectedVersion.prototype.clearCurrentStreamRevision = function() {
1362
+ return jspb.Message.setOneofField(this, 1, proto.event_store.client.WrongExpectedVersion.oneofGroups_[0], undefined);
1363
+ };
1364
+
1365
+
1366
+ /**
1367
+ * Returns whether this field is set.
1368
+ * @return {boolean}
1369
+ */
1370
+ proto.event_store.client.WrongExpectedVersion.prototype.hasCurrentStreamRevision = function() {
1371
+ return jspb.Message.getField(this, 1) != null;
1372
+ };
1373
+
1374
+
1375
+ /**
1376
+ * optional google.protobuf.Empty current_no_stream = 2;
1377
+ * @return {?proto.google.protobuf.Empty}
1378
+ */
1379
+ proto.event_store.client.WrongExpectedVersion.prototype.getCurrentNoStream = function() {
1380
+ return /** @type{?proto.google.protobuf.Empty} */ (
1381
+ jspb.Message.getWrapperField(this, google_protobuf_empty_pb.Empty, 2));
1382
+ };
1383
+
1384
+
1385
+ /**
1386
+ * @param {?proto.google.protobuf.Empty|undefined} value
1387
+ * @return {!proto.event_store.client.WrongExpectedVersion} returns this
1388
+ */
1389
+ proto.event_store.client.WrongExpectedVersion.prototype.setCurrentNoStream = function(value) {
1390
+ return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.WrongExpectedVersion.oneofGroups_[0], value);
1391
+ };
1392
+
1393
+
1394
+ /**
1395
+ * Clears the message field making it undefined.
1396
+ * @return {!proto.event_store.client.WrongExpectedVersion} returns this
1397
+ */
1398
+ proto.event_store.client.WrongExpectedVersion.prototype.clearCurrentNoStream = function() {
1399
+ return this.setCurrentNoStream(undefined);
1400
+ };
1401
+
1402
+
1403
+ /**
1404
+ * Returns whether this field is set.
1405
+ * @return {boolean}
1406
+ */
1407
+ proto.event_store.client.WrongExpectedVersion.prototype.hasCurrentNoStream = function() {
1408
+ return jspb.Message.getField(this, 2) != null;
1409
+ };
1410
+
1411
+
1412
+ /**
1413
+ * optional uint64 expected_stream_position = 3;
1414
+ * @return {string}
1415
+ */
1416
+ proto.event_store.client.WrongExpectedVersion.prototype.getExpectedStreamPosition = function() {
1417
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0"));
1418
+ };
1419
+
1420
+
1421
+ /**
1422
+ * @param {string} value
1423
+ * @return {!proto.event_store.client.WrongExpectedVersion} returns this
1424
+ */
1425
+ proto.event_store.client.WrongExpectedVersion.prototype.setExpectedStreamPosition = function(value) {
1426
+ return jspb.Message.setOneofField(this, 3, proto.event_store.client.WrongExpectedVersion.oneofGroups_[1], value);
1427
+ };
1428
+
1429
+
1430
+ /**
1431
+ * Clears the field making it undefined.
1432
+ * @return {!proto.event_store.client.WrongExpectedVersion} returns this
1433
+ */
1434
+ proto.event_store.client.WrongExpectedVersion.prototype.clearExpectedStreamPosition = function() {
1435
+ return jspb.Message.setOneofField(this, 3, proto.event_store.client.WrongExpectedVersion.oneofGroups_[1], undefined);
1436
+ };
1437
+
1438
+
1439
+ /**
1440
+ * Returns whether this field is set.
1441
+ * @return {boolean}
1442
+ */
1443
+ proto.event_store.client.WrongExpectedVersion.prototype.hasExpectedStreamPosition = function() {
1444
+ return jspb.Message.getField(this, 3) != null;
1445
+ };
1446
+
1447
+
1448
+ /**
1449
+ * optional google.protobuf.Empty expected_any = 4;
1450
+ * @return {?proto.google.protobuf.Empty}
1451
+ */
1452
+ proto.event_store.client.WrongExpectedVersion.prototype.getExpectedAny = function() {
1453
+ return /** @type{?proto.google.protobuf.Empty} */ (
1454
+ jspb.Message.getWrapperField(this, google_protobuf_empty_pb.Empty, 4));
1455
+ };
1456
+
1457
+
1458
+ /**
1459
+ * @param {?proto.google.protobuf.Empty|undefined} value
1460
+ * @return {!proto.event_store.client.WrongExpectedVersion} returns this
1461
+ */
1462
+ proto.event_store.client.WrongExpectedVersion.prototype.setExpectedAny = function(value) {
1463
+ return jspb.Message.setOneofWrapperField(this, 4, proto.event_store.client.WrongExpectedVersion.oneofGroups_[1], value);
1464
+ };
1465
+
1466
+
1467
+ /**
1468
+ * Clears the message field making it undefined.
1469
+ * @return {!proto.event_store.client.WrongExpectedVersion} returns this
1470
+ */
1471
+ proto.event_store.client.WrongExpectedVersion.prototype.clearExpectedAny = function() {
1472
+ return this.setExpectedAny(undefined);
1473
+ };
1474
+
1475
+
1476
+ /**
1477
+ * Returns whether this field is set.
1478
+ * @return {boolean}
1479
+ */
1480
+ proto.event_store.client.WrongExpectedVersion.prototype.hasExpectedAny = function() {
1481
+ return jspb.Message.getField(this, 4) != null;
1482
+ };
1483
+
1484
+
1485
+ /**
1486
+ * optional google.protobuf.Empty expected_stream_exists = 5;
1487
+ * @return {?proto.google.protobuf.Empty}
1488
+ */
1489
+ proto.event_store.client.WrongExpectedVersion.prototype.getExpectedStreamExists = function() {
1490
+ return /** @type{?proto.google.protobuf.Empty} */ (
1491
+ jspb.Message.getWrapperField(this, google_protobuf_empty_pb.Empty, 5));
1492
+ };
1493
+
1494
+
1495
+ /**
1496
+ * @param {?proto.google.protobuf.Empty|undefined} value
1497
+ * @return {!proto.event_store.client.WrongExpectedVersion} returns this
1498
+ */
1499
+ proto.event_store.client.WrongExpectedVersion.prototype.setExpectedStreamExists = function(value) {
1500
+ return jspb.Message.setOneofWrapperField(this, 5, proto.event_store.client.WrongExpectedVersion.oneofGroups_[1], value);
1501
+ };
1502
+
1503
+
1504
+ /**
1505
+ * Clears the message field making it undefined.
1506
+ * @return {!proto.event_store.client.WrongExpectedVersion} returns this
1507
+ */
1508
+ proto.event_store.client.WrongExpectedVersion.prototype.clearExpectedStreamExists = function() {
1509
+ return this.setExpectedStreamExists(undefined);
1510
+ };
1511
+
1512
+
1513
+ /**
1514
+ * Returns whether this field is set.
1515
+ * @return {boolean}
1516
+ */
1517
+ proto.event_store.client.WrongExpectedVersion.prototype.hasExpectedStreamExists = function() {
1518
+ return jspb.Message.getField(this, 5) != null;
1519
+ };
1520
+
1521
+
1522
+ /**
1523
+ * optional google.protobuf.Empty expected_no_stream = 6;
1524
+ * @return {?proto.google.protobuf.Empty}
1525
+ */
1526
+ proto.event_store.client.WrongExpectedVersion.prototype.getExpectedNoStream = function() {
1527
+ return /** @type{?proto.google.protobuf.Empty} */ (
1528
+ jspb.Message.getWrapperField(this, google_protobuf_empty_pb.Empty, 6));
1529
+ };
1530
+
1531
+
1532
+ /**
1533
+ * @param {?proto.google.protobuf.Empty|undefined} value
1534
+ * @return {!proto.event_store.client.WrongExpectedVersion} returns this
1535
+ */
1536
+ proto.event_store.client.WrongExpectedVersion.prototype.setExpectedNoStream = function(value) {
1537
+ return jspb.Message.setOneofWrapperField(this, 6, proto.event_store.client.WrongExpectedVersion.oneofGroups_[1], value);
1538
+ };
1539
+
1540
+
1541
+ /**
1542
+ * Clears the message field making it undefined.
1543
+ * @return {!proto.event_store.client.WrongExpectedVersion} returns this
1544
+ */
1545
+ proto.event_store.client.WrongExpectedVersion.prototype.clearExpectedNoStream = function() {
1546
+ return this.setExpectedNoStream(undefined);
1547
+ };
1548
+
1549
+
1550
+ /**
1551
+ * Returns whether this field is set.
1552
+ * @return {boolean}
1553
+ */
1554
+ proto.event_store.client.WrongExpectedVersion.prototype.hasExpectedNoStream = function() {
1555
+ return jspb.Message.getField(this, 6) != null;
1556
+ };
1557
+
1558
+
1559
+
1560
+
1561
+
1562
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1563
+ /**
1564
+ * Creates an object representation of this proto.
1565
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1566
+ * Optional fields that are not set will be set to undefined.
1567
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1568
+ * For the list of reserved names please see:
1569
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1570
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1571
+ * JSPB instance for transitional soy proto support:
1572
+ * http://goto/soy-param-migration
1573
+ * @return {!Object}
1574
+ */
1575
+ proto.event_store.client.AccessDenied.prototype.toObject = function(opt_includeInstance) {
1576
+ return proto.event_store.client.AccessDenied.toObject(opt_includeInstance, this);
1577
+ };
1578
+
1579
+
1580
+ /**
1581
+ * Static version of the {@see toObject} method.
1582
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1583
+ * the JSPB instance for transitional soy proto support:
1584
+ * http://goto/soy-param-migration
1585
+ * @param {!proto.event_store.client.AccessDenied} msg The msg instance to transform.
1586
+ * @return {!Object}
1587
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1588
+ */
1589
+ proto.event_store.client.AccessDenied.toObject = function(includeInstance, msg) {
1590
+ var f, obj = {
1591
+
1592
+ };
1593
+
1594
+ if (includeInstance) {
1595
+ obj.$jspbMessageInstance = msg;
1596
+ }
1597
+ return obj;
1598
+ };
1599
+ }
1600
+
1601
+
1602
+ /**
1603
+ * Deserializes binary data (in protobuf wire format).
1604
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1605
+ * @return {!proto.event_store.client.AccessDenied}
1606
+ */
1607
+ proto.event_store.client.AccessDenied.deserializeBinary = function(bytes) {
1608
+ var reader = new jspb.BinaryReader(bytes);
1609
+ var msg = new proto.event_store.client.AccessDenied;
1610
+ return proto.event_store.client.AccessDenied.deserializeBinaryFromReader(msg, reader);
1611
+ };
1612
+
1613
+
1614
+ /**
1615
+ * Deserializes binary data (in protobuf wire format) from the
1616
+ * given reader into the given message object.
1617
+ * @param {!proto.event_store.client.AccessDenied} msg The message object to deserialize into.
1618
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1619
+ * @return {!proto.event_store.client.AccessDenied}
1620
+ */
1621
+ proto.event_store.client.AccessDenied.deserializeBinaryFromReader = function(msg, reader) {
1622
+ while (reader.nextField()) {
1623
+ if (reader.isEndGroup()) {
1624
+ break;
1625
+ }
1626
+ var field = reader.getFieldNumber();
1627
+ switch (field) {
1628
+ default:
1629
+ reader.skipField();
1630
+ break;
1631
+ }
1632
+ }
1633
+ return msg;
1634
+ };
1635
+
1636
+
1637
+ /**
1638
+ * Serializes the message to binary data (in protobuf wire format).
1639
+ * @return {!Uint8Array}
1640
+ */
1641
+ proto.event_store.client.AccessDenied.prototype.serializeBinary = function() {
1642
+ var writer = new jspb.BinaryWriter();
1643
+ proto.event_store.client.AccessDenied.serializeBinaryToWriter(this, writer);
1644
+ return writer.getResultBuffer();
1645
+ };
1646
+
1647
+
1648
+ /**
1649
+ * Serializes the given message to binary data (in protobuf wire
1650
+ * format), writing to the given BinaryWriter.
1651
+ * @param {!proto.event_store.client.AccessDenied} message
1652
+ * @param {!jspb.BinaryWriter} writer
1653
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1654
+ */
1655
+ proto.event_store.client.AccessDenied.serializeBinaryToWriter = function(message, writer) {
1656
+ var f = undefined;
1657
+ };
1658
+
1659
+
1660
+
1661
+
1662
+
1663
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1664
+ /**
1665
+ * Creates an object representation of this proto.
1666
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1667
+ * Optional fields that are not set will be set to undefined.
1668
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1669
+ * For the list of reserved names please see:
1670
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1671
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1672
+ * JSPB instance for transitional soy proto support:
1673
+ * http://goto/soy-param-migration
1674
+ * @return {!Object}
1675
+ */
1676
+ proto.event_store.client.StreamDeleted.prototype.toObject = function(opt_includeInstance) {
1677
+ return proto.event_store.client.StreamDeleted.toObject(opt_includeInstance, this);
1678
+ };
1679
+
1680
+
1681
+ /**
1682
+ * Static version of the {@see toObject} method.
1683
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1684
+ * the JSPB instance for transitional soy proto support:
1685
+ * http://goto/soy-param-migration
1686
+ * @param {!proto.event_store.client.StreamDeleted} msg The msg instance to transform.
1687
+ * @return {!Object}
1688
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1689
+ */
1690
+ proto.event_store.client.StreamDeleted.toObject = function(includeInstance, msg) {
1691
+ var f, obj = {
1692
+ streamIdentifier: (f = msg.getStreamIdentifier()) && proto.event_store.client.StreamIdentifier.toObject(includeInstance, f)
1693
+ };
1694
+
1695
+ if (includeInstance) {
1696
+ obj.$jspbMessageInstance = msg;
1697
+ }
1698
+ return obj;
1699
+ };
1700
+ }
1701
+
1702
+
1703
+ /**
1704
+ * Deserializes binary data (in protobuf wire format).
1705
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1706
+ * @return {!proto.event_store.client.StreamDeleted}
1707
+ */
1708
+ proto.event_store.client.StreamDeleted.deserializeBinary = function(bytes) {
1709
+ var reader = new jspb.BinaryReader(bytes);
1710
+ var msg = new proto.event_store.client.StreamDeleted;
1711
+ return proto.event_store.client.StreamDeleted.deserializeBinaryFromReader(msg, reader);
1712
+ };
1713
+
1714
+
1715
+ /**
1716
+ * Deserializes binary data (in protobuf wire format) from the
1717
+ * given reader into the given message object.
1718
+ * @param {!proto.event_store.client.StreamDeleted} msg The message object to deserialize into.
1719
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1720
+ * @return {!proto.event_store.client.StreamDeleted}
1721
+ */
1722
+ proto.event_store.client.StreamDeleted.deserializeBinaryFromReader = function(msg, reader) {
1723
+ while (reader.nextField()) {
1724
+ if (reader.isEndGroup()) {
1725
+ break;
1726
+ }
1727
+ var field = reader.getFieldNumber();
1728
+ switch (field) {
1729
+ case 1:
1730
+ var value = new proto.event_store.client.StreamIdentifier;
1731
+ reader.readMessage(value,proto.event_store.client.StreamIdentifier.deserializeBinaryFromReader);
1732
+ msg.setStreamIdentifier(value);
1733
+ break;
1734
+ default:
1735
+ reader.skipField();
1736
+ break;
1737
+ }
1738
+ }
1739
+ return msg;
1740
+ };
1741
+
1742
+
1743
+ /**
1744
+ * Serializes the message to binary data (in protobuf wire format).
1745
+ * @return {!Uint8Array}
1746
+ */
1747
+ proto.event_store.client.StreamDeleted.prototype.serializeBinary = function() {
1748
+ var writer = new jspb.BinaryWriter();
1749
+ proto.event_store.client.StreamDeleted.serializeBinaryToWriter(this, writer);
1750
+ return writer.getResultBuffer();
1751
+ };
1752
+
1753
+
1754
+ /**
1755
+ * Serializes the given message to binary data (in protobuf wire
1756
+ * format), writing to the given BinaryWriter.
1757
+ * @param {!proto.event_store.client.StreamDeleted} message
1758
+ * @param {!jspb.BinaryWriter} writer
1759
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1760
+ */
1761
+ proto.event_store.client.StreamDeleted.serializeBinaryToWriter = function(message, writer) {
1762
+ var f = undefined;
1763
+ f = message.getStreamIdentifier();
1764
+ if (f != null) {
1765
+ writer.writeMessage(
1766
+ 1,
1767
+ f,
1768
+ proto.event_store.client.StreamIdentifier.serializeBinaryToWriter
1769
+ );
1770
+ }
1771
+ };
1772
+
1773
+
1774
+ /**
1775
+ * optional StreamIdentifier stream_identifier = 1;
1776
+ * @return {?proto.event_store.client.StreamIdentifier}
1777
+ */
1778
+ proto.event_store.client.StreamDeleted.prototype.getStreamIdentifier = function() {
1779
+ return /** @type{?proto.event_store.client.StreamIdentifier} */ (
1780
+ jspb.Message.getWrapperField(this, proto.event_store.client.StreamIdentifier, 1));
1781
+ };
1782
+
1783
+
1784
+ /**
1785
+ * @param {?proto.event_store.client.StreamIdentifier|undefined} value
1786
+ * @return {!proto.event_store.client.StreamDeleted} returns this
1787
+ */
1788
+ proto.event_store.client.StreamDeleted.prototype.setStreamIdentifier = function(value) {
1789
+ return jspb.Message.setWrapperField(this, 1, value);
1790
+ };
1791
+
1792
+
1793
+ /**
1794
+ * Clears the message field making it undefined.
1795
+ * @return {!proto.event_store.client.StreamDeleted} returns this
1796
+ */
1797
+ proto.event_store.client.StreamDeleted.prototype.clearStreamIdentifier = function() {
1798
+ return this.setStreamIdentifier(undefined);
1799
+ };
1800
+
1801
+
1802
+ /**
1803
+ * Returns whether this field is set.
1804
+ * @return {boolean}
1805
+ */
1806
+ proto.event_store.client.StreamDeleted.prototype.hasStreamIdentifier = function() {
1807
+ return jspb.Message.getField(this, 1) != null;
1808
+ };
1809
+
1810
+
1811
+
1812
+
1813
+
1814
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1815
+ /**
1816
+ * Creates an object representation of this proto.
1817
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1818
+ * Optional fields that are not set will be set to undefined.
1819
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1820
+ * For the list of reserved names please see:
1821
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1822
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1823
+ * JSPB instance for transitional soy proto support:
1824
+ * http://goto/soy-param-migration
1825
+ * @return {!Object}
1826
+ */
1827
+ proto.event_store.client.Timeout.prototype.toObject = function(opt_includeInstance) {
1828
+ return proto.event_store.client.Timeout.toObject(opt_includeInstance, this);
1829
+ };
1830
+
1831
+
1832
+ /**
1833
+ * Static version of the {@see toObject} method.
1834
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1835
+ * the JSPB instance for transitional soy proto support:
1836
+ * http://goto/soy-param-migration
1837
+ * @param {!proto.event_store.client.Timeout} msg The msg instance to transform.
1838
+ * @return {!Object}
1839
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1840
+ */
1841
+ proto.event_store.client.Timeout.toObject = function(includeInstance, msg) {
1842
+ var f, obj = {
1843
+
1844
+ };
1845
+
1846
+ if (includeInstance) {
1847
+ obj.$jspbMessageInstance = msg;
1848
+ }
1849
+ return obj;
1850
+ };
1851
+ }
1852
+
1853
+
1854
+ /**
1855
+ * Deserializes binary data (in protobuf wire format).
1856
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1857
+ * @return {!proto.event_store.client.Timeout}
1858
+ */
1859
+ proto.event_store.client.Timeout.deserializeBinary = function(bytes) {
1860
+ var reader = new jspb.BinaryReader(bytes);
1861
+ var msg = new proto.event_store.client.Timeout;
1862
+ return proto.event_store.client.Timeout.deserializeBinaryFromReader(msg, reader);
1863
+ };
1864
+
1865
+
1866
+ /**
1867
+ * Deserializes binary data (in protobuf wire format) from the
1868
+ * given reader into the given message object.
1869
+ * @param {!proto.event_store.client.Timeout} msg The message object to deserialize into.
1870
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1871
+ * @return {!proto.event_store.client.Timeout}
1872
+ */
1873
+ proto.event_store.client.Timeout.deserializeBinaryFromReader = function(msg, reader) {
1874
+ while (reader.nextField()) {
1875
+ if (reader.isEndGroup()) {
1876
+ break;
1877
+ }
1878
+ var field = reader.getFieldNumber();
1879
+ switch (field) {
1880
+ default:
1881
+ reader.skipField();
1882
+ break;
1883
+ }
1884
+ }
1885
+ return msg;
1886
+ };
1887
+
1888
+
1889
+ /**
1890
+ * Serializes the message to binary data (in protobuf wire format).
1891
+ * @return {!Uint8Array}
1892
+ */
1893
+ proto.event_store.client.Timeout.prototype.serializeBinary = function() {
1894
+ var writer = new jspb.BinaryWriter();
1895
+ proto.event_store.client.Timeout.serializeBinaryToWriter(this, writer);
1896
+ return writer.getResultBuffer();
1897
+ };
1898
+
1899
+
1900
+ /**
1901
+ * Serializes the given message to binary data (in protobuf wire
1902
+ * format), writing to the given BinaryWriter.
1903
+ * @param {!proto.event_store.client.Timeout} message
1904
+ * @param {!jspb.BinaryWriter} writer
1905
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1906
+ */
1907
+ proto.event_store.client.Timeout.serializeBinaryToWriter = function(message, writer) {
1908
+ var f = undefined;
1909
+ };
1910
+
1911
+
1912
+
1913
+
1914
+
1915
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1916
+ /**
1917
+ * Creates an object representation of this proto.
1918
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1919
+ * Optional fields that are not set will be set to undefined.
1920
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1921
+ * For the list of reserved names please see:
1922
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1923
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1924
+ * JSPB instance for transitional soy proto support:
1925
+ * http://goto/soy-param-migration
1926
+ * @return {!Object}
1927
+ */
1928
+ proto.event_store.client.Unknown.prototype.toObject = function(opt_includeInstance) {
1929
+ return proto.event_store.client.Unknown.toObject(opt_includeInstance, this);
1930
+ };
1931
+
1932
+
1933
+ /**
1934
+ * Static version of the {@see toObject} method.
1935
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1936
+ * the JSPB instance for transitional soy proto support:
1937
+ * http://goto/soy-param-migration
1938
+ * @param {!proto.event_store.client.Unknown} msg The msg instance to transform.
1939
+ * @return {!Object}
1940
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1941
+ */
1942
+ proto.event_store.client.Unknown.toObject = function(includeInstance, msg) {
1943
+ var f, obj = {
1944
+
1945
+ };
1946
+
1947
+ if (includeInstance) {
1948
+ obj.$jspbMessageInstance = msg;
1949
+ }
1950
+ return obj;
1951
+ };
1952
+ }
1953
+
1954
+
1955
+ /**
1956
+ * Deserializes binary data (in protobuf wire format).
1957
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1958
+ * @return {!proto.event_store.client.Unknown}
1959
+ */
1960
+ proto.event_store.client.Unknown.deserializeBinary = function(bytes) {
1961
+ var reader = new jspb.BinaryReader(bytes);
1962
+ var msg = new proto.event_store.client.Unknown;
1963
+ return proto.event_store.client.Unknown.deserializeBinaryFromReader(msg, reader);
1964
+ };
1965
+
1966
+
1967
+ /**
1968
+ * Deserializes binary data (in protobuf wire format) from the
1969
+ * given reader into the given message object.
1970
+ * @param {!proto.event_store.client.Unknown} msg The message object to deserialize into.
1971
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1972
+ * @return {!proto.event_store.client.Unknown}
1973
+ */
1974
+ proto.event_store.client.Unknown.deserializeBinaryFromReader = function(msg, reader) {
1975
+ while (reader.nextField()) {
1976
+ if (reader.isEndGroup()) {
1977
+ break;
1978
+ }
1979
+ var field = reader.getFieldNumber();
1980
+ switch (field) {
1981
+ default:
1982
+ reader.skipField();
1983
+ break;
1984
+ }
1985
+ }
1986
+ return msg;
1987
+ };
1988
+
1989
+
1990
+ /**
1991
+ * Serializes the message to binary data (in protobuf wire format).
1992
+ * @return {!Uint8Array}
1993
+ */
1994
+ proto.event_store.client.Unknown.prototype.serializeBinary = function() {
1995
+ var writer = new jspb.BinaryWriter();
1996
+ proto.event_store.client.Unknown.serializeBinaryToWriter(this, writer);
1997
+ return writer.getResultBuffer();
1998
+ };
1999
+
2000
+
2001
+ /**
2002
+ * Serializes the given message to binary data (in protobuf wire
2003
+ * format), writing to the given BinaryWriter.
2004
+ * @param {!proto.event_store.client.Unknown} message
2005
+ * @param {!jspb.BinaryWriter} writer
2006
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2007
+ */
2008
+ proto.event_store.client.Unknown.serializeBinaryToWriter = function(message, writer) {
2009
+ var f = undefined;
2010
+ };
2011
+
2012
+
2013
+
2014
+
2015
+
2016
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2017
+ /**
2018
+ * Creates an object representation of this proto.
2019
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2020
+ * Optional fields that are not set will be set to undefined.
2021
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2022
+ * For the list of reserved names please see:
2023
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2024
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2025
+ * JSPB instance for transitional soy proto support:
2026
+ * http://goto/soy-param-migration
2027
+ * @return {!Object}
2028
+ */
2029
+ proto.event_store.client.InvalidTransaction.prototype.toObject = function(opt_includeInstance) {
2030
+ return proto.event_store.client.InvalidTransaction.toObject(opt_includeInstance, this);
2031
+ };
2032
+
2033
+
2034
+ /**
2035
+ * Static version of the {@see toObject} method.
2036
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2037
+ * the JSPB instance for transitional soy proto support:
2038
+ * http://goto/soy-param-migration
2039
+ * @param {!proto.event_store.client.InvalidTransaction} msg The msg instance to transform.
2040
+ * @return {!Object}
2041
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2042
+ */
2043
+ proto.event_store.client.InvalidTransaction.toObject = function(includeInstance, msg) {
2044
+ var f, obj = {
2045
+
2046
+ };
2047
+
2048
+ if (includeInstance) {
2049
+ obj.$jspbMessageInstance = msg;
2050
+ }
2051
+ return obj;
2052
+ };
2053
+ }
2054
+
2055
+
2056
+ /**
2057
+ * Deserializes binary data (in protobuf wire format).
2058
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2059
+ * @return {!proto.event_store.client.InvalidTransaction}
2060
+ */
2061
+ proto.event_store.client.InvalidTransaction.deserializeBinary = function(bytes) {
2062
+ var reader = new jspb.BinaryReader(bytes);
2063
+ var msg = new proto.event_store.client.InvalidTransaction;
2064
+ return proto.event_store.client.InvalidTransaction.deserializeBinaryFromReader(msg, reader);
2065
+ };
2066
+
2067
+
2068
+ /**
2069
+ * Deserializes binary data (in protobuf wire format) from the
2070
+ * given reader into the given message object.
2071
+ * @param {!proto.event_store.client.InvalidTransaction} msg The message object to deserialize into.
2072
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2073
+ * @return {!proto.event_store.client.InvalidTransaction}
2074
+ */
2075
+ proto.event_store.client.InvalidTransaction.deserializeBinaryFromReader = function(msg, reader) {
2076
+ while (reader.nextField()) {
2077
+ if (reader.isEndGroup()) {
2078
+ break;
2079
+ }
2080
+ var field = reader.getFieldNumber();
2081
+ switch (field) {
2082
+ default:
2083
+ reader.skipField();
2084
+ break;
2085
+ }
2086
+ }
2087
+ return msg;
2088
+ };
2089
+
2090
+
2091
+ /**
2092
+ * Serializes the message to binary data (in protobuf wire format).
2093
+ * @return {!Uint8Array}
2094
+ */
2095
+ proto.event_store.client.InvalidTransaction.prototype.serializeBinary = function() {
2096
+ var writer = new jspb.BinaryWriter();
2097
+ proto.event_store.client.InvalidTransaction.serializeBinaryToWriter(this, writer);
2098
+ return writer.getResultBuffer();
2099
+ };
2100
+
2101
+
2102
+ /**
2103
+ * Serializes the given message to binary data (in protobuf wire
2104
+ * format), writing to the given BinaryWriter.
2105
+ * @param {!proto.event_store.client.InvalidTransaction} message
2106
+ * @param {!jspb.BinaryWriter} writer
2107
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2108
+ */
2109
+ proto.event_store.client.InvalidTransaction.serializeBinaryToWriter = function(message, writer) {
2110
+ var f = undefined;
2111
+ };
2112
+
2113
+
2114
+
2115
+
2116
+
2117
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2118
+ /**
2119
+ * Creates an object representation of this proto.
2120
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2121
+ * Optional fields that are not set will be set to undefined.
2122
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2123
+ * For the list of reserved names please see:
2124
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2125
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2126
+ * JSPB instance for transitional soy proto support:
2127
+ * http://goto/soy-param-migration
2128
+ * @return {!Object}
2129
+ */
2130
+ proto.event_store.client.MaximumAppendSizeExceeded.prototype.toObject = function(opt_includeInstance) {
2131
+ return proto.event_store.client.MaximumAppendSizeExceeded.toObject(opt_includeInstance, this);
2132
+ };
2133
+
2134
+
2135
+ /**
2136
+ * Static version of the {@see toObject} method.
2137
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2138
+ * the JSPB instance for transitional soy proto support:
2139
+ * http://goto/soy-param-migration
2140
+ * @param {!proto.event_store.client.MaximumAppendSizeExceeded} msg The msg instance to transform.
2141
+ * @return {!Object}
2142
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2143
+ */
2144
+ proto.event_store.client.MaximumAppendSizeExceeded.toObject = function(includeInstance, msg) {
2145
+ var f, obj = {
2146
+ maxappendsize: jspb.Message.getFieldWithDefault(msg, 1, 0)
2147
+ };
2148
+
2149
+ if (includeInstance) {
2150
+ obj.$jspbMessageInstance = msg;
2151
+ }
2152
+ return obj;
2153
+ };
2154
+ }
2155
+
2156
+
2157
+ /**
2158
+ * Deserializes binary data (in protobuf wire format).
2159
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2160
+ * @return {!proto.event_store.client.MaximumAppendSizeExceeded}
2161
+ */
2162
+ proto.event_store.client.MaximumAppendSizeExceeded.deserializeBinary = function(bytes) {
2163
+ var reader = new jspb.BinaryReader(bytes);
2164
+ var msg = new proto.event_store.client.MaximumAppendSizeExceeded;
2165
+ return proto.event_store.client.MaximumAppendSizeExceeded.deserializeBinaryFromReader(msg, reader);
2166
+ };
2167
+
2168
+
2169
+ /**
2170
+ * Deserializes binary data (in protobuf wire format) from the
2171
+ * given reader into the given message object.
2172
+ * @param {!proto.event_store.client.MaximumAppendSizeExceeded} msg The message object to deserialize into.
2173
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2174
+ * @return {!proto.event_store.client.MaximumAppendSizeExceeded}
2175
+ */
2176
+ proto.event_store.client.MaximumAppendSizeExceeded.deserializeBinaryFromReader = function(msg, reader) {
2177
+ while (reader.nextField()) {
2178
+ if (reader.isEndGroup()) {
2179
+ break;
2180
+ }
2181
+ var field = reader.getFieldNumber();
2182
+ switch (field) {
2183
+ case 1:
2184
+ var value = /** @type {number} */ (reader.readUint32());
2185
+ msg.setMaxappendsize(value);
2186
+ break;
2187
+ default:
2188
+ reader.skipField();
2189
+ break;
2190
+ }
2191
+ }
2192
+ return msg;
2193
+ };
2194
+
2195
+
2196
+ /**
2197
+ * Serializes the message to binary data (in protobuf wire format).
2198
+ * @return {!Uint8Array}
2199
+ */
2200
+ proto.event_store.client.MaximumAppendSizeExceeded.prototype.serializeBinary = function() {
2201
+ var writer = new jspb.BinaryWriter();
2202
+ proto.event_store.client.MaximumAppendSizeExceeded.serializeBinaryToWriter(this, writer);
2203
+ return writer.getResultBuffer();
2204
+ };
2205
+
2206
+
2207
+ /**
2208
+ * Serializes the given message to binary data (in protobuf wire
2209
+ * format), writing to the given BinaryWriter.
2210
+ * @param {!proto.event_store.client.MaximumAppendSizeExceeded} message
2211
+ * @param {!jspb.BinaryWriter} writer
2212
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2213
+ */
2214
+ proto.event_store.client.MaximumAppendSizeExceeded.serializeBinaryToWriter = function(message, writer) {
2215
+ var f = undefined;
2216
+ f = message.getMaxappendsize();
2217
+ if (f !== 0) {
2218
+ writer.writeUint32(
2219
+ 1,
2220
+ f
2221
+ );
2222
+ }
2223
+ };
2224
+
2225
+
2226
+ /**
2227
+ * optional uint32 maxAppendSize = 1;
2228
+ * @return {number}
2229
+ */
2230
+ proto.event_store.client.MaximumAppendSizeExceeded.prototype.getMaxappendsize = function() {
2231
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2232
+ };
2233
+
2234
+
2235
+ /**
2236
+ * @param {number} value
2237
+ * @return {!proto.event_store.client.MaximumAppendSizeExceeded} returns this
2238
+ */
2239
+ proto.event_store.client.MaximumAppendSizeExceeded.prototype.setMaxappendsize = function(value) {
2240
+ return jspb.Message.setProto3IntField(this, 1, value);
2241
+ };
2242
+
2243
+
2244
+
2245
+
2246
+
2247
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2248
+ /**
2249
+ * Creates an object representation of this proto.
2250
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2251
+ * Optional fields that are not set will be set to undefined.
2252
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2253
+ * For the list of reserved names please see:
2254
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2255
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2256
+ * JSPB instance for transitional soy proto support:
2257
+ * http://goto/soy-param-migration
2258
+ * @return {!Object}
2259
+ */
2260
+ proto.event_store.client.BadRequest.prototype.toObject = function(opt_includeInstance) {
2261
+ return proto.event_store.client.BadRequest.toObject(opt_includeInstance, this);
2262
+ };
2263
+
2264
+
2265
+ /**
2266
+ * Static version of the {@see toObject} method.
2267
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2268
+ * the JSPB instance for transitional soy proto support:
2269
+ * http://goto/soy-param-migration
2270
+ * @param {!proto.event_store.client.BadRequest} msg The msg instance to transform.
2271
+ * @return {!Object}
2272
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2273
+ */
2274
+ proto.event_store.client.BadRequest.toObject = function(includeInstance, msg) {
2275
+ var f, obj = {
2276
+ message: jspb.Message.getFieldWithDefault(msg, 1, "")
2277
+ };
2278
+
2279
+ if (includeInstance) {
2280
+ obj.$jspbMessageInstance = msg;
2281
+ }
2282
+ return obj;
2283
+ };
2284
+ }
2285
+
2286
+
2287
+ /**
2288
+ * Deserializes binary data (in protobuf wire format).
2289
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2290
+ * @return {!proto.event_store.client.BadRequest}
2291
+ */
2292
+ proto.event_store.client.BadRequest.deserializeBinary = function(bytes) {
2293
+ var reader = new jspb.BinaryReader(bytes);
2294
+ var msg = new proto.event_store.client.BadRequest;
2295
+ return proto.event_store.client.BadRequest.deserializeBinaryFromReader(msg, reader);
2296
+ };
2297
+
2298
+
2299
+ /**
2300
+ * Deserializes binary data (in protobuf wire format) from the
2301
+ * given reader into the given message object.
2302
+ * @param {!proto.event_store.client.BadRequest} msg The message object to deserialize into.
2303
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2304
+ * @return {!proto.event_store.client.BadRequest}
2305
+ */
2306
+ proto.event_store.client.BadRequest.deserializeBinaryFromReader = function(msg, reader) {
2307
+ while (reader.nextField()) {
2308
+ if (reader.isEndGroup()) {
2309
+ break;
2310
+ }
2311
+ var field = reader.getFieldNumber();
2312
+ switch (field) {
2313
+ case 1:
2314
+ var value = /** @type {string} */ (reader.readString());
2315
+ msg.setMessage(value);
2316
+ break;
2317
+ default:
2318
+ reader.skipField();
2319
+ break;
2320
+ }
2321
+ }
2322
+ return msg;
2323
+ };
2324
+
2325
+
2326
+ /**
2327
+ * Serializes the message to binary data (in protobuf wire format).
2328
+ * @return {!Uint8Array}
2329
+ */
2330
+ proto.event_store.client.BadRequest.prototype.serializeBinary = function() {
2331
+ var writer = new jspb.BinaryWriter();
2332
+ proto.event_store.client.BadRequest.serializeBinaryToWriter(this, writer);
2333
+ return writer.getResultBuffer();
2334
+ };
2335
+
2336
+
2337
+ /**
2338
+ * Serializes the given message to binary data (in protobuf wire
2339
+ * format), writing to the given BinaryWriter.
2340
+ * @param {!proto.event_store.client.BadRequest} message
2341
+ * @param {!jspb.BinaryWriter} writer
2342
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2343
+ */
2344
+ proto.event_store.client.BadRequest.serializeBinaryToWriter = function(message, writer) {
2345
+ var f = undefined;
2346
+ f = message.getMessage();
2347
+ if (f.length > 0) {
2348
+ writer.writeString(
2349
+ 1,
2350
+ f
2351
+ );
2352
+ }
2353
+ };
2354
+
2355
+
2356
+ /**
2357
+ * optional string message = 1;
2358
+ * @return {string}
2359
+ */
2360
+ proto.event_store.client.BadRequest.prototype.getMessage = function() {
2361
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2362
+ };
2363
+
2364
+
2365
+ /**
2366
+ * @param {string} value
2367
+ * @return {!proto.event_store.client.BadRequest} returns this
2368
+ */
2369
+ proto.event_store.client.BadRequest.prototype.setMessage = function(value) {
2370
+ return jspb.Message.setProto3StringField(this, 1, value);
2371
+ };
2372
+
2373
+
2374
+ goog.object.extend(exports, proto.event_store.client);