@kurrent/kurrentdb-client 1.2.0-alpha.0 → 1.3.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 (139) hide show
  1. package/dist/Client/http.d.ts +7 -1
  2. package/dist/Client/http.js +51 -48
  3. package/dist/Client/http.js.map +1 -1
  4. package/dist/Client/index.d.ts +30 -6
  5. package/dist/Client/index.js +89 -11
  6. package/dist/Client/index.js.map +1 -1
  7. package/dist/Client/parseConnectionString.d.ts +2 -2
  8. package/dist/Client/parseConnectionString.js +0 -9
  9. package/dist/Client/parseConnectionString.js.map +1 -1
  10. package/dist/constants.d.ts +3 -0
  11. package/dist/constants.js +6 -1
  12. package/dist/constants.js.map +1 -1
  13. package/dist/events/binaryEvent.d.ts +1 -5
  14. package/dist/events/binaryEvent.js +2 -2
  15. package/dist/events/binaryEvent.js.map +1 -1
  16. package/dist/events/jsonEvent.js +2 -2
  17. package/dist/events/jsonEvent.js.map +1 -1
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.js +4 -2
  20. package/dist/index.js.map +1 -1
  21. package/dist/projections/createProjection.d.ts +10 -1
  22. package/dist/projections/createProjection.js +13 -2
  23. package/dist/projections/createProjection.js.map +1 -1
  24. package/dist/streams/appendToStream/appendRecords.d.ts +3 -0
  25. package/dist/streams/appendToStream/appendRecords.js +132 -0
  26. package/dist/streams/appendToStream/appendRecords.js.map +1 -0
  27. package/dist/streams/appendToStream/batchAppend.js +2 -2
  28. package/dist/streams/appendToStream/batchAppend.js.map +1 -1
  29. package/dist/streams/appendToStream/index.d.ts +9 -1
  30. package/dist/streams/appendToStream/index.js +8 -0
  31. package/dist/streams/appendToStream/index.js.map +1 -1
  32. package/dist/streams/readAll.js +18 -18
  33. package/dist/streams/readAll.js.map +1 -1
  34. package/dist/streams/readStream.js +26 -34
  35. package/dist/streams/readStream.js.map +1 -1
  36. package/dist/types/index.d.ts +88 -2
  37. package/dist/types/index.js.map +1 -1
  38. package/dist/utils/CommandError.d.ts +9 -3
  39. package/dist/utils/CommandError.js +50 -1
  40. package/dist/utils/CommandError.js.map +1 -1
  41. package/dist/utils/convertBridgeError.d.ts +2 -1
  42. package/dist/utils/convertBridgeError.js +14 -24
  43. package/dist/utils/convertBridgeError.js.map +1 -1
  44. package/dist/utils/credentials.d.ts +19 -0
  45. package/dist/utils/credentials.js +31 -0
  46. package/dist/utils/credentials.js.map +1 -0
  47. package/dist/utils/grpcUUID.d.ts +1 -0
  48. package/dist/utils/grpcUUID.js +12 -12
  49. package/dist/utils/grpcUUID.js.map +1 -1
  50. package/generated/kurrentdb/protocols/v1/projectionmanagement_pb.d.ts +3 -0
  51. package/generated/kurrentdb/protocols/v1/projectionmanagement_pb.js +31 -1
  52. package/generated/kurrentdb/protocols/v2/core_pb.d.ts +188 -188
  53. package/generated/kurrentdb/protocols/v2/core_pb.js +1301 -1301
  54. package/generated/kurrentdb/protocols/v2/features/service_grpc_pb.d.ts +43 -43
  55. package/generated/kurrentdb/protocols/v2/features/service_grpc_pb.js +50 -50
  56. package/generated/kurrentdb/protocols/v2/features/service_pb.d.ts +227 -227
  57. package/generated/kurrentdb/protocols/v2/features/service_pb.js +1753 -1753
  58. package/generated/kurrentdb/protocols/v2/streams/errors_pb.d.ts +85 -0
  59. package/generated/kurrentdb/protocols/v2/streams/errors_pb.js +625 -1
  60. package/generated/kurrentdb/protocols/v2/streams/shared_pb.d.ts +218 -218
  61. package/generated/kurrentdb/protocols/v2/streams/shared_pb.js +1561 -1561
  62. package/generated/kurrentdb/protocols/v2/streams/streams_grpc_pb.d.ts +17 -0
  63. package/generated/kurrentdb/protocols/v2/streams/streams_grpc_pb.js +53 -0
  64. package/generated/kurrentdb/protocols/v2/streams/streams_pb.d.ts +134 -0
  65. package/generated/kurrentdb/protocols/v2/streams/streams_pb.js +1041 -1
  66. package/package.json +64 -66
  67. package/dist/schemaRegistry/checkSchemaCompatibility.d.ts +0 -12
  68. package/dist/schemaRegistry/checkSchemaCompatibility.js +0 -60
  69. package/dist/schemaRegistry/checkSchemaCompatibility.js.map +0 -1
  70. package/dist/schemaRegistry/createSchema.d.ts +0 -13
  71. package/dist/schemaRegistry/createSchema.js +0 -36
  72. package/dist/schemaRegistry/createSchema.js.map +0 -1
  73. package/dist/schemaRegistry/deleteSchema.d.ts +0 -11
  74. package/dist/schemaRegistry/deleteSchema.js +0 -23
  75. package/dist/schemaRegistry/deleteSchema.js.map +0 -1
  76. package/dist/schemaRegistry/deleteSchemaVersions.d.ts +0 -13
  77. package/dist/schemaRegistry/deleteSchemaVersions.js +0 -29
  78. package/dist/schemaRegistry/deleteSchemaVersions.js.map +0 -1
  79. package/dist/schemaRegistry/getSchema.d.ts +0 -12
  80. package/dist/schemaRegistry/getSchema.js +0 -28
  81. package/dist/schemaRegistry/getSchema.js.map +0 -1
  82. package/dist/schemaRegistry/getSchemaVersion.d.ts +0 -12
  83. package/dist/schemaRegistry/getSchemaVersion.js +0 -33
  84. package/dist/schemaRegistry/getSchemaVersion.js.map +0 -1
  85. package/dist/schemaRegistry/getSchemaVersionById.d.ts +0 -12
  86. package/dist/schemaRegistry/getSchemaVersionById.js +0 -28
  87. package/dist/schemaRegistry/getSchemaVersionById.js.map +0 -1
  88. package/dist/schemaRegistry/index.d.ts +0 -14
  89. package/dist/schemaRegistry/index.js +0 -35
  90. package/dist/schemaRegistry/index.js.map +0 -1
  91. package/dist/schemaRegistry/listRegisteredSchemas.d.ts +0 -11
  92. package/dist/schemaRegistry/listRegisteredSchemas.js +0 -41
  93. package/dist/schemaRegistry/listRegisteredSchemas.js.map +0 -1
  94. package/dist/schemaRegistry/listSchemaVersions.d.ts +0 -12
  95. package/dist/schemaRegistry/listSchemaVersions.js +0 -28
  96. package/dist/schemaRegistry/listSchemaVersions.js.map +0 -1
  97. package/dist/schemaRegistry/listSchemas.d.ts +0 -11
  98. package/dist/schemaRegistry/listSchemas.js +0 -35
  99. package/dist/schemaRegistry/listSchemas.js.map +0 -1
  100. package/dist/schemaRegistry/lookupSchemaName.d.ts +0 -12
  101. package/dist/schemaRegistry/lookupSchemaName.js +0 -23
  102. package/dist/schemaRegistry/lookupSchemaName.js.map +0 -1
  103. package/dist/schemaRegistry/registerSchemaVersion.d.ts +0 -13
  104. package/dist/schemaRegistry/registerSchemaVersion.js +0 -31
  105. package/dist/schemaRegistry/registerSchemaVersion.js.map +0 -1
  106. package/dist/schemaRegistry/types.d.ts +0 -347
  107. package/dist/schemaRegistry/types.js +0 -3
  108. package/dist/schemaRegistry/types.js.map +0 -1
  109. package/dist/schemaRegistry/updateSchema.d.ts +0 -11
  110. package/dist/schemaRegistry/updateSchema.js +0 -51
  111. package/dist/schemaRegistry/updateSchema.js.map +0 -1
  112. package/dist/schemaRegistry/utils/index.d.ts +0 -1
  113. package/dist/schemaRegistry/utils/index.js +0 -18
  114. package/dist/schemaRegistry/utils/index.js.map +0 -1
  115. package/dist/schemaRegistry/utils/mappers.d.ts +0 -24
  116. package/dist/schemaRegistry/utils/mappers.js +0 -198
  117. package/dist/schemaRegistry/utils/mappers.js.map +0 -1
  118. package/generated/kurrentdb/protocols/v2/registry/errors_grpc_pb.js +0 -1
  119. package/generated/kurrentdb/protocols/v2/registry/errors_pb.d.ts +0 -75
  120. package/generated/kurrentdb/protocols/v2/registry/errors_pb.js +0 -493
  121. package/generated/kurrentdb/protocols/v2/registry/events_grpc_pb.js +0 -1
  122. package/generated/kurrentdb/protocols/v2/registry/events_pb.d.ts +0 -255
  123. package/generated/kurrentdb/protocols/v2/registry/events_pb.js +0 -2057
  124. package/generated/kurrentdb/protocols/v2/registry/groups_grpc_pb.js +0 -1
  125. package/generated/kurrentdb/protocols/v2/registry/groups_pb.d.ts +0 -474
  126. package/generated/kurrentdb/protocols/v2/registry/groups_pb.js +0 -3593
  127. package/generated/kurrentdb/protocols/v2/registry/schemas_grpc_pb.js +0 -1
  128. package/generated/kurrentdb/protocols/v2/registry/schemas_pb.d.ts +0 -825
  129. package/generated/kurrentdb/protocols/v2/registry/schemas_pb.js +0 -6500
  130. package/generated/kurrentdb/protocols/v2/registry/service_grpc_pb.d.ts +0 -350
  131. package/generated/kurrentdb/protocols/v2/registry/service_grpc_pb.js +0 -654
  132. package/generated/kurrentdb/protocols/v2/registry/service_pb.d.ts +0 -10
  133. package/generated/kurrentdb/protocols/v2/registry/service_pb.js +0 -29
  134. package/generated/kurrentdb/protocols/v2/registry/shared_grpc_pb.js +0 -1
  135. package/generated/kurrentdb/protocols/v2/registry/shared_pb.d.ts +0 -26
  136. package/generated/kurrentdb/protocols/v2/registry/shared_pb.js +0 -51
  137. package/generated/kurrentdb/protocols/v2/registry/validation_grpc_pb.js +0 -1
  138. package/generated/kurrentdb/protocols/v2/registry/validation_pb.d.ts +0 -247
  139. package/generated/kurrentdb/protocols/v2/registry/validation_pb.js +0 -1789
