@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,4451 @@
1
+ // source: users.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
+ goog.exportSymbol('proto.event_store.client.users.ChangePasswordReq', null, global);
25
+ goog.exportSymbol('proto.event_store.client.users.ChangePasswordReq.Options', null, global);
26
+ goog.exportSymbol('proto.event_store.client.users.ChangePasswordResp', null, global);
27
+ goog.exportSymbol('proto.event_store.client.users.CreateReq', null, global);
28
+ goog.exportSymbol('proto.event_store.client.users.CreateReq.Options', null, global);
29
+ goog.exportSymbol('proto.event_store.client.users.CreateResp', null, global);
30
+ goog.exportSymbol('proto.event_store.client.users.DeleteReq', null, global);
31
+ goog.exportSymbol('proto.event_store.client.users.DeleteReq.Options', null, global);
32
+ goog.exportSymbol('proto.event_store.client.users.DeleteResp', null, global);
33
+ goog.exportSymbol('proto.event_store.client.users.DetailsReq', null, global);
34
+ goog.exportSymbol('proto.event_store.client.users.DetailsReq.Options', null, global);
35
+ goog.exportSymbol('proto.event_store.client.users.DetailsResp', null, global);
36
+ goog.exportSymbol('proto.event_store.client.users.DetailsResp.UserDetails', null, global);
37
+ goog.exportSymbol('proto.event_store.client.users.DetailsResp.UserDetails.DateTime', null, global);
38
+ goog.exportSymbol('proto.event_store.client.users.DisableReq', null, global);
39
+ goog.exportSymbol('proto.event_store.client.users.DisableReq.Options', null, global);
40
+ goog.exportSymbol('proto.event_store.client.users.DisableResp', null, global);
41
+ goog.exportSymbol('proto.event_store.client.users.EnableReq', null, global);
42
+ goog.exportSymbol('proto.event_store.client.users.EnableReq.Options', null, global);
43
+ goog.exportSymbol('proto.event_store.client.users.EnableResp', null, global);
44
+ goog.exportSymbol('proto.event_store.client.users.ResetPasswordReq', null, global);
45
+ goog.exportSymbol('proto.event_store.client.users.ResetPasswordReq.Options', null, global);
46
+ goog.exportSymbol('proto.event_store.client.users.ResetPasswordResp', null, global);
47
+ goog.exportSymbol('proto.event_store.client.users.UpdateReq', null, global);
48
+ goog.exportSymbol('proto.event_store.client.users.UpdateReq.Options', null, global);
49
+ goog.exportSymbol('proto.event_store.client.users.UpdateResp', null, global);
50
+ /**
51
+ * Generated by JsPbCodeGenerator.
52
+ * @param {Array=} opt_data Optional initial data array, typically from a
53
+ * server response, or constructed directly in Javascript. The array is used
54
+ * in place and becomes part of the constructed object. It is not cloned.
55
+ * If no data is provided, the constructed object will be empty, but still
56
+ * valid.
57
+ * @extends {jspb.Message}
58
+ * @constructor
59
+ */
60
+ proto.event_store.client.users.CreateReq = function(opt_data) {
61
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
62
+ };
63
+ goog.inherits(proto.event_store.client.users.CreateReq, jspb.Message);
64
+ if (goog.DEBUG && !COMPILED) {
65
+ /**
66
+ * @public
67
+ * @override
68
+ */
69
+ proto.event_store.client.users.CreateReq.displayName = 'proto.event_store.client.users.CreateReq';
70
+ }
71
+ /**
72
+ * Generated by JsPbCodeGenerator.
73
+ * @param {Array=} opt_data Optional initial data array, typically from a
74
+ * server response, or constructed directly in Javascript. The array is used
75
+ * in place and becomes part of the constructed object. It is not cloned.
76
+ * If no data is provided, the constructed object will be empty, but still
77
+ * valid.
78
+ * @extends {jspb.Message}
79
+ * @constructor
80
+ */
81
+ proto.event_store.client.users.CreateReq.Options = function(opt_data) {
82
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.event_store.client.users.CreateReq.Options.repeatedFields_, null);
83
+ };
84
+ goog.inherits(proto.event_store.client.users.CreateReq.Options, jspb.Message);
85
+ if (goog.DEBUG && !COMPILED) {
86
+ /**
87
+ * @public
88
+ * @override
89
+ */
90
+ proto.event_store.client.users.CreateReq.Options.displayName = 'proto.event_store.client.users.CreateReq.Options';
91
+ }
92
+ /**
93
+ * Generated by JsPbCodeGenerator.
94
+ * @param {Array=} opt_data Optional initial data array, typically from a
95
+ * server response, or constructed directly in Javascript. The array is used
96
+ * in place and becomes part of the constructed object. It is not cloned.
97
+ * If no data is provided, the constructed object will be empty, but still
98
+ * valid.
99
+ * @extends {jspb.Message}
100
+ * @constructor
101
+ */
102
+ proto.event_store.client.users.CreateResp = function(opt_data) {
103
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
104
+ };
105
+ goog.inherits(proto.event_store.client.users.CreateResp, jspb.Message);
106
+ if (goog.DEBUG && !COMPILED) {
107
+ /**
108
+ * @public
109
+ * @override
110
+ */
111
+ proto.event_store.client.users.CreateResp.displayName = 'proto.event_store.client.users.CreateResp';
112
+ }
113
+ /**
114
+ * Generated by JsPbCodeGenerator.
115
+ * @param {Array=} opt_data Optional initial data array, typically from a
116
+ * server response, or constructed directly in Javascript. The array is used
117
+ * in place and becomes part of the constructed object. It is not cloned.
118
+ * If no data is provided, the constructed object will be empty, but still
119
+ * valid.
120
+ * @extends {jspb.Message}
121
+ * @constructor
122
+ */
123
+ proto.event_store.client.users.UpdateReq = function(opt_data) {
124
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
125
+ };
126
+ goog.inherits(proto.event_store.client.users.UpdateReq, jspb.Message);
127
+ if (goog.DEBUG && !COMPILED) {
128
+ /**
129
+ * @public
130
+ * @override
131
+ */
132
+ proto.event_store.client.users.UpdateReq.displayName = 'proto.event_store.client.users.UpdateReq';
133
+ }
134
+ /**
135
+ * Generated by JsPbCodeGenerator.
136
+ * @param {Array=} opt_data Optional initial data array, typically from a
137
+ * server response, or constructed directly in Javascript. The array is used
138
+ * in place and becomes part of the constructed object. It is not cloned.
139
+ * If no data is provided, the constructed object will be empty, but still
140
+ * valid.
141
+ * @extends {jspb.Message}
142
+ * @constructor
143
+ */
144
+ proto.event_store.client.users.UpdateReq.Options = function(opt_data) {
145
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.event_store.client.users.UpdateReq.Options.repeatedFields_, null);
146
+ };
147
+ goog.inherits(proto.event_store.client.users.UpdateReq.Options, jspb.Message);
148
+ if (goog.DEBUG && !COMPILED) {
149
+ /**
150
+ * @public
151
+ * @override
152
+ */
153
+ proto.event_store.client.users.UpdateReq.Options.displayName = 'proto.event_store.client.users.UpdateReq.Options';
154
+ }
155
+ /**
156
+ * Generated by JsPbCodeGenerator.
157
+ * @param {Array=} opt_data Optional initial data array, typically from a
158
+ * server response, or constructed directly in Javascript. The array is used
159
+ * in place and becomes part of the constructed object. It is not cloned.
160
+ * If no data is provided, the constructed object will be empty, but still
161
+ * valid.
162
+ * @extends {jspb.Message}
163
+ * @constructor
164
+ */
165
+ proto.event_store.client.users.UpdateResp = function(opt_data) {
166
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
167
+ };
168
+ goog.inherits(proto.event_store.client.users.UpdateResp, jspb.Message);
169
+ if (goog.DEBUG && !COMPILED) {
170
+ /**
171
+ * @public
172
+ * @override
173
+ */
174
+ proto.event_store.client.users.UpdateResp.displayName = 'proto.event_store.client.users.UpdateResp';
175
+ }
176
+ /**
177
+ * Generated by JsPbCodeGenerator.
178
+ * @param {Array=} opt_data Optional initial data array, typically from a
179
+ * server response, or constructed directly in Javascript. The array is used
180
+ * in place and becomes part of the constructed object. It is not cloned.
181
+ * If no data is provided, the constructed object will be empty, but still
182
+ * valid.
183
+ * @extends {jspb.Message}
184
+ * @constructor
185
+ */
186
+ proto.event_store.client.users.DeleteReq = function(opt_data) {
187
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
188
+ };
189
+ goog.inherits(proto.event_store.client.users.DeleteReq, jspb.Message);
190
+ if (goog.DEBUG && !COMPILED) {
191
+ /**
192
+ * @public
193
+ * @override
194
+ */
195
+ proto.event_store.client.users.DeleteReq.displayName = 'proto.event_store.client.users.DeleteReq';
196
+ }
197
+ /**
198
+ * Generated by JsPbCodeGenerator.
199
+ * @param {Array=} opt_data Optional initial data array, typically from a
200
+ * server response, or constructed directly in Javascript. The array is used
201
+ * in place and becomes part of the constructed object. It is not cloned.
202
+ * If no data is provided, the constructed object will be empty, but still
203
+ * valid.
204
+ * @extends {jspb.Message}
205
+ * @constructor
206
+ */
207
+ proto.event_store.client.users.DeleteReq.Options = function(opt_data) {
208
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
209
+ };
210
+ goog.inherits(proto.event_store.client.users.DeleteReq.Options, jspb.Message);
211
+ if (goog.DEBUG && !COMPILED) {
212
+ /**
213
+ * @public
214
+ * @override
215
+ */
216
+ proto.event_store.client.users.DeleteReq.Options.displayName = 'proto.event_store.client.users.DeleteReq.Options';
217
+ }
218
+ /**
219
+ * Generated by JsPbCodeGenerator.
220
+ * @param {Array=} opt_data Optional initial data array, typically from a
221
+ * server response, or constructed directly in Javascript. The array is used
222
+ * in place and becomes part of the constructed object. It is not cloned.
223
+ * If no data is provided, the constructed object will be empty, but still
224
+ * valid.
225
+ * @extends {jspb.Message}
226
+ * @constructor
227
+ */
228
+ proto.event_store.client.users.DeleteResp = function(opt_data) {
229
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
230
+ };
231
+ goog.inherits(proto.event_store.client.users.DeleteResp, jspb.Message);
232
+ if (goog.DEBUG && !COMPILED) {
233
+ /**
234
+ * @public
235
+ * @override
236
+ */
237
+ proto.event_store.client.users.DeleteResp.displayName = 'proto.event_store.client.users.DeleteResp';
238
+ }
239
+ /**
240
+ * Generated by JsPbCodeGenerator.
241
+ * @param {Array=} opt_data Optional initial data array, typically from a
242
+ * server response, or constructed directly in Javascript. The array is used
243
+ * in place and becomes part of the constructed object. It is not cloned.
244
+ * If no data is provided, the constructed object will be empty, but still
245
+ * valid.
246
+ * @extends {jspb.Message}
247
+ * @constructor
248
+ */
249
+ proto.event_store.client.users.EnableReq = function(opt_data) {
250
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
251
+ };
252
+ goog.inherits(proto.event_store.client.users.EnableReq, jspb.Message);
253
+ if (goog.DEBUG && !COMPILED) {
254
+ /**
255
+ * @public
256
+ * @override
257
+ */
258
+ proto.event_store.client.users.EnableReq.displayName = 'proto.event_store.client.users.EnableReq';
259
+ }
260
+ /**
261
+ * Generated by JsPbCodeGenerator.
262
+ * @param {Array=} opt_data Optional initial data array, typically from a
263
+ * server response, or constructed directly in Javascript. The array is used
264
+ * in place and becomes part of the constructed object. It is not cloned.
265
+ * If no data is provided, the constructed object will be empty, but still
266
+ * valid.
267
+ * @extends {jspb.Message}
268
+ * @constructor
269
+ */
270
+ proto.event_store.client.users.EnableReq.Options = function(opt_data) {
271
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
272
+ };
273
+ goog.inherits(proto.event_store.client.users.EnableReq.Options, jspb.Message);
274
+ if (goog.DEBUG && !COMPILED) {
275
+ /**
276
+ * @public
277
+ * @override
278
+ */
279
+ proto.event_store.client.users.EnableReq.Options.displayName = 'proto.event_store.client.users.EnableReq.Options';
280
+ }
281
+ /**
282
+ * Generated by JsPbCodeGenerator.
283
+ * @param {Array=} opt_data Optional initial data array, typically from a
284
+ * server response, or constructed directly in Javascript. The array is used
285
+ * in place and becomes part of the constructed object. It is not cloned.
286
+ * If no data is provided, the constructed object will be empty, but still
287
+ * valid.
288
+ * @extends {jspb.Message}
289
+ * @constructor
290
+ */
291
+ proto.event_store.client.users.EnableResp = function(opt_data) {
292
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
293
+ };
294
+ goog.inherits(proto.event_store.client.users.EnableResp, jspb.Message);
295
+ if (goog.DEBUG && !COMPILED) {
296
+ /**
297
+ * @public
298
+ * @override
299
+ */
300
+ proto.event_store.client.users.EnableResp.displayName = 'proto.event_store.client.users.EnableResp';
301
+ }
302
+ /**
303
+ * Generated by JsPbCodeGenerator.
304
+ * @param {Array=} opt_data Optional initial data array, typically from a
305
+ * server response, or constructed directly in Javascript. The array is used
306
+ * in place and becomes part of the constructed object. It is not cloned.
307
+ * If no data is provided, the constructed object will be empty, but still
308
+ * valid.
309
+ * @extends {jspb.Message}
310
+ * @constructor
311
+ */
312
+ proto.event_store.client.users.DisableReq = function(opt_data) {
313
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
314
+ };
315
+ goog.inherits(proto.event_store.client.users.DisableReq, jspb.Message);
316
+ if (goog.DEBUG && !COMPILED) {
317
+ /**
318
+ * @public
319
+ * @override
320
+ */
321
+ proto.event_store.client.users.DisableReq.displayName = 'proto.event_store.client.users.DisableReq';
322
+ }
323
+ /**
324
+ * Generated by JsPbCodeGenerator.
325
+ * @param {Array=} opt_data Optional initial data array, typically from a
326
+ * server response, or constructed directly in Javascript. The array is used
327
+ * in place and becomes part of the constructed object. It is not cloned.
328
+ * If no data is provided, the constructed object will be empty, but still
329
+ * valid.
330
+ * @extends {jspb.Message}
331
+ * @constructor
332
+ */
333
+ proto.event_store.client.users.DisableReq.Options = function(opt_data) {
334
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
335
+ };
336
+ goog.inherits(proto.event_store.client.users.DisableReq.Options, jspb.Message);
337
+ if (goog.DEBUG && !COMPILED) {
338
+ /**
339
+ * @public
340
+ * @override
341
+ */
342
+ proto.event_store.client.users.DisableReq.Options.displayName = 'proto.event_store.client.users.DisableReq.Options';
343
+ }
344
+ /**
345
+ * Generated by JsPbCodeGenerator.
346
+ * @param {Array=} opt_data Optional initial data array, typically from a
347
+ * server response, or constructed directly in Javascript. The array is used
348
+ * in place and becomes part of the constructed object. It is not cloned.
349
+ * If no data is provided, the constructed object will be empty, but still
350
+ * valid.
351
+ * @extends {jspb.Message}
352
+ * @constructor
353
+ */
354
+ proto.event_store.client.users.DisableResp = function(opt_data) {
355
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
356
+ };
357
+ goog.inherits(proto.event_store.client.users.DisableResp, jspb.Message);
358
+ if (goog.DEBUG && !COMPILED) {
359
+ /**
360
+ * @public
361
+ * @override
362
+ */
363
+ proto.event_store.client.users.DisableResp.displayName = 'proto.event_store.client.users.DisableResp';
364
+ }
365
+ /**
366
+ * Generated by JsPbCodeGenerator.
367
+ * @param {Array=} opt_data Optional initial data array, typically from a
368
+ * server response, or constructed directly in Javascript. The array is used
369
+ * in place and becomes part of the constructed object. It is not cloned.
370
+ * If no data is provided, the constructed object will be empty, but still
371
+ * valid.
372
+ * @extends {jspb.Message}
373
+ * @constructor
374
+ */
375
+ proto.event_store.client.users.DetailsReq = function(opt_data) {
376
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
377
+ };
378
+ goog.inherits(proto.event_store.client.users.DetailsReq, jspb.Message);
379
+ if (goog.DEBUG && !COMPILED) {
380
+ /**
381
+ * @public
382
+ * @override
383
+ */
384
+ proto.event_store.client.users.DetailsReq.displayName = 'proto.event_store.client.users.DetailsReq';
385
+ }
386
+ /**
387
+ * Generated by JsPbCodeGenerator.
388
+ * @param {Array=} opt_data Optional initial data array, typically from a
389
+ * server response, or constructed directly in Javascript. The array is used
390
+ * in place and becomes part of the constructed object. It is not cloned.
391
+ * If no data is provided, the constructed object will be empty, but still
392
+ * valid.
393
+ * @extends {jspb.Message}
394
+ * @constructor
395
+ */
396
+ proto.event_store.client.users.DetailsReq.Options = function(opt_data) {
397
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
398
+ };
399
+ goog.inherits(proto.event_store.client.users.DetailsReq.Options, jspb.Message);
400
+ if (goog.DEBUG && !COMPILED) {
401
+ /**
402
+ * @public
403
+ * @override
404
+ */
405
+ proto.event_store.client.users.DetailsReq.Options.displayName = 'proto.event_store.client.users.DetailsReq.Options';
406
+ }
407
+ /**
408
+ * Generated by JsPbCodeGenerator.
409
+ * @param {Array=} opt_data Optional initial data array, typically from a
410
+ * server response, or constructed directly in Javascript. The array is used
411
+ * in place and becomes part of the constructed object. It is not cloned.
412
+ * If no data is provided, the constructed object will be empty, but still
413
+ * valid.
414
+ * @extends {jspb.Message}
415
+ * @constructor
416
+ */
417
+ proto.event_store.client.users.DetailsResp = function(opt_data) {
418
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
419
+ };
420
+ goog.inherits(proto.event_store.client.users.DetailsResp, jspb.Message);
421
+ if (goog.DEBUG && !COMPILED) {
422
+ /**
423
+ * @public
424
+ * @override
425
+ */
426
+ proto.event_store.client.users.DetailsResp.displayName = 'proto.event_store.client.users.DetailsResp';
427
+ }
428
+ /**
429
+ * Generated by JsPbCodeGenerator.
430
+ * @param {Array=} opt_data Optional initial data array, typically from a
431
+ * server response, or constructed directly in Javascript. The array is used
432
+ * in place and becomes part of the constructed object. It is not cloned.
433
+ * If no data is provided, the constructed object will be empty, but still
434
+ * valid.
435
+ * @extends {jspb.Message}
436
+ * @constructor
437
+ */
438
+ proto.event_store.client.users.DetailsResp.UserDetails = function(opt_data) {
439
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.event_store.client.users.DetailsResp.UserDetails.repeatedFields_, null);
440
+ };
441
+ goog.inherits(proto.event_store.client.users.DetailsResp.UserDetails, jspb.Message);
442
+ if (goog.DEBUG && !COMPILED) {
443
+ /**
444
+ * @public
445
+ * @override
446
+ */
447
+ proto.event_store.client.users.DetailsResp.UserDetails.displayName = 'proto.event_store.client.users.DetailsResp.UserDetails';
448
+ }
449
+ /**
450
+ * Generated by JsPbCodeGenerator.
451
+ * @param {Array=} opt_data Optional initial data array, typically from a
452
+ * server response, or constructed directly in Javascript. The array is used
453
+ * in place and becomes part of the constructed object. It is not cloned.
454
+ * If no data is provided, the constructed object will be empty, but still
455
+ * valid.
456
+ * @extends {jspb.Message}
457
+ * @constructor
458
+ */
459
+ proto.event_store.client.users.DetailsResp.UserDetails.DateTime = function(opt_data) {
460
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
461
+ };
462
+ goog.inherits(proto.event_store.client.users.DetailsResp.UserDetails.DateTime, jspb.Message);
463
+ if (goog.DEBUG && !COMPILED) {
464
+ /**
465
+ * @public
466
+ * @override
467
+ */
468
+ proto.event_store.client.users.DetailsResp.UserDetails.DateTime.displayName = 'proto.event_store.client.users.DetailsResp.UserDetails.DateTime';
469
+ }
470
+ /**
471
+ * Generated by JsPbCodeGenerator.
472
+ * @param {Array=} opt_data Optional initial data array, typically from a
473
+ * server response, or constructed directly in Javascript. The array is used
474
+ * in place and becomes part of the constructed object. It is not cloned.
475
+ * If no data is provided, the constructed object will be empty, but still
476
+ * valid.
477
+ * @extends {jspb.Message}
478
+ * @constructor
479
+ */
480
+ proto.event_store.client.users.ChangePasswordReq = function(opt_data) {
481
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
482
+ };
483
+ goog.inherits(proto.event_store.client.users.ChangePasswordReq, jspb.Message);
484
+ if (goog.DEBUG && !COMPILED) {
485
+ /**
486
+ * @public
487
+ * @override
488
+ */
489
+ proto.event_store.client.users.ChangePasswordReq.displayName = 'proto.event_store.client.users.ChangePasswordReq';
490
+ }
491
+ /**
492
+ * Generated by JsPbCodeGenerator.
493
+ * @param {Array=} opt_data Optional initial data array, typically from a
494
+ * server response, or constructed directly in Javascript. The array is used
495
+ * in place and becomes part of the constructed object. It is not cloned.
496
+ * If no data is provided, the constructed object will be empty, but still
497
+ * valid.
498
+ * @extends {jspb.Message}
499
+ * @constructor
500
+ */
501
+ proto.event_store.client.users.ChangePasswordReq.Options = function(opt_data) {
502
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
503
+ };
504
+ goog.inherits(proto.event_store.client.users.ChangePasswordReq.Options, jspb.Message);
505
+ if (goog.DEBUG && !COMPILED) {
506
+ /**
507
+ * @public
508
+ * @override
509
+ */
510
+ proto.event_store.client.users.ChangePasswordReq.Options.displayName = 'proto.event_store.client.users.ChangePasswordReq.Options';
511
+ }
512
+ /**
513
+ * Generated by JsPbCodeGenerator.
514
+ * @param {Array=} opt_data Optional initial data array, typically from a
515
+ * server response, or constructed directly in Javascript. The array is used
516
+ * in place and becomes part of the constructed object. It is not cloned.
517
+ * If no data is provided, the constructed object will be empty, but still
518
+ * valid.
519
+ * @extends {jspb.Message}
520
+ * @constructor
521
+ */
522
+ proto.event_store.client.users.ChangePasswordResp = function(opt_data) {
523
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
524
+ };
525
+ goog.inherits(proto.event_store.client.users.ChangePasswordResp, jspb.Message);
526
+ if (goog.DEBUG && !COMPILED) {
527
+ /**
528
+ * @public
529
+ * @override
530
+ */
531
+ proto.event_store.client.users.ChangePasswordResp.displayName = 'proto.event_store.client.users.ChangePasswordResp';
532
+ }
533
+ /**
534
+ * Generated by JsPbCodeGenerator.
535
+ * @param {Array=} opt_data Optional initial data array, typically from a
536
+ * server response, or constructed directly in Javascript. The array is used
537
+ * in place and becomes part of the constructed object. It is not cloned.
538
+ * If no data is provided, the constructed object will be empty, but still
539
+ * valid.
540
+ * @extends {jspb.Message}
541
+ * @constructor
542
+ */
543
+ proto.event_store.client.users.ResetPasswordReq = function(opt_data) {
544
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
545
+ };
546
+ goog.inherits(proto.event_store.client.users.ResetPasswordReq, jspb.Message);
547
+ if (goog.DEBUG && !COMPILED) {
548
+ /**
549
+ * @public
550
+ * @override
551
+ */
552
+ proto.event_store.client.users.ResetPasswordReq.displayName = 'proto.event_store.client.users.ResetPasswordReq';
553
+ }
554
+ /**
555
+ * Generated by JsPbCodeGenerator.
556
+ * @param {Array=} opt_data Optional initial data array, typically from a
557
+ * server response, or constructed directly in Javascript. The array is used
558
+ * in place and becomes part of the constructed object. It is not cloned.
559
+ * If no data is provided, the constructed object will be empty, but still
560
+ * valid.
561
+ * @extends {jspb.Message}
562
+ * @constructor
563
+ */
564
+ proto.event_store.client.users.ResetPasswordReq.Options = function(opt_data) {
565
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
566
+ };
567
+ goog.inherits(proto.event_store.client.users.ResetPasswordReq.Options, jspb.Message);
568
+ if (goog.DEBUG && !COMPILED) {
569
+ /**
570
+ * @public
571
+ * @override
572
+ */
573
+ proto.event_store.client.users.ResetPasswordReq.Options.displayName = 'proto.event_store.client.users.ResetPasswordReq.Options';
574
+ }
575
+ /**
576
+ * Generated by JsPbCodeGenerator.
577
+ * @param {Array=} opt_data Optional initial data array, typically from a
578
+ * server response, or constructed directly in Javascript. The array is used
579
+ * in place and becomes part of the constructed object. It is not cloned.
580
+ * If no data is provided, the constructed object will be empty, but still
581
+ * valid.
582
+ * @extends {jspb.Message}
583
+ * @constructor
584
+ */
585
+ proto.event_store.client.users.ResetPasswordResp = function(opt_data) {
586
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
587
+ };
588
+ goog.inherits(proto.event_store.client.users.ResetPasswordResp, jspb.Message);
589
+ if (goog.DEBUG && !COMPILED) {
590
+ /**
591
+ * @public
592
+ * @override
593
+ */
594
+ proto.event_store.client.users.ResetPasswordResp.displayName = 'proto.event_store.client.users.ResetPasswordResp';
595
+ }
596
+
597
+
598
+
599
+ if (jspb.Message.GENERATE_TO_OBJECT) {
600
+ /**
601
+ * Creates an object representation of this proto.
602
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
603
+ * Optional fields that are not set will be set to undefined.
604
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
605
+ * For the list of reserved names please see:
606
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
607
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
608
+ * JSPB instance for transitional soy proto support:
609
+ * http://goto/soy-param-migration
610
+ * @return {!Object}
611
+ */
612
+ proto.event_store.client.users.CreateReq.prototype.toObject = function(opt_includeInstance) {
613
+ return proto.event_store.client.users.CreateReq.toObject(opt_includeInstance, this);
614
+ };
615
+
616
+
617
+ /**
618
+ * Static version of the {@see toObject} method.
619
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
620
+ * the JSPB instance for transitional soy proto support:
621
+ * http://goto/soy-param-migration
622
+ * @param {!proto.event_store.client.users.CreateReq} msg The msg instance to transform.
623
+ * @return {!Object}
624
+ * @suppress {unusedLocalVariables} f is only used for nested messages
625
+ */
626
+ proto.event_store.client.users.CreateReq.toObject = function(includeInstance, msg) {
627
+ var f, obj = {
628
+ options: (f = msg.getOptions()) && proto.event_store.client.users.CreateReq.Options.toObject(includeInstance, f)
629
+ };
630
+
631
+ if (includeInstance) {
632
+ obj.$jspbMessageInstance = msg;
633
+ }
634
+ return obj;
635
+ };
636
+ }
637
+
638
+
639
+ /**
640
+ * Deserializes binary data (in protobuf wire format).
641
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
642
+ * @return {!proto.event_store.client.users.CreateReq}
643
+ */
644
+ proto.event_store.client.users.CreateReq.deserializeBinary = function(bytes) {
645
+ var reader = new jspb.BinaryReader(bytes);
646
+ var msg = new proto.event_store.client.users.CreateReq;
647
+ return proto.event_store.client.users.CreateReq.deserializeBinaryFromReader(msg, reader);
648
+ };
649
+
650
+
651
+ /**
652
+ * Deserializes binary data (in protobuf wire format) from the
653
+ * given reader into the given message object.
654
+ * @param {!proto.event_store.client.users.CreateReq} msg The message object to deserialize into.
655
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
656
+ * @return {!proto.event_store.client.users.CreateReq}
657
+ */
658
+ proto.event_store.client.users.CreateReq.deserializeBinaryFromReader = function(msg, reader) {
659
+ while (reader.nextField()) {
660
+ if (reader.isEndGroup()) {
661
+ break;
662
+ }
663
+ var field = reader.getFieldNumber();
664
+ switch (field) {
665
+ case 1:
666
+ var value = new proto.event_store.client.users.CreateReq.Options;
667
+ reader.readMessage(value,proto.event_store.client.users.CreateReq.Options.deserializeBinaryFromReader);
668
+ msg.setOptions(value);
669
+ break;
670
+ default:
671
+ reader.skipField();
672
+ break;
673
+ }
674
+ }
675
+ return msg;
676
+ };
677
+
678
+
679
+ /**
680
+ * Serializes the message to binary data (in protobuf wire format).
681
+ * @return {!Uint8Array}
682
+ */
683
+ proto.event_store.client.users.CreateReq.prototype.serializeBinary = function() {
684
+ var writer = new jspb.BinaryWriter();
685
+ proto.event_store.client.users.CreateReq.serializeBinaryToWriter(this, writer);
686
+ return writer.getResultBuffer();
687
+ };
688
+
689
+
690
+ /**
691
+ * Serializes the given message to binary data (in protobuf wire
692
+ * format), writing to the given BinaryWriter.
693
+ * @param {!proto.event_store.client.users.CreateReq} message
694
+ * @param {!jspb.BinaryWriter} writer
695
+ * @suppress {unusedLocalVariables} f is only used for nested messages
696
+ */
697
+ proto.event_store.client.users.CreateReq.serializeBinaryToWriter = function(message, writer) {
698
+ var f = undefined;
699
+ f = message.getOptions();
700
+ if (f != null) {
701
+ writer.writeMessage(
702
+ 1,
703
+ f,
704
+ proto.event_store.client.users.CreateReq.Options.serializeBinaryToWriter
705
+ );
706
+ }
707
+ };
708
+
709
+
710
+
711
+ /**
712
+ * List of repeated fields within this message type.
713
+ * @private {!Array<number>}
714
+ * @const
715
+ */
716
+ proto.event_store.client.users.CreateReq.Options.repeatedFields_ = [4];
717
+
718
+
719
+
720
+ if (jspb.Message.GENERATE_TO_OBJECT) {
721
+ /**
722
+ * Creates an object representation of this proto.
723
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
724
+ * Optional fields that are not set will be set to undefined.
725
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
726
+ * For the list of reserved names please see:
727
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
728
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
729
+ * JSPB instance for transitional soy proto support:
730
+ * http://goto/soy-param-migration
731
+ * @return {!Object}
732
+ */
733
+ proto.event_store.client.users.CreateReq.Options.prototype.toObject = function(opt_includeInstance) {
734
+ return proto.event_store.client.users.CreateReq.Options.toObject(opt_includeInstance, this);
735
+ };
736
+
737
+
738
+ /**
739
+ * Static version of the {@see toObject} method.
740
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
741
+ * the JSPB instance for transitional soy proto support:
742
+ * http://goto/soy-param-migration
743
+ * @param {!proto.event_store.client.users.CreateReq.Options} msg The msg instance to transform.
744
+ * @return {!Object}
745
+ * @suppress {unusedLocalVariables} f is only used for nested messages
746
+ */
747
+ proto.event_store.client.users.CreateReq.Options.toObject = function(includeInstance, msg) {
748
+ var f, obj = {
749
+ loginName: jspb.Message.getFieldWithDefault(msg, 1, ""),
750
+ password: jspb.Message.getFieldWithDefault(msg, 2, ""),
751
+ fullName: jspb.Message.getFieldWithDefault(msg, 3, ""),
752
+ groupsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
753
+ };
754
+
755
+ if (includeInstance) {
756
+ obj.$jspbMessageInstance = msg;
757
+ }
758
+ return obj;
759
+ };
760
+ }
761
+
762
+
763
+ /**
764
+ * Deserializes binary data (in protobuf wire format).
765
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
766
+ * @return {!proto.event_store.client.users.CreateReq.Options}
767
+ */
768
+ proto.event_store.client.users.CreateReq.Options.deserializeBinary = function(bytes) {
769
+ var reader = new jspb.BinaryReader(bytes);
770
+ var msg = new proto.event_store.client.users.CreateReq.Options;
771
+ return proto.event_store.client.users.CreateReq.Options.deserializeBinaryFromReader(msg, reader);
772
+ };
773
+
774
+
775
+ /**
776
+ * Deserializes binary data (in protobuf wire format) from the
777
+ * given reader into the given message object.
778
+ * @param {!proto.event_store.client.users.CreateReq.Options} msg The message object to deserialize into.
779
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
780
+ * @return {!proto.event_store.client.users.CreateReq.Options}
781
+ */
782
+ proto.event_store.client.users.CreateReq.Options.deserializeBinaryFromReader = function(msg, reader) {
783
+ while (reader.nextField()) {
784
+ if (reader.isEndGroup()) {
785
+ break;
786
+ }
787
+ var field = reader.getFieldNumber();
788
+ switch (field) {
789
+ case 1:
790
+ var value = /** @type {string} */ (reader.readString());
791
+ msg.setLoginName(value);
792
+ break;
793
+ case 2:
794
+ var value = /** @type {string} */ (reader.readString());
795
+ msg.setPassword(value);
796
+ break;
797
+ case 3:
798
+ var value = /** @type {string} */ (reader.readString());
799
+ msg.setFullName(value);
800
+ break;
801
+ case 4:
802
+ var value = /** @type {string} */ (reader.readString());
803
+ msg.addGroups(value);
804
+ break;
805
+ default:
806
+ reader.skipField();
807
+ break;
808
+ }
809
+ }
810
+ return msg;
811
+ };
812
+
813
+
814
+ /**
815
+ * Serializes the message to binary data (in protobuf wire format).
816
+ * @return {!Uint8Array}
817
+ */
818
+ proto.event_store.client.users.CreateReq.Options.prototype.serializeBinary = function() {
819
+ var writer = new jspb.BinaryWriter();
820
+ proto.event_store.client.users.CreateReq.Options.serializeBinaryToWriter(this, writer);
821
+ return writer.getResultBuffer();
822
+ };
823
+
824
+
825
+ /**
826
+ * Serializes the given message to binary data (in protobuf wire
827
+ * format), writing to the given BinaryWriter.
828
+ * @param {!proto.event_store.client.users.CreateReq.Options} message
829
+ * @param {!jspb.BinaryWriter} writer
830
+ * @suppress {unusedLocalVariables} f is only used for nested messages
831
+ */
832
+ proto.event_store.client.users.CreateReq.Options.serializeBinaryToWriter = function(message, writer) {
833
+ var f = undefined;
834
+ f = message.getLoginName();
835
+ if (f.length > 0) {
836
+ writer.writeString(
837
+ 1,
838
+ f
839
+ );
840
+ }
841
+ f = message.getPassword();
842
+ if (f.length > 0) {
843
+ writer.writeString(
844
+ 2,
845
+ f
846
+ );
847
+ }
848
+ f = message.getFullName();
849
+ if (f.length > 0) {
850
+ writer.writeString(
851
+ 3,
852
+ f
853
+ );
854
+ }
855
+ f = message.getGroupsList();
856
+ if (f.length > 0) {
857
+ writer.writeRepeatedString(
858
+ 4,
859
+ f
860
+ );
861
+ }
862
+ };
863
+
864
+
865
+ /**
866
+ * optional string login_name = 1;
867
+ * @return {string}
868
+ */
869
+ proto.event_store.client.users.CreateReq.Options.prototype.getLoginName = function() {
870
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
871
+ };
872
+
873
+
874
+ /**
875
+ * @param {string} value
876
+ * @return {!proto.event_store.client.users.CreateReq.Options} returns this
877
+ */
878
+ proto.event_store.client.users.CreateReq.Options.prototype.setLoginName = function(value) {
879
+ return jspb.Message.setProto3StringField(this, 1, value);
880
+ };
881
+
882
+
883
+ /**
884
+ * optional string password = 2;
885
+ * @return {string}
886
+ */
887
+ proto.event_store.client.users.CreateReq.Options.prototype.getPassword = function() {
888
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
889
+ };
890
+
891
+
892
+ /**
893
+ * @param {string} value
894
+ * @return {!proto.event_store.client.users.CreateReq.Options} returns this
895
+ */
896
+ proto.event_store.client.users.CreateReq.Options.prototype.setPassword = function(value) {
897
+ return jspb.Message.setProto3StringField(this, 2, value);
898
+ };
899
+
900
+
901
+ /**
902
+ * optional string full_name = 3;
903
+ * @return {string}
904
+ */
905
+ proto.event_store.client.users.CreateReq.Options.prototype.getFullName = function() {
906
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
907
+ };
908
+
909
+
910
+ /**
911
+ * @param {string} value
912
+ * @return {!proto.event_store.client.users.CreateReq.Options} returns this
913
+ */
914
+ proto.event_store.client.users.CreateReq.Options.prototype.setFullName = function(value) {
915
+ return jspb.Message.setProto3StringField(this, 3, value);
916
+ };
917
+
918
+
919
+ /**
920
+ * repeated string groups = 4;
921
+ * @return {!Array<string>}
922
+ */
923
+ proto.event_store.client.users.CreateReq.Options.prototype.getGroupsList = function() {
924
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
925
+ };
926
+
927
+
928
+ /**
929
+ * @param {!Array<string>} value
930
+ * @return {!proto.event_store.client.users.CreateReq.Options} returns this
931
+ */
932
+ proto.event_store.client.users.CreateReq.Options.prototype.setGroupsList = function(value) {
933
+ return jspb.Message.setField(this, 4, value || []);
934
+ };
935
+
936
+
937
+ /**
938
+ * @param {string} value
939
+ * @param {number=} opt_index
940
+ * @return {!proto.event_store.client.users.CreateReq.Options} returns this
941
+ */
942
+ proto.event_store.client.users.CreateReq.Options.prototype.addGroups = function(value, opt_index) {
943
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
944
+ };
945
+
946
+
947
+ /**
948
+ * Clears the list making it empty but non-null.
949
+ * @return {!proto.event_store.client.users.CreateReq.Options} returns this
950
+ */
951
+ proto.event_store.client.users.CreateReq.Options.prototype.clearGroupsList = function() {
952
+ return this.setGroupsList([]);
953
+ };
954
+
955
+
956
+ /**
957
+ * optional Options options = 1;
958
+ * @return {?proto.event_store.client.users.CreateReq.Options}
959
+ */
960
+ proto.event_store.client.users.CreateReq.prototype.getOptions = function() {
961
+ return /** @type{?proto.event_store.client.users.CreateReq.Options} */ (
962
+ jspb.Message.getWrapperField(this, proto.event_store.client.users.CreateReq.Options, 1));
963
+ };
964
+
965
+
966
+ /**
967
+ * @param {?proto.event_store.client.users.CreateReq.Options|undefined} value
968
+ * @return {!proto.event_store.client.users.CreateReq} returns this
969
+ */
970
+ proto.event_store.client.users.CreateReq.prototype.setOptions = function(value) {
971
+ return jspb.Message.setWrapperField(this, 1, value);
972
+ };
973
+
974
+
975
+ /**
976
+ * Clears the message field making it undefined.
977
+ * @return {!proto.event_store.client.users.CreateReq} returns this
978
+ */
979
+ proto.event_store.client.users.CreateReq.prototype.clearOptions = function() {
980
+ return this.setOptions(undefined);
981
+ };
982
+
983
+
984
+ /**
985
+ * Returns whether this field is set.
986
+ * @return {boolean}
987
+ */
988
+ proto.event_store.client.users.CreateReq.prototype.hasOptions = function() {
989
+ return jspb.Message.getField(this, 1) != null;
990
+ };
991
+
992
+
993
+
994
+
995
+
996
+ if (jspb.Message.GENERATE_TO_OBJECT) {
997
+ /**
998
+ * Creates an object representation of this proto.
999
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1000
+ * Optional fields that are not set will be set to undefined.
1001
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1002
+ * For the list of reserved names please see:
1003
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1004
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1005
+ * JSPB instance for transitional soy proto support:
1006
+ * http://goto/soy-param-migration
1007
+ * @return {!Object}
1008
+ */
1009
+ proto.event_store.client.users.CreateResp.prototype.toObject = function(opt_includeInstance) {
1010
+ return proto.event_store.client.users.CreateResp.toObject(opt_includeInstance, this);
1011
+ };
1012
+
1013
+
1014
+ /**
1015
+ * Static version of the {@see toObject} method.
1016
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1017
+ * the JSPB instance for transitional soy proto support:
1018
+ * http://goto/soy-param-migration
1019
+ * @param {!proto.event_store.client.users.CreateResp} msg The msg instance to transform.
1020
+ * @return {!Object}
1021
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1022
+ */
1023
+ proto.event_store.client.users.CreateResp.toObject = function(includeInstance, msg) {
1024
+ var f, obj = {
1025
+
1026
+ };
1027
+
1028
+ if (includeInstance) {
1029
+ obj.$jspbMessageInstance = msg;
1030
+ }
1031
+ return obj;
1032
+ };
1033
+ }
1034
+
1035
+
1036
+ /**
1037
+ * Deserializes binary data (in protobuf wire format).
1038
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1039
+ * @return {!proto.event_store.client.users.CreateResp}
1040
+ */
1041
+ proto.event_store.client.users.CreateResp.deserializeBinary = function(bytes) {
1042
+ var reader = new jspb.BinaryReader(bytes);
1043
+ var msg = new proto.event_store.client.users.CreateResp;
1044
+ return proto.event_store.client.users.CreateResp.deserializeBinaryFromReader(msg, reader);
1045
+ };
1046
+
1047
+
1048
+ /**
1049
+ * Deserializes binary data (in protobuf wire format) from the
1050
+ * given reader into the given message object.
1051
+ * @param {!proto.event_store.client.users.CreateResp} msg The message object to deserialize into.
1052
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1053
+ * @return {!proto.event_store.client.users.CreateResp}
1054
+ */
1055
+ proto.event_store.client.users.CreateResp.deserializeBinaryFromReader = function(msg, reader) {
1056
+ while (reader.nextField()) {
1057
+ if (reader.isEndGroup()) {
1058
+ break;
1059
+ }
1060
+ var field = reader.getFieldNumber();
1061
+ switch (field) {
1062
+ default:
1063
+ reader.skipField();
1064
+ break;
1065
+ }
1066
+ }
1067
+ return msg;
1068
+ };
1069
+
1070
+
1071
+ /**
1072
+ * Serializes the message to binary data (in protobuf wire format).
1073
+ * @return {!Uint8Array}
1074
+ */
1075
+ proto.event_store.client.users.CreateResp.prototype.serializeBinary = function() {
1076
+ var writer = new jspb.BinaryWriter();
1077
+ proto.event_store.client.users.CreateResp.serializeBinaryToWriter(this, writer);
1078
+ return writer.getResultBuffer();
1079
+ };
1080
+
1081
+
1082
+ /**
1083
+ * Serializes the given message to binary data (in protobuf wire
1084
+ * format), writing to the given BinaryWriter.
1085
+ * @param {!proto.event_store.client.users.CreateResp} message
1086
+ * @param {!jspb.BinaryWriter} writer
1087
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1088
+ */
1089
+ proto.event_store.client.users.CreateResp.serializeBinaryToWriter = function(message, writer) {
1090
+ var f = undefined;
1091
+ };
1092
+
1093
+
1094
+
1095
+
1096
+
1097
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1098
+ /**
1099
+ * Creates an object representation of this proto.
1100
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1101
+ * Optional fields that are not set will be set to undefined.
1102
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1103
+ * For the list of reserved names please see:
1104
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1105
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1106
+ * JSPB instance for transitional soy proto support:
1107
+ * http://goto/soy-param-migration
1108
+ * @return {!Object}
1109
+ */
1110
+ proto.event_store.client.users.UpdateReq.prototype.toObject = function(opt_includeInstance) {
1111
+ return proto.event_store.client.users.UpdateReq.toObject(opt_includeInstance, this);
1112
+ };
1113
+
1114
+
1115
+ /**
1116
+ * Static version of the {@see toObject} method.
1117
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1118
+ * the JSPB instance for transitional soy proto support:
1119
+ * http://goto/soy-param-migration
1120
+ * @param {!proto.event_store.client.users.UpdateReq} msg The msg instance to transform.
1121
+ * @return {!Object}
1122
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1123
+ */
1124
+ proto.event_store.client.users.UpdateReq.toObject = function(includeInstance, msg) {
1125
+ var f, obj = {
1126
+ options: (f = msg.getOptions()) && proto.event_store.client.users.UpdateReq.Options.toObject(includeInstance, f)
1127
+ };
1128
+
1129
+ if (includeInstance) {
1130
+ obj.$jspbMessageInstance = msg;
1131
+ }
1132
+ return obj;
1133
+ };
1134
+ }
1135
+
1136
+
1137
+ /**
1138
+ * Deserializes binary data (in protobuf wire format).
1139
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1140
+ * @return {!proto.event_store.client.users.UpdateReq}
1141
+ */
1142
+ proto.event_store.client.users.UpdateReq.deserializeBinary = function(bytes) {
1143
+ var reader = new jspb.BinaryReader(bytes);
1144
+ var msg = new proto.event_store.client.users.UpdateReq;
1145
+ return proto.event_store.client.users.UpdateReq.deserializeBinaryFromReader(msg, reader);
1146
+ };
1147
+
1148
+
1149
+ /**
1150
+ * Deserializes binary data (in protobuf wire format) from the
1151
+ * given reader into the given message object.
1152
+ * @param {!proto.event_store.client.users.UpdateReq} msg The message object to deserialize into.
1153
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1154
+ * @return {!proto.event_store.client.users.UpdateReq}
1155
+ */
1156
+ proto.event_store.client.users.UpdateReq.deserializeBinaryFromReader = function(msg, reader) {
1157
+ while (reader.nextField()) {
1158
+ if (reader.isEndGroup()) {
1159
+ break;
1160
+ }
1161
+ var field = reader.getFieldNumber();
1162
+ switch (field) {
1163
+ case 1:
1164
+ var value = new proto.event_store.client.users.UpdateReq.Options;
1165
+ reader.readMessage(value,proto.event_store.client.users.UpdateReq.Options.deserializeBinaryFromReader);
1166
+ msg.setOptions(value);
1167
+ break;
1168
+ default:
1169
+ reader.skipField();
1170
+ break;
1171
+ }
1172
+ }
1173
+ return msg;
1174
+ };
1175
+
1176
+
1177
+ /**
1178
+ * Serializes the message to binary data (in protobuf wire format).
1179
+ * @return {!Uint8Array}
1180
+ */
1181
+ proto.event_store.client.users.UpdateReq.prototype.serializeBinary = function() {
1182
+ var writer = new jspb.BinaryWriter();
1183
+ proto.event_store.client.users.UpdateReq.serializeBinaryToWriter(this, writer);
1184
+ return writer.getResultBuffer();
1185
+ };
1186
+
1187
+
1188
+ /**
1189
+ * Serializes the given message to binary data (in protobuf wire
1190
+ * format), writing to the given BinaryWriter.
1191
+ * @param {!proto.event_store.client.users.UpdateReq} message
1192
+ * @param {!jspb.BinaryWriter} writer
1193
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1194
+ */
1195
+ proto.event_store.client.users.UpdateReq.serializeBinaryToWriter = function(message, writer) {
1196
+ var f = undefined;
1197
+ f = message.getOptions();
1198
+ if (f != null) {
1199
+ writer.writeMessage(
1200
+ 1,
1201
+ f,
1202
+ proto.event_store.client.users.UpdateReq.Options.serializeBinaryToWriter
1203
+ );
1204
+ }
1205
+ };
1206
+
1207
+
1208
+
1209
+ /**
1210
+ * List of repeated fields within this message type.
1211
+ * @private {!Array<number>}
1212
+ * @const
1213
+ */
1214
+ proto.event_store.client.users.UpdateReq.Options.repeatedFields_ = [4];
1215
+
1216
+
1217
+
1218
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1219
+ /**
1220
+ * Creates an object representation of this proto.
1221
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1222
+ * Optional fields that are not set will be set to undefined.
1223
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1224
+ * For the list of reserved names please see:
1225
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1226
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1227
+ * JSPB instance for transitional soy proto support:
1228
+ * http://goto/soy-param-migration
1229
+ * @return {!Object}
1230
+ */
1231
+ proto.event_store.client.users.UpdateReq.Options.prototype.toObject = function(opt_includeInstance) {
1232
+ return proto.event_store.client.users.UpdateReq.Options.toObject(opt_includeInstance, this);
1233
+ };
1234
+
1235
+
1236
+ /**
1237
+ * Static version of the {@see toObject} method.
1238
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1239
+ * the JSPB instance for transitional soy proto support:
1240
+ * http://goto/soy-param-migration
1241
+ * @param {!proto.event_store.client.users.UpdateReq.Options} msg The msg instance to transform.
1242
+ * @return {!Object}
1243
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1244
+ */
1245
+ proto.event_store.client.users.UpdateReq.Options.toObject = function(includeInstance, msg) {
1246
+ var f, obj = {
1247
+ loginName: jspb.Message.getFieldWithDefault(msg, 1, ""),
1248
+ password: jspb.Message.getFieldWithDefault(msg, 2, ""),
1249
+ fullName: jspb.Message.getFieldWithDefault(msg, 3, ""),
1250
+ groupsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
1251
+ };
1252
+
1253
+ if (includeInstance) {
1254
+ obj.$jspbMessageInstance = msg;
1255
+ }
1256
+ return obj;
1257
+ };
1258
+ }
1259
+
1260
+
1261
+ /**
1262
+ * Deserializes binary data (in protobuf wire format).
1263
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1264
+ * @return {!proto.event_store.client.users.UpdateReq.Options}
1265
+ */
1266
+ proto.event_store.client.users.UpdateReq.Options.deserializeBinary = function(bytes) {
1267
+ var reader = new jspb.BinaryReader(bytes);
1268
+ var msg = new proto.event_store.client.users.UpdateReq.Options;
1269
+ return proto.event_store.client.users.UpdateReq.Options.deserializeBinaryFromReader(msg, reader);
1270
+ };
1271
+
1272
+
1273
+ /**
1274
+ * Deserializes binary data (in protobuf wire format) from the
1275
+ * given reader into the given message object.
1276
+ * @param {!proto.event_store.client.users.UpdateReq.Options} msg The message object to deserialize into.
1277
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1278
+ * @return {!proto.event_store.client.users.UpdateReq.Options}
1279
+ */
1280
+ proto.event_store.client.users.UpdateReq.Options.deserializeBinaryFromReader = function(msg, reader) {
1281
+ while (reader.nextField()) {
1282
+ if (reader.isEndGroup()) {
1283
+ break;
1284
+ }
1285
+ var field = reader.getFieldNumber();
1286
+ switch (field) {
1287
+ case 1:
1288
+ var value = /** @type {string} */ (reader.readString());
1289
+ msg.setLoginName(value);
1290
+ break;
1291
+ case 2:
1292
+ var value = /** @type {string} */ (reader.readString());
1293
+ msg.setPassword(value);
1294
+ break;
1295
+ case 3:
1296
+ var value = /** @type {string} */ (reader.readString());
1297
+ msg.setFullName(value);
1298
+ break;
1299
+ case 4:
1300
+ var value = /** @type {string} */ (reader.readString());
1301
+ msg.addGroups(value);
1302
+ break;
1303
+ default:
1304
+ reader.skipField();
1305
+ break;
1306
+ }
1307
+ }
1308
+ return msg;
1309
+ };
1310
+
1311
+
1312
+ /**
1313
+ * Serializes the message to binary data (in protobuf wire format).
1314
+ * @return {!Uint8Array}
1315
+ */
1316
+ proto.event_store.client.users.UpdateReq.Options.prototype.serializeBinary = function() {
1317
+ var writer = new jspb.BinaryWriter();
1318
+ proto.event_store.client.users.UpdateReq.Options.serializeBinaryToWriter(this, writer);
1319
+ return writer.getResultBuffer();
1320
+ };
1321
+
1322
+
1323
+ /**
1324
+ * Serializes the given message to binary data (in protobuf wire
1325
+ * format), writing to the given BinaryWriter.
1326
+ * @param {!proto.event_store.client.users.UpdateReq.Options} message
1327
+ * @param {!jspb.BinaryWriter} writer
1328
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1329
+ */
1330
+ proto.event_store.client.users.UpdateReq.Options.serializeBinaryToWriter = function(message, writer) {
1331
+ var f = undefined;
1332
+ f = message.getLoginName();
1333
+ if (f.length > 0) {
1334
+ writer.writeString(
1335
+ 1,
1336
+ f
1337
+ );
1338
+ }
1339
+ f = message.getPassword();
1340
+ if (f.length > 0) {
1341
+ writer.writeString(
1342
+ 2,
1343
+ f
1344
+ );
1345
+ }
1346
+ f = message.getFullName();
1347
+ if (f.length > 0) {
1348
+ writer.writeString(
1349
+ 3,
1350
+ f
1351
+ );
1352
+ }
1353
+ f = message.getGroupsList();
1354
+ if (f.length > 0) {
1355
+ writer.writeRepeatedString(
1356
+ 4,
1357
+ f
1358
+ );
1359
+ }
1360
+ };
1361
+
1362
+
1363
+ /**
1364
+ * optional string login_name = 1;
1365
+ * @return {string}
1366
+ */
1367
+ proto.event_store.client.users.UpdateReq.Options.prototype.getLoginName = function() {
1368
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1369
+ };
1370
+
1371
+
1372
+ /**
1373
+ * @param {string} value
1374
+ * @return {!proto.event_store.client.users.UpdateReq.Options} returns this
1375
+ */
1376
+ proto.event_store.client.users.UpdateReq.Options.prototype.setLoginName = function(value) {
1377
+ return jspb.Message.setProto3StringField(this, 1, value);
1378
+ };
1379
+
1380
+
1381
+ /**
1382
+ * optional string password = 2;
1383
+ * @return {string}
1384
+ */
1385
+ proto.event_store.client.users.UpdateReq.Options.prototype.getPassword = function() {
1386
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1387
+ };
1388
+
1389
+
1390
+ /**
1391
+ * @param {string} value
1392
+ * @return {!proto.event_store.client.users.UpdateReq.Options} returns this
1393
+ */
1394
+ proto.event_store.client.users.UpdateReq.Options.prototype.setPassword = function(value) {
1395
+ return jspb.Message.setProto3StringField(this, 2, value);
1396
+ };
1397
+
1398
+
1399
+ /**
1400
+ * optional string full_name = 3;
1401
+ * @return {string}
1402
+ */
1403
+ proto.event_store.client.users.UpdateReq.Options.prototype.getFullName = function() {
1404
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1405
+ };
1406
+
1407
+
1408
+ /**
1409
+ * @param {string} value
1410
+ * @return {!proto.event_store.client.users.UpdateReq.Options} returns this
1411
+ */
1412
+ proto.event_store.client.users.UpdateReq.Options.prototype.setFullName = function(value) {
1413
+ return jspb.Message.setProto3StringField(this, 3, value);
1414
+ };
1415
+
1416
+
1417
+ /**
1418
+ * repeated string groups = 4;
1419
+ * @return {!Array<string>}
1420
+ */
1421
+ proto.event_store.client.users.UpdateReq.Options.prototype.getGroupsList = function() {
1422
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
1423
+ };
1424
+
1425
+
1426
+ /**
1427
+ * @param {!Array<string>} value
1428
+ * @return {!proto.event_store.client.users.UpdateReq.Options} returns this
1429
+ */
1430
+ proto.event_store.client.users.UpdateReq.Options.prototype.setGroupsList = function(value) {
1431
+ return jspb.Message.setField(this, 4, value || []);
1432
+ };
1433
+
1434
+
1435
+ /**
1436
+ * @param {string} value
1437
+ * @param {number=} opt_index
1438
+ * @return {!proto.event_store.client.users.UpdateReq.Options} returns this
1439
+ */
1440
+ proto.event_store.client.users.UpdateReq.Options.prototype.addGroups = function(value, opt_index) {
1441
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
1442
+ };
1443
+
1444
+
1445
+ /**
1446
+ * Clears the list making it empty but non-null.
1447
+ * @return {!proto.event_store.client.users.UpdateReq.Options} returns this
1448
+ */
1449
+ proto.event_store.client.users.UpdateReq.Options.prototype.clearGroupsList = function() {
1450
+ return this.setGroupsList([]);
1451
+ };
1452
+
1453
+
1454
+ /**
1455
+ * optional Options options = 1;
1456
+ * @return {?proto.event_store.client.users.UpdateReq.Options}
1457
+ */
1458
+ proto.event_store.client.users.UpdateReq.prototype.getOptions = function() {
1459
+ return /** @type{?proto.event_store.client.users.UpdateReq.Options} */ (
1460
+ jspb.Message.getWrapperField(this, proto.event_store.client.users.UpdateReq.Options, 1));
1461
+ };
1462
+
1463
+
1464
+ /**
1465
+ * @param {?proto.event_store.client.users.UpdateReq.Options|undefined} value
1466
+ * @return {!proto.event_store.client.users.UpdateReq} returns this
1467
+ */
1468
+ proto.event_store.client.users.UpdateReq.prototype.setOptions = function(value) {
1469
+ return jspb.Message.setWrapperField(this, 1, value);
1470
+ };
1471
+
1472
+
1473
+ /**
1474
+ * Clears the message field making it undefined.
1475
+ * @return {!proto.event_store.client.users.UpdateReq} returns this
1476
+ */
1477
+ proto.event_store.client.users.UpdateReq.prototype.clearOptions = function() {
1478
+ return this.setOptions(undefined);
1479
+ };
1480
+
1481
+
1482
+ /**
1483
+ * Returns whether this field is set.
1484
+ * @return {boolean}
1485
+ */
1486
+ proto.event_store.client.users.UpdateReq.prototype.hasOptions = function() {
1487
+ return jspb.Message.getField(this, 1) != null;
1488
+ };
1489
+
1490
+
1491
+
1492
+
1493
+
1494
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1495
+ /**
1496
+ * Creates an object representation of this proto.
1497
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1498
+ * Optional fields that are not set will be set to undefined.
1499
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1500
+ * For the list of reserved names please see:
1501
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1502
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1503
+ * JSPB instance for transitional soy proto support:
1504
+ * http://goto/soy-param-migration
1505
+ * @return {!Object}
1506
+ */
1507
+ proto.event_store.client.users.UpdateResp.prototype.toObject = function(opt_includeInstance) {
1508
+ return proto.event_store.client.users.UpdateResp.toObject(opt_includeInstance, this);
1509
+ };
1510
+
1511
+
1512
+ /**
1513
+ * Static version of the {@see toObject} method.
1514
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1515
+ * the JSPB instance for transitional soy proto support:
1516
+ * http://goto/soy-param-migration
1517
+ * @param {!proto.event_store.client.users.UpdateResp} msg The msg instance to transform.
1518
+ * @return {!Object}
1519
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1520
+ */
1521
+ proto.event_store.client.users.UpdateResp.toObject = function(includeInstance, msg) {
1522
+ var f, obj = {
1523
+
1524
+ };
1525
+
1526
+ if (includeInstance) {
1527
+ obj.$jspbMessageInstance = msg;
1528
+ }
1529
+ return obj;
1530
+ };
1531
+ }
1532
+
1533
+
1534
+ /**
1535
+ * Deserializes binary data (in protobuf wire format).
1536
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1537
+ * @return {!proto.event_store.client.users.UpdateResp}
1538
+ */
1539
+ proto.event_store.client.users.UpdateResp.deserializeBinary = function(bytes) {
1540
+ var reader = new jspb.BinaryReader(bytes);
1541
+ var msg = new proto.event_store.client.users.UpdateResp;
1542
+ return proto.event_store.client.users.UpdateResp.deserializeBinaryFromReader(msg, reader);
1543
+ };
1544
+
1545
+
1546
+ /**
1547
+ * Deserializes binary data (in protobuf wire format) from the
1548
+ * given reader into the given message object.
1549
+ * @param {!proto.event_store.client.users.UpdateResp} msg The message object to deserialize into.
1550
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1551
+ * @return {!proto.event_store.client.users.UpdateResp}
1552
+ */
1553
+ proto.event_store.client.users.UpdateResp.deserializeBinaryFromReader = function(msg, reader) {
1554
+ while (reader.nextField()) {
1555
+ if (reader.isEndGroup()) {
1556
+ break;
1557
+ }
1558
+ var field = reader.getFieldNumber();
1559
+ switch (field) {
1560
+ default:
1561
+ reader.skipField();
1562
+ break;
1563
+ }
1564
+ }
1565
+ return msg;
1566
+ };
1567
+
1568
+
1569
+ /**
1570
+ * Serializes the message to binary data (in protobuf wire format).
1571
+ * @return {!Uint8Array}
1572
+ */
1573
+ proto.event_store.client.users.UpdateResp.prototype.serializeBinary = function() {
1574
+ var writer = new jspb.BinaryWriter();
1575
+ proto.event_store.client.users.UpdateResp.serializeBinaryToWriter(this, writer);
1576
+ return writer.getResultBuffer();
1577
+ };
1578
+
1579
+
1580
+ /**
1581
+ * Serializes the given message to binary data (in protobuf wire
1582
+ * format), writing to the given BinaryWriter.
1583
+ * @param {!proto.event_store.client.users.UpdateResp} message
1584
+ * @param {!jspb.BinaryWriter} writer
1585
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1586
+ */
1587
+ proto.event_store.client.users.UpdateResp.serializeBinaryToWriter = function(message, writer) {
1588
+ var f = undefined;
1589
+ };
1590
+
1591
+
1592
+
1593
+
1594
+
1595
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1596
+ /**
1597
+ * Creates an object representation of this proto.
1598
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1599
+ * Optional fields that are not set will be set to undefined.
1600
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1601
+ * For the list of reserved names please see:
1602
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1603
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1604
+ * JSPB instance for transitional soy proto support:
1605
+ * http://goto/soy-param-migration
1606
+ * @return {!Object}
1607
+ */
1608
+ proto.event_store.client.users.DeleteReq.prototype.toObject = function(opt_includeInstance) {
1609
+ return proto.event_store.client.users.DeleteReq.toObject(opt_includeInstance, this);
1610
+ };
1611
+
1612
+
1613
+ /**
1614
+ * Static version of the {@see toObject} method.
1615
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1616
+ * the JSPB instance for transitional soy proto support:
1617
+ * http://goto/soy-param-migration
1618
+ * @param {!proto.event_store.client.users.DeleteReq} msg The msg instance to transform.
1619
+ * @return {!Object}
1620
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1621
+ */
1622
+ proto.event_store.client.users.DeleteReq.toObject = function(includeInstance, msg) {
1623
+ var f, obj = {
1624
+ options: (f = msg.getOptions()) && proto.event_store.client.users.DeleteReq.Options.toObject(includeInstance, f)
1625
+ };
1626
+
1627
+ if (includeInstance) {
1628
+ obj.$jspbMessageInstance = msg;
1629
+ }
1630
+ return obj;
1631
+ };
1632
+ }
1633
+
1634
+
1635
+ /**
1636
+ * Deserializes binary data (in protobuf wire format).
1637
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1638
+ * @return {!proto.event_store.client.users.DeleteReq}
1639
+ */
1640
+ proto.event_store.client.users.DeleteReq.deserializeBinary = function(bytes) {
1641
+ var reader = new jspb.BinaryReader(bytes);
1642
+ var msg = new proto.event_store.client.users.DeleteReq;
1643
+ return proto.event_store.client.users.DeleteReq.deserializeBinaryFromReader(msg, reader);
1644
+ };
1645
+
1646
+
1647
+ /**
1648
+ * Deserializes binary data (in protobuf wire format) from the
1649
+ * given reader into the given message object.
1650
+ * @param {!proto.event_store.client.users.DeleteReq} msg The message object to deserialize into.
1651
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1652
+ * @return {!proto.event_store.client.users.DeleteReq}
1653
+ */
1654
+ proto.event_store.client.users.DeleteReq.deserializeBinaryFromReader = function(msg, reader) {
1655
+ while (reader.nextField()) {
1656
+ if (reader.isEndGroup()) {
1657
+ break;
1658
+ }
1659
+ var field = reader.getFieldNumber();
1660
+ switch (field) {
1661
+ case 1:
1662
+ var value = new proto.event_store.client.users.DeleteReq.Options;
1663
+ reader.readMessage(value,proto.event_store.client.users.DeleteReq.Options.deserializeBinaryFromReader);
1664
+ msg.setOptions(value);
1665
+ break;
1666
+ default:
1667
+ reader.skipField();
1668
+ break;
1669
+ }
1670
+ }
1671
+ return msg;
1672
+ };
1673
+
1674
+
1675
+ /**
1676
+ * Serializes the message to binary data (in protobuf wire format).
1677
+ * @return {!Uint8Array}
1678
+ */
1679
+ proto.event_store.client.users.DeleteReq.prototype.serializeBinary = function() {
1680
+ var writer = new jspb.BinaryWriter();
1681
+ proto.event_store.client.users.DeleteReq.serializeBinaryToWriter(this, writer);
1682
+ return writer.getResultBuffer();
1683
+ };
1684
+
1685
+
1686
+ /**
1687
+ * Serializes the given message to binary data (in protobuf wire
1688
+ * format), writing to the given BinaryWriter.
1689
+ * @param {!proto.event_store.client.users.DeleteReq} message
1690
+ * @param {!jspb.BinaryWriter} writer
1691
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1692
+ */
1693
+ proto.event_store.client.users.DeleteReq.serializeBinaryToWriter = function(message, writer) {
1694
+ var f = undefined;
1695
+ f = message.getOptions();
1696
+ if (f != null) {
1697
+ writer.writeMessage(
1698
+ 1,
1699
+ f,
1700
+ proto.event_store.client.users.DeleteReq.Options.serializeBinaryToWriter
1701
+ );
1702
+ }
1703
+ };
1704
+
1705
+
1706
+
1707
+
1708
+
1709
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1710
+ /**
1711
+ * Creates an object representation of this proto.
1712
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1713
+ * Optional fields that are not set will be set to undefined.
1714
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1715
+ * For the list of reserved names please see:
1716
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1717
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1718
+ * JSPB instance for transitional soy proto support:
1719
+ * http://goto/soy-param-migration
1720
+ * @return {!Object}
1721
+ */
1722
+ proto.event_store.client.users.DeleteReq.Options.prototype.toObject = function(opt_includeInstance) {
1723
+ return proto.event_store.client.users.DeleteReq.Options.toObject(opt_includeInstance, this);
1724
+ };
1725
+
1726
+
1727
+ /**
1728
+ * Static version of the {@see toObject} method.
1729
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1730
+ * the JSPB instance for transitional soy proto support:
1731
+ * http://goto/soy-param-migration
1732
+ * @param {!proto.event_store.client.users.DeleteReq.Options} msg The msg instance to transform.
1733
+ * @return {!Object}
1734
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1735
+ */
1736
+ proto.event_store.client.users.DeleteReq.Options.toObject = function(includeInstance, msg) {
1737
+ var f, obj = {
1738
+ loginName: jspb.Message.getFieldWithDefault(msg, 1, "")
1739
+ };
1740
+
1741
+ if (includeInstance) {
1742
+ obj.$jspbMessageInstance = msg;
1743
+ }
1744
+ return obj;
1745
+ };
1746
+ }
1747
+
1748
+
1749
+ /**
1750
+ * Deserializes binary data (in protobuf wire format).
1751
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1752
+ * @return {!proto.event_store.client.users.DeleteReq.Options}
1753
+ */
1754
+ proto.event_store.client.users.DeleteReq.Options.deserializeBinary = function(bytes) {
1755
+ var reader = new jspb.BinaryReader(bytes);
1756
+ var msg = new proto.event_store.client.users.DeleteReq.Options;
1757
+ return proto.event_store.client.users.DeleteReq.Options.deserializeBinaryFromReader(msg, reader);
1758
+ };
1759
+
1760
+
1761
+ /**
1762
+ * Deserializes binary data (in protobuf wire format) from the
1763
+ * given reader into the given message object.
1764
+ * @param {!proto.event_store.client.users.DeleteReq.Options} msg The message object to deserialize into.
1765
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1766
+ * @return {!proto.event_store.client.users.DeleteReq.Options}
1767
+ */
1768
+ proto.event_store.client.users.DeleteReq.Options.deserializeBinaryFromReader = function(msg, reader) {
1769
+ while (reader.nextField()) {
1770
+ if (reader.isEndGroup()) {
1771
+ break;
1772
+ }
1773
+ var field = reader.getFieldNumber();
1774
+ switch (field) {
1775
+ case 1:
1776
+ var value = /** @type {string} */ (reader.readString());
1777
+ msg.setLoginName(value);
1778
+ break;
1779
+ default:
1780
+ reader.skipField();
1781
+ break;
1782
+ }
1783
+ }
1784
+ return msg;
1785
+ };
1786
+
1787
+
1788
+ /**
1789
+ * Serializes the message to binary data (in protobuf wire format).
1790
+ * @return {!Uint8Array}
1791
+ */
1792
+ proto.event_store.client.users.DeleteReq.Options.prototype.serializeBinary = function() {
1793
+ var writer = new jspb.BinaryWriter();
1794
+ proto.event_store.client.users.DeleteReq.Options.serializeBinaryToWriter(this, writer);
1795
+ return writer.getResultBuffer();
1796
+ };
1797
+
1798
+
1799
+ /**
1800
+ * Serializes the given message to binary data (in protobuf wire
1801
+ * format), writing to the given BinaryWriter.
1802
+ * @param {!proto.event_store.client.users.DeleteReq.Options} message
1803
+ * @param {!jspb.BinaryWriter} writer
1804
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1805
+ */
1806
+ proto.event_store.client.users.DeleteReq.Options.serializeBinaryToWriter = function(message, writer) {
1807
+ var f = undefined;
1808
+ f = message.getLoginName();
1809
+ if (f.length > 0) {
1810
+ writer.writeString(
1811
+ 1,
1812
+ f
1813
+ );
1814
+ }
1815
+ };
1816
+
1817
+
1818
+ /**
1819
+ * optional string login_name = 1;
1820
+ * @return {string}
1821
+ */
1822
+ proto.event_store.client.users.DeleteReq.Options.prototype.getLoginName = function() {
1823
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1824
+ };
1825
+
1826
+
1827
+ /**
1828
+ * @param {string} value
1829
+ * @return {!proto.event_store.client.users.DeleteReq.Options} returns this
1830
+ */
1831
+ proto.event_store.client.users.DeleteReq.Options.prototype.setLoginName = function(value) {
1832
+ return jspb.Message.setProto3StringField(this, 1, value);
1833
+ };
1834
+
1835
+
1836
+ /**
1837
+ * optional Options options = 1;
1838
+ * @return {?proto.event_store.client.users.DeleteReq.Options}
1839
+ */
1840
+ proto.event_store.client.users.DeleteReq.prototype.getOptions = function() {
1841
+ return /** @type{?proto.event_store.client.users.DeleteReq.Options} */ (
1842
+ jspb.Message.getWrapperField(this, proto.event_store.client.users.DeleteReq.Options, 1));
1843
+ };
1844
+
1845
+
1846
+ /**
1847
+ * @param {?proto.event_store.client.users.DeleteReq.Options|undefined} value
1848
+ * @return {!proto.event_store.client.users.DeleteReq} returns this
1849
+ */
1850
+ proto.event_store.client.users.DeleteReq.prototype.setOptions = function(value) {
1851
+ return jspb.Message.setWrapperField(this, 1, value);
1852
+ };
1853
+
1854
+
1855
+ /**
1856
+ * Clears the message field making it undefined.
1857
+ * @return {!proto.event_store.client.users.DeleteReq} returns this
1858
+ */
1859
+ proto.event_store.client.users.DeleteReq.prototype.clearOptions = function() {
1860
+ return this.setOptions(undefined);
1861
+ };
1862
+
1863
+
1864
+ /**
1865
+ * Returns whether this field is set.
1866
+ * @return {boolean}
1867
+ */
1868
+ proto.event_store.client.users.DeleteReq.prototype.hasOptions = function() {
1869
+ return jspb.Message.getField(this, 1) != null;
1870
+ };
1871
+
1872
+
1873
+
1874
+
1875
+
1876
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1877
+ /**
1878
+ * Creates an object representation of this proto.
1879
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1880
+ * Optional fields that are not set will be set to undefined.
1881
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1882
+ * For the list of reserved names please see:
1883
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1884
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1885
+ * JSPB instance for transitional soy proto support:
1886
+ * http://goto/soy-param-migration
1887
+ * @return {!Object}
1888
+ */
1889
+ proto.event_store.client.users.DeleteResp.prototype.toObject = function(opt_includeInstance) {
1890
+ return proto.event_store.client.users.DeleteResp.toObject(opt_includeInstance, this);
1891
+ };
1892
+
1893
+
1894
+ /**
1895
+ * Static version of the {@see toObject} method.
1896
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1897
+ * the JSPB instance for transitional soy proto support:
1898
+ * http://goto/soy-param-migration
1899
+ * @param {!proto.event_store.client.users.DeleteResp} msg The msg instance to transform.
1900
+ * @return {!Object}
1901
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1902
+ */
1903
+ proto.event_store.client.users.DeleteResp.toObject = function(includeInstance, msg) {
1904
+ var f, obj = {
1905
+
1906
+ };
1907
+
1908
+ if (includeInstance) {
1909
+ obj.$jspbMessageInstance = msg;
1910
+ }
1911
+ return obj;
1912
+ };
1913
+ }
1914
+
1915
+
1916
+ /**
1917
+ * Deserializes binary data (in protobuf wire format).
1918
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1919
+ * @return {!proto.event_store.client.users.DeleteResp}
1920
+ */
1921
+ proto.event_store.client.users.DeleteResp.deserializeBinary = function(bytes) {
1922
+ var reader = new jspb.BinaryReader(bytes);
1923
+ var msg = new proto.event_store.client.users.DeleteResp;
1924
+ return proto.event_store.client.users.DeleteResp.deserializeBinaryFromReader(msg, reader);
1925
+ };
1926
+
1927
+
1928
+ /**
1929
+ * Deserializes binary data (in protobuf wire format) from the
1930
+ * given reader into the given message object.
1931
+ * @param {!proto.event_store.client.users.DeleteResp} msg The message object to deserialize into.
1932
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1933
+ * @return {!proto.event_store.client.users.DeleteResp}
1934
+ */
1935
+ proto.event_store.client.users.DeleteResp.deserializeBinaryFromReader = function(msg, reader) {
1936
+ while (reader.nextField()) {
1937
+ if (reader.isEndGroup()) {
1938
+ break;
1939
+ }
1940
+ var field = reader.getFieldNumber();
1941
+ switch (field) {
1942
+ default:
1943
+ reader.skipField();
1944
+ break;
1945
+ }
1946
+ }
1947
+ return msg;
1948
+ };
1949
+
1950
+
1951
+ /**
1952
+ * Serializes the message to binary data (in protobuf wire format).
1953
+ * @return {!Uint8Array}
1954
+ */
1955
+ proto.event_store.client.users.DeleteResp.prototype.serializeBinary = function() {
1956
+ var writer = new jspb.BinaryWriter();
1957
+ proto.event_store.client.users.DeleteResp.serializeBinaryToWriter(this, writer);
1958
+ return writer.getResultBuffer();
1959
+ };
1960
+
1961
+
1962
+ /**
1963
+ * Serializes the given message to binary data (in protobuf wire
1964
+ * format), writing to the given BinaryWriter.
1965
+ * @param {!proto.event_store.client.users.DeleteResp} message
1966
+ * @param {!jspb.BinaryWriter} writer
1967
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1968
+ */
1969
+ proto.event_store.client.users.DeleteResp.serializeBinaryToWriter = function(message, writer) {
1970
+ var f = undefined;
1971
+ };
1972
+
1973
+
1974
+
1975
+
1976
+
1977
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1978
+ /**
1979
+ * Creates an object representation of this proto.
1980
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1981
+ * Optional fields that are not set will be set to undefined.
1982
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1983
+ * For the list of reserved names please see:
1984
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1985
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1986
+ * JSPB instance for transitional soy proto support:
1987
+ * http://goto/soy-param-migration
1988
+ * @return {!Object}
1989
+ */
1990
+ proto.event_store.client.users.EnableReq.prototype.toObject = function(opt_includeInstance) {
1991
+ return proto.event_store.client.users.EnableReq.toObject(opt_includeInstance, this);
1992
+ };
1993
+
1994
+
1995
+ /**
1996
+ * Static version of the {@see toObject} method.
1997
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1998
+ * the JSPB instance for transitional soy proto support:
1999
+ * http://goto/soy-param-migration
2000
+ * @param {!proto.event_store.client.users.EnableReq} msg The msg instance to transform.
2001
+ * @return {!Object}
2002
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2003
+ */
2004
+ proto.event_store.client.users.EnableReq.toObject = function(includeInstance, msg) {
2005
+ var f, obj = {
2006
+ options: (f = msg.getOptions()) && proto.event_store.client.users.EnableReq.Options.toObject(includeInstance, f)
2007
+ };
2008
+
2009
+ if (includeInstance) {
2010
+ obj.$jspbMessageInstance = msg;
2011
+ }
2012
+ return obj;
2013
+ };
2014
+ }
2015
+
2016
+
2017
+ /**
2018
+ * Deserializes binary data (in protobuf wire format).
2019
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2020
+ * @return {!proto.event_store.client.users.EnableReq}
2021
+ */
2022
+ proto.event_store.client.users.EnableReq.deserializeBinary = function(bytes) {
2023
+ var reader = new jspb.BinaryReader(bytes);
2024
+ var msg = new proto.event_store.client.users.EnableReq;
2025
+ return proto.event_store.client.users.EnableReq.deserializeBinaryFromReader(msg, reader);
2026
+ };
2027
+
2028
+
2029
+ /**
2030
+ * Deserializes binary data (in protobuf wire format) from the
2031
+ * given reader into the given message object.
2032
+ * @param {!proto.event_store.client.users.EnableReq} msg The message object to deserialize into.
2033
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2034
+ * @return {!proto.event_store.client.users.EnableReq}
2035
+ */
2036
+ proto.event_store.client.users.EnableReq.deserializeBinaryFromReader = function(msg, reader) {
2037
+ while (reader.nextField()) {
2038
+ if (reader.isEndGroup()) {
2039
+ break;
2040
+ }
2041
+ var field = reader.getFieldNumber();
2042
+ switch (field) {
2043
+ case 1:
2044
+ var value = new proto.event_store.client.users.EnableReq.Options;
2045
+ reader.readMessage(value,proto.event_store.client.users.EnableReq.Options.deserializeBinaryFromReader);
2046
+ msg.setOptions(value);
2047
+ break;
2048
+ default:
2049
+ reader.skipField();
2050
+ break;
2051
+ }
2052
+ }
2053
+ return msg;
2054
+ };
2055
+
2056
+
2057
+ /**
2058
+ * Serializes the message to binary data (in protobuf wire format).
2059
+ * @return {!Uint8Array}
2060
+ */
2061
+ proto.event_store.client.users.EnableReq.prototype.serializeBinary = function() {
2062
+ var writer = new jspb.BinaryWriter();
2063
+ proto.event_store.client.users.EnableReq.serializeBinaryToWriter(this, writer);
2064
+ return writer.getResultBuffer();
2065
+ };
2066
+
2067
+
2068
+ /**
2069
+ * Serializes the given message to binary data (in protobuf wire
2070
+ * format), writing to the given BinaryWriter.
2071
+ * @param {!proto.event_store.client.users.EnableReq} message
2072
+ * @param {!jspb.BinaryWriter} writer
2073
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2074
+ */
2075
+ proto.event_store.client.users.EnableReq.serializeBinaryToWriter = function(message, writer) {
2076
+ var f = undefined;
2077
+ f = message.getOptions();
2078
+ if (f != null) {
2079
+ writer.writeMessage(
2080
+ 1,
2081
+ f,
2082
+ proto.event_store.client.users.EnableReq.Options.serializeBinaryToWriter
2083
+ );
2084
+ }
2085
+ };
2086
+
2087
+
2088
+
2089
+
2090
+
2091
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2092
+ /**
2093
+ * Creates an object representation of this proto.
2094
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2095
+ * Optional fields that are not set will be set to undefined.
2096
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2097
+ * For the list of reserved names please see:
2098
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2099
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2100
+ * JSPB instance for transitional soy proto support:
2101
+ * http://goto/soy-param-migration
2102
+ * @return {!Object}
2103
+ */
2104
+ proto.event_store.client.users.EnableReq.Options.prototype.toObject = function(opt_includeInstance) {
2105
+ return proto.event_store.client.users.EnableReq.Options.toObject(opt_includeInstance, this);
2106
+ };
2107
+
2108
+
2109
+ /**
2110
+ * Static version of the {@see toObject} method.
2111
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2112
+ * the JSPB instance for transitional soy proto support:
2113
+ * http://goto/soy-param-migration
2114
+ * @param {!proto.event_store.client.users.EnableReq.Options} msg The msg instance to transform.
2115
+ * @return {!Object}
2116
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2117
+ */
2118
+ proto.event_store.client.users.EnableReq.Options.toObject = function(includeInstance, msg) {
2119
+ var f, obj = {
2120
+ loginName: jspb.Message.getFieldWithDefault(msg, 1, "")
2121
+ };
2122
+
2123
+ if (includeInstance) {
2124
+ obj.$jspbMessageInstance = msg;
2125
+ }
2126
+ return obj;
2127
+ };
2128
+ }
2129
+
2130
+
2131
+ /**
2132
+ * Deserializes binary data (in protobuf wire format).
2133
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2134
+ * @return {!proto.event_store.client.users.EnableReq.Options}
2135
+ */
2136
+ proto.event_store.client.users.EnableReq.Options.deserializeBinary = function(bytes) {
2137
+ var reader = new jspb.BinaryReader(bytes);
2138
+ var msg = new proto.event_store.client.users.EnableReq.Options;
2139
+ return proto.event_store.client.users.EnableReq.Options.deserializeBinaryFromReader(msg, reader);
2140
+ };
2141
+
2142
+
2143
+ /**
2144
+ * Deserializes binary data (in protobuf wire format) from the
2145
+ * given reader into the given message object.
2146
+ * @param {!proto.event_store.client.users.EnableReq.Options} msg The message object to deserialize into.
2147
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2148
+ * @return {!proto.event_store.client.users.EnableReq.Options}
2149
+ */
2150
+ proto.event_store.client.users.EnableReq.Options.deserializeBinaryFromReader = function(msg, reader) {
2151
+ while (reader.nextField()) {
2152
+ if (reader.isEndGroup()) {
2153
+ break;
2154
+ }
2155
+ var field = reader.getFieldNumber();
2156
+ switch (field) {
2157
+ case 1:
2158
+ var value = /** @type {string} */ (reader.readString());
2159
+ msg.setLoginName(value);
2160
+ break;
2161
+ default:
2162
+ reader.skipField();
2163
+ break;
2164
+ }
2165
+ }
2166
+ return msg;
2167
+ };
2168
+
2169
+
2170
+ /**
2171
+ * Serializes the message to binary data (in protobuf wire format).
2172
+ * @return {!Uint8Array}
2173
+ */
2174
+ proto.event_store.client.users.EnableReq.Options.prototype.serializeBinary = function() {
2175
+ var writer = new jspb.BinaryWriter();
2176
+ proto.event_store.client.users.EnableReq.Options.serializeBinaryToWriter(this, writer);
2177
+ return writer.getResultBuffer();
2178
+ };
2179
+
2180
+
2181
+ /**
2182
+ * Serializes the given message to binary data (in protobuf wire
2183
+ * format), writing to the given BinaryWriter.
2184
+ * @param {!proto.event_store.client.users.EnableReq.Options} message
2185
+ * @param {!jspb.BinaryWriter} writer
2186
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2187
+ */
2188
+ proto.event_store.client.users.EnableReq.Options.serializeBinaryToWriter = function(message, writer) {
2189
+ var f = undefined;
2190
+ f = message.getLoginName();
2191
+ if (f.length > 0) {
2192
+ writer.writeString(
2193
+ 1,
2194
+ f
2195
+ );
2196
+ }
2197
+ };
2198
+
2199
+
2200
+ /**
2201
+ * optional string login_name = 1;
2202
+ * @return {string}
2203
+ */
2204
+ proto.event_store.client.users.EnableReq.Options.prototype.getLoginName = function() {
2205
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2206
+ };
2207
+
2208
+
2209
+ /**
2210
+ * @param {string} value
2211
+ * @return {!proto.event_store.client.users.EnableReq.Options} returns this
2212
+ */
2213
+ proto.event_store.client.users.EnableReq.Options.prototype.setLoginName = function(value) {
2214
+ return jspb.Message.setProto3StringField(this, 1, value);
2215
+ };
2216
+
2217
+
2218
+ /**
2219
+ * optional Options options = 1;
2220
+ * @return {?proto.event_store.client.users.EnableReq.Options}
2221
+ */
2222
+ proto.event_store.client.users.EnableReq.prototype.getOptions = function() {
2223
+ return /** @type{?proto.event_store.client.users.EnableReq.Options} */ (
2224
+ jspb.Message.getWrapperField(this, proto.event_store.client.users.EnableReq.Options, 1));
2225
+ };
2226
+
2227
+
2228
+ /**
2229
+ * @param {?proto.event_store.client.users.EnableReq.Options|undefined} value
2230
+ * @return {!proto.event_store.client.users.EnableReq} returns this
2231
+ */
2232
+ proto.event_store.client.users.EnableReq.prototype.setOptions = function(value) {
2233
+ return jspb.Message.setWrapperField(this, 1, value);
2234
+ };
2235
+
2236
+
2237
+ /**
2238
+ * Clears the message field making it undefined.
2239
+ * @return {!proto.event_store.client.users.EnableReq} returns this
2240
+ */
2241
+ proto.event_store.client.users.EnableReq.prototype.clearOptions = function() {
2242
+ return this.setOptions(undefined);
2243
+ };
2244
+
2245
+
2246
+ /**
2247
+ * Returns whether this field is set.
2248
+ * @return {boolean}
2249
+ */
2250
+ proto.event_store.client.users.EnableReq.prototype.hasOptions = function() {
2251
+ return jspb.Message.getField(this, 1) != null;
2252
+ };
2253
+
2254
+
2255
+
2256
+
2257
+
2258
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2259
+ /**
2260
+ * Creates an object representation of this proto.
2261
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2262
+ * Optional fields that are not set will be set to undefined.
2263
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2264
+ * For the list of reserved names please see:
2265
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2266
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2267
+ * JSPB instance for transitional soy proto support:
2268
+ * http://goto/soy-param-migration
2269
+ * @return {!Object}
2270
+ */
2271
+ proto.event_store.client.users.EnableResp.prototype.toObject = function(opt_includeInstance) {
2272
+ return proto.event_store.client.users.EnableResp.toObject(opt_includeInstance, this);
2273
+ };
2274
+
2275
+
2276
+ /**
2277
+ * Static version of the {@see toObject} method.
2278
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2279
+ * the JSPB instance for transitional soy proto support:
2280
+ * http://goto/soy-param-migration
2281
+ * @param {!proto.event_store.client.users.EnableResp} msg The msg instance to transform.
2282
+ * @return {!Object}
2283
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2284
+ */
2285
+ proto.event_store.client.users.EnableResp.toObject = function(includeInstance, msg) {
2286
+ var f, obj = {
2287
+
2288
+ };
2289
+
2290
+ if (includeInstance) {
2291
+ obj.$jspbMessageInstance = msg;
2292
+ }
2293
+ return obj;
2294
+ };
2295
+ }
2296
+
2297
+
2298
+ /**
2299
+ * Deserializes binary data (in protobuf wire format).
2300
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2301
+ * @return {!proto.event_store.client.users.EnableResp}
2302
+ */
2303
+ proto.event_store.client.users.EnableResp.deserializeBinary = function(bytes) {
2304
+ var reader = new jspb.BinaryReader(bytes);
2305
+ var msg = new proto.event_store.client.users.EnableResp;
2306
+ return proto.event_store.client.users.EnableResp.deserializeBinaryFromReader(msg, reader);
2307
+ };
2308
+
2309
+
2310
+ /**
2311
+ * Deserializes binary data (in protobuf wire format) from the
2312
+ * given reader into the given message object.
2313
+ * @param {!proto.event_store.client.users.EnableResp} msg The message object to deserialize into.
2314
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2315
+ * @return {!proto.event_store.client.users.EnableResp}
2316
+ */
2317
+ proto.event_store.client.users.EnableResp.deserializeBinaryFromReader = function(msg, reader) {
2318
+ while (reader.nextField()) {
2319
+ if (reader.isEndGroup()) {
2320
+ break;
2321
+ }
2322
+ var field = reader.getFieldNumber();
2323
+ switch (field) {
2324
+ default:
2325
+ reader.skipField();
2326
+ break;
2327
+ }
2328
+ }
2329
+ return msg;
2330
+ };
2331
+
2332
+
2333
+ /**
2334
+ * Serializes the message to binary data (in protobuf wire format).
2335
+ * @return {!Uint8Array}
2336
+ */
2337
+ proto.event_store.client.users.EnableResp.prototype.serializeBinary = function() {
2338
+ var writer = new jspb.BinaryWriter();
2339
+ proto.event_store.client.users.EnableResp.serializeBinaryToWriter(this, writer);
2340
+ return writer.getResultBuffer();
2341
+ };
2342
+
2343
+
2344
+ /**
2345
+ * Serializes the given message to binary data (in protobuf wire
2346
+ * format), writing to the given BinaryWriter.
2347
+ * @param {!proto.event_store.client.users.EnableResp} message
2348
+ * @param {!jspb.BinaryWriter} writer
2349
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2350
+ */
2351
+ proto.event_store.client.users.EnableResp.serializeBinaryToWriter = function(message, writer) {
2352
+ var f = undefined;
2353
+ };
2354
+
2355
+
2356
+
2357
+
2358
+
2359
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2360
+ /**
2361
+ * Creates an object representation of this proto.
2362
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2363
+ * Optional fields that are not set will be set to undefined.
2364
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2365
+ * For the list of reserved names please see:
2366
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2367
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2368
+ * JSPB instance for transitional soy proto support:
2369
+ * http://goto/soy-param-migration
2370
+ * @return {!Object}
2371
+ */
2372
+ proto.event_store.client.users.DisableReq.prototype.toObject = function(opt_includeInstance) {
2373
+ return proto.event_store.client.users.DisableReq.toObject(opt_includeInstance, this);
2374
+ };
2375
+
2376
+
2377
+ /**
2378
+ * Static version of the {@see toObject} method.
2379
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2380
+ * the JSPB instance for transitional soy proto support:
2381
+ * http://goto/soy-param-migration
2382
+ * @param {!proto.event_store.client.users.DisableReq} msg The msg instance to transform.
2383
+ * @return {!Object}
2384
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2385
+ */
2386
+ proto.event_store.client.users.DisableReq.toObject = function(includeInstance, msg) {
2387
+ var f, obj = {
2388
+ options: (f = msg.getOptions()) && proto.event_store.client.users.DisableReq.Options.toObject(includeInstance, f)
2389
+ };
2390
+
2391
+ if (includeInstance) {
2392
+ obj.$jspbMessageInstance = msg;
2393
+ }
2394
+ return obj;
2395
+ };
2396
+ }
2397
+
2398
+
2399
+ /**
2400
+ * Deserializes binary data (in protobuf wire format).
2401
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2402
+ * @return {!proto.event_store.client.users.DisableReq}
2403
+ */
2404
+ proto.event_store.client.users.DisableReq.deserializeBinary = function(bytes) {
2405
+ var reader = new jspb.BinaryReader(bytes);
2406
+ var msg = new proto.event_store.client.users.DisableReq;
2407
+ return proto.event_store.client.users.DisableReq.deserializeBinaryFromReader(msg, reader);
2408
+ };
2409
+
2410
+
2411
+ /**
2412
+ * Deserializes binary data (in protobuf wire format) from the
2413
+ * given reader into the given message object.
2414
+ * @param {!proto.event_store.client.users.DisableReq} msg The message object to deserialize into.
2415
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2416
+ * @return {!proto.event_store.client.users.DisableReq}
2417
+ */
2418
+ proto.event_store.client.users.DisableReq.deserializeBinaryFromReader = function(msg, reader) {
2419
+ while (reader.nextField()) {
2420
+ if (reader.isEndGroup()) {
2421
+ break;
2422
+ }
2423
+ var field = reader.getFieldNumber();
2424
+ switch (field) {
2425
+ case 1:
2426
+ var value = new proto.event_store.client.users.DisableReq.Options;
2427
+ reader.readMessage(value,proto.event_store.client.users.DisableReq.Options.deserializeBinaryFromReader);
2428
+ msg.setOptions(value);
2429
+ break;
2430
+ default:
2431
+ reader.skipField();
2432
+ break;
2433
+ }
2434
+ }
2435
+ return msg;
2436
+ };
2437
+
2438
+
2439
+ /**
2440
+ * Serializes the message to binary data (in protobuf wire format).
2441
+ * @return {!Uint8Array}
2442
+ */
2443
+ proto.event_store.client.users.DisableReq.prototype.serializeBinary = function() {
2444
+ var writer = new jspb.BinaryWriter();
2445
+ proto.event_store.client.users.DisableReq.serializeBinaryToWriter(this, writer);
2446
+ return writer.getResultBuffer();
2447
+ };
2448
+
2449
+
2450
+ /**
2451
+ * Serializes the given message to binary data (in protobuf wire
2452
+ * format), writing to the given BinaryWriter.
2453
+ * @param {!proto.event_store.client.users.DisableReq} message
2454
+ * @param {!jspb.BinaryWriter} writer
2455
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2456
+ */
2457
+ proto.event_store.client.users.DisableReq.serializeBinaryToWriter = function(message, writer) {
2458
+ var f = undefined;
2459
+ f = message.getOptions();
2460
+ if (f != null) {
2461
+ writer.writeMessage(
2462
+ 1,
2463
+ f,
2464
+ proto.event_store.client.users.DisableReq.Options.serializeBinaryToWriter
2465
+ );
2466
+ }
2467
+ };
2468
+
2469
+
2470
+
2471
+
2472
+
2473
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2474
+ /**
2475
+ * Creates an object representation of this proto.
2476
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2477
+ * Optional fields that are not set will be set to undefined.
2478
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2479
+ * For the list of reserved names please see:
2480
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2481
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2482
+ * JSPB instance for transitional soy proto support:
2483
+ * http://goto/soy-param-migration
2484
+ * @return {!Object}
2485
+ */
2486
+ proto.event_store.client.users.DisableReq.Options.prototype.toObject = function(opt_includeInstance) {
2487
+ return proto.event_store.client.users.DisableReq.Options.toObject(opt_includeInstance, this);
2488
+ };
2489
+
2490
+
2491
+ /**
2492
+ * Static version of the {@see toObject} method.
2493
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2494
+ * the JSPB instance for transitional soy proto support:
2495
+ * http://goto/soy-param-migration
2496
+ * @param {!proto.event_store.client.users.DisableReq.Options} msg The msg instance to transform.
2497
+ * @return {!Object}
2498
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2499
+ */
2500
+ proto.event_store.client.users.DisableReq.Options.toObject = function(includeInstance, msg) {
2501
+ var f, obj = {
2502
+ loginName: jspb.Message.getFieldWithDefault(msg, 1, "")
2503
+ };
2504
+
2505
+ if (includeInstance) {
2506
+ obj.$jspbMessageInstance = msg;
2507
+ }
2508
+ return obj;
2509
+ };
2510
+ }
2511
+
2512
+
2513
+ /**
2514
+ * Deserializes binary data (in protobuf wire format).
2515
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2516
+ * @return {!proto.event_store.client.users.DisableReq.Options}
2517
+ */
2518
+ proto.event_store.client.users.DisableReq.Options.deserializeBinary = function(bytes) {
2519
+ var reader = new jspb.BinaryReader(bytes);
2520
+ var msg = new proto.event_store.client.users.DisableReq.Options;
2521
+ return proto.event_store.client.users.DisableReq.Options.deserializeBinaryFromReader(msg, reader);
2522
+ };
2523
+
2524
+
2525
+ /**
2526
+ * Deserializes binary data (in protobuf wire format) from the
2527
+ * given reader into the given message object.
2528
+ * @param {!proto.event_store.client.users.DisableReq.Options} msg The message object to deserialize into.
2529
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2530
+ * @return {!proto.event_store.client.users.DisableReq.Options}
2531
+ */
2532
+ proto.event_store.client.users.DisableReq.Options.deserializeBinaryFromReader = function(msg, reader) {
2533
+ while (reader.nextField()) {
2534
+ if (reader.isEndGroup()) {
2535
+ break;
2536
+ }
2537
+ var field = reader.getFieldNumber();
2538
+ switch (field) {
2539
+ case 1:
2540
+ var value = /** @type {string} */ (reader.readString());
2541
+ msg.setLoginName(value);
2542
+ break;
2543
+ default:
2544
+ reader.skipField();
2545
+ break;
2546
+ }
2547
+ }
2548
+ return msg;
2549
+ };
2550
+
2551
+
2552
+ /**
2553
+ * Serializes the message to binary data (in protobuf wire format).
2554
+ * @return {!Uint8Array}
2555
+ */
2556
+ proto.event_store.client.users.DisableReq.Options.prototype.serializeBinary = function() {
2557
+ var writer = new jspb.BinaryWriter();
2558
+ proto.event_store.client.users.DisableReq.Options.serializeBinaryToWriter(this, writer);
2559
+ return writer.getResultBuffer();
2560
+ };
2561
+
2562
+
2563
+ /**
2564
+ * Serializes the given message to binary data (in protobuf wire
2565
+ * format), writing to the given BinaryWriter.
2566
+ * @param {!proto.event_store.client.users.DisableReq.Options} message
2567
+ * @param {!jspb.BinaryWriter} writer
2568
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2569
+ */
2570
+ proto.event_store.client.users.DisableReq.Options.serializeBinaryToWriter = function(message, writer) {
2571
+ var f = undefined;
2572
+ f = message.getLoginName();
2573
+ if (f.length > 0) {
2574
+ writer.writeString(
2575
+ 1,
2576
+ f
2577
+ );
2578
+ }
2579
+ };
2580
+
2581
+
2582
+ /**
2583
+ * optional string login_name = 1;
2584
+ * @return {string}
2585
+ */
2586
+ proto.event_store.client.users.DisableReq.Options.prototype.getLoginName = function() {
2587
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2588
+ };
2589
+
2590
+
2591
+ /**
2592
+ * @param {string} value
2593
+ * @return {!proto.event_store.client.users.DisableReq.Options} returns this
2594
+ */
2595
+ proto.event_store.client.users.DisableReq.Options.prototype.setLoginName = function(value) {
2596
+ return jspb.Message.setProto3StringField(this, 1, value);
2597
+ };
2598
+
2599
+
2600
+ /**
2601
+ * optional Options options = 1;
2602
+ * @return {?proto.event_store.client.users.DisableReq.Options}
2603
+ */
2604
+ proto.event_store.client.users.DisableReq.prototype.getOptions = function() {
2605
+ return /** @type{?proto.event_store.client.users.DisableReq.Options} */ (
2606
+ jspb.Message.getWrapperField(this, proto.event_store.client.users.DisableReq.Options, 1));
2607
+ };
2608
+
2609
+
2610
+ /**
2611
+ * @param {?proto.event_store.client.users.DisableReq.Options|undefined} value
2612
+ * @return {!proto.event_store.client.users.DisableReq} returns this
2613
+ */
2614
+ proto.event_store.client.users.DisableReq.prototype.setOptions = function(value) {
2615
+ return jspb.Message.setWrapperField(this, 1, value);
2616
+ };
2617
+
2618
+
2619
+ /**
2620
+ * Clears the message field making it undefined.
2621
+ * @return {!proto.event_store.client.users.DisableReq} returns this
2622
+ */
2623
+ proto.event_store.client.users.DisableReq.prototype.clearOptions = function() {
2624
+ return this.setOptions(undefined);
2625
+ };
2626
+
2627
+
2628
+ /**
2629
+ * Returns whether this field is set.
2630
+ * @return {boolean}
2631
+ */
2632
+ proto.event_store.client.users.DisableReq.prototype.hasOptions = function() {
2633
+ return jspb.Message.getField(this, 1) != null;
2634
+ };
2635
+
2636
+
2637
+
2638
+
2639
+
2640
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2641
+ /**
2642
+ * Creates an object representation of this proto.
2643
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2644
+ * Optional fields that are not set will be set to undefined.
2645
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2646
+ * For the list of reserved names please see:
2647
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2648
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2649
+ * JSPB instance for transitional soy proto support:
2650
+ * http://goto/soy-param-migration
2651
+ * @return {!Object}
2652
+ */
2653
+ proto.event_store.client.users.DisableResp.prototype.toObject = function(opt_includeInstance) {
2654
+ return proto.event_store.client.users.DisableResp.toObject(opt_includeInstance, this);
2655
+ };
2656
+
2657
+
2658
+ /**
2659
+ * Static version of the {@see toObject} method.
2660
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2661
+ * the JSPB instance for transitional soy proto support:
2662
+ * http://goto/soy-param-migration
2663
+ * @param {!proto.event_store.client.users.DisableResp} msg The msg instance to transform.
2664
+ * @return {!Object}
2665
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2666
+ */
2667
+ proto.event_store.client.users.DisableResp.toObject = function(includeInstance, msg) {
2668
+ var f, obj = {
2669
+
2670
+ };
2671
+
2672
+ if (includeInstance) {
2673
+ obj.$jspbMessageInstance = msg;
2674
+ }
2675
+ return obj;
2676
+ };
2677
+ }
2678
+
2679
+
2680
+ /**
2681
+ * Deserializes binary data (in protobuf wire format).
2682
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2683
+ * @return {!proto.event_store.client.users.DisableResp}
2684
+ */
2685
+ proto.event_store.client.users.DisableResp.deserializeBinary = function(bytes) {
2686
+ var reader = new jspb.BinaryReader(bytes);
2687
+ var msg = new proto.event_store.client.users.DisableResp;
2688
+ return proto.event_store.client.users.DisableResp.deserializeBinaryFromReader(msg, reader);
2689
+ };
2690
+
2691
+
2692
+ /**
2693
+ * Deserializes binary data (in protobuf wire format) from the
2694
+ * given reader into the given message object.
2695
+ * @param {!proto.event_store.client.users.DisableResp} msg The message object to deserialize into.
2696
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2697
+ * @return {!proto.event_store.client.users.DisableResp}
2698
+ */
2699
+ proto.event_store.client.users.DisableResp.deserializeBinaryFromReader = function(msg, reader) {
2700
+ while (reader.nextField()) {
2701
+ if (reader.isEndGroup()) {
2702
+ break;
2703
+ }
2704
+ var field = reader.getFieldNumber();
2705
+ switch (field) {
2706
+ default:
2707
+ reader.skipField();
2708
+ break;
2709
+ }
2710
+ }
2711
+ return msg;
2712
+ };
2713
+
2714
+
2715
+ /**
2716
+ * Serializes the message to binary data (in protobuf wire format).
2717
+ * @return {!Uint8Array}
2718
+ */
2719
+ proto.event_store.client.users.DisableResp.prototype.serializeBinary = function() {
2720
+ var writer = new jspb.BinaryWriter();
2721
+ proto.event_store.client.users.DisableResp.serializeBinaryToWriter(this, writer);
2722
+ return writer.getResultBuffer();
2723
+ };
2724
+
2725
+
2726
+ /**
2727
+ * Serializes the given message to binary data (in protobuf wire
2728
+ * format), writing to the given BinaryWriter.
2729
+ * @param {!proto.event_store.client.users.DisableResp} message
2730
+ * @param {!jspb.BinaryWriter} writer
2731
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2732
+ */
2733
+ proto.event_store.client.users.DisableResp.serializeBinaryToWriter = function(message, writer) {
2734
+ var f = undefined;
2735
+ };
2736
+
2737
+
2738
+
2739
+
2740
+
2741
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2742
+ /**
2743
+ * Creates an object representation of this proto.
2744
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2745
+ * Optional fields that are not set will be set to undefined.
2746
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2747
+ * For the list of reserved names please see:
2748
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2749
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2750
+ * JSPB instance for transitional soy proto support:
2751
+ * http://goto/soy-param-migration
2752
+ * @return {!Object}
2753
+ */
2754
+ proto.event_store.client.users.DetailsReq.prototype.toObject = function(opt_includeInstance) {
2755
+ return proto.event_store.client.users.DetailsReq.toObject(opt_includeInstance, this);
2756
+ };
2757
+
2758
+
2759
+ /**
2760
+ * Static version of the {@see toObject} method.
2761
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2762
+ * the JSPB instance for transitional soy proto support:
2763
+ * http://goto/soy-param-migration
2764
+ * @param {!proto.event_store.client.users.DetailsReq} msg The msg instance to transform.
2765
+ * @return {!Object}
2766
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2767
+ */
2768
+ proto.event_store.client.users.DetailsReq.toObject = function(includeInstance, msg) {
2769
+ var f, obj = {
2770
+ options: (f = msg.getOptions()) && proto.event_store.client.users.DetailsReq.Options.toObject(includeInstance, f)
2771
+ };
2772
+
2773
+ if (includeInstance) {
2774
+ obj.$jspbMessageInstance = msg;
2775
+ }
2776
+ return obj;
2777
+ };
2778
+ }
2779
+
2780
+
2781
+ /**
2782
+ * Deserializes binary data (in protobuf wire format).
2783
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2784
+ * @return {!proto.event_store.client.users.DetailsReq}
2785
+ */
2786
+ proto.event_store.client.users.DetailsReq.deserializeBinary = function(bytes) {
2787
+ var reader = new jspb.BinaryReader(bytes);
2788
+ var msg = new proto.event_store.client.users.DetailsReq;
2789
+ return proto.event_store.client.users.DetailsReq.deserializeBinaryFromReader(msg, reader);
2790
+ };
2791
+
2792
+
2793
+ /**
2794
+ * Deserializes binary data (in protobuf wire format) from the
2795
+ * given reader into the given message object.
2796
+ * @param {!proto.event_store.client.users.DetailsReq} msg The message object to deserialize into.
2797
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2798
+ * @return {!proto.event_store.client.users.DetailsReq}
2799
+ */
2800
+ proto.event_store.client.users.DetailsReq.deserializeBinaryFromReader = function(msg, reader) {
2801
+ while (reader.nextField()) {
2802
+ if (reader.isEndGroup()) {
2803
+ break;
2804
+ }
2805
+ var field = reader.getFieldNumber();
2806
+ switch (field) {
2807
+ case 1:
2808
+ var value = new proto.event_store.client.users.DetailsReq.Options;
2809
+ reader.readMessage(value,proto.event_store.client.users.DetailsReq.Options.deserializeBinaryFromReader);
2810
+ msg.setOptions(value);
2811
+ break;
2812
+ default:
2813
+ reader.skipField();
2814
+ break;
2815
+ }
2816
+ }
2817
+ return msg;
2818
+ };
2819
+
2820
+
2821
+ /**
2822
+ * Serializes the message to binary data (in protobuf wire format).
2823
+ * @return {!Uint8Array}
2824
+ */
2825
+ proto.event_store.client.users.DetailsReq.prototype.serializeBinary = function() {
2826
+ var writer = new jspb.BinaryWriter();
2827
+ proto.event_store.client.users.DetailsReq.serializeBinaryToWriter(this, writer);
2828
+ return writer.getResultBuffer();
2829
+ };
2830
+
2831
+
2832
+ /**
2833
+ * Serializes the given message to binary data (in protobuf wire
2834
+ * format), writing to the given BinaryWriter.
2835
+ * @param {!proto.event_store.client.users.DetailsReq} message
2836
+ * @param {!jspb.BinaryWriter} writer
2837
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2838
+ */
2839
+ proto.event_store.client.users.DetailsReq.serializeBinaryToWriter = function(message, writer) {
2840
+ var f = undefined;
2841
+ f = message.getOptions();
2842
+ if (f != null) {
2843
+ writer.writeMessage(
2844
+ 1,
2845
+ f,
2846
+ proto.event_store.client.users.DetailsReq.Options.serializeBinaryToWriter
2847
+ );
2848
+ }
2849
+ };
2850
+
2851
+
2852
+
2853
+
2854
+
2855
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2856
+ /**
2857
+ * Creates an object representation of this proto.
2858
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2859
+ * Optional fields that are not set will be set to undefined.
2860
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2861
+ * For the list of reserved names please see:
2862
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2863
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2864
+ * JSPB instance for transitional soy proto support:
2865
+ * http://goto/soy-param-migration
2866
+ * @return {!Object}
2867
+ */
2868
+ proto.event_store.client.users.DetailsReq.Options.prototype.toObject = function(opt_includeInstance) {
2869
+ return proto.event_store.client.users.DetailsReq.Options.toObject(opt_includeInstance, this);
2870
+ };
2871
+
2872
+
2873
+ /**
2874
+ * Static version of the {@see toObject} method.
2875
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2876
+ * the JSPB instance for transitional soy proto support:
2877
+ * http://goto/soy-param-migration
2878
+ * @param {!proto.event_store.client.users.DetailsReq.Options} msg The msg instance to transform.
2879
+ * @return {!Object}
2880
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2881
+ */
2882
+ proto.event_store.client.users.DetailsReq.Options.toObject = function(includeInstance, msg) {
2883
+ var f, obj = {
2884
+ loginName: jspb.Message.getFieldWithDefault(msg, 1, "")
2885
+ };
2886
+
2887
+ if (includeInstance) {
2888
+ obj.$jspbMessageInstance = msg;
2889
+ }
2890
+ return obj;
2891
+ };
2892
+ }
2893
+
2894
+
2895
+ /**
2896
+ * Deserializes binary data (in protobuf wire format).
2897
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2898
+ * @return {!proto.event_store.client.users.DetailsReq.Options}
2899
+ */
2900
+ proto.event_store.client.users.DetailsReq.Options.deserializeBinary = function(bytes) {
2901
+ var reader = new jspb.BinaryReader(bytes);
2902
+ var msg = new proto.event_store.client.users.DetailsReq.Options;
2903
+ return proto.event_store.client.users.DetailsReq.Options.deserializeBinaryFromReader(msg, reader);
2904
+ };
2905
+
2906
+
2907
+ /**
2908
+ * Deserializes binary data (in protobuf wire format) from the
2909
+ * given reader into the given message object.
2910
+ * @param {!proto.event_store.client.users.DetailsReq.Options} msg The message object to deserialize into.
2911
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2912
+ * @return {!proto.event_store.client.users.DetailsReq.Options}
2913
+ */
2914
+ proto.event_store.client.users.DetailsReq.Options.deserializeBinaryFromReader = function(msg, reader) {
2915
+ while (reader.nextField()) {
2916
+ if (reader.isEndGroup()) {
2917
+ break;
2918
+ }
2919
+ var field = reader.getFieldNumber();
2920
+ switch (field) {
2921
+ case 1:
2922
+ var value = /** @type {string} */ (reader.readString());
2923
+ msg.setLoginName(value);
2924
+ break;
2925
+ default:
2926
+ reader.skipField();
2927
+ break;
2928
+ }
2929
+ }
2930
+ return msg;
2931
+ };
2932
+
2933
+
2934
+ /**
2935
+ * Serializes the message to binary data (in protobuf wire format).
2936
+ * @return {!Uint8Array}
2937
+ */
2938
+ proto.event_store.client.users.DetailsReq.Options.prototype.serializeBinary = function() {
2939
+ var writer = new jspb.BinaryWriter();
2940
+ proto.event_store.client.users.DetailsReq.Options.serializeBinaryToWriter(this, writer);
2941
+ return writer.getResultBuffer();
2942
+ };
2943
+
2944
+
2945
+ /**
2946
+ * Serializes the given message to binary data (in protobuf wire
2947
+ * format), writing to the given BinaryWriter.
2948
+ * @param {!proto.event_store.client.users.DetailsReq.Options} message
2949
+ * @param {!jspb.BinaryWriter} writer
2950
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2951
+ */
2952
+ proto.event_store.client.users.DetailsReq.Options.serializeBinaryToWriter = function(message, writer) {
2953
+ var f = undefined;
2954
+ f = message.getLoginName();
2955
+ if (f.length > 0) {
2956
+ writer.writeString(
2957
+ 1,
2958
+ f
2959
+ );
2960
+ }
2961
+ };
2962
+
2963
+
2964
+ /**
2965
+ * optional string login_name = 1;
2966
+ * @return {string}
2967
+ */
2968
+ proto.event_store.client.users.DetailsReq.Options.prototype.getLoginName = function() {
2969
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2970
+ };
2971
+
2972
+
2973
+ /**
2974
+ * @param {string} value
2975
+ * @return {!proto.event_store.client.users.DetailsReq.Options} returns this
2976
+ */
2977
+ proto.event_store.client.users.DetailsReq.Options.prototype.setLoginName = function(value) {
2978
+ return jspb.Message.setProto3StringField(this, 1, value);
2979
+ };
2980
+
2981
+
2982
+ /**
2983
+ * optional Options options = 1;
2984
+ * @return {?proto.event_store.client.users.DetailsReq.Options}
2985
+ */
2986
+ proto.event_store.client.users.DetailsReq.prototype.getOptions = function() {
2987
+ return /** @type{?proto.event_store.client.users.DetailsReq.Options} */ (
2988
+ jspb.Message.getWrapperField(this, proto.event_store.client.users.DetailsReq.Options, 1));
2989
+ };
2990
+
2991
+
2992
+ /**
2993
+ * @param {?proto.event_store.client.users.DetailsReq.Options|undefined} value
2994
+ * @return {!proto.event_store.client.users.DetailsReq} returns this
2995
+ */
2996
+ proto.event_store.client.users.DetailsReq.prototype.setOptions = function(value) {
2997
+ return jspb.Message.setWrapperField(this, 1, value);
2998
+ };
2999
+
3000
+
3001
+ /**
3002
+ * Clears the message field making it undefined.
3003
+ * @return {!proto.event_store.client.users.DetailsReq} returns this
3004
+ */
3005
+ proto.event_store.client.users.DetailsReq.prototype.clearOptions = function() {
3006
+ return this.setOptions(undefined);
3007
+ };
3008
+
3009
+
3010
+ /**
3011
+ * Returns whether this field is set.
3012
+ * @return {boolean}
3013
+ */
3014
+ proto.event_store.client.users.DetailsReq.prototype.hasOptions = function() {
3015
+ return jspb.Message.getField(this, 1) != null;
3016
+ };
3017
+
3018
+
3019
+
3020
+
3021
+
3022
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3023
+ /**
3024
+ * Creates an object representation of this proto.
3025
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3026
+ * Optional fields that are not set will be set to undefined.
3027
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3028
+ * For the list of reserved names please see:
3029
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3030
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3031
+ * JSPB instance for transitional soy proto support:
3032
+ * http://goto/soy-param-migration
3033
+ * @return {!Object}
3034
+ */
3035
+ proto.event_store.client.users.DetailsResp.prototype.toObject = function(opt_includeInstance) {
3036
+ return proto.event_store.client.users.DetailsResp.toObject(opt_includeInstance, this);
3037
+ };
3038
+
3039
+
3040
+ /**
3041
+ * Static version of the {@see toObject} method.
3042
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3043
+ * the JSPB instance for transitional soy proto support:
3044
+ * http://goto/soy-param-migration
3045
+ * @param {!proto.event_store.client.users.DetailsResp} msg The msg instance to transform.
3046
+ * @return {!Object}
3047
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3048
+ */
3049
+ proto.event_store.client.users.DetailsResp.toObject = function(includeInstance, msg) {
3050
+ var f, obj = {
3051
+ userDetails: (f = msg.getUserDetails()) && proto.event_store.client.users.DetailsResp.UserDetails.toObject(includeInstance, f)
3052
+ };
3053
+
3054
+ if (includeInstance) {
3055
+ obj.$jspbMessageInstance = msg;
3056
+ }
3057
+ return obj;
3058
+ };
3059
+ }
3060
+
3061
+
3062
+ /**
3063
+ * Deserializes binary data (in protobuf wire format).
3064
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3065
+ * @return {!proto.event_store.client.users.DetailsResp}
3066
+ */
3067
+ proto.event_store.client.users.DetailsResp.deserializeBinary = function(bytes) {
3068
+ var reader = new jspb.BinaryReader(bytes);
3069
+ var msg = new proto.event_store.client.users.DetailsResp;
3070
+ return proto.event_store.client.users.DetailsResp.deserializeBinaryFromReader(msg, reader);
3071
+ };
3072
+
3073
+
3074
+ /**
3075
+ * Deserializes binary data (in protobuf wire format) from the
3076
+ * given reader into the given message object.
3077
+ * @param {!proto.event_store.client.users.DetailsResp} msg The message object to deserialize into.
3078
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3079
+ * @return {!proto.event_store.client.users.DetailsResp}
3080
+ */
3081
+ proto.event_store.client.users.DetailsResp.deserializeBinaryFromReader = function(msg, reader) {
3082
+ while (reader.nextField()) {
3083
+ if (reader.isEndGroup()) {
3084
+ break;
3085
+ }
3086
+ var field = reader.getFieldNumber();
3087
+ switch (field) {
3088
+ case 1:
3089
+ var value = new proto.event_store.client.users.DetailsResp.UserDetails;
3090
+ reader.readMessage(value,proto.event_store.client.users.DetailsResp.UserDetails.deserializeBinaryFromReader);
3091
+ msg.setUserDetails(value);
3092
+ break;
3093
+ default:
3094
+ reader.skipField();
3095
+ break;
3096
+ }
3097
+ }
3098
+ return msg;
3099
+ };
3100
+
3101
+
3102
+ /**
3103
+ * Serializes the message to binary data (in protobuf wire format).
3104
+ * @return {!Uint8Array}
3105
+ */
3106
+ proto.event_store.client.users.DetailsResp.prototype.serializeBinary = function() {
3107
+ var writer = new jspb.BinaryWriter();
3108
+ proto.event_store.client.users.DetailsResp.serializeBinaryToWriter(this, writer);
3109
+ return writer.getResultBuffer();
3110
+ };
3111
+
3112
+
3113
+ /**
3114
+ * Serializes the given message to binary data (in protobuf wire
3115
+ * format), writing to the given BinaryWriter.
3116
+ * @param {!proto.event_store.client.users.DetailsResp} message
3117
+ * @param {!jspb.BinaryWriter} writer
3118
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3119
+ */
3120
+ proto.event_store.client.users.DetailsResp.serializeBinaryToWriter = function(message, writer) {
3121
+ var f = undefined;
3122
+ f = message.getUserDetails();
3123
+ if (f != null) {
3124
+ writer.writeMessage(
3125
+ 1,
3126
+ f,
3127
+ proto.event_store.client.users.DetailsResp.UserDetails.serializeBinaryToWriter
3128
+ );
3129
+ }
3130
+ };
3131
+
3132
+
3133
+
3134
+ /**
3135
+ * List of repeated fields within this message type.
3136
+ * @private {!Array<number>}
3137
+ * @const
3138
+ */
3139
+ proto.event_store.client.users.DetailsResp.UserDetails.repeatedFields_ = [3];
3140
+
3141
+
3142
+
3143
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3144
+ /**
3145
+ * Creates an object representation of this proto.
3146
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3147
+ * Optional fields that are not set will be set to undefined.
3148
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3149
+ * For the list of reserved names please see:
3150
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3151
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3152
+ * JSPB instance for transitional soy proto support:
3153
+ * http://goto/soy-param-migration
3154
+ * @return {!Object}
3155
+ */
3156
+ proto.event_store.client.users.DetailsResp.UserDetails.prototype.toObject = function(opt_includeInstance) {
3157
+ return proto.event_store.client.users.DetailsResp.UserDetails.toObject(opt_includeInstance, this);
3158
+ };
3159
+
3160
+
3161
+ /**
3162
+ * Static version of the {@see toObject} method.
3163
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3164
+ * the JSPB instance for transitional soy proto support:
3165
+ * http://goto/soy-param-migration
3166
+ * @param {!proto.event_store.client.users.DetailsResp.UserDetails} msg The msg instance to transform.
3167
+ * @return {!Object}
3168
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3169
+ */
3170
+ proto.event_store.client.users.DetailsResp.UserDetails.toObject = function(includeInstance, msg) {
3171
+ var f, obj = {
3172
+ loginName: jspb.Message.getFieldWithDefault(msg, 1, ""),
3173
+ fullName: jspb.Message.getFieldWithDefault(msg, 2, ""),
3174
+ groupsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
3175
+ lastUpdated: (f = msg.getLastUpdated()) && proto.event_store.client.users.DetailsResp.UserDetails.DateTime.toObject(includeInstance, f),
3176
+ disabled: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
3177
+ };
3178
+
3179
+ if (includeInstance) {
3180
+ obj.$jspbMessageInstance = msg;
3181
+ }
3182
+ return obj;
3183
+ };
3184
+ }
3185
+
3186
+
3187
+ /**
3188
+ * Deserializes binary data (in protobuf wire format).
3189
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3190
+ * @return {!proto.event_store.client.users.DetailsResp.UserDetails}
3191
+ */
3192
+ proto.event_store.client.users.DetailsResp.UserDetails.deserializeBinary = function(bytes) {
3193
+ var reader = new jspb.BinaryReader(bytes);
3194
+ var msg = new proto.event_store.client.users.DetailsResp.UserDetails;
3195
+ return proto.event_store.client.users.DetailsResp.UserDetails.deserializeBinaryFromReader(msg, reader);
3196
+ };
3197
+
3198
+
3199
+ /**
3200
+ * Deserializes binary data (in protobuf wire format) from the
3201
+ * given reader into the given message object.
3202
+ * @param {!proto.event_store.client.users.DetailsResp.UserDetails} msg The message object to deserialize into.
3203
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3204
+ * @return {!proto.event_store.client.users.DetailsResp.UserDetails}
3205
+ */
3206
+ proto.event_store.client.users.DetailsResp.UserDetails.deserializeBinaryFromReader = function(msg, reader) {
3207
+ while (reader.nextField()) {
3208
+ if (reader.isEndGroup()) {
3209
+ break;
3210
+ }
3211
+ var field = reader.getFieldNumber();
3212
+ switch (field) {
3213
+ case 1:
3214
+ var value = /** @type {string} */ (reader.readString());
3215
+ msg.setLoginName(value);
3216
+ break;
3217
+ case 2:
3218
+ var value = /** @type {string} */ (reader.readString());
3219
+ msg.setFullName(value);
3220
+ break;
3221
+ case 3:
3222
+ var value = /** @type {string} */ (reader.readString());
3223
+ msg.addGroups(value);
3224
+ break;
3225
+ case 4:
3226
+ var value = new proto.event_store.client.users.DetailsResp.UserDetails.DateTime;
3227
+ reader.readMessage(value,proto.event_store.client.users.DetailsResp.UserDetails.DateTime.deserializeBinaryFromReader);
3228
+ msg.setLastUpdated(value);
3229
+ break;
3230
+ case 5:
3231
+ var value = /** @type {boolean} */ (reader.readBool());
3232
+ msg.setDisabled(value);
3233
+ break;
3234
+ default:
3235
+ reader.skipField();
3236
+ break;
3237
+ }
3238
+ }
3239
+ return msg;
3240
+ };
3241
+
3242
+
3243
+ /**
3244
+ * Serializes the message to binary data (in protobuf wire format).
3245
+ * @return {!Uint8Array}
3246
+ */
3247
+ proto.event_store.client.users.DetailsResp.UserDetails.prototype.serializeBinary = function() {
3248
+ var writer = new jspb.BinaryWriter();
3249
+ proto.event_store.client.users.DetailsResp.UserDetails.serializeBinaryToWriter(this, writer);
3250
+ return writer.getResultBuffer();
3251
+ };
3252
+
3253
+
3254
+ /**
3255
+ * Serializes the given message to binary data (in protobuf wire
3256
+ * format), writing to the given BinaryWriter.
3257
+ * @param {!proto.event_store.client.users.DetailsResp.UserDetails} message
3258
+ * @param {!jspb.BinaryWriter} writer
3259
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3260
+ */
3261
+ proto.event_store.client.users.DetailsResp.UserDetails.serializeBinaryToWriter = function(message, writer) {
3262
+ var f = undefined;
3263
+ f = message.getLoginName();
3264
+ if (f.length > 0) {
3265
+ writer.writeString(
3266
+ 1,
3267
+ f
3268
+ );
3269
+ }
3270
+ f = message.getFullName();
3271
+ if (f.length > 0) {
3272
+ writer.writeString(
3273
+ 2,
3274
+ f
3275
+ );
3276
+ }
3277
+ f = message.getGroupsList();
3278
+ if (f.length > 0) {
3279
+ writer.writeRepeatedString(
3280
+ 3,
3281
+ f
3282
+ );
3283
+ }
3284
+ f = message.getLastUpdated();
3285
+ if (f != null) {
3286
+ writer.writeMessage(
3287
+ 4,
3288
+ f,
3289
+ proto.event_store.client.users.DetailsResp.UserDetails.DateTime.serializeBinaryToWriter
3290
+ );
3291
+ }
3292
+ f = message.getDisabled();
3293
+ if (f) {
3294
+ writer.writeBool(
3295
+ 5,
3296
+ f
3297
+ );
3298
+ }
3299
+ };
3300
+
3301
+
3302
+
3303
+
3304
+
3305
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3306
+ /**
3307
+ * Creates an object representation of this proto.
3308
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3309
+ * Optional fields that are not set will be set to undefined.
3310
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3311
+ * For the list of reserved names please see:
3312
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3313
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3314
+ * JSPB instance for transitional soy proto support:
3315
+ * http://goto/soy-param-migration
3316
+ * @return {!Object}
3317
+ */
3318
+ proto.event_store.client.users.DetailsResp.UserDetails.DateTime.prototype.toObject = function(opt_includeInstance) {
3319
+ return proto.event_store.client.users.DetailsResp.UserDetails.DateTime.toObject(opt_includeInstance, this);
3320
+ };
3321
+
3322
+
3323
+ /**
3324
+ * Static version of the {@see toObject} method.
3325
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3326
+ * the JSPB instance for transitional soy proto support:
3327
+ * http://goto/soy-param-migration
3328
+ * @param {!proto.event_store.client.users.DetailsResp.UserDetails.DateTime} msg The msg instance to transform.
3329
+ * @return {!Object}
3330
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3331
+ */
3332
+ proto.event_store.client.users.DetailsResp.UserDetails.DateTime.toObject = function(includeInstance, msg) {
3333
+ var f, obj = {
3334
+ ticksSinceEpoch: jspb.Message.getFieldWithDefault(msg, 1, "0")
3335
+ };
3336
+
3337
+ if (includeInstance) {
3338
+ obj.$jspbMessageInstance = msg;
3339
+ }
3340
+ return obj;
3341
+ };
3342
+ }
3343
+
3344
+
3345
+ /**
3346
+ * Deserializes binary data (in protobuf wire format).
3347
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3348
+ * @return {!proto.event_store.client.users.DetailsResp.UserDetails.DateTime}
3349
+ */
3350
+ proto.event_store.client.users.DetailsResp.UserDetails.DateTime.deserializeBinary = function(bytes) {
3351
+ var reader = new jspb.BinaryReader(bytes);
3352
+ var msg = new proto.event_store.client.users.DetailsResp.UserDetails.DateTime;
3353
+ return proto.event_store.client.users.DetailsResp.UserDetails.DateTime.deserializeBinaryFromReader(msg, reader);
3354
+ };
3355
+
3356
+
3357
+ /**
3358
+ * Deserializes binary data (in protobuf wire format) from the
3359
+ * given reader into the given message object.
3360
+ * @param {!proto.event_store.client.users.DetailsResp.UserDetails.DateTime} msg The message object to deserialize into.
3361
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3362
+ * @return {!proto.event_store.client.users.DetailsResp.UserDetails.DateTime}
3363
+ */
3364
+ proto.event_store.client.users.DetailsResp.UserDetails.DateTime.deserializeBinaryFromReader = function(msg, reader) {
3365
+ while (reader.nextField()) {
3366
+ if (reader.isEndGroup()) {
3367
+ break;
3368
+ }
3369
+ var field = reader.getFieldNumber();
3370
+ switch (field) {
3371
+ case 1:
3372
+ var value = /** @type {string} */ (reader.readInt64String());
3373
+ msg.setTicksSinceEpoch(value);
3374
+ break;
3375
+ default:
3376
+ reader.skipField();
3377
+ break;
3378
+ }
3379
+ }
3380
+ return msg;
3381
+ };
3382
+
3383
+
3384
+ /**
3385
+ * Serializes the message to binary data (in protobuf wire format).
3386
+ * @return {!Uint8Array}
3387
+ */
3388
+ proto.event_store.client.users.DetailsResp.UserDetails.DateTime.prototype.serializeBinary = function() {
3389
+ var writer = new jspb.BinaryWriter();
3390
+ proto.event_store.client.users.DetailsResp.UserDetails.DateTime.serializeBinaryToWriter(this, writer);
3391
+ return writer.getResultBuffer();
3392
+ };
3393
+
3394
+
3395
+ /**
3396
+ * Serializes the given message to binary data (in protobuf wire
3397
+ * format), writing to the given BinaryWriter.
3398
+ * @param {!proto.event_store.client.users.DetailsResp.UserDetails.DateTime} message
3399
+ * @param {!jspb.BinaryWriter} writer
3400
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3401
+ */
3402
+ proto.event_store.client.users.DetailsResp.UserDetails.DateTime.serializeBinaryToWriter = function(message, writer) {
3403
+ var f = undefined;
3404
+ f = message.getTicksSinceEpoch();
3405
+ if (parseInt(f, 10) !== 0) {
3406
+ writer.writeInt64String(
3407
+ 1,
3408
+ f
3409
+ );
3410
+ }
3411
+ };
3412
+
3413
+
3414
+ /**
3415
+ * optional int64 ticks_since_epoch = 1;
3416
+ * @return {string}
3417
+ */
3418
+ proto.event_store.client.users.DetailsResp.UserDetails.DateTime.prototype.getTicksSinceEpoch = function() {
3419
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0"));
3420
+ };
3421
+
3422
+
3423
+ /**
3424
+ * @param {string} value
3425
+ * @return {!proto.event_store.client.users.DetailsResp.UserDetails.DateTime} returns this
3426
+ */
3427
+ proto.event_store.client.users.DetailsResp.UserDetails.DateTime.prototype.setTicksSinceEpoch = function(value) {
3428
+ return jspb.Message.setProto3StringIntField(this, 1, value);
3429
+ };
3430
+
3431
+
3432
+ /**
3433
+ * optional string login_name = 1;
3434
+ * @return {string}
3435
+ */
3436
+ proto.event_store.client.users.DetailsResp.UserDetails.prototype.getLoginName = function() {
3437
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3438
+ };
3439
+
3440
+
3441
+ /**
3442
+ * @param {string} value
3443
+ * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this
3444
+ */
3445
+ proto.event_store.client.users.DetailsResp.UserDetails.prototype.setLoginName = function(value) {
3446
+ return jspb.Message.setProto3StringField(this, 1, value);
3447
+ };
3448
+
3449
+
3450
+ /**
3451
+ * optional string full_name = 2;
3452
+ * @return {string}
3453
+ */
3454
+ proto.event_store.client.users.DetailsResp.UserDetails.prototype.getFullName = function() {
3455
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3456
+ };
3457
+
3458
+
3459
+ /**
3460
+ * @param {string} value
3461
+ * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this
3462
+ */
3463
+ proto.event_store.client.users.DetailsResp.UserDetails.prototype.setFullName = function(value) {
3464
+ return jspb.Message.setProto3StringField(this, 2, value);
3465
+ };
3466
+
3467
+
3468
+ /**
3469
+ * repeated string groups = 3;
3470
+ * @return {!Array<string>}
3471
+ */
3472
+ proto.event_store.client.users.DetailsResp.UserDetails.prototype.getGroupsList = function() {
3473
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
3474
+ };
3475
+
3476
+
3477
+ /**
3478
+ * @param {!Array<string>} value
3479
+ * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this
3480
+ */
3481
+ proto.event_store.client.users.DetailsResp.UserDetails.prototype.setGroupsList = function(value) {
3482
+ return jspb.Message.setField(this, 3, value || []);
3483
+ };
3484
+
3485
+
3486
+ /**
3487
+ * @param {string} value
3488
+ * @param {number=} opt_index
3489
+ * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this
3490
+ */
3491
+ proto.event_store.client.users.DetailsResp.UserDetails.prototype.addGroups = function(value, opt_index) {
3492
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
3493
+ };
3494
+
3495
+
3496
+ /**
3497
+ * Clears the list making it empty but non-null.
3498
+ * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this
3499
+ */
3500
+ proto.event_store.client.users.DetailsResp.UserDetails.prototype.clearGroupsList = function() {
3501
+ return this.setGroupsList([]);
3502
+ };
3503
+
3504
+
3505
+ /**
3506
+ * optional DateTime last_updated = 4;
3507
+ * @return {?proto.event_store.client.users.DetailsResp.UserDetails.DateTime}
3508
+ */
3509
+ proto.event_store.client.users.DetailsResp.UserDetails.prototype.getLastUpdated = function() {
3510
+ return /** @type{?proto.event_store.client.users.DetailsResp.UserDetails.DateTime} */ (
3511
+ jspb.Message.getWrapperField(this, proto.event_store.client.users.DetailsResp.UserDetails.DateTime, 4));
3512
+ };
3513
+
3514
+
3515
+ /**
3516
+ * @param {?proto.event_store.client.users.DetailsResp.UserDetails.DateTime|undefined} value
3517
+ * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this
3518
+ */
3519
+ proto.event_store.client.users.DetailsResp.UserDetails.prototype.setLastUpdated = function(value) {
3520
+ return jspb.Message.setWrapperField(this, 4, value);
3521
+ };
3522
+
3523
+
3524
+ /**
3525
+ * Clears the message field making it undefined.
3526
+ * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this
3527
+ */
3528
+ proto.event_store.client.users.DetailsResp.UserDetails.prototype.clearLastUpdated = function() {
3529
+ return this.setLastUpdated(undefined);
3530
+ };
3531
+
3532
+
3533
+ /**
3534
+ * Returns whether this field is set.
3535
+ * @return {boolean}
3536
+ */
3537
+ proto.event_store.client.users.DetailsResp.UserDetails.prototype.hasLastUpdated = function() {
3538
+ return jspb.Message.getField(this, 4) != null;
3539
+ };
3540
+
3541
+
3542
+ /**
3543
+ * optional bool disabled = 5;
3544
+ * @return {boolean}
3545
+ */
3546
+ proto.event_store.client.users.DetailsResp.UserDetails.prototype.getDisabled = function() {
3547
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
3548
+ };
3549
+
3550
+
3551
+ /**
3552
+ * @param {boolean} value
3553
+ * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this
3554
+ */
3555
+ proto.event_store.client.users.DetailsResp.UserDetails.prototype.setDisabled = function(value) {
3556
+ return jspb.Message.setProto3BooleanField(this, 5, value);
3557
+ };
3558
+
3559
+
3560
+ /**
3561
+ * optional UserDetails user_details = 1;
3562
+ * @return {?proto.event_store.client.users.DetailsResp.UserDetails}
3563
+ */
3564
+ proto.event_store.client.users.DetailsResp.prototype.getUserDetails = function() {
3565
+ return /** @type{?proto.event_store.client.users.DetailsResp.UserDetails} */ (
3566
+ jspb.Message.getWrapperField(this, proto.event_store.client.users.DetailsResp.UserDetails, 1));
3567
+ };
3568
+
3569
+
3570
+ /**
3571
+ * @param {?proto.event_store.client.users.DetailsResp.UserDetails|undefined} value
3572
+ * @return {!proto.event_store.client.users.DetailsResp} returns this
3573
+ */
3574
+ proto.event_store.client.users.DetailsResp.prototype.setUserDetails = function(value) {
3575
+ return jspb.Message.setWrapperField(this, 1, value);
3576
+ };
3577
+
3578
+
3579
+ /**
3580
+ * Clears the message field making it undefined.
3581
+ * @return {!proto.event_store.client.users.DetailsResp} returns this
3582
+ */
3583
+ proto.event_store.client.users.DetailsResp.prototype.clearUserDetails = function() {
3584
+ return this.setUserDetails(undefined);
3585
+ };
3586
+
3587
+
3588
+ /**
3589
+ * Returns whether this field is set.
3590
+ * @return {boolean}
3591
+ */
3592
+ proto.event_store.client.users.DetailsResp.prototype.hasUserDetails = function() {
3593
+ return jspb.Message.getField(this, 1) != null;
3594
+ };
3595
+
3596
+
3597
+
3598
+
3599
+
3600
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3601
+ /**
3602
+ * Creates an object representation of this proto.
3603
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3604
+ * Optional fields that are not set will be set to undefined.
3605
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3606
+ * For the list of reserved names please see:
3607
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3608
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3609
+ * JSPB instance for transitional soy proto support:
3610
+ * http://goto/soy-param-migration
3611
+ * @return {!Object}
3612
+ */
3613
+ proto.event_store.client.users.ChangePasswordReq.prototype.toObject = function(opt_includeInstance) {
3614
+ return proto.event_store.client.users.ChangePasswordReq.toObject(opt_includeInstance, this);
3615
+ };
3616
+
3617
+
3618
+ /**
3619
+ * Static version of the {@see toObject} method.
3620
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3621
+ * the JSPB instance for transitional soy proto support:
3622
+ * http://goto/soy-param-migration
3623
+ * @param {!proto.event_store.client.users.ChangePasswordReq} msg The msg instance to transform.
3624
+ * @return {!Object}
3625
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3626
+ */
3627
+ proto.event_store.client.users.ChangePasswordReq.toObject = function(includeInstance, msg) {
3628
+ var f, obj = {
3629
+ options: (f = msg.getOptions()) && proto.event_store.client.users.ChangePasswordReq.Options.toObject(includeInstance, f)
3630
+ };
3631
+
3632
+ if (includeInstance) {
3633
+ obj.$jspbMessageInstance = msg;
3634
+ }
3635
+ return obj;
3636
+ };
3637
+ }
3638
+
3639
+
3640
+ /**
3641
+ * Deserializes binary data (in protobuf wire format).
3642
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3643
+ * @return {!proto.event_store.client.users.ChangePasswordReq}
3644
+ */
3645
+ proto.event_store.client.users.ChangePasswordReq.deserializeBinary = function(bytes) {
3646
+ var reader = new jspb.BinaryReader(bytes);
3647
+ var msg = new proto.event_store.client.users.ChangePasswordReq;
3648
+ return proto.event_store.client.users.ChangePasswordReq.deserializeBinaryFromReader(msg, reader);
3649
+ };
3650
+
3651
+
3652
+ /**
3653
+ * Deserializes binary data (in protobuf wire format) from the
3654
+ * given reader into the given message object.
3655
+ * @param {!proto.event_store.client.users.ChangePasswordReq} msg The message object to deserialize into.
3656
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3657
+ * @return {!proto.event_store.client.users.ChangePasswordReq}
3658
+ */
3659
+ proto.event_store.client.users.ChangePasswordReq.deserializeBinaryFromReader = function(msg, reader) {
3660
+ while (reader.nextField()) {
3661
+ if (reader.isEndGroup()) {
3662
+ break;
3663
+ }
3664
+ var field = reader.getFieldNumber();
3665
+ switch (field) {
3666
+ case 1:
3667
+ var value = new proto.event_store.client.users.ChangePasswordReq.Options;
3668
+ reader.readMessage(value,proto.event_store.client.users.ChangePasswordReq.Options.deserializeBinaryFromReader);
3669
+ msg.setOptions(value);
3670
+ break;
3671
+ default:
3672
+ reader.skipField();
3673
+ break;
3674
+ }
3675
+ }
3676
+ return msg;
3677
+ };
3678
+
3679
+
3680
+ /**
3681
+ * Serializes the message to binary data (in protobuf wire format).
3682
+ * @return {!Uint8Array}
3683
+ */
3684
+ proto.event_store.client.users.ChangePasswordReq.prototype.serializeBinary = function() {
3685
+ var writer = new jspb.BinaryWriter();
3686
+ proto.event_store.client.users.ChangePasswordReq.serializeBinaryToWriter(this, writer);
3687
+ return writer.getResultBuffer();
3688
+ };
3689
+
3690
+
3691
+ /**
3692
+ * Serializes the given message to binary data (in protobuf wire
3693
+ * format), writing to the given BinaryWriter.
3694
+ * @param {!proto.event_store.client.users.ChangePasswordReq} message
3695
+ * @param {!jspb.BinaryWriter} writer
3696
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3697
+ */
3698
+ proto.event_store.client.users.ChangePasswordReq.serializeBinaryToWriter = function(message, writer) {
3699
+ var f = undefined;
3700
+ f = message.getOptions();
3701
+ if (f != null) {
3702
+ writer.writeMessage(
3703
+ 1,
3704
+ f,
3705
+ proto.event_store.client.users.ChangePasswordReq.Options.serializeBinaryToWriter
3706
+ );
3707
+ }
3708
+ };
3709
+
3710
+
3711
+
3712
+
3713
+
3714
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3715
+ /**
3716
+ * Creates an object representation of this proto.
3717
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3718
+ * Optional fields that are not set will be set to undefined.
3719
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3720
+ * For the list of reserved names please see:
3721
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3722
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3723
+ * JSPB instance for transitional soy proto support:
3724
+ * http://goto/soy-param-migration
3725
+ * @return {!Object}
3726
+ */
3727
+ proto.event_store.client.users.ChangePasswordReq.Options.prototype.toObject = function(opt_includeInstance) {
3728
+ return proto.event_store.client.users.ChangePasswordReq.Options.toObject(opt_includeInstance, this);
3729
+ };
3730
+
3731
+
3732
+ /**
3733
+ * Static version of the {@see toObject} method.
3734
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3735
+ * the JSPB instance for transitional soy proto support:
3736
+ * http://goto/soy-param-migration
3737
+ * @param {!proto.event_store.client.users.ChangePasswordReq.Options} msg The msg instance to transform.
3738
+ * @return {!Object}
3739
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3740
+ */
3741
+ proto.event_store.client.users.ChangePasswordReq.Options.toObject = function(includeInstance, msg) {
3742
+ var f, obj = {
3743
+ loginName: jspb.Message.getFieldWithDefault(msg, 1, ""),
3744
+ currentPassword: jspb.Message.getFieldWithDefault(msg, 2, ""),
3745
+ newPassword: jspb.Message.getFieldWithDefault(msg, 3, "")
3746
+ };
3747
+
3748
+ if (includeInstance) {
3749
+ obj.$jspbMessageInstance = msg;
3750
+ }
3751
+ return obj;
3752
+ };
3753
+ }
3754
+
3755
+
3756
+ /**
3757
+ * Deserializes binary data (in protobuf wire format).
3758
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3759
+ * @return {!proto.event_store.client.users.ChangePasswordReq.Options}
3760
+ */
3761
+ proto.event_store.client.users.ChangePasswordReq.Options.deserializeBinary = function(bytes) {
3762
+ var reader = new jspb.BinaryReader(bytes);
3763
+ var msg = new proto.event_store.client.users.ChangePasswordReq.Options;
3764
+ return proto.event_store.client.users.ChangePasswordReq.Options.deserializeBinaryFromReader(msg, reader);
3765
+ };
3766
+
3767
+
3768
+ /**
3769
+ * Deserializes binary data (in protobuf wire format) from the
3770
+ * given reader into the given message object.
3771
+ * @param {!proto.event_store.client.users.ChangePasswordReq.Options} msg The message object to deserialize into.
3772
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3773
+ * @return {!proto.event_store.client.users.ChangePasswordReq.Options}
3774
+ */
3775
+ proto.event_store.client.users.ChangePasswordReq.Options.deserializeBinaryFromReader = function(msg, reader) {
3776
+ while (reader.nextField()) {
3777
+ if (reader.isEndGroup()) {
3778
+ break;
3779
+ }
3780
+ var field = reader.getFieldNumber();
3781
+ switch (field) {
3782
+ case 1:
3783
+ var value = /** @type {string} */ (reader.readString());
3784
+ msg.setLoginName(value);
3785
+ break;
3786
+ case 2:
3787
+ var value = /** @type {string} */ (reader.readString());
3788
+ msg.setCurrentPassword(value);
3789
+ break;
3790
+ case 3:
3791
+ var value = /** @type {string} */ (reader.readString());
3792
+ msg.setNewPassword(value);
3793
+ break;
3794
+ default:
3795
+ reader.skipField();
3796
+ break;
3797
+ }
3798
+ }
3799
+ return msg;
3800
+ };
3801
+
3802
+
3803
+ /**
3804
+ * Serializes the message to binary data (in protobuf wire format).
3805
+ * @return {!Uint8Array}
3806
+ */
3807
+ proto.event_store.client.users.ChangePasswordReq.Options.prototype.serializeBinary = function() {
3808
+ var writer = new jspb.BinaryWriter();
3809
+ proto.event_store.client.users.ChangePasswordReq.Options.serializeBinaryToWriter(this, writer);
3810
+ return writer.getResultBuffer();
3811
+ };
3812
+
3813
+
3814
+ /**
3815
+ * Serializes the given message to binary data (in protobuf wire
3816
+ * format), writing to the given BinaryWriter.
3817
+ * @param {!proto.event_store.client.users.ChangePasswordReq.Options} message
3818
+ * @param {!jspb.BinaryWriter} writer
3819
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3820
+ */
3821
+ proto.event_store.client.users.ChangePasswordReq.Options.serializeBinaryToWriter = function(message, writer) {
3822
+ var f = undefined;
3823
+ f = message.getLoginName();
3824
+ if (f.length > 0) {
3825
+ writer.writeString(
3826
+ 1,
3827
+ f
3828
+ );
3829
+ }
3830
+ f = message.getCurrentPassword();
3831
+ if (f.length > 0) {
3832
+ writer.writeString(
3833
+ 2,
3834
+ f
3835
+ );
3836
+ }
3837
+ f = message.getNewPassword();
3838
+ if (f.length > 0) {
3839
+ writer.writeString(
3840
+ 3,
3841
+ f
3842
+ );
3843
+ }
3844
+ };
3845
+
3846
+
3847
+ /**
3848
+ * optional string login_name = 1;
3849
+ * @return {string}
3850
+ */
3851
+ proto.event_store.client.users.ChangePasswordReq.Options.prototype.getLoginName = function() {
3852
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3853
+ };
3854
+
3855
+
3856
+ /**
3857
+ * @param {string} value
3858
+ * @return {!proto.event_store.client.users.ChangePasswordReq.Options} returns this
3859
+ */
3860
+ proto.event_store.client.users.ChangePasswordReq.Options.prototype.setLoginName = function(value) {
3861
+ return jspb.Message.setProto3StringField(this, 1, value);
3862
+ };
3863
+
3864
+
3865
+ /**
3866
+ * optional string current_password = 2;
3867
+ * @return {string}
3868
+ */
3869
+ proto.event_store.client.users.ChangePasswordReq.Options.prototype.getCurrentPassword = function() {
3870
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3871
+ };
3872
+
3873
+
3874
+ /**
3875
+ * @param {string} value
3876
+ * @return {!proto.event_store.client.users.ChangePasswordReq.Options} returns this
3877
+ */
3878
+ proto.event_store.client.users.ChangePasswordReq.Options.prototype.setCurrentPassword = function(value) {
3879
+ return jspb.Message.setProto3StringField(this, 2, value);
3880
+ };
3881
+
3882
+
3883
+ /**
3884
+ * optional string new_password = 3;
3885
+ * @return {string}
3886
+ */
3887
+ proto.event_store.client.users.ChangePasswordReq.Options.prototype.getNewPassword = function() {
3888
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3889
+ };
3890
+
3891
+
3892
+ /**
3893
+ * @param {string} value
3894
+ * @return {!proto.event_store.client.users.ChangePasswordReq.Options} returns this
3895
+ */
3896
+ proto.event_store.client.users.ChangePasswordReq.Options.prototype.setNewPassword = function(value) {
3897
+ return jspb.Message.setProto3StringField(this, 3, value);
3898
+ };
3899
+
3900
+
3901
+ /**
3902
+ * optional Options options = 1;
3903
+ * @return {?proto.event_store.client.users.ChangePasswordReq.Options}
3904
+ */
3905
+ proto.event_store.client.users.ChangePasswordReq.prototype.getOptions = function() {
3906
+ return /** @type{?proto.event_store.client.users.ChangePasswordReq.Options} */ (
3907
+ jspb.Message.getWrapperField(this, proto.event_store.client.users.ChangePasswordReq.Options, 1));
3908
+ };
3909
+
3910
+
3911
+ /**
3912
+ * @param {?proto.event_store.client.users.ChangePasswordReq.Options|undefined} value
3913
+ * @return {!proto.event_store.client.users.ChangePasswordReq} returns this
3914
+ */
3915
+ proto.event_store.client.users.ChangePasswordReq.prototype.setOptions = function(value) {
3916
+ return jspb.Message.setWrapperField(this, 1, value);
3917
+ };
3918
+
3919
+
3920
+ /**
3921
+ * Clears the message field making it undefined.
3922
+ * @return {!proto.event_store.client.users.ChangePasswordReq} returns this
3923
+ */
3924
+ proto.event_store.client.users.ChangePasswordReq.prototype.clearOptions = function() {
3925
+ return this.setOptions(undefined);
3926
+ };
3927
+
3928
+
3929
+ /**
3930
+ * Returns whether this field is set.
3931
+ * @return {boolean}
3932
+ */
3933
+ proto.event_store.client.users.ChangePasswordReq.prototype.hasOptions = function() {
3934
+ return jspb.Message.getField(this, 1) != null;
3935
+ };
3936
+
3937
+
3938
+
3939
+
3940
+
3941
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3942
+ /**
3943
+ * Creates an object representation of this proto.
3944
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3945
+ * Optional fields that are not set will be set to undefined.
3946
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3947
+ * For the list of reserved names please see:
3948
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3949
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3950
+ * JSPB instance for transitional soy proto support:
3951
+ * http://goto/soy-param-migration
3952
+ * @return {!Object}
3953
+ */
3954
+ proto.event_store.client.users.ChangePasswordResp.prototype.toObject = function(opt_includeInstance) {
3955
+ return proto.event_store.client.users.ChangePasswordResp.toObject(opt_includeInstance, this);
3956
+ };
3957
+
3958
+
3959
+ /**
3960
+ * Static version of the {@see toObject} method.
3961
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3962
+ * the JSPB instance for transitional soy proto support:
3963
+ * http://goto/soy-param-migration
3964
+ * @param {!proto.event_store.client.users.ChangePasswordResp} msg The msg instance to transform.
3965
+ * @return {!Object}
3966
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3967
+ */
3968
+ proto.event_store.client.users.ChangePasswordResp.toObject = function(includeInstance, msg) {
3969
+ var f, obj = {
3970
+
3971
+ };
3972
+
3973
+ if (includeInstance) {
3974
+ obj.$jspbMessageInstance = msg;
3975
+ }
3976
+ return obj;
3977
+ };
3978
+ }
3979
+
3980
+
3981
+ /**
3982
+ * Deserializes binary data (in protobuf wire format).
3983
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3984
+ * @return {!proto.event_store.client.users.ChangePasswordResp}
3985
+ */
3986
+ proto.event_store.client.users.ChangePasswordResp.deserializeBinary = function(bytes) {
3987
+ var reader = new jspb.BinaryReader(bytes);
3988
+ var msg = new proto.event_store.client.users.ChangePasswordResp;
3989
+ return proto.event_store.client.users.ChangePasswordResp.deserializeBinaryFromReader(msg, reader);
3990
+ };
3991
+
3992
+
3993
+ /**
3994
+ * Deserializes binary data (in protobuf wire format) from the
3995
+ * given reader into the given message object.
3996
+ * @param {!proto.event_store.client.users.ChangePasswordResp} msg The message object to deserialize into.
3997
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3998
+ * @return {!proto.event_store.client.users.ChangePasswordResp}
3999
+ */
4000
+ proto.event_store.client.users.ChangePasswordResp.deserializeBinaryFromReader = function(msg, reader) {
4001
+ while (reader.nextField()) {
4002
+ if (reader.isEndGroup()) {
4003
+ break;
4004
+ }
4005
+ var field = reader.getFieldNumber();
4006
+ switch (field) {
4007
+ default:
4008
+ reader.skipField();
4009
+ break;
4010
+ }
4011
+ }
4012
+ return msg;
4013
+ };
4014
+
4015
+
4016
+ /**
4017
+ * Serializes the message to binary data (in protobuf wire format).
4018
+ * @return {!Uint8Array}
4019
+ */
4020
+ proto.event_store.client.users.ChangePasswordResp.prototype.serializeBinary = function() {
4021
+ var writer = new jspb.BinaryWriter();
4022
+ proto.event_store.client.users.ChangePasswordResp.serializeBinaryToWriter(this, writer);
4023
+ return writer.getResultBuffer();
4024
+ };
4025
+
4026
+
4027
+ /**
4028
+ * Serializes the given message to binary data (in protobuf wire
4029
+ * format), writing to the given BinaryWriter.
4030
+ * @param {!proto.event_store.client.users.ChangePasswordResp} message
4031
+ * @param {!jspb.BinaryWriter} writer
4032
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4033
+ */
4034
+ proto.event_store.client.users.ChangePasswordResp.serializeBinaryToWriter = function(message, writer) {
4035
+ var f = undefined;
4036
+ };
4037
+
4038
+
4039
+
4040
+
4041
+
4042
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4043
+ /**
4044
+ * Creates an object representation of this proto.
4045
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4046
+ * Optional fields that are not set will be set to undefined.
4047
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4048
+ * For the list of reserved names please see:
4049
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4050
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4051
+ * JSPB instance for transitional soy proto support:
4052
+ * http://goto/soy-param-migration
4053
+ * @return {!Object}
4054
+ */
4055
+ proto.event_store.client.users.ResetPasswordReq.prototype.toObject = function(opt_includeInstance) {
4056
+ return proto.event_store.client.users.ResetPasswordReq.toObject(opt_includeInstance, this);
4057
+ };
4058
+
4059
+
4060
+ /**
4061
+ * Static version of the {@see toObject} method.
4062
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4063
+ * the JSPB instance for transitional soy proto support:
4064
+ * http://goto/soy-param-migration
4065
+ * @param {!proto.event_store.client.users.ResetPasswordReq} msg The msg instance to transform.
4066
+ * @return {!Object}
4067
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4068
+ */
4069
+ proto.event_store.client.users.ResetPasswordReq.toObject = function(includeInstance, msg) {
4070
+ var f, obj = {
4071
+ options: (f = msg.getOptions()) && proto.event_store.client.users.ResetPasswordReq.Options.toObject(includeInstance, f)
4072
+ };
4073
+
4074
+ if (includeInstance) {
4075
+ obj.$jspbMessageInstance = msg;
4076
+ }
4077
+ return obj;
4078
+ };
4079
+ }
4080
+
4081
+
4082
+ /**
4083
+ * Deserializes binary data (in protobuf wire format).
4084
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4085
+ * @return {!proto.event_store.client.users.ResetPasswordReq}
4086
+ */
4087
+ proto.event_store.client.users.ResetPasswordReq.deserializeBinary = function(bytes) {
4088
+ var reader = new jspb.BinaryReader(bytes);
4089
+ var msg = new proto.event_store.client.users.ResetPasswordReq;
4090
+ return proto.event_store.client.users.ResetPasswordReq.deserializeBinaryFromReader(msg, reader);
4091
+ };
4092
+
4093
+
4094
+ /**
4095
+ * Deserializes binary data (in protobuf wire format) from the
4096
+ * given reader into the given message object.
4097
+ * @param {!proto.event_store.client.users.ResetPasswordReq} msg The message object to deserialize into.
4098
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4099
+ * @return {!proto.event_store.client.users.ResetPasswordReq}
4100
+ */
4101
+ proto.event_store.client.users.ResetPasswordReq.deserializeBinaryFromReader = function(msg, reader) {
4102
+ while (reader.nextField()) {
4103
+ if (reader.isEndGroup()) {
4104
+ break;
4105
+ }
4106
+ var field = reader.getFieldNumber();
4107
+ switch (field) {
4108
+ case 1:
4109
+ var value = new proto.event_store.client.users.ResetPasswordReq.Options;
4110
+ reader.readMessage(value,proto.event_store.client.users.ResetPasswordReq.Options.deserializeBinaryFromReader);
4111
+ msg.setOptions(value);
4112
+ break;
4113
+ default:
4114
+ reader.skipField();
4115
+ break;
4116
+ }
4117
+ }
4118
+ return msg;
4119
+ };
4120
+
4121
+
4122
+ /**
4123
+ * Serializes the message to binary data (in protobuf wire format).
4124
+ * @return {!Uint8Array}
4125
+ */
4126
+ proto.event_store.client.users.ResetPasswordReq.prototype.serializeBinary = function() {
4127
+ var writer = new jspb.BinaryWriter();
4128
+ proto.event_store.client.users.ResetPasswordReq.serializeBinaryToWriter(this, writer);
4129
+ return writer.getResultBuffer();
4130
+ };
4131
+
4132
+
4133
+ /**
4134
+ * Serializes the given message to binary data (in protobuf wire
4135
+ * format), writing to the given BinaryWriter.
4136
+ * @param {!proto.event_store.client.users.ResetPasswordReq} message
4137
+ * @param {!jspb.BinaryWriter} writer
4138
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4139
+ */
4140
+ proto.event_store.client.users.ResetPasswordReq.serializeBinaryToWriter = function(message, writer) {
4141
+ var f = undefined;
4142
+ f = message.getOptions();
4143
+ if (f != null) {
4144
+ writer.writeMessage(
4145
+ 1,
4146
+ f,
4147
+ proto.event_store.client.users.ResetPasswordReq.Options.serializeBinaryToWriter
4148
+ );
4149
+ }
4150
+ };
4151
+
4152
+
4153
+
4154
+
4155
+
4156
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4157
+ /**
4158
+ * Creates an object representation of this proto.
4159
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4160
+ * Optional fields that are not set will be set to undefined.
4161
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4162
+ * For the list of reserved names please see:
4163
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4164
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4165
+ * JSPB instance for transitional soy proto support:
4166
+ * http://goto/soy-param-migration
4167
+ * @return {!Object}
4168
+ */
4169
+ proto.event_store.client.users.ResetPasswordReq.Options.prototype.toObject = function(opt_includeInstance) {
4170
+ return proto.event_store.client.users.ResetPasswordReq.Options.toObject(opt_includeInstance, this);
4171
+ };
4172
+
4173
+
4174
+ /**
4175
+ * Static version of the {@see toObject} method.
4176
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4177
+ * the JSPB instance for transitional soy proto support:
4178
+ * http://goto/soy-param-migration
4179
+ * @param {!proto.event_store.client.users.ResetPasswordReq.Options} msg The msg instance to transform.
4180
+ * @return {!Object}
4181
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4182
+ */
4183
+ proto.event_store.client.users.ResetPasswordReq.Options.toObject = function(includeInstance, msg) {
4184
+ var f, obj = {
4185
+ loginName: jspb.Message.getFieldWithDefault(msg, 1, ""),
4186
+ newPassword: jspb.Message.getFieldWithDefault(msg, 2, "")
4187
+ };
4188
+
4189
+ if (includeInstance) {
4190
+ obj.$jspbMessageInstance = msg;
4191
+ }
4192
+ return obj;
4193
+ };
4194
+ }
4195
+
4196
+
4197
+ /**
4198
+ * Deserializes binary data (in protobuf wire format).
4199
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4200
+ * @return {!proto.event_store.client.users.ResetPasswordReq.Options}
4201
+ */
4202
+ proto.event_store.client.users.ResetPasswordReq.Options.deserializeBinary = function(bytes) {
4203
+ var reader = new jspb.BinaryReader(bytes);
4204
+ var msg = new proto.event_store.client.users.ResetPasswordReq.Options;
4205
+ return proto.event_store.client.users.ResetPasswordReq.Options.deserializeBinaryFromReader(msg, reader);
4206
+ };
4207
+
4208
+
4209
+ /**
4210
+ * Deserializes binary data (in protobuf wire format) from the
4211
+ * given reader into the given message object.
4212
+ * @param {!proto.event_store.client.users.ResetPasswordReq.Options} msg The message object to deserialize into.
4213
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4214
+ * @return {!proto.event_store.client.users.ResetPasswordReq.Options}
4215
+ */
4216
+ proto.event_store.client.users.ResetPasswordReq.Options.deserializeBinaryFromReader = function(msg, reader) {
4217
+ while (reader.nextField()) {
4218
+ if (reader.isEndGroup()) {
4219
+ break;
4220
+ }
4221
+ var field = reader.getFieldNumber();
4222
+ switch (field) {
4223
+ case 1:
4224
+ var value = /** @type {string} */ (reader.readString());
4225
+ msg.setLoginName(value);
4226
+ break;
4227
+ case 2:
4228
+ var value = /** @type {string} */ (reader.readString());
4229
+ msg.setNewPassword(value);
4230
+ break;
4231
+ default:
4232
+ reader.skipField();
4233
+ break;
4234
+ }
4235
+ }
4236
+ return msg;
4237
+ };
4238
+
4239
+
4240
+ /**
4241
+ * Serializes the message to binary data (in protobuf wire format).
4242
+ * @return {!Uint8Array}
4243
+ */
4244
+ proto.event_store.client.users.ResetPasswordReq.Options.prototype.serializeBinary = function() {
4245
+ var writer = new jspb.BinaryWriter();
4246
+ proto.event_store.client.users.ResetPasswordReq.Options.serializeBinaryToWriter(this, writer);
4247
+ return writer.getResultBuffer();
4248
+ };
4249
+
4250
+
4251
+ /**
4252
+ * Serializes the given message to binary data (in protobuf wire
4253
+ * format), writing to the given BinaryWriter.
4254
+ * @param {!proto.event_store.client.users.ResetPasswordReq.Options} message
4255
+ * @param {!jspb.BinaryWriter} writer
4256
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4257
+ */
4258
+ proto.event_store.client.users.ResetPasswordReq.Options.serializeBinaryToWriter = function(message, writer) {
4259
+ var f = undefined;
4260
+ f = message.getLoginName();
4261
+ if (f.length > 0) {
4262
+ writer.writeString(
4263
+ 1,
4264
+ f
4265
+ );
4266
+ }
4267
+ f = message.getNewPassword();
4268
+ if (f.length > 0) {
4269
+ writer.writeString(
4270
+ 2,
4271
+ f
4272
+ );
4273
+ }
4274
+ };
4275
+
4276
+
4277
+ /**
4278
+ * optional string login_name = 1;
4279
+ * @return {string}
4280
+ */
4281
+ proto.event_store.client.users.ResetPasswordReq.Options.prototype.getLoginName = function() {
4282
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4283
+ };
4284
+
4285
+
4286
+ /**
4287
+ * @param {string} value
4288
+ * @return {!proto.event_store.client.users.ResetPasswordReq.Options} returns this
4289
+ */
4290
+ proto.event_store.client.users.ResetPasswordReq.Options.prototype.setLoginName = function(value) {
4291
+ return jspb.Message.setProto3StringField(this, 1, value);
4292
+ };
4293
+
4294
+
4295
+ /**
4296
+ * optional string new_password = 2;
4297
+ * @return {string}
4298
+ */
4299
+ proto.event_store.client.users.ResetPasswordReq.Options.prototype.getNewPassword = function() {
4300
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4301
+ };
4302
+
4303
+
4304
+ /**
4305
+ * @param {string} value
4306
+ * @return {!proto.event_store.client.users.ResetPasswordReq.Options} returns this
4307
+ */
4308
+ proto.event_store.client.users.ResetPasswordReq.Options.prototype.setNewPassword = function(value) {
4309
+ return jspb.Message.setProto3StringField(this, 2, value);
4310
+ };
4311
+
4312
+
4313
+ /**
4314
+ * optional Options options = 1;
4315
+ * @return {?proto.event_store.client.users.ResetPasswordReq.Options}
4316
+ */
4317
+ proto.event_store.client.users.ResetPasswordReq.prototype.getOptions = function() {
4318
+ return /** @type{?proto.event_store.client.users.ResetPasswordReq.Options} */ (
4319
+ jspb.Message.getWrapperField(this, proto.event_store.client.users.ResetPasswordReq.Options, 1));
4320
+ };
4321
+
4322
+
4323
+ /**
4324
+ * @param {?proto.event_store.client.users.ResetPasswordReq.Options|undefined} value
4325
+ * @return {!proto.event_store.client.users.ResetPasswordReq} returns this
4326
+ */
4327
+ proto.event_store.client.users.ResetPasswordReq.prototype.setOptions = function(value) {
4328
+ return jspb.Message.setWrapperField(this, 1, value);
4329
+ };
4330
+
4331
+
4332
+ /**
4333
+ * Clears the message field making it undefined.
4334
+ * @return {!proto.event_store.client.users.ResetPasswordReq} returns this
4335
+ */
4336
+ proto.event_store.client.users.ResetPasswordReq.prototype.clearOptions = function() {
4337
+ return this.setOptions(undefined);
4338
+ };
4339
+
4340
+
4341
+ /**
4342
+ * Returns whether this field is set.
4343
+ * @return {boolean}
4344
+ */
4345
+ proto.event_store.client.users.ResetPasswordReq.prototype.hasOptions = function() {
4346
+ return jspb.Message.getField(this, 1) != null;
4347
+ };
4348
+
4349
+
4350
+
4351
+
4352
+
4353
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4354
+ /**
4355
+ * Creates an object representation of this proto.
4356
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4357
+ * Optional fields that are not set will be set to undefined.
4358
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4359
+ * For the list of reserved names please see:
4360
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4361
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4362
+ * JSPB instance for transitional soy proto support:
4363
+ * http://goto/soy-param-migration
4364
+ * @return {!Object}
4365
+ */
4366
+ proto.event_store.client.users.ResetPasswordResp.prototype.toObject = function(opt_includeInstance) {
4367
+ return proto.event_store.client.users.ResetPasswordResp.toObject(opt_includeInstance, this);
4368
+ };
4369
+
4370
+
4371
+ /**
4372
+ * Static version of the {@see toObject} method.
4373
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4374
+ * the JSPB instance for transitional soy proto support:
4375
+ * http://goto/soy-param-migration
4376
+ * @param {!proto.event_store.client.users.ResetPasswordResp} msg The msg instance to transform.
4377
+ * @return {!Object}
4378
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4379
+ */
4380
+ proto.event_store.client.users.ResetPasswordResp.toObject = function(includeInstance, msg) {
4381
+ var f, obj = {
4382
+
4383
+ };
4384
+
4385
+ if (includeInstance) {
4386
+ obj.$jspbMessageInstance = msg;
4387
+ }
4388
+ return obj;
4389
+ };
4390
+ }
4391
+
4392
+
4393
+ /**
4394
+ * Deserializes binary data (in protobuf wire format).
4395
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4396
+ * @return {!proto.event_store.client.users.ResetPasswordResp}
4397
+ */
4398
+ proto.event_store.client.users.ResetPasswordResp.deserializeBinary = function(bytes) {
4399
+ var reader = new jspb.BinaryReader(bytes);
4400
+ var msg = new proto.event_store.client.users.ResetPasswordResp;
4401
+ return proto.event_store.client.users.ResetPasswordResp.deserializeBinaryFromReader(msg, reader);
4402
+ };
4403
+
4404
+
4405
+ /**
4406
+ * Deserializes binary data (in protobuf wire format) from the
4407
+ * given reader into the given message object.
4408
+ * @param {!proto.event_store.client.users.ResetPasswordResp} msg The message object to deserialize into.
4409
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4410
+ * @return {!proto.event_store.client.users.ResetPasswordResp}
4411
+ */
4412
+ proto.event_store.client.users.ResetPasswordResp.deserializeBinaryFromReader = function(msg, reader) {
4413
+ while (reader.nextField()) {
4414
+ if (reader.isEndGroup()) {
4415
+ break;
4416
+ }
4417
+ var field = reader.getFieldNumber();
4418
+ switch (field) {
4419
+ default:
4420
+ reader.skipField();
4421
+ break;
4422
+ }
4423
+ }
4424
+ return msg;
4425
+ };
4426
+
4427
+
4428
+ /**
4429
+ * Serializes the message to binary data (in protobuf wire format).
4430
+ * @return {!Uint8Array}
4431
+ */
4432
+ proto.event_store.client.users.ResetPasswordResp.prototype.serializeBinary = function() {
4433
+ var writer = new jspb.BinaryWriter();
4434
+ proto.event_store.client.users.ResetPasswordResp.serializeBinaryToWriter(this, writer);
4435
+ return writer.getResultBuffer();
4436
+ };
4437
+
4438
+
4439
+ /**
4440
+ * Serializes the given message to binary data (in protobuf wire
4441
+ * format), writing to the given BinaryWriter.
4442
+ * @param {!proto.event_store.client.users.ResetPasswordResp} message
4443
+ * @param {!jspb.BinaryWriter} writer
4444
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4445
+ */
4446
+ proto.event_store.client.users.ResetPasswordResp.serializeBinaryToWriter = function(message, writer) {
4447
+ var f = undefined;
4448
+ };
4449
+
4450
+
4451
+ goog.object.extend(exports, proto.event_store.client.users);