@kurrent/kurrentdb-client 1.0.4 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/dist/Client/ServerFeatures.d.ts +2 -2
  2. package/dist/Client/ServerFeatures.js +2 -2
  3. package/dist/Client/ServerFeatures.js.map +1 -1
  4. package/dist/Client/discovery.js +2 -2
  5. package/dist/Client/discovery.js.map +1 -1
  6. package/dist/constants.d.ts +1 -0
  7. package/dist/constants.js +2 -1
  8. package/dist/constants.js.map +1 -1
  9. package/dist/persistentSubscription/createPersistentSubscriptionToAll.js +22 -12
  10. package/dist/persistentSubscription/createPersistentSubscriptionToAll.js.map +1 -1
  11. package/dist/persistentSubscription/createPersistentSubscriptionToStream.js +16 -6
  12. package/dist/persistentSubscription/createPersistentSubscriptionToStream.js.map +1 -1
  13. package/dist/persistentSubscription/deletePersistentSubscriptionToAll.js +7 -7
  14. package/dist/persistentSubscription/deletePersistentSubscriptionToAll.js.map +1 -1
  15. package/dist/persistentSubscription/deletePersistentSubscriptionToStream.js +5 -5
  16. package/dist/persistentSubscription/deletePersistentSubscriptionToStream.js.map +1 -1
  17. package/dist/persistentSubscription/getPersistentSubscriptionToAllInfo.js +7 -7
  18. package/dist/persistentSubscription/getPersistentSubscriptionToAllInfo.js.map +1 -1
  19. package/dist/persistentSubscription/getPersistentSubscriptionToStreamInfo.js +6 -6
  20. package/dist/persistentSubscription/getPersistentSubscriptionToStreamInfo.js.map +1 -1
  21. package/dist/persistentSubscription/listAllPersistentSubscriptions.js +7 -7
  22. package/dist/persistentSubscription/listAllPersistentSubscriptions.js.map +1 -1
  23. package/dist/persistentSubscription/listPersistentSubscriptionsToAll.js +8 -8
  24. package/dist/persistentSubscription/listPersistentSubscriptionsToAll.js.map +1 -1
  25. package/dist/persistentSubscription/listPersistentSubscriptionsToStream.js +7 -7
  26. package/dist/persistentSubscription/listPersistentSubscriptionsToStream.js.map +1 -1
  27. package/dist/persistentSubscription/replayParkedMessagesToAll.js +7 -7
  28. package/dist/persistentSubscription/replayParkedMessagesToAll.js.map +1 -1
  29. package/dist/persistentSubscription/replayParkedMessagesToStream.js +7 -7
  30. package/dist/persistentSubscription/replayParkedMessagesToStream.js.map +1 -1
  31. package/dist/persistentSubscription/restartPersistentSubscriptionSubsystem.js +4 -4
  32. package/dist/persistentSubscription/restartPersistentSubscriptionSubsystem.js.map +1 -1
  33. package/dist/persistentSubscription/subscribeToPersistentSubscriptionToAll.js +8 -8
  34. package/dist/persistentSubscription/subscribeToPersistentSubscriptionToAll.js.map +1 -1
  35. package/dist/persistentSubscription/subscribeToPersistentSubscriptionToStream.js +7 -7
  36. package/dist/persistentSubscription/subscribeToPersistentSubscriptionToStream.js.map +1 -1
  37. package/dist/persistentSubscription/updatePersistentSubscriptionToAll.js +10 -10
  38. package/dist/persistentSubscription/updatePersistentSubscriptionToAll.js.map +1 -1
  39. package/dist/persistentSubscription/updatePersistentSubscriptionToStream.js +6 -6
  40. package/dist/persistentSubscription/updatePersistentSubscriptionToStream.js.map +1 -1
  41. package/dist/persistentSubscription/utils/PersistentSubscriptionImpl.d.ts +1 -1
  42. package/dist/persistentSubscription/utils/PersistentSubscriptionImpl.js +9 -9
  43. package/dist/persistentSubscription/utils/PersistentSubscriptionImpl.js.map +1 -1
  44. package/dist/persistentSubscription/utils/mapPersistentSubscriptionInfo.d.ts +1 -1
  45. package/dist/persistentSubscription/utils/settingsToGRPC.d.ts +1 -1
  46. package/dist/persistentSubscription/utils/settingsToGRPC.js +13 -4
  47. package/dist/persistentSubscription/utils/settingsToGRPC.js.map +1 -1
  48. package/dist/projections/createProjection.js +7 -7
  49. package/dist/projections/createProjection.js.map +1 -1
  50. package/dist/projections/deleteProjection.js +5 -5
  51. package/dist/projections/deleteProjection.js.map +1 -1
  52. package/dist/projections/disableProjection.js +5 -5
  53. package/dist/projections/disableProjection.js.map +1 -1
  54. package/dist/projections/enableProjection.js +5 -5
  55. package/dist/projections/enableProjection.js.map +1 -1
  56. package/dist/projections/getProjectionResult.js +5 -5
  57. package/dist/projections/getProjectionResult.js.map +1 -1
  58. package/dist/projections/getProjectionState.js +5 -5
  59. package/dist/projections/getProjectionState.js.map +1 -1
  60. package/dist/projections/getProjectionStatus.js +5 -5
  61. package/dist/projections/getProjectionStatus.js.map +1 -1
  62. package/dist/projections/listProjections.js +6 -6
  63. package/dist/projections/listProjections.js.map +1 -1
  64. package/dist/projections/resetProjection.js +5 -5
  65. package/dist/projections/resetProjection.js.map +1 -1
  66. package/dist/projections/restartSubsystem.js +3 -3
  67. package/dist/projections/restartSubsystem.js.map +1 -1
  68. package/dist/projections/updateProjection.js +6 -6
  69. package/dist/projections/updateProjection.js.map +1 -1
  70. package/dist/projections/utils/mapGrpcProjectionDetails.d.ts +1 -1
  71. package/dist/streams/appendToStream/append.js +3 -3
  72. package/dist/streams/appendToStream/append.js.map +1 -1
  73. package/dist/streams/appendToStream/batchAppend.js +3 -3
  74. package/dist/streams/appendToStream/batchAppend.js.map +1 -1
  75. package/dist/streams/appendToStream/index.d.ts +2 -1
  76. package/dist/streams/appendToStream/index.js +10 -1
  77. package/dist/streams/appendToStream/index.js.map +1 -1
  78. package/dist/streams/appendToStream/multiStreamAppend.d.ts +3 -0
  79. package/dist/streams/appendToStream/multiStreamAppend.js +130 -0
  80. package/dist/streams/appendToStream/multiStreamAppend.js.map +1 -0
  81. package/dist/streams/appendToStream/unpackError.d.ts +2 -2
  82. package/dist/streams/appendToStream/unpackError.js +1 -1
  83. package/dist/streams/appendToStream/unpackError.js.map +1 -1
  84. package/dist/streams/deleteStream.js +3 -3
  85. package/dist/streams/deleteStream.js.map +1 -1
  86. package/dist/streams/subscribeToAll.js +3 -3
  87. package/dist/streams/subscribeToAll.js.map +1 -1
  88. package/dist/streams/subscribeToStream.js +3 -3
  89. package/dist/streams/subscribeToStream.js.map +1 -1
  90. package/dist/streams/tombstoneStream.js +3 -3
  91. package/dist/streams/tombstoneStream.js.map +1 -1
  92. package/dist/streams/utils/ReadStream.d.ts +1 -1
  93. package/dist/streams/utils/Subscription.d.ts +1 -1
  94. package/dist/types/index.d.ts +35 -4
  95. package/dist/types/index.js +5 -2
  96. package/dist/types/index.js.map +1 -1
  97. package/dist/utils/CommandError.d.ts +26 -2
  98. package/dist/utils/CommandError.js +100 -3
  99. package/dist/utils/CommandError.js.map +1 -1
  100. package/dist/utils/convertGrpcEvent.d.ts +2 -2
  101. package/dist/utils/getGrpcStatusDetails.d.ts +5 -0
  102. package/dist/utils/getGrpcStatusDetails.js +17 -0
  103. package/dist/utils/getGrpcStatusDetails.js.map +1 -0
  104. package/dist/utils/grpcStreamIdentifier.d.ts +1 -1
  105. package/dist/utils/grpcStreamIdentifier.js +1 -1
  106. package/dist/utils/grpcStreamIdentifier.js.map +1 -1
  107. package/dist/utils/grpcUUID.d.ts +1 -1
  108. package/dist/utils/grpcUUID.js +1 -1
  109. package/dist/utils/grpcUUID.js.map +1 -1
  110. package/dist/utils/index.d.ts +3 -0
  111. package/dist/utils/index.js +3 -0
  112. package/dist/utils/index.js.map +1 -1
  113. package/dist/utils/mapToValue.d.ts +3 -0
  114. package/dist/utils/mapToValue.js +19 -0
  115. package/dist/utils/mapToValue.js.map +1 -0
  116. package/dist/utils/schema.d.ts +7 -0
  117. package/dist/utils/schema.js +21 -0
  118. package/dist/utils/schema.js.map +1 -0
  119. package/generated/{code_pb.d.ts → kurrentdb/protocols/v1/code_pb.d.ts} +1 -1
  120. package/generated/{code_pb.js → kurrentdb/protocols/v1/code_pb.js} +1 -1
  121. package/generated/kurrentdb/protocols/v1/gossip_grpc_pb.d.ts +42 -0
  122. package/generated/{gossip_grpc_pb.js → kurrentdb/protocols/v1/gossip_grpc_pb.js} +8 -8
  123. package/generated/{gossip_pb.d.ts → kurrentdb/protocols/v1/gossip_pb.d.ts} +5 -5
  124. package/generated/{gossip_pb.js → kurrentdb/protocols/v1/gossip_pb.js} +8 -8
  125. package/generated/kurrentdb/protocols/v1/operations_grpc_pb.d.ts +144 -0
  126. package/generated/{operations_grpc_pb.js → kurrentdb/protocols/v1/operations_grpc_pb.js} +26 -26
  127. package/generated/{operations_pb.d.ts → kurrentdb/protocols/v1/operations_pb.d.ts} +2 -2
  128. package/generated/{operations_pb.js → kurrentdb/protocols/v1/operations_pb.js} +3 -3
  129. package/generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb.d.ts +160 -0
  130. package/generated/{persistent_grpc_pb.js → kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb.js} +48 -48
  131. package/generated/{persistent_pb.d.ts → kurrentdb/protocols/v1/persistentsubscriptions_pb.d.ts} +106 -106
  132. package/generated/{persistent_pb.js → kurrentdb/protocols/v1/persistentsubscriptions_pb.js} +173 -173
  133. package/generated/kurrentdb/protocols/v1/projectionmanagement_grpc_pb.d.ts +194 -0
  134. package/generated/{projections_grpc_pb.js → kurrentdb/protocols/v1/projectionmanagement_grpc_pb.js} +60 -60
  135. package/generated/{projections_pb.d.ts → kurrentdb/protocols/v1/projectionmanagement_pb.d.ts} +20 -20
  136. package/generated/{projections_pb.js → kurrentdb/protocols/v1/projectionmanagement_pb.js} +33 -33
  137. package/generated/kurrentdb/protocols/v1/serverfeatures_grpc_pb.d.ts +42 -0
  138. package/generated/{serverfeatures_grpc_pb.js → kurrentdb/protocols/v1/serverfeatures_grpc_pb.js} +8 -8
  139. package/generated/{serverfeatures_pb.d.ts → kurrentdb/protocols/v1/serverfeatures_pb.d.ts} +2 -2
  140. package/generated/{serverfeatures_pb.js → kurrentdb/protocols/v1/serverfeatures_pb.js} +3 -3
  141. package/generated/{shared_pb.d.ts → kurrentdb/protocols/v1/shared_pb.d.ts} +1 -1
  142. package/generated/{shared_pb.js → kurrentdb/protocols/v1/shared_pb.js} +1 -1
  143. package/generated/{status_pb.d.ts → kurrentdb/protocols/v1/status_pb.d.ts} +5 -5
  144. package/generated/{status_pb.js → kurrentdb/protocols/v1/status_pb.js} +3 -3
  145. package/generated/kurrentdb/protocols/v1/streams_grpc_pb.d.ts +113 -0
  146. package/generated/{streams_grpc_pb.js → kurrentdb/protocols/v1/streams_grpc_pb.js} +33 -33
  147. package/generated/{streams_pb.d.ts → kurrentdb/protocols/v1/streams_pb.d.ts} +138 -138
  148. package/generated/{streams_pb.js → kurrentdb/protocols/v1/streams_pb.js} +230 -230
  149. package/generated/kurrentdb/protocols/v1/usermanagement_grpc_pb.d.ts +158 -0
  150. package/generated/{users_grpc_pb.js → kurrentdb/protocols/v1/usermanagement_grpc_pb.js} +49 -49
  151. package/generated/{users_pb.d.ts → kurrentdb/protocols/v1/usermanagement_pb.d.ts} +1 -1
  152. package/generated/{users_pb.js → kurrentdb/protocols/v1/usermanagement_pb.js} +1 -1
  153. package/generated/kurrentdb/protocols/v2/core_grpc_pb.js +1 -0
  154. package/generated/kurrentdb/protocols/v2/core_pb.d.ts +188 -0
  155. package/generated/kurrentdb/protocols/v2/core_pb.js +1301 -0
  156. package/generated/kurrentdb/protocols/v2/errors_grpc_pb.js +1 -0
  157. package/generated/kurrentdb/protocols/v2/errors_pb.d.ts +105 -0
  158. package/generated/kurrentdb/protocols/v2/errors_pb.js +692 -0
  159. package/generated/kurrentdb/protocols/v2/features/service_grpc_pb.d.ts +43 -0
  160. package/generated/kurrentdb/protocols/v2/features/service_grpc_pb.js +50 -0
  161. package/generated/kurrentdb/protocols/v2/features/service_pb.d.ts +227 -0
  162. package/generated/kurrentdb/protocols/v2/features/service_pb.js +1753 -0
  163. package/generated/kurrentdb/protocols/v2/rpc_grpc_pb.js +1 -0
  164. package/generated/kurrentdb/protocols/v2/rpc_pb.d.ts +34 -0
  165. package/generated/kurrentdb/protocols/v2/rpc_pb.js +236 -0
  166. package/generated/kurrentdb/protocols/v2/streams/errors_grpc_pb.js +1 -0
  167. package/generated/kurrentdb/protocols/v2/streams/errors_pb.d.ts +199 -0
  168. package/generated/kurrentdb/protocols/v2/streams/errors_pb.js +1439 -0
  169. package/generated/kurrentdb/protocols/v2/streams/shared_grpc_pb.js +1 -0
  170. package/generated/kurrentdb/protocols/v2/streams/shared_pb.d.ts +218 -0
  171. package/generated/kurrentdb/protocols/v2/streams/shared_pb.js +1561 -0
  172. package/generated/kurrentdb/protocols/v2/streams/streams_grpc_pb.d.ts +44 -0
  173. package/generated/kurrentdb/protocols/v2/streams/streams_grpc_pb.js +69 -0
  174. package/generated/kurrentdb/protocols/v2/streams/streams_pb.d.ts +176 -0
  175. package/generated/kurrentdb/protocols/v2/streams/streams_pb.js +1289 -0
  176. package/package.json +66 -64
  177. package/generated/cluster_grpc_pb.d.ts +0 -211
  178. package/generated/cluster_grpc_pb.js +0 -247
  179. package/generated/cluster_pb.d.ts +0 -546
  180. package/generated/cluster_pb.js +0 -4357
  181. package/generated/gossip_grpc_pb.d.ts +0 -42
  182. package/generated/monitoring_grpc_pb.d.ts +0 -39
  183. package/generated/monitoring_grpc_pb.js +0 -44
  184. package/generated/monitoring_pb.d.ts +0 -52
  185. package/generated/monitoring_pb.js +0 -361
  186. package/generated/operations_grpc_pb.d.ts +0 -144
  187. package/generated/persistent_grpc_pb.d.ts +0 -160
  188. package/generated/projections_grpc_pb.d.ts +0 -194
  189. package/generated/serverfeatures_grpc_pb.d.ts +0 -42
  190. package/generated/streams_grpc_pb.d.ts +0 -113
  191. package/generated/users_grpc_pb.d.ts +0 -158
  192. /package/generated/{code_grpc_pb.js → kurrentdb/protocols/v1/code_grpc_pb.js} +0 -0
  193. /package/generated/{shared_grpc_pb.js → kurrentdb/protocols/v1/shared_grpc_pb.js} +0 -0
  194. /package/generated/{status_grpc_pb.js → kurrentdb/protocols/v1/status_grpc_pb.js} +0 -0