@@ -1,493 +0,0 @@
1
- // source: kurrentdb/protocols/v2/registry/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.registry.errors.RegistryError', null, global);
27
- goog.exportSymbol('proto.kurrentdb.protocol.v2.registry.errors.SchemaAlreadyExistsErrorDetails', null, global);
28
- goog.exportSymbol('proto.kurrentdb.protocol.v2.registry.errors.SchemaDeletedErrorDetails', null, global);
29
- goog.exportSymbol('proto.kurrentdb.protocol.v2.registry.errors.SchemaNotFoundErrorDetails', null, global);
30
- /**
31
- * Generated by JsPbCodeGenerator.
32
- * @param {Array=} opt_data Optional initial data array, typically from a
33
- * server response, or constructed directly in Javascript. The array is used
34
- * in place and becomes part of the constructed object. It is not cloned.
35
- * If no data is provided, the constructed object will be empty, but still
36
- * valid.
37
- * @extends {jspb.Message}
38
- * @constructor
39
- */
40
- proto.kurrentdb.protocol.v2.registry.errors.SchemaNotFoundErrorDetails = function(opt_data) {
41
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
42
- };
43
- goog.inherits(proto.kurrentdb.protocol.v2.registry.errors.SchemaNotFoundErrorDetails, jspb.Message);
44
- if (goog.DEBUG && !COMPILED) {
45
- /**
46
- * @public
47
- * @override
48
- */
49
- proto.kurrentdb.protocol.v2.registry.errors.SchemaNotFoundErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.registry.errors.SchemaNotFoundErrorDetails';
50
- }
51
- /**
52
- * Generated by JsPbCodeGenerator.
53
- * @param {Array=} opt_data Optional initial data array, typically from a
54
- * server response, or constructed directly in Javascript. The array is used
55
- * in place and becomes part of the constructed object. It is not cloned.
56
- * If no data is provided, the constructed object will be empty, but still
57
- * valid.
58
- * @extends {jspb.Message}
59
- * @constructor
60
- */
61
- proto.kurrentdb.protocol.v2.registry.errors.SchemaAlreadyExistsErrorDetails = function(opt_data) {
62
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
63
- };
64
- goog.inherits(proto.kurrentdb.protocol.v2.registry.errors.SchemaAlreadyExistsErrorDetails, jspb.Message);
65
- if (goog.DEBUG && !COMPILED) {
66
- /**
67
- * @public
68
- * @override
69
- */
70
- proto.kurrentdb.protocol.v2.registry.errors.SchemaAlreadyExistsErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.registry.errors.SchemaAlreadyExistsErrorDetails';
71
- }
72
- /**
73
- * Generated by JsPbCodeGenerator.
74
- * @param {Array=} opt_data Optional initial data array, typically from a
75
- * server response, or constructed directly in Javascript. The array is used
76
- * in place and becomes part of the constructed object. It is not cloned.
77
- * If no data is provided, the constructed object will be empty, but still
78
- * valid.
79
- * @extends {jspb.Message}
80
- * @constructor
81
- */
82
- proto.kurrentdb.protocol.v2.registry.errors.SchemaDeletedErrorDetails = function(opt_data) {
83
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
84
- };
85
- goog.inherits(proto.kurrentdb.protocol.v2.registry.errors.SchemaDeletedErrorDetails, jspb.Message);
86
- if (goog.DEBUG && !COMPILED) {
87
- /**
88
- * @public
89
- * @override
90
- */
91
- proto.kurrentdb.protocol.v2.registry.errors.SchemaDeletedErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.registry.errors.SchemaDeletedErrorDetails';
92
- }
93
-
94
-
95
-
96
- if (jspb.Message.GENERATE_TO_OBJECT) {
97
- /**
98
- * Creates an object representation of this proto.
99
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
100
- * Optional fields that are not set will be set to undefined.
101
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
102
- * For the list of reserved names please see:
103
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
104
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
105
- * JSPB instance for transitional soy proto support:
106
- * http://goto/soy-param-migration
107
- * @return {!Object}
108
- */
109
- proto.kurrentdb.protocol.v2.registry.errors.SchemaNotFoundErrorDetails.prototype.toObject = function(opt_includeInstance) {
110
- return proto.kurrentdb.protocol.v2.registry.errors.SchemaNotFoundErrorDetails.toObject(opt_includeInstance, this);
111
- };
112
-
113
-
114
- /**
115
- * Static version of the {@see toObject} method.
116
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
117
- * the JSPB instance for transitional soy proto support:
118
- * http://goto/soy-param-migration
119
- * @param {!proto.kurrentdb.protocol.v2.registry.errors.SchemaNotFoundErrorDetails} msg The msg instance to transform.
120
- * @return {!Object}
121
- * @suppress {unusedLocalVariables} f is only used for nested messages
122
- */
123
- proto.kurrentdb.protocol.v2.registry.errors.SchemaNotFoundErrorDetails.toObject = function(includeInstance, msg) {
124
- var f, obj = {
125
- schema: jspb.Message.getFieldWithDefault(msg, 1, "")
126
- };
127
-
128
- if (includeInstance) {
129
- obj.$jspbMessageInstance = msg;
130
- }
131
- return obj;
132
- };
133
- }
134
-
135
-
136
- /**
137
- * Deserializes binary data (in protobuf wire format).
138
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
139
- * @return {!proto.kurrentdb.protocol.v2.registry.errors.SchemaNotFoundErrorDetails}
140
- */
141
- proto.kurrentdb.protocol.v2.registry.errors.SchemaNotFoundErrorDetails.deserializeBinary = function(bytes) {
142
- var reader = new jspb.BinaryReader(bytes);
143
- var msg = new proto.kurrentdb.protocol.v2.registry.errors.SchemaNotFoundErrorDetails;
144
- return proto.kurrentdb.protocol.v2.registry.errors.SchemaNotFoundErrorDetails.deserializeBinaryFromReader(msg, reader);
145
- };
146
-
147
-
148
- /**
149
- * Deserializes binary data (in protobuf wire format) from the
150
- * given reader into the given message object.
151
- * @param {!proto.kurrentdb.protocol.v2.registry.errors.SchemaNotFoundErrorDetails} msg The message object to deserialize into.
152
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
153
- * @return {!proto.kurrentdb.protocol.v2.registry.errors.SchemaNotFoundErrorDetails}
154
- */
155
- proto.kurrentdb.protocol.v2.registry.errors.SchemaNotFoundErrorDetails.deserializeBinaryFromReader = function(msg, reader) {
156
- while (reader.nextField()) {
157
- if (reader.isEndGroup()) {
158
- break;
159
- }
160
- var field = reader.getFieldNumber();
161
- switch (field) {
162
- case 1:
163
- var value = /** @type {string} */ (reader.readString());
164
- msg.setSchema(value);
165
- break;
166
- default:
167
- reader.skipField();
168
- break;
169
- }
170
- }
171
- return msg;
172
- };
173
-
174
-
175
- /**
176
- * Serializes the message to binary data (in protobuf wire format).
177
- * @return {!Uint8Array}
178
- */
179
- proto.kurrentdb.protocol.v2.registry.errors.SchemaNotFoundErrorDetails.prototype.serializeBinary = function() {
180
- var writer = new jspb.BinaryWriter();
181
- proto.kurrentdb.protocol.v2.registry.errors.SchemaNotFoundErrorDetails.serializeBinaryToWriter(this, writer);
182
- return writer.getResultBuffer();
183
- };
184
-
185
-
186
- /**
187
- * Serializes the given message to binary data (in protobuf wire
188
- * format), writing to the given BinaryWriter.
189
- * @param {!proto.kurrentdb.protocol.v2.registry.errors.SchemaNotFoundErrorDetails} message
190
- * @param {!jspb.BinaryWriter} writer
191
- * @suppress {unusedLocalVariables} f is only used for nested messages
192
- */
193
- proto.kurrentdb.protocol.v2.registry.errors.SchemaNotFoundErrorDetails.serializeBinaryToWriter = function(message, writer) {
194
- var f = undefined;
195
- f = message.getSchema();
196
- if (f.length > 0) {
197
- writer.writeString(
198
- 1,
199
- f
200
- );
201
- }
202
- };
203
-
204
-
205
- /**
206
- * optional string schema = 1;
207
- * @return {string}
208
- */
209
- proto.kurrentdb.protocol.v2.registry.errors.SchemaNotFoundErrorDetails.prototype.getSchema = function() {
210
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
211
- };
212
-
213
-
214
- /**
215
- * @param {string} value
216
- * @return {!proto.kurrentdb.protocol.v2.registry.errors.SchemaNotFoundErrorDetails} returns this
217
- */
218
- proto.kurrentdb.protocol.v2.registry.errors.SchemaNotFoundErrorDetails.prototype.setSchema = function(value) {
219
- return jspb.Message.setProto3StringField(this, 1, value);
220
- };
221
-
222
-
223
-
224
-
225
-
226
- if (jspb.Message.GENERATE_TO_OBJECT) {
227
- /**
228
- * Creates an object representation of this proto.
229
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
230
- * Optional fields that are not set will be set to undefined.
231
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
232
- * For the list of reserved names please see:
233
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
234
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
235
- * JSPB instance for transitional soy proto support:
236
- * http://goto/soy-param-migration
237
- * @return {!Object}
238
- */
239
- proto.kurrentdb.protocol.v2.registry.errors.SchemaAlreadyExistsErrorDetails.prototype.toObject = function(opt_includeInstance) {
240
- return proto.kurrentdb.protocol.v2.registry.errors.SchemaAlreadyExistsErrorDetails.toObject(opt_includeInstance, this);
241
- };
242
-
243
-
244
- /**
245
- * Static version of the {@see toObject} method.
246
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
247
- * the JSPB instance for transitional soy proto support:
248
- * http://goto/soy-param-migration
249
- * @param {!proto.kurrentdb.protocol.v2.registry.errors.SchemaAlreadyExistsErrorDetails} msg The msg instance to transform.
250
- * @return {!Object}
251
- * @suppress {unusedLocalVariables} f is only used for nested messages
252
- */
253
- proto.kurrentdb.protocol.v2.registry.errors.SchemaAlreadyExistsErrorDetails.toObject = function(includeInstance, msg) {
254
- var f, obj = {
255
- schema: jspb.Message.getFieldWithDefault(msg, 1, "")
256
- };
257
-
258
- if (includeInstance) {
259
- obj.$jspbMessageInstance = msg;
260
- }
261
- return obj;
262
- };
263
- }
264
-
265
-
266
- /**
267
- * Deserializes binary data (in protobuf wire format).
268
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
269
- * @return {!proto.kurrentdb.protocol.v2.registry.errors.SchemaAlreadyExistsErrorDetails}
270
- */
271
- proto.kurrentdb.protocol.v2.registry.errors.SchemaAlreadyExistsErrorDetails.deserializeBinary = function(bytes) {
272
- var reader = new jspb.BinaryReader(bytes);
273
- var msg = new proto.kurrentdb.protocol.v2.registry.errors.SchemaAlreadyExistsErrorDetails;
274
- return proto.kurrentdb.protocol.v2.registry.errors.SchemaAlreadyExistsErrorDetails.deserializeBinaryFromReader(msg, reader);
275
- };
276
-
277
-
278
- /**
279
- * Deserializes binary data (in protobuf wire format) from the
280
- * given reader into the given message object.
281
- * @param {!proto.kurrentdb.protocol.v2.registry.errors.SchemaAlreadyExistsErrorDetails} msg The message object to deserialize into.
282
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
283
- * @return {!proto.kurrentdb.protocol.v2.registry.errors.SchemaAlreadyExistsErrorDetails}
284
- */
285
- proto.kurrentdb.protocol.v2.registry.errors.SchemaAlreadyExistsErrorDetails.deserializeBinaryFromReader = function(msg, reader) {
286
- while (reader.nextField()) {
287
- if (reader.isEndGroup()) {
288
- break;
289
- }
290
- var field = reader.getFieldNumber();
291
- switch (field) {
292
- case 1:
293
- var value = /** @type {string} */ (reader.readString());
294
- msg.setSchema(value);
295
- break;
296
- default:
297
- reader.skipField();
298
- break;
299
- }
300
- }
301
- return msg;
302
- };
303
-
304
-
305
- /**
306
- * Serializes the message to binary data (in protobuf wire format).
307
- * @return {!Uint8Array}
308
- */
309
- proto.kurrentdb.protocol.v2.registry.errors.SchemaAlreadyExistsErrorDetails.prototype.serializeBinary = function() {
310
- var writer = new jspb.BinaryWriter();
311
- proto.kurrentdb.protocol.v2.registry.errors.SchemaAlreadyExistsErrorDetails.serializeBinaryToWriter(this, writer);
312
- return writer.getResultBuffer();
313
- };
314
-
315
-
316
- /**
317
- * Serializes the given message to binary data (in protobuf wire
318
- * format), writing to the given BinaryWriter.
319
- * @param {!proto.kurrentdb.protocol.v2.registry.errors.SchemaAlreadyExistsErrorDetails} message
320
- * @param {!jspb.BinaryWriter} writer
321
- * @suppress {unusedLocalVariables} f is only used for nested messages
322
- */
323
- proto.kurrentdb.protocol.v2.registry.errors.SchemaAlreadyExistsErrorDetails.serializeBinaryToWriter = function(message, writer) {
324
- var f = undefined;
325
- f = message.getSchema();
326
- if (f.length > 0) {
327
- writer.writeString(
328
- 1,
329
- f
330
- );
331
- }
332
- };
333
-
334
-
335
- /**
336
- * optional string schema = 1;
337
- * @return {string}
338
- */
339
- proto.kurrentdb.protocol.v2.registry.errors.SchemaAlreadyExistsErrorDetails.prototype.getSchema = function() {
340
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
341
- };
342
-
343
-
344
- /**
345
- * @param {string} value
346
- * @return {!proto.kurrentdb.protocol.v2.registry.errors.SchemaAlreadyExistsErrorDetails} returns this
347
- */
348
- proto.kurrentdb.protocol.v2.registry.errors.SchemaAlreadyExistsErrorDetails.prototype.setSchema = function(value) {
349
- return jspb.Message.setProto3StringField(this, 1, value);
350
- };
351
-
352
-
353
-
354
-
355
-
356
- if (jspb.Message.GENERATE_TO_OBJECT) {
357
- /**
358
- * Creates an object representation of this proto.
359
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
360
- * Optional fields that are not set will be set to undefined.
361
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
362
- * For the list of reserved names please see:
363
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
364
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
365
- * JSPB instance for transitional soy proto support:
366
- * http://goto/soy-param-migration
367
- * @return {!Object}
368
- */
369
- proto.kurrentdb.protocol.v2.registry.errors.SchemaDeletedErrorDetails.prototype.toObject = function(opt_includeInstance) {
370
- return proto.kurrentdb.protocol.v2.registry.errors.SchemaDeletedErrorDetails.toObject(opt_includeInstance, this);
371
- };
372
-
373
-
374
- /**
375
- * Static version of the {@see toObject} method.
376
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
377
- * the JSPB instance for transitional soy proto support:
378
- * http://goto/soy-param-migration
379
- * @param {!proto.kurrentdb.protocol.v2.registry.errors.SchemaDeletedErrorDetails} msg The msg instance to transform.
380
- * @return {!Object}
381
- * @suppress {unusedLocalVariables} f is only used for nested messages
382
- */
383
- proto.kurrentdb.protocol.v2.registry.errors.SchemaDeletedErrorDetails.toObject = function(includeInstance, msg) {
384
- var f, obj = {
385
- schema: jspb.Message.getFieldWithDefault(msg, 1, "")
386
- };
387
-
388
- if (includeInstance) {
389
- obj.$jspbMessageInstance = msg;
390
- }
391
- return obj;
392
- };
393
- }
394
-
395
-
396
- /**
397
- * Deserializes binary data (in protobuf wire format).
398
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
399
- * @return {!proto.kurrentdb.protocol.v2.registry.errors.SchemaDeletedErrorDetails}
400
- */
401
- proto.kurrentdb.protocol.v2.registry.errors.SchemaDeletedErrorDetails.deserializeBinary = function(bytes) {
402
- var reader = new jspb.BinaryReader(bytes);
403
- var msg = new proto.kurrentdb.protocol.v2.registry.errors.SchemaDeletedErrorDetails;
404
- return proto.kurrentdb.protocol.v2.registry.errors.SchemaDeletedErrorDetails.deserializeBinaryFromReader(msg, reader);
405
- };
406
-
407
-
408
- /**
409
- * Deserializes binary data (in protobuf wire format) from the
410
- * given reader into the given message object.
411
- * @param {!proto.kurrentdb.protocol.v2.registry.errors.SchemaDeletedErrorDetails} msg The message object to deserialize into.
412
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
413
- * @return {!proto.kurrentdb.protocol.v2.registry.errors.SchemaDeletedErrorDetails}
414
- */
415
- proto.kurrentdb.protocol.v2.registry.errors.SchemaDeletedErrorDetails.deserializeBinaryFromReader = function(msg, reader) {
416
- while (reader.nextField()) {
417
- if (reader.isEndGroup()) {
418
- break;
419
- }
420
- var field = reader.getFieldNumber();
421
- switch (field) {
422
- case 1:
423
- var value = /** @type {string} */ (reader.readString());
424
- msg.setSchema(value);
425
- break;
426
- default:
427
- reader.skipField();
428
- break;
429
- }
430
- }
431
- return msg;
432
- };
433
-
434
-
435
- /**
436
- * Serializes the message to binary data (in protobuf wire format).
437
- * @return {!Uint8Array}
438
- */
439
- proto.kurrentdb.protocol.v2.registry.errors.SchemaDeletedErrorDetails.prototype.serializeBinary = function() {
440
- var writer = new jspb.BinaryWriter();
441
- proto.kurrentdb.protocol.v2.registry.errors.SchemaDeletedErrorDetails.serializeBinaryToWriter(this, writer);
442
- return writer.getResultBuffer();
443
- };
444
-
445
-
446
- /**
447
- * Serializes the given message to binary data (in protobuf wire
448
- * format), writing to the given BinaryWriter.
449
- * @param {!proto.kurrentdb.protocol.v2.registry.errors.SchemaDeletedErrorDetails} message
450
- * @param {!jspb.BinaryWriter} writer
451
- * @suppress {unusedLocalVariables} f is only used for nested messages
452
- */
453
- proto.kurrentdb.protocol.v2.registry.errors.SchemaDeletedErrorDetails.serializeBinaryToWriter = function(message, writer) {
454
- var f = undefined;
455
- f = message.getSchema();
456
- if (f.length > 0) {
457
- writer.writeString(
458
- 1,
459
- f
460
- );
461
- }
462
- };
463
-
464
-
465
- /**
466
- * optional string schema = 1;
467
- * @return {string}
468
- */
469
- proto.kurrentdb.protocol.v2.registry.errors.SchemaDeletedErrorDetails.prototype.getSchema = function() {
470
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
471
- };
472
-
473
-
474
- /**
475
- * @param {string} value
476
- * @return {!proto.kurrentdb.protocol.v2.registry.errors.SchemaDeletedErrorDetails} returns this
477
- */
478
- proto.kurrentdb.protocol.v2.registry.errors.SchemaDeletedErrorDetails.prototype.setSchema = function(value) {
479
- return jspb.Message.setProto3StringField(this, 1, value);
480
- };
481
-
482
-
483
- /**
484
- * @enum {number}
485
- */
486
- proto.kurrentdb.protocol.v2.registry.errors.RegistryError = {
487
- UNSPECIFIED: 0,
488
- SCHEMA_NOT_FOUND: 1,
489
- SCHEMA_ALREADY_EXISTS: 2,
490
- SCHEMA_DELETED: 3
491
- };
492
-
493
- goog.object.extend(exports, proto.kurrentdb.protocol.v2.registry.errors);
@@ -1 +0,0 @@
1
- // GENERATED CODE -- NO SERVICES IN PROTO