@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,2057 +0,0 @@
1
- // source: kurrentdb/protocols/v2/registry/events.proto
2
- /**
3
- * @fileoverview
4
- * @enhanceable
5
- * @suppress {missingRequire} reports error on implicit type usages.
6
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
- * field starts with 'MSG_' and isn't a translatable message.
8
- * @public
9
- */
10
- // GENERATED CODE -- DO NOT EDIT!
11
- /* eslint-disable */
12
- // @ts-nocheck
13
-
14
- var jspb = require('google-protobuf');
15
- var goog = jspb;
16
- var global = (function() {
17
- if (this) { return this; }
18
- if (typeof window !== 'undefined') { return window; }
19
- if (typeof global !== 'undefined') { return global; }
20
- if (typeof self !== 'undefined') { return self; }
21
- return Function('return this')();
22
- }.call(null));
23
-
24
- var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
25
- goog.object.extend(proto, google_protobuf_timestamp_pb);
26
- var kurrentdb_protocols_v2_registry_shared_pb = require('../../../../kurrentdb/protocols/v2/registry/shared_pb.js');
27
- goog.object.extend(proto, kurrentdb_protocols_v2_registry_shared_pb);
28
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged', null, global);
29
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.SchemaCreated', null, global);
30
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.SchemaDeleted', null, global);
31
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated', null, global);
32
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated', null, global);
33
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered', null, global);
34
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted', 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.registry.v2.SchemaCreated = function(opt_data) {
46
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
47
- };
48
- goog.inherits(proto.kurrentdb.protocol.registry.v2.SchemaCreated, jspb.Message);
49
- if (goog.DEBUG && !COMPILED) {
50
- /**
51
- * @public
52
- * @override
53
- */
54
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.displayName = 'proto.kurrentdb.protocol.registry.v2.SchemaCreated';
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.registry.v2.SchemaVersionRegistered = function(opt_data) {
67
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
68
- };
69
- goog.inherits(proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered, jspb.Message);
70
- if (goog.DEBUG && !COMPILED) {
71
- /**
72
- * @public
73
- * @override
74
- */
75
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.displayName = 'proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered';
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.registry.v2.SchemaVersionsDeleted = function(opt_data) {
88
- jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.repeatedFields_, null);
89
- };
90
- goog.inherits(proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted, jspb.Message);
91
- if (goog.DEBUG && !COMPILED) {
92
- /**
93
- * @public
94
- * @override
95
- */
96
- proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.displayName = 'proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted';
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.registry.v2.SchemaDeleted = function(opt_data) {
109
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
110
- };
111
- goog.inherits(proto.kurrentdb.protocol.registry.v2.SchemaDeleted, jspb.Message);
112
- if (goog.DEBUG && !COMPILED) {
113
- /**
114
- * @public
115
- * @override
116
- */
117
- proto.kurrentdb.protocol.registry.v2.SchemaDeleted.displayName = 'proto.kurrentdb.protocol.registry.v2.SchemaDeleted';
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.registry.v2.SchemaCompatibilityModeChanged = function(opt_data) {
130
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
131
- };
132
- goog.inherits(proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged, jspb.Message);
133
- if (goog.DEBUG && !COMPILED) {
134
- /**
135
- * @public
136
- * @override
137
- */
138
- proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged.displayName = 'proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged';
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.registry.v2.SchemaTagsUpdated = function(opt_data) {
151
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
152
- };
153
- goog.inherits(proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated, jspb.Message);
154
- if (goog.DEBUG && !COMPILED) {
155
- /**
156
- * @public
157
- * @override
158
- */
159
- proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated.displayName = 'proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated';
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.registry.v2.SchemaDescriptionUpdated = function(opt_data) {
172
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
173
- };
174
- goog.inherits(proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated, jspb.Message);
175
- if (goog.DEBUG && !COMPILED) {
176
- /**
177
- * @public
178
- * @override
179
- */
180
- proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated.displayName = 'proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated';
181
- }
182
-
183
-
184
-
185
- if (jspb.Message.GENERATE_TO_OBJECT) {
186
- /**
187
- * Creates an object representation of this proto.
188
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
189
- * Optional fields that are not set will be set to undefined.
190
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
191
- * For the list of reserved names please see:
192
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
193
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
194
- * JSPB instance for transitional soy proto support:
195
- * http://goto/soy-param-migration
196
- * @return {!Object}
197
- */
198
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.toObject = function(opt_includeInstance) {
199
- return proto.kurrentdb.protocol.registry.v2.SchemaCreated.toObject(opt_includeInstance, this);
200
- };
201
-
202
-
203
- /**
204
- * Static version of the {@see toObject} method.
205
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
206
- * the JSPB instance for transitional soy proto support:
207
- * http://goto/soy-param-migration
208
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaCreated} msg The msg instance to transform.
209
- * @return {!Object}
210
- * @suppress {unusedLocalVariables} f is only used for nested messages
211
- */
212
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.toObject = function(includeInstance, msg) {
213
- var f, obj = {
214
- schemaName: jspb.Message.getFieldWithDefault(msg, 1, ""),
215
- description: jspb.Message.getFieldWithDefault(msg, 2, ""),
216
- dataFormat: jspb.Message.getFieldWithDefault(msg, 3, 0),
217
- compatibility: jspb.Message.getFieldWithDefault(msg, 4, 0),
218
- tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [],
219
- schemaVersionId: jspb.Message.getFieldWithDefault(msg, 6, ""),
220
- schemaDefinition: msg.getSchemaDefinition_asB64(),
221
- versionNumber: jspb.Message.getFieldWithDefault(msg, 8, 0),
222
- createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
223
- };
224
-
225
- if (includeInstance) {
226
- obj.$jspbMessageInstance = msg;
227
- }
228
- return obj;
229
- };
230
- }
231
-
232
-
233
- /**
234
- * Deserializes binary data (in protobuf wire format).
235
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
236
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCreated}
237
- */
238
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.deserializeBinary = function(bytes) {
239
- var reader = new jspb.BinaryReader(bytes);
240
- var msg = new proto.kurrentdb.protocol.registry.v2.SchemaCreated;
241
- return proto.kurrentdb.protocol.registry.v2.SchemaCreated.deserializeBinaryFromReader(msg, reader);
242
- };
243
-
244
-
245
- /**
246
- * Deserializes binary data (in protobuf wire format) from the
247
- * given reader into the given message object.
248
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaCreated} msg The message object to deserialize into.
249
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
250
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCreated}
251
- */
252
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.deserializeBinaryFromReader = function(msg, reader) {
253
- while (reader.nextField()) {
254
- if (reader.isEndGroup()) {
255
- break;
256
- }
257
- var field = reader.getFieldNumber();
258
- switch (field) {
259
- case 1:
260
- var value = /** @type {string} */ (reader.readString());
261
- msg.setSchemaName(value);
262
- break;
263
- case 2:
264
- var value = /** @type {string} */ (reader.readString());
265
- msg.setDescription(value);
266
- break;
267
- case 3:
268
- var value = /** @type {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} */ (reader.readEnum());
269
- msg.setDataFormat(value);
270
- break;
271
- case 4:
272
- var value = /** @type {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} */ (reader.readEnum());
273
- msg.setCompatibility(value);
274
- break;
275
- case 5:
276
- var value = msg.getTagsMap();
277
- reader.readMessage(value, function(message, reader) {
278
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
279
- });
280
- break;
281
- case 6:
282
- var value = /** @type {string} */ (reader.readString());
283
- msg.setSchemaVersionId(value);
284
- break;
285
- case 7:
286
- var value = /** @type {!Uint8Array} */ (reader.readBytes());
287
- msg.setSchemaDefinition(value);
288
- break;
289
- case 8:
290
- var value = /** @type {number} */ (reader.readInt32());
291
- msg.setVersionNumber(value);
292
- break;
293
- case 9:
294
- var value = new google_protobuf_timestamp_pb.Timestamp;
295
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
296
- msg.setCreatedAt(value);
297
- break;
298
- default:
299
- reader.skipField();
300
- break;
301
- }
302
- }
303
- return msg;
304
- };
305
-
306
-
307
- /**
308
- * Serializes the message to binary data (in protobuf wire format).
309
- * @return {!Uint8Array}
310
- */
311
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.serializeBinary = function() {
312
- var writer = new jspb.BinaryWriter();
313
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.serializeBinaryToWriter(this, writer);
314
- return writer.getResultBuffer();
315
- };
316
-
317
-
318
- /**
319
- * Serializes the given message to binary data (in protobuf wire
320
- * format), writing to the given BinaryWriter.
321
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaCreated} message
322
- * @param {!jspb.BinaryWriter} writer
323
- * @suppress {unusedLocalVariables} f is only used for nested messages
324
- */
325
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.serializeBinaryToWriter = function(message, writer) {
326
- var f = undefined;
327
- f = message.getSchemaName();
328
- if (f.length > 0) {
329
- writer.writeString(
330
- 1,
331
- f
332
- );
333
- }
334
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
335
- if (f != null) {
336
- writer.writeString(
337
- 2,
338
- f
339
- );
340
- }
341
- f = message.getDataFormat();
342
- if (f !== 0.0) {
343
- writer.writeEnum(
344
- 3,
345
- f
346
- );
347
- }
348
- f = message.getCompatibility();
349
- if (f !== 0.0) {
350
- writer.writeEnum(
351
- 4,
352
- f
353
- );
354
- }
355
- f = message.getTagsMap(true);
356
- if (f && f.getLength() > 0) {
357
- f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
358
- }
359
- f = message.getSchemaVersionId();
360
- if (f.length > 0) {
361
- writer.writeString(
362
- 6,
363
- f
364
- );
365
- }
366
- f = message.getSchemaDefinition_asU8();
367
- if (f.length > 0) {
368
- writer.writeBytes(
369
- 7,
370
- f
371
- );
372
- }
373
- f = message.getVersionNumber();
374
- if (f !== 0) {
375
- writer.writeInt32(
376
- 8,
377
- f
378
- );
379
- }
380
- f = message.getCreatedAt();
381
- if (f != null) {
382
- writer.writeMessage(
383
- 9,
384
- f,
385
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
386
- );
387
- }
388
- };
389
-
390
-
391
- /**
392
- * optional string schema_name = 1;
393
- * @return {string}
394
- */
395
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.getSchemaName = function() {
396
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
397
- };
398
-
399
-
400
- /**
401
- * @param {string} value
402
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCreated} returns this
403
- */
404
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.setSchemaName = function(value) {
405
- return jspb.Message.setProto3StringField(this, 1, value);
406
- };
407
-
408
-
409
- /**
410
- * optional string description = 2;
411
- * @return {string}
412
- */
413
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.getDescription = function() {
414
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
415
- };
416
-
417
-
418
- /**
419
- * @param {string} value
420
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCreated} returns this
421
- */
422
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.setDescription = function(value) {
423
- return jspb.Message.setField(this, 2, value);
424
- };
425
-
426
-
427
- /**
428
- * Clears the field making it undefined.
429
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCreated} returns this
430
- */
431
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.clearDescription = function() {
432
- return jspb.Message.setField(this, 2, undefined);
433
- };
434
-
435
-
436
- /**
437
- * Returns whether this field is set.
438
- * @return {boolean}
439
- */
440
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.hasDescription = function() {
441
- return jspb.Message.getField(this, 2) != null;
442
- };
443
-
444
-
445
- /**
446
- * optional SchemaDataFormat data_format = 3;
447
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat}
448
- */
449
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.getDataFormat = function() {
450
- return /** @type {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
451
- };
452
-
453
-
454
- /**
455
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} value
456
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCreated} returns this
457
- */
458
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.setDataFormat = function(value) {
459
- return jspb.Message.setProto3EnumField(this, 3, value);
460
- };
461
-
462
-
463
- /**
464
- * optional CompatibilityMode compatibility = 4;
465
- * @return {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode}
466
- */
467
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.getCompatibility = function() {
468
- return /** @type {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
469
- };
470
-
471
-
472
- /**
473
- * @param {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} value
474
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCreated} returns this
475
- */
476
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.setCompatibility = function(value) {
477
- return jspb.Message.setProto3EnumField(this, 4, value);
478
- };
479
-
480
-
481
- /**
482
- * map<string, string> tags = 5;
483
- * @param {boolean=} opt_noLazyCreate Do not create the map if
484
- * empty, instead returning `undefined`
485
- * @return {!jspb.Map<string,string>}
486
- */
487
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.getTagsMap = function(opt_noLazyCreate) {
488
- return /** @type {!jspb.Map<string,string>} */ (
489
- jspb.Message.getMapField(this, 5, opt_noLazyCreate,
490
- null));
491
- };
492
-
493
-
494
- /**
495
- * Clears values from the map. The map will be non-null.
496
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCreated} returns this
497
- */
498
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.clearTagsMap = function() {
499
- this.getTagsMap().clear();
500
- return this;};
501
-
502
-
503
- /**
504
- * optional string schema_version_id = 6;
505
- * @return {string}
506
- */
507
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.getSchemaVersionId = function() {
508
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
509
- };
510
-
511
-
512
- /**
513
- * @param {string} value
514
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCreated} returns this
515
- */
516
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.setSchemaVersionId = function(value) {
517
- return jspb.Message.setProto3StringField(this, 6, value);
518
- };
519
-
520
-
521
- /**
522
- * optional bytes schema_definition = 7;
523
- * @return {!(string|Uint8Array)}
524
- */
525
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.getSchemaDefinition = function() {
526
- return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
527
- };
528
-
529
-
530
- /**
531
- * optional bytes schema_definition = 7;
532
- * This is a type-conversion wrapper around `getSchemaDefinition()`
533
- * @return {string}
534
- */
535
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.getSchemaDefinition_asB64 = function() {
536
- return /** @type {string} */ (jspb.Message.bytesAsB64(
537
- this.getSchemaDefinition()));
538
- };
539
-
540
-
541
- /**
542
- * optional bytes schema_definition = 7;
543
- * Note that Uint8Array is not supported on all browsers.
544
- * @see http://caniuse.com/Uint8Array
545
- * This is a type-conversion wrapper around `getSchemaDefinition()`
546
- * @return {!Uint8Array}
547
- */
548
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.getSchemaDefinition_asU8 = function() {
549
- return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
550
- this.getSchemaDefinition()));
551
- };
552
-
553
-
554
- /**
555
- * @param {!(string|Uint8Array)} value
556
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCreated} returns this
557
- */
558
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.setSchemaDefinition = function(value) {
559
- return jspb.Message.setProto3BytesField(this, 7, value);
560
- };
561
-
562
-
563
- /**
564
- * optional int32 version_number = 8;
565
- * @return {number}
566
- */
567
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.getVersionNumber = function() {
568
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
569
- };
570
-
571
-
572
- /**
573
- * @param {number} value
574
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCreated} returns this
575
- */
576
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.setVersionNumber = function(value) {
577
- return jspb.Message.setProto3IntField(this, 8, value);
578
- };
579
-
580
-
581
- /**
582
- * optional google.protobuf.Timestamp created_at = 9;
583
- * @return {?proto.google.protobuf.Timestamp}
584
- */
585
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.getCreatedAt = function() {
586
- return /** @type{?proto.google.protobuf.Timestamp} */ (
587
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
588
- };
589
-
590
-
591
- /**
592
- * @param {?proto.google.protobuf.Timestamp|undefined} value
593
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCreated} returns this
594
- */
595
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.setCreatedAt = function(value) {
596
- return jspb.Message.setWrapperField(this, 9, value);
597
- };
598
-
599
-
600
- /**
601
- * Clears the message field making it undefined.
602
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCreated} returns this
603
- */
604
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.clearCreatedAt = function() {
605
- return this.setCreatedAt(undefined);
606
- };
607
-
608
-
609
- /**
610
- * Returns whether this field is set.
611
- * @return {boolean}
612
- */
613
- proto.kurrentdb.protocol.registry.v2.SchemaCreated.prototype.hasCreatedAt = function() {
614
- return jspb.Message.getField(this, 9) != null;
615
- };
616
-
617
-
618
-
619
-
620
-
621
- if (jspb.Message.GENERATE_TO_OBJECT) {
622
- /**
623
- * Creates an object representation of this proto.
624
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
625
- * Optional fields that are not set will be set to undefined.
626
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
627
- * For the list of reserved names please see:
628
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
629
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
630
- * JSPB instance for transitional soy proto support:
631
- * http://goto/soy-param-migration
632
- * @return {!Object}
633
- */
634
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.prototype.toObject = function(opt_includeInstance) {
635
- return proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.toObject(opt_includeInstance, this);
636
- };
637
-
638
-
639
- /**
640
- * Static version of the {@see toObject} method.
641
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
642
- * the JSPB instance for transitional soy proto support:
643
- * http://goto/soy-param-migration
644
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered} msg The msg instance to transform.
645
- * @return {!Object}
646
- * @suppress {unusedLocalVariables} f is only used for nested messages
647
- */
648
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.toObject = function(includeInstance, msg) {
649
- var f, obj = {
650
- schemaVersionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
651
- schemaDefinition: msg.getSchemaDefinition_asB64(),
652
- versionNumber: jspb.Message.getFieldWithDefault(msg, 3, 0),
653
- schemaName: jspb.Message.getFieldWithDefault(msg, 4, ""),
654
- dataFormat: jspb.Message.getFieldWithDefault(msg, 5, 0),
655
- registeredAt: (f = msg.getRegisteredAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
656
- };
657
-
658
- if (includeInstance) {
659
- obj.$jspbMessageInstance = msg;
660
- }
661
- return obj;
662
- };
663
- }
664
-
665
-
666
- /**
667
- * Deserializes binary data (in protobuf wire format).
668
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
669
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered}
670
- */
671
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.deserializeBinary = function(bytes) {
672
- var reader = new jspb.BinaryReader(bytes);
673
- var msg = new proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered;
674
- return proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.deserializeBinaryFromReader(msg, reader);
675
- };
676
-
677
-
678
- /**
679
- * Deserializes binary data (in protobuf wire format) from the
680
- * given reader into the given message object.
681
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered} msg The message object to deserialize into.
682
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
683
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered}
684
- */
685
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.deserializeBinaryFromReader = function(msg, reader) {
686
- while (reader.nextField()) {
687
- if (reader.isEndGroup()) {
688
- break;
689
- }
690
- var field = reader.getFieldNumber();
691
- switch (field) {
692
- case 1:
693
- var value = /** @type {string} */ (reader.readString());
694
- msg.setSchemaVersionId(value);
695
- break;
696
- case 2:
697
- var value = /** @type {!Uint8Array} */ (reader.readBytes());
698
- msg.setSchemaDefinition(value);
699
- break;
700
- case 3:
701
- var value = /** @type {number} */ (reader.readInt32());
702
- msg.setVersionNumber(value);
703
- break;
704
- case 4:
705
- var value = /** @type {string} */ (reader.readString());
706
- msg.setSchemaName(value);
707
- break;
708
- case 5:
709
- var value = /** @type {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} */ (reader.readEnum());
710
- msg.setDataFormat(value);
711
- break;
712
- case 6:
713
- var value = new google_protobuf_timestamp_pb.Timestamp;
714
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
715
- msg.setRegisteredAt(value);
716
- break;
717
- default:
718
- reader.skipField();
719
- break;
720
- }
721
- }
722
- return msg;
723
- };
724
-
725
-
726
- /**
727
- * Serializes the message to binary data (in protobuf wire format).
728
- * @return {!Uint8Array}
729
- */
730
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.prototype.serializeBinary = function() {
731
- var writer = new jspb.BinaryWriter();
732
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.serializeBinaryToWriter(this, writer);
733
- return writer.getResultBuffer();
734
- };
735
-
736
-
737
- /**
738
- * Serializes the given message to binary data (in protobuf wire
739
- * format), writing to the given BinaryWriter.
740
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered} message
741
- * @param {!jspb.BinaryWriter} writer
742
- * @suppress {unusedLocalVariables} f is only used for nested messages
743
- */
744
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.serializeBinaryToWriter = function(message, writer) {
745
- var f = undefined;
746
- f = message.getSchemaVersionId();
747
- if (f.length > 0) {
748
- writer.writeString(
749
- 1,
750
- f
751
- );
752
- }
753
- f = message.getSchemaDefinition_asU8();
754
- if (f.length > 0) {
755
- writer.writeBytes(
756
- 2,
757
- f
758
- );
759
- }
760
- f = message.getVersionNumber();
761
- if (f !== 0) {
762
- writer.writeInt32(
763
- 3,
764
- f
765
- );
766
- }
767
- f = message.getSchemaName();
768
- if (f.length > 0) {
769
- writer.writeString(
770
- 4,
771
- f
772
- );
773
- }
774
- f = message.getDataFormat();
775
- if (f !== 0.0) {
776
- writer.writeEnum(
777
- 5,
778
- f
779
- );
780
- }
781
- f = message.getRegisteredAt();
782
- if (f != null) {
783
- writer.writeMessage(
784
- 6,
785
- f,
786
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
787
- );
788
- }
789
- };
790
-
791
-
792
- /**
793
- * optional string schema_version_id = 1;
794
- * @return {string}
795
- */
796
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.prototype.getSchemaVersionId = function() {
797
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
798
- };
799
-
800
-
801
- /**
802
- * @param {string} value
803
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered} returns this
804
- */
805
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.prototype.setSchemaVersionId = function(value) {
806
- return jspb.Message.setProto3StringField(this, 1, value);
807
- };
808
-
809
-
810
- /**
811
- * optional bytes schema_definition = 2;
812
- * @return {!(string|Uint8Array)}
813
- */
814
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.prototype.getSchemaDefinition = function() {
815
- return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
816
- };
817
-
818
-
819
- /**
820
- * optional bytes schema_definition = 2;
821
- * This is a type-conversion wrapper around `getSchemaDefinition()`
822
- * @return {string}
823
- */
824
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.prototype.getSchemaDefinition_asB64 = function() {
825
- return /** @type {string} */ (jspb.Message.bytesAsB64(
826
- this.getSchemaDefinition()));
827
- };
828
-
829
-
830
- /**
831
- * optional bytes schema_definition = 2;
832
- * Note that Uint8Array is not supported on all browsers.
833
- * @see http://caniuse.com/Uint8Array
834
- * This is a type-conversion wrapper around `getSchemaDefinition()`
835
- * @return {!Uint8Array}
836
- */
837
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.prototype.getSchemaDefinition_asU8 = function() {
838
- return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
839
- this.getSchemaDefinition()));
840
- };
841
-
842
-
843
- /**
844
- * @param {!(string|Uint8Array)} value
845
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered} returns this
846
- */
847
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.prototype.setSchemaDefinition = function(value) {
848
- return jspb.Message.setProto3BytesField(this, 2, value);
849
- };
850
-
851
-
852
- /**
853
- * optional int32 version_number = 3;
854
- * @return {number}
855
- */
856
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.prototype.getVersionNumber = function() {
857
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
858
- };
859
-
860
-
861
- /**
862
- * @param {number} value
863
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered} returns this
864
- */
865
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.prototype.setVersionNumber = function(value) {
866
- return jspb.Message.setProto3IntField(this, 3, value);
867
- };
868
-
869
-
870
- /**
871
- * optional string schema_name = 4;
872
- * @return {string}
873
- */
874
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.prototype.getSchemaName = function() {
875
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
876
- };
877
-
878
-
879
- /**
880
- * @param {string} value
881
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered} returns this
882
- */
883
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.prototype.setSchemaName = function(value) {
884
- return jspb.Message.setProto3StringField(this, 4, value);
885
- };
886
-
887
-
888
- /**
889
- * optional SchemaDataFormat data_format = 5;
890
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat}
891
- */
892
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.prototype.getDataFormat = function() {
893
- return /** @type {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
894
- };
895
-
896
-
897
- /**
898
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} value
899
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered} returns this
900
- */
901
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.prototype.setDataFormat = function(value) {
902
- return jspb.Message.setProto3EnumField(this, 5, value);
903
- };
904
-
905
-
906
- /**
907
- * optional google.protobuf.Timestamp registered_at = 6;
908
- * @return {?proto.google.protobuf.Timestamp}
909
- */
910
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.prototype.getRegisteredAt = function() {
911
- return /** @type{?proto.google.protobuf.Timestamp} */ (
912
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
913
- };
914
-
915
-
916
- /**
917
- * @param {?proto.google.protobuf.Timestamp|undefined} value
918
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered} returns this
919
- */
920
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.prototype.setRegisteredAt = function(value) {
921
- return jspb.Message.setWrapperField(this, 6, value);
922
- };
923
-
924
-
925
- /**
926
- * Clears the message field making it undefined.
927
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered} returns this
928
- */
929
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.prototype.clearRegisteredAt = function() {
930
- return this.setRegisteredAt(undefined);
931
- };
932
-
933
-
934
- /**
935
- * Returns whether this field is set.
936
- * @return {boolean}
937
- */
938
- proto.kurrentdb.protocol.registry.v2.SchemaVersionRegistered.prototype.hasRegisteredAt = function() {
939
- return jspb.Message.getField(this, 6) != null;
940
- };
941
-
942
-
943
-
944
- /**
945
- * List of repeated fields within this message type.
946
- * @private {!Array<number>}
947
- * @const
948
- */
949
- proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.repeatedFields_ = [2];
950
-
951
-
952
-
953
- if (jspb.Message.GENERATE_TO_OBJECT) {
954
- /**
955
- * Creates an object representation of this proto.
956
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
957
- * Optional fields that are not set will be set to undefined.
958
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
959
- * For the list of reserved names please see:
960
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
961
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
962
- * JSPB instance for transitional soy proto support:
963
- * http://goto/soy-param-migration
964
- * @return {!Object}
965
- */
966
- proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.prototype.toObject = function(opt_includeInstance) {
967
- return proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.toObject(opt_includeInstance, this);
968
- };
969
-
970
-
971
- /**
972
- * Static version of the {@see toObject} method.
973
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
974
- * the JSPB instance for transitional soy proto support:
975
- * http://goto/soy-param-migration
976
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted} msg The msg instance to transform.
977
- * @return {!Object}
978
- * @suppress {unusedLocalVariables} f is only used for nested messages
979
- */
980
- proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.toObject = function(includeInstance, msg) {
981
- var f, obj = {
982
- schemaName: jspb.Message.getFieldWithDefault(msg, 1, ""),
983
- versionsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
984
- latestSchemaVersionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
985
- latestSchemaVersionNumber: jspb.Message.getFieldWithDefault(msg, 4, 0),
986
- deletedAt: (f = msg.getDeletedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
987
- };
988
-
989
- if (includeInstance) {
990
- obj.$jspbMessageInstance = msg;
991
- }
992
- return obj;
993
- };
994
- }
995
-
996
-
997
- /**
998
- * Deserializes binary data (in protobuf wire format).
999
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1000
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted}
1001
- */
1002
- proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.deserializeBinary = function(bytes) {
1003
- var reader = new jspb.BinaryReader(bytes);
1004
- var msg = new proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted;
1005
- return proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.deserializeBinaryFromReader(msg, reader);
1006
- };
1007
-
1008
-
1009
- /**
1010
- * Deserializes binary data (in protobuf wire format) from the
1011
- * given reader into the given message object.
1012
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted} msg The message object to deserialize into.
1013
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1014
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted}
1015
- */
1016
- proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.deserializeBinaryFromReader = function(msg, reader) {
1017
- while (reader.nextField()) {
1018
- if (reader.isEndGroup()) {
1019
- break;
1020
- }
1021
- var field = reader.getFieldNumber();
1022
- switch (field) {
1023
- case 1:
1024
- var value = /** @type {string} */ (reader.readString());
1025
- msg.setSchemaName(value);
1026
- break;
1027
- case 2:
1028
- var value = /** @type {string} */ (reader.readString());
1029
- msg.addVersions(value);
1030
- break;
1031
- case 3:
1032
- var value = /** @type {string} */ (reader.readString());
1033
- msg.setLatestSchemaVersionId(value);
1034
- break;
1035
- case 4:
1036
- var value = /** @type {number} */ (reader.readInt32());
1037
- msg.setLatestSchemaVersionNumber(value);
1038
- break;
1039
- case 5:
1040
- var value = new google_protobuf_timestamp_pb.Timestamp;
1041
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1042
- msg.setDeletedAt(value);
1043
- break;
1044
- default:
1045
- reader.skipField();
1046
- break;
1047
- }
1048
- }
1049
- return msg;
1050
- };
1051
-
1052
-
1053
- /**
1054
- * Serializes the message to binary data (in protobuf wire format).
1055
- * @return {!Uint8Array}
1056
- */
1057
- proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.prototype.serializeBinary = function() {
1058
- var writer = new jspb.BinaryWriter();
1059
- proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.serializeBinaryToWriter(this, writer);
1060
- return writer.getResultBuffer();
1061
- };
1062
-
1063
-
1064
- /**
1065
- * Serializes the given message to binary data (in protobuf wire
1066
- * format), writing to the given BinaryWriter.
1067
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted} message
1068
- * @param {!jspb.BinaryWriter} writer
1069
- * @suppress {unusedLocalVariables} f is only used for nested messages
1070
- */
1071
- proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.serializeBinaryToWriter = function(message, writer) {
1072
- var f = undefined;
1073
- f = message.getSchemaName();
1074
- if (f.length > 0) {
1075
- writer.writeString(
1076
- 1,
1077
- f
1078
- );
1079
- }
1080
- f = message.getVersionsList();
1081
- if (f.length > 0) {
1082
- writer.writeRepeatedString(
1083
- 2,
1084
- f
1085
- );
1086
- }
1087
- f = message.getLatestSchemaVersionId();
1088
- if (f.length > 0) {
1089
- writer.writeString(
1090
- 3,
1091
- f
1092
- );
1093
- }
1094
- f = message.getLatestSchemaVersionNumber();
1095
- if (f !== 0) {
1096
- writer.writeInt32(
1097
- 4,
1098
- f
1099
- );
1100
- }
1101
- f = message.getDeletedAt();
1102
- if (f != null) {
1103
- writer.writeMessage(
1104
- 5,
1105
- f,
1106
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1107
- );
1108
- }
1109
- };
1110
-
1111
-
1112
- /**
1113
- * optional string schema_name = 1;
1114
- * @return {string}
1115
- */
1116
- proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.prototype.getSchemaName = function() {
1117
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1118
- };
1119
-
1120
-
1121
- /**
1122
- * @param {string} value
1123
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted} returns this
1124
- */
1125
- proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.prototype.setSchemaName = function(value) {
1126
- return jspb.Message.setProto3StringField(this, 1, value);
1127
- };
1128
-
1129
-
1130
- /**
1131
- * repeated string versions = 2;
1132
- * @return {!Array<string>}
1133
- */
1134
- proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.prototype.getVersionsList = function() {
1135
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
1136
- };
1137
-
1138
-
1139
- /**
1140
- * @param {!Array<string>} value
1141
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted} returns this
1142
- */
1143
- proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.prototype.setVersionsList = function(value) {
1144
- return jspb.Message.setField(this, 2, value || []);
1145
- };
1146
-
1147
-
1148
- /**
1149
- * @param {string} value
1150
- * @param {number=} opt_index
1151
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted} returns this
1152
- */
1153
- proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.prototype.addVersions = function(value, opt_index) {
1154
- return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
1155
- };
1156
-
1157
-
1158
- /**
1159
- * Clears the list making it empty but non-null.
1160
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted} returns this
1161
- */
1162
- proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.prototype.clearVersionsList = function() {
1163
- return this.setVersionsList([]);
1164
- };
1165
-
1166
-
1167
- /**
1168
- * optional string latest_schema_version_id = 3;
1169
- * @return {string}
1170
- */
1171
- proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.prototype.getLatestSchemaVersionId = function() {
1172
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1173
- };
1174
-
1175
-
1176
- /**
1177
- * @param {string} value
1178
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted} returns this
1179
- */
1180
- proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.prototype.setLatestSchemaVersionId = function(value) {
1181
- return jspb.Message.setProto3StringField(this, 3, value);
1182
- };
1183
-
1184
-
1185
- /**
1186
- * optional int32 latest_schema_version_number = 4;
1187
- * @return {number}
1188
- */
1189
- proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.prototype.getLatestSchemaVersionNumber = function() {
1190
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1191
- };
1192
-
1193
-
1194
- /**
1195
- * @param {number} value
1196
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted} returns this
1197
- */
1198
- proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.prototype.setLatestSchemaVersionNumber = function(value) {
1199
- return jspb.Message.setProto3IntField(this, 4, value);
1200
- };
1201
-
1202
-
1203
- /**
1204
- * optional google.protobuf.Timestamp deleted_at = 5;
1205
- * @return {?proto.google.protobuf.Timestamp}
1206
- */
1207
- proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.prototype.getDeletedAt = function() {
1208
- return /** @type{?proto.google.protobuf.Timestamp} */ (
1209
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
1210
- };
1211
-
1212
-
1213
- /**
1214
- * @param {?proto.google.protobuf.Timestamp|undefined} value
1215
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted} returns this
1216
- */
1217
- proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.prototype.setDeletedAt = function(value) {
1218
- return jspb.Message.setWrapperField(this, 5, value);
1219
- };
1220
-
1221
-
1222
- /**
1223
- * Clears the message field making it undefined.
1224
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted} returns this
1225
- */
1226
- proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.prototype.clearDeletedAt = function() {
1227
- return this.setDeletedAt(undefined);
1228
- };
1229
-
1230
-
1231
- /**
1232
- * Returns whether this field is set.
1233
- * @return {boolean}
1234
- */
1235
- proto.kurrentdb.protocol.registry.v2.SchemaVersionsDeleted.prototype.hasDeletedAt = function() {
1236
- return jspb.Message.getField(this, 5) != null;
1237
- };
1238
-
1239
-
1240
-
1241
-
1242
-
1243
- if (jspb.Message.GENERATE_TO_OBJECT) {
1244
- /**
1245
- * Creates an object representation of this proto.
1246
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1247
- * Optional fields that are not set will be set to undefined.
1248
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1249
- * For the list of reserved names please see:
1250
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1251
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1252
- * JSPB instance for transitional soy proto support:
1253
- * http://goto/soy-param-migration
1254
- * @return {!Object}
1255
- */
1256
- proto.kurrentdb.protocol.registry.v2.SchemaDeleted.prototype.toObject = function(opt_includeInstance) {
1257
- return proto.kurrentdb.protocol.registry.v2.SchemaDeleted.toObject(opt_includeInstance, this);
1258
- };
1259
-
1260
-
1261
- /**
1262
- * Static version of the {@see toObject} method.
1263
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1264
- * the JSPB instance for transitional soy proto support:
1265
- * http://goto/soy-param-migration
1266
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaDeleted} msg The msg instance to transform.
1267
- * @return {!Object}
1268
- * @suppress {unusedLocalVariables} f is only used for nested messages
1269
- */
1270
- proto.kurrentdb.protocol.registry.v2.SchemaDeleted.toObject = function(includeInstance, msg) {
1271
- var f, obj = {
1272
- schemaName: jspb.Message.getFieldWithDefault(msg, 1, ""),
1273
- deletedAt: (f = msg.getDeletedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1274
- };
1275
-
1276
- if (includeInstance) {
1277
- obj.$jspbMessageInstance = msg;
1278
- }
1279
- return obj;
1280
- };
1281
- }
1282
-
1283
-
1284
- /**
1285
- * Deserializes binary data (in protobuf wire format).
1286
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1287
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDeleted}
1288
- */
1289
- proto.kurrentdb.protocol.registry.v2.SchemaDeleted.deserializeBinary = function(bytes) {
1290
- var reader = new jspb.BinaryReader(bytes);
1291
- var msg = new proto.kurrentdb.protocol.registry.v2.SchemaDeleted;
1292
- return proto.kurrentdb.protocol.registry.v2.SchemaDeleted.deserializeBinaryFromReader(msg, reader);
1293
- };
1294
-
1295
-
1296
- /**
1297
- * Deserializes binary data (in protobuf wire format) from the
1298
- * given reader into the given message object.
1299
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaDeleted} msg The message object to deserialize into.
1300
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1301
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDeleted}
1302
- */
1303
- proto.kurrentdb.protocol.registry.v2.SchemaDeleted.deserializeBinaryFromReader = function(msg, reader) {
1304
- while (reader.nextField()) {
1305
- if (reader.isEndGroup()) {
1306
- break;
1307
- }
1308
- var field = reader.getFieldNumber();
1309
- switch (field) {
1310
- case 1:
1311
- var value = /** @type {string} */ (reader.readString());
1312
- msg.setSchemaName(value);
1313
- break;
1314
- case 2:
1315
- var value = new google_protobuf_timestamp_pb.Timestamp;
1316
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1317
- msg.setDeletedAt(value);
1318
- break;
1319
- default:
1320
- reader.skipField();
1321
- break;
1322
- }
1323
- }
1324
- return msg;
1325
- };
1326
-
1327
-
1328
- /**
1329
- * Serializes the message to binary data (in protobuf wire format).
1330
- * @return {!Uint8Array}
1331
- */
1332
- proto.kurrentdb.protocol.registry.v2.SchemaDeleted.prototype.serializeBinary = function() {
1333
- var writer = new jspb.BinaryWriter();
1334
- proto.kurrentdb.protocol.registry.v2.SchemaDeleted.serializeBinaryToWriter(this, writer);
1335
- return writer.getResultBuffer();
1336
- };
1337
-
1338
-
1339
- /**
1340
- * Serializes the given message to binary data (in protobuf wire
1341
- * format), writing to the given BinaryWriter.
1342
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaDeleted} message
1343
- * @param {!jspb.BinaryWriter} writer
1344
- * @suppress {unusedLocalVariables} f is only used for nested messages
1345
- */
1346
- proto.kurrentdb.protocol.registry.v2.SchemaDeleted.serializeBinaryToWriter = function(message, writer) {
1347
- var f = undefined;
1348
- f = message.getSchemaName();
1349
- if (f.length > 0) {
1350
- writer.writeString(
1351
- 1,
1352
- f
1353
- );
1354
- }
1355
- f = message.getDeletedAt();
1356
- if (f != null) {
1357
- writer.writeMessage(
1358
- 2,
1359
- f,
1360
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1361
- );
1362
- }
1363
- };
1364
-
1365
-
1366
- /**
1367
- * optional string schema_name = 1;
1368
- * @return {string}
1369
- */
1370
- proto.kurrentdb.protocol.registry.v2.SchemaDeleted.prototype.getSchemaName = function() {
1371
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1372
- };
1373
-
1374
-
1375
- /**
1376
- * @param {string} value
1377
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDeleted} returns this
1378
- */
1379
- proto.kurrentdb.protocol.registry.v2.SchemaDeleted.prototype.setSchemaName = function(value) {
1380
- return jspb.Message.setProto3StringField(this, 1, value);
1381
- };
1382
-
1383
-
1384
- /**
1385
- * optional google.protobuf.Timestamp deleted_at = 2;
1386
- * @return {?proto.google.protobuf.Timestamp}
1387
- */
1388
- proto.kurrentdb.protocol.registry.v2.SchemaDeleted.prototype.getDeletedAt = function() {
1389
- return /** @type{?proto.google.protobuf.Timestamp} */ (
1390
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
1391
- };
1392
-
1393
-
1394
- /**
1395
- * @param {?proto.google.protobuf.Timestamp|undefined} value
1396
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDeleted} returns this
1397
- */
1398
- proto.kurrentdb.protocol.registry.v2.SchemaDeleted.prototype.setDeletedAt = function(value) {
1399
- return jspb.Message.setWrapperField(this, 2, value);
1400
- };
1401
-
1402
-
1403
- /**
1404
- * Clears the message field making it undefined.
1405
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDeleted} returns this
1406
- */
1407
- proto.kurrentdb.protocol.registry.v2.SchemaDeleted.prototype.clearDeletedAt = function() {
1408
- return this.setDeletedAt(undefined);
1409
- };
1410
-
1411
-
1412
- /**
1413
- * Returns whether this field is set.
1414
- * @return {boolean}
1415
- */
1416
- proto.kurrentdb.protocol.registry.v2.SchemaDeleted.prototype.hasDeletedAt = function() {
1417
- return jspb.Message.getField(this, 2) != null;
1418
- };
1419
-
1420
-
1421
-
1422
-
1423
-
1424
- if (jspb.Message.GENERATE_TO_OBJECT) {
1425
- /**
1426
- * Creates an object representation of this proto.
1427
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1428
- * Optional fields that are not set will be set to undefined.
1429
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1430
- * For the list of reserved names please see:
1431
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1432
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1433
- * JSPB instance for transitional soy proto support:
1434
- * http://goto/soy-param-migration
1435
- * @return {!Object}
1436
- */
1437
- proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged.prototype.toObject = function(opt_includeInstance) {
1438
- return proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged.toObject(opt_includeInstance, this);
1439
- };
1440
-
1441
-
1442
- /**
1443
- * Static version of the {@see toObject} method.
1444
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1445
- * the JSPB instance for transitional soy proto support:
1446
- * http://goto/soy-param-migration
1447
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged} msg The msg instance to transform.
1448
- * @return {!Object}
1449
- * @suppress {unusedLocalVariables} f is only used for nested messages
1450
- */
1451
- proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged.toObject = function(includeInstance, msg) {
1452
- var f, obj = {
1453
- schemaName: jspb.Message.getFieldWithDefault(msg, 1, ""),
1454
- compatibility: jspb.Message.getFieldWithDefault(msg, 2, 0),
1455
- changedAt: (f = msg.getChangedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1456
- };
1457
-
1458
- if (includeInstance) {
1459
- obj.$jspbMessageInstance = msg;
1460
- }
1461
- return obj;
1462
- };
1463
- }
1464
-
1465
-
1466
- /**
1467
- * Deserializes binary data (in protobuf wire format).
1468
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1469
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged}
1470
- */
1471
- proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged.deserializeBinary = function(bytes) {
1472
- var reader = new jspb.BinaryReader(bytes);
1473
- var msg = new proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged;
1474
- return proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged.deserializeBinaryFromReader(msg, reader);
1475
- };
1476
-
1477
-
1478
- /**
1479
- * Deserializes binary data (in protobuf wire format) from the
1480
- * given reader into the given message object.
1481
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged} msg The message object to deserialize into.
1482
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1483
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged}
1484
- */
1485
- proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged.deserializeBinaryFromReader = function(msg, reader) {
1486
- while (reader.nextField()) {
1487
- if (reader.isEndGroup()) {
1488
- break;
1489
- }
1490
- var field = reader.getFieldNumber();
1491
- switch (field) {
1492
- case 1:
1493
- var value = /** @type {string} */ (reader.readString());
1494
- msg.setSchemaName(value);
1495
- break;
1496
- case 2:
1497
- var value = /** @type {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} */ (reader.readEnum());
1498
- msg.setCompatibility(value);
1499
- break;
1500
- case 3:
1501
- var value = new google_protobuf_timestamp_pb.Timestamp;
1502
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1503
- msg.setChangedAt(value);
1504
- break;
1505
- default:
1506
- reader.skipField();
1507
- break;
1508
- }
1509
- }
1510
- return msg;
1511
- };
1512
-
1513
-
1514
- /**
1515
- * Serializes the message to binary data (in protobuf wire format).
1516
- * @return {!Uint8Array}
1517
- */
1518
- proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged.prototype.serializeBinary = function() {
1519
- var writer = new jspb.BinaryWriter();
1520
- proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged.serializeBinaryToWriter(this, writer);
1521
- return writer.getResultBuffer();
1522
- };
1523
-
1524
-
1525
- /**
1526
- * Serializes the given message to binary data (in protobuf wire
1527
- * format), writing to the given BinaryWriter.
1528
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged} message
1529
- * @param {!jspb.BinaryWriter} writer
1530
- * @suppress {unusedLocalVariables} f is only used for nested messages
1531
- */
1532
- proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged.serializeBinaryToWriter = function(message, writer) {
1533
- var f = undefined;
1534
- f = message.getSchemaName();
1535
- if (f.length > 0) {
1536
- writer.writeString(
1537
- 1,
1538
- f
1539
- );
1540
- }
1541
- f = message.getCompatibility();
1542
- if (f !== 0.0) {
1543
- writer.writeEnum(
1544
- 2,
1545
- f
1546
- );
1547
- }
1548
- f = message.getChangedAt();
1549
- if (f != null) {
1550
- writer.writeMessage(
1551
- 3,
1552
- f,
1553
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1554
- );
1555
- }
1556
- };
1557
-
1558
-
1559
- /**
1560
- * optional string schema_name = 1;
1561
- * @return {string}
1562
- */
1563
- proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged.prototype.getSchemaName = function() {
1564
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1565
- };
1566
-
1567
-
1568
- /**
1569
- * @param {string} value
1570
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged} returns this
1571
- */
1572
- proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged.prototype.setSchemaName = function(value) {
1573
- return jspb.Message.setProto3StringField(this, 1, value);
1574
- };
1575
-
1576
-
1577
- /**
1578
- * optional CompatibilityMode compatibility = 2;
1579
- * @return {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode}
1580
- */
1581
- proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged.prototype.getCompatibility = function() {
1582
- return /** @type {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1583
- };
1584
-
1585
-
1586
- /**
1587
- * @param {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} value
1588
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged} returns this
1589
- */
1590
- proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged.prototype.setCompatibility = function(value) {
1591
- return jspb.Message.setProto3EnumField(this, 2, value);
1592
- };
1593
-
1594
-
1595
- /**
1596
- * optional google.protobuf.Timestamp changed_at = 3;
1597
- * @return {?proto.google.protobuf.Timestamp}
1598
- */
1599
- proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged.prototype.getChangedAt = function() {
1600
- return /** @type{?proto.google.protobuf.Timestamp} */ (
1601
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
1602
- };
1603
-
1604
-
1605
- /**
1606
- * @param {?proto.google.protobuf.Timestamp|undefined} value
1607
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged} returns this
1608
- */
1609
- proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged.prototype.setChangedAt = function(value) {
1610
- return jspb.Message.setWrapperField(this, 3, value);
1611
- };
1612
-
1613
-
1614
- /**
1615
- * Clears the message field making it undefined.
1616
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged} returns this
1617
- */
1618
- proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged.prototype.clearChangedAt = function() {
1619
- return this.setChangedAt(undefined);
1620
- };
1621
-
1622
-
1623
- /**
1624
- * Returns whether this field is set.
1625
- * @return {boolean}
1626
- */
1627
- proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityModeChanged.prototype.hasChangedAt = function() {
1628
- return jspb.Message.getField(this, 3) != null;
1629
- };
1630
-
1631
-
1632
-
1633
-
1634
-
1635
- if (jspb.Message.GENERATE_TO_OBJECT) {
1636
- /**
1637
- * Creates an object representation of this proto.
1638
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1639
- * Optional fields that are not set will be set to undefined.
1640
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1641
- * For the list of reserved names please see:
1642
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1643
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1644
- * JSPB instance for transitional soy proto support:
1645
- * http://goto/soy-param-migration
1646
- * @return {!Object}
1647
- */
1648
- proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated.prototype.toObject = function(opt_includeInstance) {
1649
- return proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated.toObject(opt_includeInstance, this);
1650
- };
1651
-
1652
-
1653
- /**
1654
- * Static version of the {@see toObject} method.
1655
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1656
- * the JSPB instance for transitional soy proto support:
1657
- * http://goto/soy-param-migration
1658
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated} msg The msg instance to transform.
1659
- * @return {!Object}
1660
- * @suppress {unusedLocalVariables} f is only used for nested messages
1661
- */
1662
- proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated.toObject = function(includeInstance, msg) {
1663
- var f, obj = {
1664
- schemaName: jspb.Message.getFieldWithDefault(msg, 1, ""),
1665
- tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [],
1666
- updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1667
- };
1668
-
1669
- if (includeInstance) {
1670
- obj.$jspbMessageInstance = msg;
1671
- }
1672
- return obj;
1673
- };
1674
- }
1675
-
1676
-
1677
- /**
1678
- * Deserializes binary data (in protobuf wire format).
1679
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1680
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated}
1681
- */
1682
- proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated.deserializeBinary = function(bytes) {
1683
- var reader = new jspb.BinaryReader(bytes);
1684
- var msg = new proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated;
1685
- return proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated.deserializeBinaryFromReader(msg, reader);
1686
- };
1687
-
1688
-
1689
- /**
1690
- * Deserializes binary data (in protobuf wire format) from the
1691
- * given reader into the given message object.
1692
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated} msg The message object to deserialize into.
1693
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1694
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated}
1695
- */
1696
- proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated.deserializeBinaryFromReader = function(msg, reader) {
1697
- while (reader.nextField()) {
1698
- if (reader.isEndGroup()) {
1699
- break;
1700
- }
1701
- var field = reader.getFieldNumber();
1702
- switch (field) {
1703
- case 1:
1704
- var value = /** @type {string} */ (reader.readString());
1705
- msg.setSchemaName(value);
1706
- break;
1707
- case 2:
1708
- var value = msg.getTagsMap();
1709
- reader.readMessage(value, function(message, reader) {
1710
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
1711
- });
1712
- break;
1713
- case 3:
1714
- var value = new google_protobuf_timestamp_pb.Timestamp;
1715
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1716
- msg.setUpdatedAt(value);
1717
- break;
1718
- default:
1719
- reader.skipField();
1720
- break;
1721
- }
1722
- }
1723
- return msg;
1724
- };
1725
-
1726
-
1727
- /**
1728
- * Serializes the message to binary data (in protobuf wire format).
1729
- * @return {!Uint8Array}
1730
- */
1731
- proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated.prototype.serializeBinary = function() {
1732
- var writer = new jspb.BinaryWriter();
1733
- proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated.serializeBinaryToWriter(this, writer);
1734
- return writer.getResultBuffer();
1735
- };
1736
-
1737
-
1738
- /**
1739
- * Serializes the given message to binary data (in protobuf wire
1740
- * format), writing to the given BinaryWriter.
1741
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated} message
1742
- * @param {!jspb.BinaryWriter} writer
1743
- * @suppress {unusedLocalVariables} f is only used for nested messages
1744
- */
1745
- proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated.serializeBinaryToWriter = function(message, writer) {
1746
- var f = undefined;
1747
- f = message.getSchemaName();
1748
- if (f.length > 0) {
1749
- writer.writeString(
1750
- 1,
1751
- f
1752
- );
1753
- }
1754
- f = message.getTagsMap(true);
1755
- if (f && f.getLength() > 0) {
1756
- f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
1757
- }
1758
- f = message.getUpdatedAt();
1759
- if (f != null) {
1760
- writer.writeMessage(
1761
- 3,
1762
- f,
1763
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1764
- );
1765
- }
1766
- };
1767
-
1768
-
1769
- /**
1770
- * optional string schema_name = 1;
1771
- * @return {string}
1772
- */
1773
- proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated.prototype.getSchemaName = function() {
1774
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1775
- };
1776
-
1777
-
1778
- /**
1779
- * @param {string} value
1780
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated} returns this
1781
- */
1782
- proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated.prototype.setSchemaName = function(value) {
1783
- return jspb.Message.setProto3StringField(this, 1, value);
1784
- };
1785
-
1786
-
1787
- /**
1788
- * map<string, string> tags = 2;
1789
- * @param {boolean=} opt_noLazyCreate Do not create the map if
1790
- * empty, instead returning `undefined`
1791
- * @return {!jspb.Map<string,string>}
1792
- */
1793
- proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated.prototype.getTagsMap = function(opt_noLazyCreate) {
1794
- return /** @type {!jspb.Map<string,string>} */ (
1795
- jspb.Message.getMapField(this, 2, opt_noLazyCreate,
1796
- null));
1797
- };
1798
-
1799
-
1800
- /**
1801
- * Clears values from the map. The map will be non-null.
1802
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated} returns this
1803
- */
1804
- proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated.prototype.clearTagsMap = function() {
1805
- this.getTagsMap().clear();
1806
- return this;};
1807
-
1808
-
1809
- /**
1810
- * optional google.protobuf.Timestamp updated_at = 3;
1811
- * @return {?proto.google.protobuf.Timestamp}
1812
- */
1813
- proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated.prototype.getUpdatedAt = function() {
1814
- return /** @type{?proto.google.protobuf.Timestamp} */ (
1815
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
1816
- };
1817
-
1818
-
1819
- /**
1820
- * @param {?proto.google.protobuf.Timestamp|undefined} value
1821
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated} returns this
1822
- */
1823
- proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated.prototype.setUpdatedAt = function(value) {
1824
- return jspb.Message.setWrapperField(this, 3, value);
1825
- };
1826
-
1827
-
1828
- /**
1829
- * Clears the message field making it undefined.
1830
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated} returns this
1831
- */
1832
- proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated.prototype.clearUpdatedAt = function() {
1833
- return this.setUpdatedAt(undefined);
1834
- };
1835
-
1836
-
1837
- /**
1838
- * Returns whether this field is set.
1839
- * @return {boolean}
1840
- */
1841
- proto.kurrentdb.protocol.registry.v2.SchemaTagsUpdated.prototype.hasUpdatedAt = function() {
1842
- return jspb.Message.getField(this, 3) != null;
1843
- };
1844
-
1845
-
1846
-
1847
-
1848
-
1849
- if (jspb.Message.GENERATE_TO_OBJECT) {
1850
- /**
1851
- * Creates an object representation of this proto.
1852
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1853
- * Optional fields that are not set will be set to undefined.
1854
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1855
- * For the list of reserved names please see:
1856
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1857
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1858
- * JSPB instance for transitional soy proto support:
1859
- * http://goto/soy-param-migration
1860
- * @return {!Object}
1861
- */
1862
- proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated.prototype.toObject = function(opt_includeInstance) {
1863
- return proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated.toObject(opt_includeInstance, this);
1864
- };
1865
-
1866
-
1867
- /**
1868
- * Static version of the {@see toObject} method.
1869
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1870
- * the JSPB instance for transitional soy proto support:
1871
- * http://goto/soy-param-migration
1872
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated} msg The msg instance to transform.
1873
- * @return {!Object}
1874
- * @suppress {unusedLocalVariables} f is only used for nested messages
1875
- */
1876
- proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated.toObject = function(includeInstance, msg) {
1877
- var f, obj = {
1878
- schemaName: jspb.Message.getFieldWithDefault(msg, 1, ""),
1879
- description: jspb.Message.getFieldWithDefault(msg, 2, ""),
1880
- updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1881
- };
1882
-
1883
- if (includeInstance) {
1884
- obj.$jspbMessageInstance = msg;
1885
- }
1886
- return obj;
1887
- };
1888
- }
1889
-
1890
-
1891
- /**
1892
- * Deserializes binary data (in protobuf wire format).
1893
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1894
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated}
1895
- */
1896
- proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated.deserializeBinary = function(bytes) {
1897
- var reader = new jspb.BinaryReader(bytes);
1898
- var msg = new proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated;
1899
- return proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated.deserializeBinaryFromReader(msg, reader);
1900
- };
1901
-
1902
-
1903
- /**
1904
- * Deserializes binary data (in protobuf wire format) from the
1905
- * given reader into the given message object.
1906
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated} msg The message object to deserialize into.
1907
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1908
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated}
1909
- */
1910
- proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated.deserializeBinaryFromReader = function(msg, reader) {
1911
- while (reader.nextField()) {
1912
- if (reader.isEndGroup()) {
1913
- break;
1914
- }
1915
- var field = reader.getFieldNumber();
1916
- switch (field) {
1917
- case 1:
1918
- var value = /** @type {string} */ (reader.readString());
1919
- msg.setSchemaName(value);
1920
- break;
1921
- case 2:
1922
- var value = /** @type {string} */ (reader.readString());
1923
- msg.setDescription(value);
1924
- break;
1925
- case 3:
1926
- var value = new google_protobuf_timestamp_pb.Timestamp;
1927
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1928
- msg.setUpdatedAt(value);
1929
- break;
1930
- default:
1931
- reader.skipField();
1932
- break;
1933
- }
1934
- }
1935
- return msg;
1936
- };
1937
-
1938
-
1939
- /**
1940
- * Serializes the message to binary data (in protobuf wire format).
1941
- * @return {!Uint8Array}
1942
- */
1943
- proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated.prototype.serializeBinary = function() {
1944
- var writer = new jspb.BinaryWriter();
1945
- proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated.serializeBinaryToWriter(this, writer);
1946
- return writer.getResultBuffer();
1947
- };
1948
-
1949
-
1950
- /**
1951
- * Serializes the given message to binary data (in protobuf wire
1952
- * format), writing to the given BinaryWriter.
1953
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated} message
1954
- * @param {!jspb.BinaryWriter} writer
1955
- * @suppress {unusedLocalVariables} f is only used for nested messages
1956
- */
1957
- proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated.serializeBinaryToWriter = function(message, writer) {
1958
- var f = undefined;
1959
- f = message.getSchemaName();
1960
- if (f.length > 0) {
1961
- writer.writeString(
1962
- 1,
1963
- f
1964
- );
1965
- }
1966
- f = message.getDescription();
1967
- if (f.length > 0) {
1968
- writer.writeString(
1969
- 2,
1970
- f
1971
- );
1972
- }
1973
- f = message.getUpdatedAt();
1974
- if (f != null) {
1975
- writer.writeMessage(
1976
- 3,
1977
- f,
1978
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1979
- );
1980
- }
1981
- };
1982
-
1983
-
1984
- /**
1985
- * optional string schema_name = 1;
1986
- * @return {string}
1987
- */
1988
- proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated.prototype.getSchemaName = function() {
1989
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1990
- };
1991
-
1992
-
1993
- /**
1994
- * @param {string} value
1995
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated} returns this
1996
- */
1997
- proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated.prototype.setSchemaName = function(value) {
1998
- return jspb.Message.setProto3StringField(this, 1, value);
1999
- };
2000
-
2001
-
2002
- /**
2003
- * optional string description = 2;
2004
- * @return {string}
2005
- */
2006
- proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated.prototype.getDescription = function() {
2007
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2008
- };
2009
-
2010
-
2011
- /**
2012
- * @param {string} value
2013
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated} returns this
2014
- */
2015
- proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated.prototype.setDescription = function(value) {
2016
- return jspb.Message.setProto3StringField(this, 2, value);
2017
- };
2018
-
2019
-
2020
- /**
2021
- * optional google.protobuf.Timestamp updated_at = 3;
2022
- * @return {?proto.google.protobuf.Timestamp}
2023
- */
2024
- proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated.prototype.getUpdatedAt = function() {
2025
- return /** @type{?proto.google.protobuf.Timestamp} */ (
2026
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
2027
- };
2028
-
2029
-
2030
- /**
2031
- * @param {?proto.google.protobuf.Timestamp|undefined} value
2032
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated} returns this
2033
- */
2034
- proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated.prototype.setUpdatedAt = function(value) {
2035
- return jspb.Message.setWrapperField(this, 3, value);
2036
- };
2037
-
2038
-
2039
- /**
2040
- * Clears the message field making it undefined.
2041
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated} returns this
2042
- */
2043
- proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated.prototype.clearUpdatedAt = function() {
2044
- return this.setUpdatedAt(undefined);
2045
- };
2046
-
2047
-
2048
- /**
2049
- * Returns whether this field is set.
2050
- * @return {boolean}
2051
- */
2052
- proto.kurrentdb.protocol.registry.v2.SchemaDescriptionUpdated.prototype.hasUpdatedAt = function() {
2053
- return jspb.Message.getField(this, 3) != null;
2054
- };
2055
-
2056
-
2057
- goog.object.extend(exports, proto.kurrentdb.protocol.registry.v2);