@@ -0,0 +1,1439 @@
1
+ // source: kurrentdb/protocols/v2/streams/errors.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
23
+
24
+ var kurrentdb_protocols_v2_rpc_pb = require('../../../../kurrentdb/protocols/v2/rpc_pb.js');
25
+ goog.object.extend(proto, kurrentdb_protocols_v2_rpc_pb);
26
+ goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails', null, global);
27
+ goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails', null, global);
28
+ goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails', null, global);
29
+ goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails', null, global);
30
+ goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails', null, global);
31
+ goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails', null, global);
32
+ goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails', null, global);
33
+ goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails', null, global);
34
+ goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.errors.StreamsError', null, global);
35
+ /**
36
+ * Generated by JsPbCodeGenerator.
37
+ * @param {Array=} opt_data Optional initial data array, typically from a
38
+ * server response, or constructed directly in Javascript. The array is used
39
+ * in place and becomes part of the constructed object. It is not cloned.
40
+ * If no data is provided, the constructed object will be empty, but still
41
+ * valid.
42
+ * @extends {jspb.Message}
43
+ * @constructor
44
+ */
45
+ proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails = function(opt_data) {
46
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
47
+ };
48
+ goog.inherits(proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails, jspb.Message);
49
+ if (goog.DEBUG && !COMPILED) {
50
+ /**
51
+ * @public
52
+ * @override
53
+ */
54
+ proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails';
55
+ }
56
+ /**
57
+ * Generated by JsPbCodeGenerator.
58
+ * @param {Array=} opt_data Optional initial data array, typically from a
59
+ * server response, or constructed directly in Javascript. The array is used
60
+ * in place and becomes part of the constructed object. It is not cloned.
61
+ * If no data is provided, the constructed object will be empty, but still
62
+ * valid.
63
+ * @extends {jspb.Message}
64
+ * @constructor
65
+ */
66
+ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails = function(opt_data) {
67
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
68
+ };
69
+ goog.inherits(proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails, jspb.Message);
70
+ if (goog.DEBUG && !COMPILED) {
71
+ /**
72
+ * @public
73
+ * @override
74
+ */
75
+ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails';
76
+ }
77
+ /**
78
+ * Generated by JsPbCodeGenerator.
79
+ * @param {Array=} opt_data Optional initial data array, typically from a
80
+ * server response, or constructed directly in Javascript. The array is used
81
+ * in place and becomes part of the constructed object. It is not cloned.
82
+ * If no data is provided, the constructed object will be empty, but still
83
+ * valid.
84
+ * @extends {jspb.Message}
85
+ * @constructor
86
+ */
87
+ proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails = function(opt_data) {
88
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
89
+ };
90
+ goog.inherits(proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails, jspb.Message);
91
+ if (goog.DEBUG && !COMPILED) {
92
+ /**
93
+ * @public
94
+ * @override
95
+ */
96
+ proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails';
97
+ }
98
+ /**
99
+ * Generated by JsPbCodeGenerator.
100
+ * @param {Array=} opt_data Optional initial data array, typically from a
101
+ * server response, or constructed directly in Javascript. The array is used
102
+ * in place and becomes part of the constructed object. It is not cloned.
103
+ * If no data is provided, the constructed object will be empty, but still
104
+ * valid.
105
+ * @extends {jspb.Message}
106
+ * @constructor
107
+ */
108
+ proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails = function(opt_data) {
109
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
110
+ };
111
+ goog.inherits(proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails, jspb.Message);
112
+ if (goog.DEBUG && !COMPILED) {
113
+ /**
114
+ * @public
115
+ * @override
116
+ */
117
+ proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails';
118
+ }
119
+ /**
120
+ * Generated by JsPbCodeGenerator.
121
+ * @param {Array=} opt_data Optional initial data array, typically from a
122
+ * server response, or constructed directly in Javascript. The array is used
123
+ * in place and becomes part of the constructed object. It is not cloned.
124
+ * If no data is provided, the constructed object will be empty, but still
125
+ * valid.
126
+ * @extends {jspb.Message}
127
+ * @constructor
128
+ */
129
+ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails = function(opt_data) {
130
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
131
+ };
132
+ goog.inherits(proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails, jspb.Message);
133
+ if (goog.DEBUG && !COMPILED) {
134
+ /**
135
+ * @public
136
+ * @override
137
+ */
138
+ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails';
139
+ }
140
+ /**
141
+ * Generated by JsPbCodeGenerator.
142
+ * @param {Array=} opt_data Optional initial data array, typically from a
143
+ * server response, or constructed directly in Javascript. The array is used
144
+ * in place and becomes part of the constructed object. It is not cloned.
145
+ * If no data is provided, the constructed object will be empty, but still
146
+ * valid.
147
+ * @extends {jspb.Message}
148
+ * @constructor
149
+ */
150
+ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails = function(opt_data) {
151
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
152
+ };
153
+ goog.inherits(proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails, jspb.Message);
154
+ if (goog.DEBUG && !COMPILED) {
155
+ /**
156
+ * @public
157
+ * @override
158
+ */
159
+ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails';
160
+ }
161
+ /**
162
+ * Generated by JsPbCodeGenerator.
163
+ * @param {Array=} opt_data Optional initial data array, typically from a
164
+ * server response, or constructed directly in Javascript. The array is used
165
+ * in place and becomes part of the constructed object. It is not cloned.
166
+ * If no data is provided, the constructed object will be empty, but still
167
+ * valid.
168
+ * @extends {jspb.Message}
169
+ * @constructor
170
+ */
171
+ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails = function(opt_data) {
172
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
173
+ };
174
+ goog.inherits(proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails, jspb.Message);
175
+ if (goog.DEBUG && !COMPILED) {
176
+ /**
177
+ * @public
178
+ * @override
179
+ */
180
+ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails';
181
+ }
182
+ /**
183
+ * Generated by JsPbCodeGenerator.
184
+ * @param {Array=} opt_data Optional initial data array, typically from a
185
+ * server response, or constructed directly in Javascript. The array is used
186
+ * in place and becomes part of the constructed object. It is not cloned.
187
+ * If no data is provided, the constructed object will be empty, but still
188
+ * valid.
189
+ * @extends {jspb.Message}
190
+ * @constructor
191
+ */
192
+ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails = function(opt_data) {
193
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
194
+ };
195
+ goog.inherits(proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails, jspb.Message);
196
+ if (goog.DEBUG && !COMPILED) {
197
+ /**
198
+ * @public
199
+ * @override
200
+ */
201
+ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails';
202
+ }
203
+
204
+
205
+
206
+ if (jspb.Message.GENERATE_TO_OBJECT) {
207
+ /**
208
+ * Creates an object representation of this proto.
209
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
210
+ * Optional fields that are not set will be set to undefined.
211
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
212
+ * For the list of reserved names please see:
213
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
214
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
215
+ * JSPB instance for transitional soy proto support:
216
+ * http://goto/soy-param-migration
217
+ * @return {!Object}
218
+ */
219
+ proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.prototype.toObject = function(opt_includeInstance) {
220
+ return proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.toObject(opt_includeInstance, this);
221
+ };
222
+
223
+
224
+ /**
225
+ * Static version of the {@see toObject} method.
226
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
227
+ * the JSPB instance for transitional soy proto support:
228
+ * http://goto/soy-param-migration
229
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails} msg The msg instance to transform.
230
+ * @return {!Object}
231
+ * @suppress {unusedLocalVariables} f is only used for nested messages
232
+ */
233
+ proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.toObject = function(includeInstance, msg) {
234
+ var f, obj = {
235
+ stream: jspb.Message.getFieldWithDefault(msg, 1, "")
236
+ };
237
+
238
+ if (includeInstance) {
239
+ obj.$jspbMessageInstance = msg;
240
+ }
241
+ return obj;
242
+ };
243
+ }
244
+
245
+
246
+ /**
247
+ * Deserializes binary data (in protobuf wire format).
248
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
249
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails}
250
+ */
251
+ proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.deserializeBinary = function(bytes) {
252
+ var reader = new jspb.BinaryReader(bytes);
253
+ var msg = new proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails;
254
+ return proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.deserializeBinaryFromReader(msg, reader);
255
+ };
256
+
257
+
258
+ /**
259
+ * Deserializes binary data (in protobuf wire format) from the
260
+ * given reader into the given message object.
261
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails} msg The message object to deserialize into.
262
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
263
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails}
264
+ */
265
+ proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.deserializeBinaryFromReader = function(msg, reader) {
266
+ while (reader.nextField()) {
267
+ if (reader.isEndGroup()) {
268
+ break;
269
+ }
270
+ var field = reader.getFieldNumber();
271
+ switch (field) {
272
+ case 1:
273
+ var value = /** @type {string} */ (reader.readString());
274
+ msg.setStream(value);
275
+ break;
276
+ default:
277
+ reader.skipField();
278
+ break;
279
+ }
280
+ }
281
+ return msg;
282
+ };
283
+
284
+
285
+ /**
286
+ * Serializes the message to binary data (in protobuf wire format).
287
+ * @return {!Uint8Array}
288
+ */
289
+ proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.prototype.serializeBinary = function() {
290
+ var writer = new jspb.BinaryWriter();
291
+ proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.serializeBinaryToWriter(this, writer);
292
+ return writer.getResultBuffer();
293
+ };
294
+
295
+
296
+ /**
297
+ * Serializes the given message to binary data (in protobuf wire
298
+ * format), writing to the given BinaryWriter.
299
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails} message
300
+ * @param {!jspb.BinaryWriter} writer
301
+ * @suppress {unusedLocalVariables} f is only used for nested messages
302
+ */
303
+ proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.serializeBinaryToWriter = function(message, writer) {
304
+ var f = undefined;
305
+ f = message.getStream();
306
+ if (f.length > 0) {
307
+ writer.writeString(
308
+ 1,
309
+ f
310
+ );
311
+ }
312
+ };
313
+
314
+
315
+ /**
316
+ * optional string stream = 1;
317
+ * @return {string}
318
+ */
319
+ proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.prototype.getStream = function() {
320
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
321
+ };
322
+
323
+
324
+ /**
325
+ * @param {string} value
326
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails} returns this
327
+ */
328
+ proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.prototype.setStream = function(value) {
329
+ return jspb.Message.setProto3StringField(this, 1, value);
330
+ };
331
+
332
+
333
+
334
+
335
+
336
+ if (jspb.Message.GENERATE_TO_OBJECT) {
337
+ /**
338
+ * Creates an object representation of this proto.
339
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
340
+ * Optional fields that are not set will be set to undefined.
341
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
342
+ * For the list of reserved names please see:
343
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
344
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
345
+ * JSPB instance for transitional soy proto support:
346
+ * http://goto/soy-param-migration
347
+ * @return {!Object}
348
+ */
349
+ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.prototype.toObject = function(opt_includeInstance) {
350
+ return proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.toObject(opt_includeInstance, this);
351
+ };
352
+
353
+
354
+ /**
355
+ * Static version of the {@see toObject} method.
356
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
357
+ * the JSPB instance for transitional soy proto support:
358
+ * http://goto/soy-param-migration
359
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails} msg The msg instance to transform.
360
+ * @return {!Object}
361
+ * @suppress {unusedLocalVariables} f is only used for nested messages
362
+ */
363
+ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.toObject = function(includeInstance, msg) {
364
+ var f, obj = {
365
+ stream: jspb.Message.getFieldWithDefault(msg, 1, "")
366
+ };
367
+
368
+ if (includeInstance) {
369
+ obj.$jspbMessageInstance = msg;
370
+ }
371
+ return obj;
372
+ };
373
+ }
374
+
375
+
376
+ /**
377
+ * Deserializes binary data (in protobuf wire format).
378
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
379
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails}
380
+ */
381
+ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.deserializeBinary = function(bytes) {
382
+ var reader = new jspb.BinaryReader(bytes);
383
+ var msg = new proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails;
384
+ return proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.deserializeBinaryFromReader(msg, reader);
385
+ };
386
+
387
+
388
+ /**
389
+ * Deserializes binary data (in protobuf wire format) from the
390
+ * given reader into the given message object.
391
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails} msg The message object to deserialize into.
392
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
393
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails}
394
+ */
395
+ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.deserializeBinaryFromReader = function(msg, reader) {
396
+ while (reader.nextField()) {
397
+ if (reader.isEndGroup()) {
398
+ break;
399
+ }
400
+ var field = reader.getFieldNumber();
401
+ switch (field) {
402
+ case 1:
403
+ var value = /** @type {string} */ (reader.readString());
404
+ msg.setStream(value);
405
+ break;
406
+ default:
407
+ reader.skipField();
408
+ break;
409
+ }
410
+ }
411
+ return msg;
412
+ };
413
+
414
+
415
+ /**
416
+ * Serializes the message to binary data (in protobuf wire format).
417
+ * @return {!Uint8Array}
418
+ */
419
+ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.prototype.serializeBinary = function() {
420
+ var writer = new jspb.BinaryWriter();
421
+ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.serializeBinaryToWriter(this, writer);
422
+ return writer.getResultBuffer();
423
+ };
424
+
425
+
426
+ /**
427
+ * Serializes the given message to binary data (in protobuf wire
428
+ * format), writing to the given BinaryWriter.
429
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails} message
430
+ * @param {!jspb.BinaryWriter} writer
431
+ * @suppress {unusedLocalVariables} f is only used for nested messages
432
+ */
433
+ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.serializeBinaryToWriter = function(message, writer) {
434
+ var f = undefined;
435
+ f = message.getStream();
436
+ if (f.length > 0) {
437
+ writer.writeString(
438
+ 1,
439
+ f
440
+ );
441
+ }
442
+ };
443
+
444
+
445
+ /**
446
+ * optional string stream = 1;
447
+ * @return {string}
448
+ */
449
+ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.prototype.getStream = function() {
450
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
451
+ };
452
+
453
+
454
+ /**
455
+ * @param {string} value
456
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails} returns this
457
+ */
458
+ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.prototype.setStream = function(value) {
459
+ return jspb.Message.setProto3StringField(this, 1, value);
460
+ };
461
+
462
+
463
+
464
+
465
+
466
+ if (jspb.Message.GENERATE_TO_OBJECT) {
467
+ /**
468
+ * Creates an object representation of this proto.
469
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
470
+ * Optional fields that are not set will be set to undefined.
471
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
472
+ * For the list of reserved names please see:
473
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
474
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
475
+ * JSPB instance for transitional soy proto support:
476
+ * http://goto/soy-param-migration
477
+ * @return {!Object}
478
+ */
479
+ proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.prototype.toObject = function(opt_includeInstance) {
480
+ return proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.toObject(opt_includeInstance, this);
481
+ };
482
+
483
+
484
+ /**
485
+ * Static version of the {@see toObject} method.
486
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
487
+ * the JSPB instance for transitional soy proto support:
488
+ * http://goto/soy-param-migration
489
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails} msg The msg instance to transform.
490
+ * @return {!Object}
491
+ * @suppress {unusedLocalVariables} f is only used for nested messages
492
+ */
493
+ proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.toObject = function(includeInstance, msg) {
494
+ var f, obj = {
495
+ stream: jspb.Message.getFieldWithDefault(msg, 1, "")
496
+ };
497
+
498
+ if (includeInstance) {
499
+ obj.$jspbMessageInstance = msg;
500
+ }
501
+ return obj;
502
+ };
503
+ }
504
+
505
+
506
+ /**
507
+ * Deserializes binary data (in protobuf wire format).
508
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
509
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails}
510
+ */
511
+ proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.deserializeBinary = function(bytes) {
512
+ var reader = new jspb.BinaryReader(bytes);
513
+ var msg = new proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails;
514
+ return proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.deserializeBinaryFromReader(msg, reader);
515
+ };
516
+
517
+
518
+ /**
519
+ * Deserializes binary data (in protobuf wire format) from the
520
+ * given reader into the given message object.
521
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails} msg The message object to deserialize into.
522
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
523
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails}
524
+ */
525
+ proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.deserializeBinaryFromReader = function(msg, reader) {
526
+ while (reader.nextField()) {
527
+ if (reader.isEndGroup()) {
528
+ break;
529
+ }
530
+ var field = reader.getFieldNumber();
531
+ switch (field) {
532
+ case 1:
533
+ var value = /** @type {string} */ (reader.readString());
534
+ msg.setStream(value);
535
+ break;
536
+ default:
537
+ reader.skipField();
538
+ break;
539
+ }
540
+ }
541
+ return msg;
542
+ };
543
+
544
+
545
+ /**
546
+ * Serializes the message to binary data (in protobuf wire format).
547
+ * @return {!Uint8Array}
548
+ */
549
+ proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.prototype.serializeBinary = function() {
550
+ var writer = new jspb.BinaryWriter();
551
+ proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.serializeBinaryToWriter(this, writer);
552
+ return writer.getResultBuffer();
553
+ };
554
+
555
+
556
+ /**
557
+ * Serializes the given message to binary data (in protobuf wire
558
+ * format), writing to the given BinaryWriter.
559
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails} message
560
+ * @param {!jspb.BinaryWriter} writer
561
+ * @suppress {unusedLocalVariables} f is only used for nested messages
562
+ */
563
+ proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.serializeBinaryToWriter = function(message, writer) {
564
+ var f = undefined;
565
+ f = message.getStream();
566
+ if (f.length > 0) {
567
+ writer.writeString(
568
+ 1,
569
+ f
570
+ );
571
+ }
572
+ };
573
+
574
+
575
+ /**
576
+ * optional string stream = 1;
577
+ * @return {string}
578
+ */
579
+ proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.prototype.getStream = function() {
580
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
581
+ };
582
+
583
+
584
+ /**
585
+ * @param {string} value
586
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails} returns this
587
+ */
588
+ proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.prototype.setStream = function(value) {
589
+ return jspb.Message.setProto3StringField(this, 1, value);
590
+ };
591
+
592
+
593
+
594
+
595
+
596
+ if (jspb.Message.GENERATE_TO_OBJECT) {
597
+ /**
598
+ * Creates an object representation of this proto.
599
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
600
+ * Optional fields that are not set will be set to undefined.
601
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
602
+ * For the list of reserved names please see:
603
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
604
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
605
+ * JSPB instance for transitional soy proto support:
606
+ * http://goto/soy-param-migration
607
+ * @return {!Object}
608
+ */
609
+ proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.prototype.toObject = function(opt_includeInstance) {
610
+ return proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.toObject(opt_includeInstance, this);
611
+ };
612
+
613
+
614
+ /**
615
+ * Static version of the {@see toObject} method.
616
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
617
+ * the JSPB instance for transitional soy proto support:
618
+ * http://goto/soy-param-migration
619
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails} msg The msg instance to transform.
620
+ * @return {!Object}
621
+ * @suppress {unusedLocalVariables} f is only used for nested messages
622
+ */
623
+ proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.toObject = function(includeInstance, msg) {
624
+ var f, obj = {
625
+ stream: jspb.Message.getFieldWithDefault(msg, 1, "")
626
+ };
627
+
628
+ if (includeInstance) {
629
+ obj.$jspbMessageInstance = msg;
630
+ }
631
+ return obj;
632
+ };
633
+ }
634
+
635
+
636
+ /**
637
+ * Deserializes binary data (in protobuf wire format).
638
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
639
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails}
640
+ */
641
+ proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.deserializeBinary = function(bytes) {
642
+ var reader = new jspb.BinaryReader(bytes);
643
+ var msg = new proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails;
644
+ return proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.deserializeBinaryFromReader(msg, reader);
645
+ };
646
+
647
+
648
+ /**
649
+ * Deserializes binary data (in protobuf wire format) from the
650
+ * given reader into the given message object.
651
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails} msg The message object to deserialize into.
652
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
653
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails}
654
+ */
655
+ proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.deserializeBinaryFromReader = function(msg, reader) {
656
+ while (reader.nextField()) {
657
+ if (reader.isEndGroup()) {
658
+ break;
659
+ }
660
+ var field = reader.getFieldNumber();
661
+ switch (field) {
662
+ case 1:
663
+ var value = /** @type {string} */ (reader.readString());
664
+ msg.setStream(value);
665
+ break;
666
+ default:
667
+ reader.skipField();
668
+ break;
669
+ }
670
+ }
671
+ return msg;
672
+ };
673
+
674
+
675
+ /**
676
+ * Serializes the message to binary data (in protobuf wire format).
677
+ * @return {!Uint8Array}
678
+ */
679
+ proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.prototype.serializeBinary = function() {
680
+ var writer = new jspb.BinaryWriter();
681
+ proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.serializeBinaryToWriter(this, writer);
682
+ return writer.getResultBuffer();
683
+ };
684
+
685
+
686
+ /**
687
+ * Serializes the given message to binary data (in protobuf wire
688
+ * format), writing to the given BinaryWriter.
689
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails} message
690
+ * @param {!jspb.BinaryWriter} writer
691
+ * @suppress {unusedLocalVariables} f is only used for nested messages
692
+ */
693
+ proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.serializeBinaryToWriter = function(message, writer) {
694
+ var f = undefined;
695
+ f = message.getStream();
696
+ if (f.length > 0) {
697
+ writer.writeString(
698
+ 1,
699
+ f
700
+ );
701
+ }
702
+ };
703
+
704
+
705
+ /**
706
+ * optional string stream = 1;
707
+ * @return {string}
708
+ */
709
+ proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.prototype.getStream = function() {
710
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
711
+ };
712
+
713
+
714
+ /**
715
+ * @param {string} value
716
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails} returns this
717
+ */
718
+ proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.prototype.setStream = function(value) {
719
+ return jspb.Message.setProto3StringField(this, 1, value);
720
+ };
721
+
722
+
723
+
724
+
725
+
726
+ if (jspb.Message.GENERATE_TO_OBJECT) {
727
+ /**
728
+ * Creates an object representation of this proto.
729
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
730
+ * Optional fields that are not set will be set to undefined.
731
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
732
+ * For the list of reserved names please see:
733
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
734
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
735
+ * JSPB instance for transitional soy proto support:
736
+ * http://goto/soy-param-migration
737
+ * @return {!Object}
738
+ */
739
+ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.prototype.toObject = function(opt_includeInstance) {
740
+ return proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.toObject(opt_includeInstance, this);
741
+ };
742
+
743
+
744
+ /**
745
+ * Static version of the {@see toObject} method.
746
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
747
+ * the JSPB instance for transitional soy proto support:
748
+ * http://goto/soy-param-migration
749
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails} msg The msg instance to transform.
750
+ * @return {!Object}
751
+ * @suppress {unusedLocalVariables} f is only used for nested messages
752
+ */
753
+ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.toObject = function(includeInstance, msg) {
754
+ var f, obj = {
755
+ stream: jspb.Message.getFieldWithDefault(msg, 1, ""),
756
+ expectedRevision: jspb.Message.getFieldWithDefault(msg, 2, "0"),
757
+ actualRevision: jspb.Message.getFieldWithDefault(msg, 3, "0")
758
+ };
759
+
760
+ if (includeInstance) {
761
+ obj.$jspbMessageInstance = msg;
762
+ }
763
+ return obj;
764
+ };
765
+ }
766
+
767
+
768
+ /**
769
+ * Deserializes binary data (in protobuf wire format).
770
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
771
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails}
772
+ */
773
+ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.deserializeBinary = function(bytes) {
774
+ var reader = new jspb.BinaryReader(bytes);
775
+ var msg = new proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails;
776
+ return proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.deserializeBinaryFromReader(msg, reader);
777
+ };
778
+
779
+
780
+ /**
781
+ * Deserializes binary data (in protobuf wire format) from the
782
+ * given reader into the given message object.
783
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails} msg The message object to deserialize into.
784
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
785
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails}
786
+ */
787
+ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.deserializeBinaryFromReader = function(msg, reader) {
788
+ while (reader.nextField()) {
789
+ if (reader.isEndGroup()) {
790
+ break;
791
+ }
792
+ var field = reader.getFieldNumber();
793
+ switch (field) {
794
+ case 1:
795
+ var value = /** @type {string} */ (reader.readString());
796
+ msg.setStream(value);
797
+ break;
798
+ case 2:
799
+ var value = /** @type {string} */ (reader.readSint64String());
800
+ msg.setExpectedRevision(value);
801
+ break;
802
+ case 3:
803
+ var value = /** @type {string} */ (reader.readSint64String());
804
+ msg.setActualRevision(value);
805
+ break;
806
+ default:
807
+ reader.skipField();
808
+ break;
809
+ }
810
+ }
811
+ return msg;
812
+ };
813
+
814
+
815
+ /**
816
+ * Serializes the message to binary data (in protobuf wire format).
817
+ * @return {!Uint8Array}
818
+ */
819
+ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.prototype.serializeBinary = function() {
820
+ var writer = new jspb.BinaryWriter();
821
+ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.serializeBinaryToWriter(this, writer);
822
+ return writer.getResultBuffer();
823
+ };
824
+
825
+
826
+ /**
827
+ * Serializes the given message to binary data (in protobuf wire
828
+ * format), writing to the given BinaryWriter.
829
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails} message
830
+ * @param {!jspb.BinaryWriter} writer
831
+ * @suppress {unusedLocalVariables} f is only used for nested messages
832
+ */
833
+ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.serializeBinaryToWriter = function(message, writer) {
834
+ var f = undefined;
835
+ f = message.getStream();
836
+ if (f.length > 0) {
837
+ writer.writeString(
838
+ 1,
839
+ f
840
+ );
841
+ }
842
+ f = message.getExpectedRevision();
843
+ if (parseInt(f, 10) !== 0) {
844
+ writer.writeSint64String(
845
+ 2,
846
+ f
847
+ );
848
+ }
849
+ f = message.getActualRevision();
850
+ if (parseInt(f, 10) !== 0) {
851
+ writer.writeSint64String(
852
+ 3,
853
+ f
854
+ );
855
+ }
856
+ };
857
+
858
+
859
+ /**
860
+ * optional string stream = 1;
861
+ * @return {string}
862
+ */
863
+ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.prototype.getStream = function() {
864
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
865
+ };
866
+
867
+
868
+ /**
869
+ * @param {string} value
870
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails} returns this
871
+ */
872
+ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.prototype.setStream = function(value) {
873
+ return jspb.Message.setProto3StringField(this, 1, value);
874
+ };
875
+
876
+
877
+ /**
878
+ * optional sint64 expected_revision = 2;
879
+ * @return {string}
880
+ */
881
+ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.prototype.getExpectedRevision = function() {
882
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0"));
883
+ };
884
+
885
+
886
+ /**
887
+ * @param {string} value
888
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails} returns this
889
+ */
890
+ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.prototype.setExpectedRevision = function(value) {
891
+ return jspb.Message.setProto3StringIntField(this, 2, value);
892
+ };
893
+
894
+
895
+ /**
896
+ * optional sint64 actual_revision = 3;
897
+ * @return {string}
898
+ */
899
+ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.prototype.getActualRevision = function() {
900
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0"));
901
+ };
902
+
903
+
904
+ /**
905
+ * @param {string} value
906
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails} returns this
907
+ */
908
+ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.prototype.setActualRevision = function(value) {
909
+ return jspb.Message.setProto3StringIntField(this, 3, value);
910
+ };
911
+
912
+
913
+
914
+
915
+
916
+ if (jspb.Message.GENERATE_TO_OBJECT) {
917
+ /**
918
+ * Creates an object representation of this proto.
919
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
920
+ * Optional fields that are not set will be set to undefined.
921
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
922
+ * For the list of reserved names please see:
923
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
924
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
925
+ * JSPB instance for transitional soy proto support:
926
+ * http://goto/soy-param-migration
927
+ * @return {!Object}
928
+ */
929
+ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.prototype.toObject = function(opt_includeInstance) {
930
+ return proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.toObject(opt_includeInstance, this);
931
+ };
932
+
933
+
934
+ /**
935
+ * Static version of the {@see toObject} method.
936
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
937
+ * the JSPB instance for transitional soy proto support:
938
+ * http://goto/soy-param-migration
939
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails} msg The msg instance to transform.
940
+ * @return {!Object}
941
+ * @suppress {unusedLocalVariables} f is only used for nested messages
942
+ */
943
+ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.toObject = function(includeInstance, msg) {
944
+ var f, obj = {
945
+ stream: jspb.Message.getFieldWithDefault(msg, 1, ""),
946
+ recordId: jspb.Message.getFieldWithDefault(msg, 2, ""),
947
+ size: jspb.Message.getFieldWithDefault(msg, 3, 0),
948
+ maxSize: jspb.Message.getFieldWithDefault(msg, 4, 0)
949
+ };
950
+
951
+ if (includeInstance) {
952
+ obj.$jspbMessageInstance = msg;
953
+ }
954
+ return obj;
955
+ };
956
+ }
957
+
958
+
959
+ /**
960
+ * Deserializes binary data (in protobuf wire format).
961
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
962
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails}
963
+ */
964
+ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.deserializeBinary = function(bytes) {
965
+ var reader = new jspb.BinaryReader(bytes);
966
+ var msg = new proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails;
967
+ return proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.deserializeBinaryFromReader(msg, reader);
968
+ };
969
+
970
+
971
+ /**
972
+ * Deserializes binary data (in protobuf wire format) from the
973
+ * given reader into the given message object.
974
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails} msg The message object to deserialize into.
975
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
976
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails}
977
+ */
978
+ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.deserializeBinaryFromReader = function(msg, reader) {
979
+ while (reader.nextField()) {
980
+ if (reader.isEndGroup()) {
981
+ break;
982
+ }
983
+ var field = reader.getFieldNumber();
984
+ switch (field) {
985
+ case 1:
986
+ var value = /** @type {string} */ (reader.readString());
987
+ msg.setStream(value);
988
+ break;
989
+ case 2:
990
+ var value = /** @type {string} */ (reader.readString());
991
+ msg.setRecordId(value);
992
+ break;
993
+ case 3:
994
+ var value = /** @type {number} */ (reader.readInt32());
995
+ msg.setSize(value);
996
+ break;
997
+ case 4:
998
+ var value = /** @type {number} */ (reader.readInt32());
999
+ msg.setMaxSize(value);
1000
+ break;
1001
+ default:
1002
+ reader.skipField();
1003
+ break;
1004
+ }
1005
+ }
1006
+ return msg;
1007
+ };
1008
+
1009
+
1010
+ /**
1011
+ * Serializes the message to binary data (in protobuf wire format).
1012
+ * @return {!Uint8Array}
1013
+ */
1014
+ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.prototype.serializeBinary = function() {
1015
+ var writer = new jspb.BinaryWriter();
1016
+ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.serializeBinaryToWriter(this, writer);
1017
+ return writer.getResultBuffer();
1018
+ };
1019
+
1020
+
1021
+ /**
1022
+ * Serializes the given message to binary data (in protobuf wire
1023
+ * format), writing to the given BinaryWriter.
1024
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails} message
1025
+ * @param {!jspb.BinaryWriter} writer
1026
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1027
+ */
1028
+ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.serializeBinaryToWriter = function(message, writer) {
1029
+ var f = undefined;
1030
+ f = message.getStream();
1031
+ if (f.length > 0) {
1032
+ writer.writeString(
1033
+ 1,
1034
+ f
1035
+ );
1036
+ }
1037
+ f = message.getRecordId();
1038
+ if (f.length > 0) {
1039
+ writer.writeString(
1040
+ 2,
1041
+ f
1042
+ );
1043
+ }
1044
+ f = message.getSize();
1045
+ if (f !== 0) {
1046
+ writer.writeInt32(
1047
+ 3,
1048
+ f
1049
+ );
1050
+ }
1051
+ f = message.getMaxSize();
1052
+ if (f !== 0) {
1053
+ writer.writeInt32(
1054
+ 4,
1055
+ f
1056
+ );
1057
+ }
1058
+ };
1059
+
1060
+
1061
+ /**
1062
+ * optional string stream = 1;
1063
+ * @return {string}
1064
+ */
1065
+ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.prototype.getStream = function() {
1066
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1067
+ };
1068
+
1069
+
1070
+ /**
1071
+ * @param {string} value
1072
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails} returns this
1073
+ */
1074
+ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.prototype.setStream = function(value) {
1075
+ return jspb.Message.setProto3StringField(this, 1, value);
1076
+ };
1077
+
1078
+
1079
+ /**
1080
+ * optional string record_id = 2;
1081
+ * @return {string}
1082
+ */
1083
+ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.prototype.getRecordId = function() {
1084
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1085
+ };
1086
+
1087
+
1088
+ /**
1089
+ * @param {string} value
1090
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails} returns this
1091
+ */
1092
+ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.prototype.setRecordId = function(value) {
1093
+ return jspb.Message.setProto3StringField(this, 2, value);
1094
+ };
1095
+
1096
+
1097
+ /**
1098
+ * optional int32 size = 3;
1099
+ * @return {number}
1100
+ */
1101
+ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.prototype.getSize = function() {
1102
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1103
+ };
1104
+
1105
+
1106
+ /**
1107
+ * @param {number} value
1108
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails} returns this
1109
+ */
1110
+ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.prototype.setSize = function(value) {
1111
+ return jspb.Message.setProto3IntField(this, 3, value);
1112
+ };
1113
+
1114
+
1115
+ /**
1116
+ * optional int32 max_size = 4;
1117
+ * @return {number}
1118
+ */
1119
+ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.prototype.getMaxSize = function() {
1120
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1121
+ };
1122
+
1123
+
1124
+ /**
1125
+ * @param {number} value
1126
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails} returns this
1127
+ */
1128
+ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.prototype.setMaxSize = function(value) {
1129
+ return jspb.Message.setProto3IntField(this, 4, value);
1130
+ };
1131
+
1132
+
1133
+
1134
+
1135
+
1136
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1137
+ /**
1138
+ * Creates an object representation of this proto.
1139
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1140
+ * Optional fields that are not set will be set to undefined.
1141
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1142
+ * For the list of reserved names please see:
1143
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1144
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1145
+ * JSPB instance for transitional soy proto support:
1146
+ * http://goto/soy-param-migration
1147
+ * @return {!Object}
1148
+ */
1149
+ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.prototype.toObject = function(opt_includeInstance) {
1150
+ return proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.toObject(opt_includeInstance, this);
1151
+ };
1152
+
1153
+
1154
+ /**
1155
+ * Static version of the {@see toObject} method.
1156
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1157
+ * the JSPB instance for transitional soy proto support:
1158
+ * http://goto/soy-param-migration
1159
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails} msg The msg instance to transform.
1160
+ * @return {!Object}
1161
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1162
+ */
1163
+ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.toObject = function(includeInstance, msg) {
1164
+ var f, obj = {
1165
+ size: jspb.Message.getFieldWithDefault(msg, 1, 0),
1166
+ maxSize: jspb.Message.getFieldWithDefault(msg, 2, 0)
1167
+ };
1168
+
1169
+ if (includeInstance) {
1170
+ obj.$jspbMessageInstance = msg;
1171
+ }
1172
+ return obj;
1173
+ };
1174
+ }
1175
+
1176
+
1177
+ /**
1178
+ * Deserializes binary data (in protobuf wire format).
1179
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1180
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails}
1181
+ */
1182
+ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.deserializeBinary = function(bytes) {
1183
+ var reader = new jspb.BinaryReader(bytes);
1184
+ var msg = new proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails;
1185
+ return proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.deserializeBinaryFromReader(msg, reader);
1186
+ };
1187
+
1188
+
1189
+ /**
1190
+ * Deserializes binary data (in protobuf wire format) from the
1191
+ * given reader into the given message object.
1192
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails} msg The message object to deserialize into.
1193
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1194
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails}
1195
+ */
1196
+ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.deserializeBinaryFromReader = function(msg, reader) {
1197
+ while (reader.nextField()) {
1198
+ if (reader.isEndGroup()) {
1199
+ break;
1200
+ }
1201
+ var field = reader.getFieldNumber();
1202
+ switch (field) {
1203
+ case 1:
1204
+ var value = /** @type {number} */ (reader.readInt32());
1205
+ msg.setSize(value);
1206
+ break;
1207
+ case 2:
1208
+ var value = /** @type {number} */ (reader.readInt32());
1209
+ msg.setMaxSize(value);
1210
+ break;
1211
+ default:
1212
+ reader.skipField();
1213
+ break;
1214
+ }
1215
+ }
1216
+ return msg;
1217
+ };
1218
+
1219
+
1220
+ /**
1221
+ * Serializes the message to binary data (in protobuf wire format).
1222
+ * @return {!Uint8Array}
1223
+ */
1224
+ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.prototype.serializeBinary = function() {
1225
+ var writer = new jspb.BinaryWriter();
1226
+ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.serializeBinaryToWriter(this, writer);
1227
+ return writer.getResultBuffer();
1228
+ };
1229
+
1230
+
1231
+ /**
1232
+ * Serializes the given message to binary data (in protobuf wire
1233
+ * format), writing to the given BinaryWriter.
1234
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails} message
1235
+ * @param {!jspb.BinaryWriter} writer
1236
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1237
+ */
1238
+ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.serializeBinaryToWriter = function(message, writer) {
1239
+ var f = undefined;
1240
+ f = message.getSize();
1241
+ if (f !== 0) {
1242
+ writer.writeInt32(
1243
+ 1,
1244
+ f
1245
+ );
1246
+ }
1247
+ f = message.getMaxSize();
1248
+ if (f !== 0) {
1249
+ writer.writeInt32(
1250
+ 2,
1251
+ f
1252
+ );
1253
+ }
1254
+ };
1255
+
1256
+
1257
+ /**
1258
+ * optional int32 size = 1;
1259
+ * @return {number}
1260
+ */
1261
+ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.prototype.getSize = function() {
1262
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1263
+ };
1264
+
1265
+
1266
+ /**
1267
+ * @param {number} value
1268
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails} returns this
1269
+ */
1270
+ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.prototype.setSize = function(value) {
1271
+ return jspb.Message.setProto3IntField(this, 1, value);
1272
+ };
1273
+
1274
+
1275
+ /**
1276
+ * optional int32 max_size = 2;
1277
+ * @return {number}
1278
+ */
1279
+ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.prototype.getMaxSize = function() {
1280
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1281
+ };
1282
+
1283
+
1284
+ /**
1285
+ * @param {number} value
1286
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails} returns this
1287
+ */
1288
+ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.prototype.setMaxSize = function(value) {
1289
+ return jspb.Message.setProto3IntField(this, 2, value);
1290
+ };
1291
+
1292
+
1293
+
1294
+
1295
+
1296
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1297
+ /**
1298
+ * Creates an object representation of this proto.
1299
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1300
+ * Optional fields that are not set will be set to undefined.
1301
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1302
+ * For the list of reserved names please see:
1303
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1304
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1305
+ * JSPB instance for transitional soy proto support:
1306
+ * http://goto/soy-param-migration
1307
+ * @return {!Object}
1308
+ */
1309
+ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails.prototype.toObject = function(opt_includeInstance) {
1310
+ return proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails.toObject(opt_includeInstance, this);
1311
+ };
1312
+
1313
+
1314
+ /**
1315
+ * Static version of the {@see toObject} method.
1316
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1317
+ * the JSPB instance for transitional soy proto support:
1318
+ * http://goto/soy-param-migration
1319
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails} msg The msg instance to transform.
1320
+ * @return {!Object}
1321
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1322
+ */
1323
+ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails.toObject = function(includeInstance, msg) {
1324
+ var f, obj = {
1325
+ stream: jspb.Message.getFieldWithDefault(msg, 1, "")
1326
+ };
1327
+
1328
+ if (includeInstance) {
1329
+ obj.$jspbMessageInstance = msg;
1330
+ }
1331
+ return obj;
1332
+ };
1333
+ }
1334
+
1335
+
1336
+ /**
1337
+ * Deserializes binary data (in protobuf wire format).
1338
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1339
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails}
1340
+ */
1341
+ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails.deserializeBinary = function(bytes) {
1342
+ var reader = new jspb.BinaryReader(bytes);
1343
+ var msg = new proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails;
1344
+ return proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails.deserializeBinaryFromReader(msg, reader);
1345
+ };
1346
+
1347
+
1348
+ /**
1349
+ * Deserializes binary data (in protobuf wire format) from the
1350
+ * given reader into the given message object.
1351
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails} msg The message object to deserialize into.
1352
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1353
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails}
1354
+ */
1355
+ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails.deserializeBinaryFromReader = function(msg, reader) {
1356
+ while (reader.nextField()) {
1357
+ if (reader.isEndGroup()) {
1358
+ break;
1359
+ }
1360
+ var field = reader.getFieldNumber();
1361
+ switch (field) {
1362
+ case 1:
1363
+ var value = /** @type {string} */ (reader.readString());
1364
+ msg.setStream(value);
1365
+ break;
1366
+ default:
1367
+ reader.skipField();
1368
+ break;
1369
+ }
1370
+ }
1371
+ return msg;
1372
+ };
1373
+
1374
+
1375
+ /**
1376
+ * Serializes the message to binary data (in protobuf wire format).
1377
+ * @return {!Uint8Array}
1378
+ */
1379
+ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails.prototype.serializeBinary = function() {
1380
+ var writer = new jspb.BinaryWriter();
1381
+ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails.serializeBinaryToWriter(this, writer);
1382
+ return writer.getResultBuffer();
1383
+ };
1384
+
1385
+
1386
+ /**
1387
+ * Serializes the given message to binary data (in protobuf wire
1388
+ * format), writing to the given BinaryWriter.
1389
+ * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails} message
1390
+ * @param {!jspb.BinaryWriter} writer
1391
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1392
+ */
1393
+ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails.serializeBinaryToWriter = function(message, writer) {
1394
+ var f = undefined;
1395
+ f = message.getStream();
1396
+ if (f.length > 0) {
1397
+ writer.writeString(
1398
+ 1,
1399
+ f
1400
+ );
1401
+ }
1402
+ };
1403
+
1404
+
1405
+ /**
1406
+ * optional string stream = 1;
1407
+ * @return {string}
1408
+ */
1409
+ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails.prototype.getStream = function() {
1410
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1411
+ };
1412
+
1413
+
1414
+ /**
1415
+ * @param {string} value
1416
+ * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails} returns this
1417
+ */
1418
+ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails.prototype.setStream = function(value) {
1419
+ return jspb.Message.setProto3StringField(this, 1, value);
1420
+ };
1421
+
1422
+
1423
+ /**
1424
+ * @enum {number}
1425
+ */
1426
+ proto.kurrentdb.protocol.v2.streams.errors.StreamsError = {
1427
+ STREAMS_ERROR_UNSPECIFIED: 0,
1428
+ STREAMS_ERROR_STREAM_NOT_FOUND: 1,
1429
+ STREAMS_ERROR_STREAM_ALREADY_EXISTS: 2,
1430
+ STREAMS_ERROR_STREAM_DELETED: 3,
1431
+ STREAMS_ERROR_STREAM_TOMBSTONED: 4,
1432
+ STREAMS_ERROR_STREAM_REVISION_CONFLICT: 5,
1433
+ STREAMS_ERROR_APPEND_RECORD_SIZE_EXCEEDED: 6,
1434
+ STREAMS_ERROR_APPEND_TRANSACTION_SIZE_EXCEEDED: 7,
1435
+ STREAMS_ERROR_STREAM_ALREADY_IN_APPEND_SESSION: 8,
1436
+ STREAMS_ERROR_APPEND_SESSION_NO_REQUESTS: 9
1437
+ };
1438
+
1439
+ goog.object.extend(exports, proto.kurrentdb.protocol.v2.streams.errors);