@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,3593 +0,0 @@
1
- // source: kurrentdb/protocols/v2/registry/groups.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_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js');
25
- goog.object.extend(proto, google_protobuf_field_mask_pb);
26
- var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
27
- goog.object.extend(proto, google_protobuf_timestamp_pb);
28
- var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
29
- goog.object.extend(proto, google_protobuf_wrappers_pb);
30
- var kurrentdb_protocols_v2_registry_shared_pb = require('../../../../kurrentdb/protocols/v2/registry/shared_pb.js');
31
- goog.object.extend(proto, kurrentdb_protocols_v2_registry_shared_pb);
32
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings', null, global);
33
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.CompatibilitySettings', null, global);
34
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest', null, global);
35
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse', null, global);
36
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.DataFormatSettings', null, global);
37
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest', null, global);
38
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse', null, global);
39
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest', null, global);
40
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse', null, global);
41
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest', null, global);
42
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse', null, global);
43
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.SchemaGroup', null, global);
44
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails', null, global);
45
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.StreamFilter', null, global);
46
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.StreamFilterSettings', null, global);
47
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.StreamFilterType', null, global);
48
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest', null, global);
49
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse', null, global);
50
- goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.ValidationSettings', null, global);
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.registry.v2.AutoRegistrationSettings = function(opt_data) {
62
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
63
- };
64
- goog.inherits(proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings, jspb.Message);
65
- if (goog.DEBUG && !COMPILED) {
66
- /**
67
- * @public
68
- * @override
69
- */
70
- proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.displayName = 'proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings';
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.registry.v2.ValidationSettings = function(opt_data) {
83
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
84
- };
85
- goog.inherits(proto.kurrentdb.protocol.registry.v2.ValidationSettings, jspb.Message);
86
- if (goog.DEBUG && !COMPILED) {
87
- /**
88
- * @public
89
- * @override
90
- */
91
- proto.kurrentdb.protocol.registry.v2.ValidationSettings.displayName = 'proto.kurrentdb.protocol.registry.v2.ValidationSettings';
92
- }
93
- /**
94
- * Generated by JsPbCodeGenerator.
95
- * @param {Array=} opt_data Optional initial data array, typically from a
96
- * server response, or constructed directly in Javascript. The array is used
97
- * in place and becomes part of the constructed object. It is not cloned.
98
- * If no data is provided, the constructed object will be empty, but still
99
- * valid.
100
- * @extends {jspb.Message}
101
- * @constructor
102
- */
103
- proto.kurrentdb.protocol.registry.v2.CompatibilitySettings = function(opt_data) {
104
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
105
- };
106
- goog.inherits(proto.kurrentdb.protocol.registry.v2.CompatibilitySettings, jspb.Message);
107
- if (goog.DEBUG && !COMPILED) {
108
- /**
109
- * @public
110
- * @override
111
- */
112
- proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.displayName = 'proto.kurrentdb.protocol.registry.v2.CompatibilitySettings';
113
- }
114
- /**
115
- * Generated by JsPbCodeGenerator.
116
- * @param {Array=} opt_data Optional initial data array, typically from a
117
- * server response, or constructed directly in Javascript. The array is used
118
- * in place and becomes part of the constructed object. It is not cloned.
119
- * If no data is provided, the constructed object will be empty, but still
120
- * valid.
121
- * @extends {jspb.Message}
122
- * @constructor
123
- */
124
- proto.kurrentdb.protocol.registry.v2.DataFormatSettings = function(opt_data) {
125
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
126
- };
127
- goog.inherits(proto.kurrentdb.protocol.registry.v2.DataFormatSettings, jspb.Message);
128
- if (goog.DEBUG && !COMPILED) {
129
- /**
130
- * @public
131
- * @override
132
- */
133
- proto.kurrentdb.protocol.registry.v2.DataFormatSettings.displayName = 'proto.kurrentdb.protocol.registry.v2.DataFormatSettings';
134
- }
135
- /**
136
- * Generated by JsPbCodeGenerator.
137
- * @param {Array=} opt_data Optional initial data array, typically from a
138
- * server response, or constructed directly in Javascript. The array is used
139
- * in place and becomes part of the constructed object. It is not cloned.
140
- * If no data is provided, the constructed object will be empty, but still
141
- * valid.
142
- * @extends {jspb.Message}
143
- * @constructor
144
- */
145
- proto.kurrentdb.protocol.registry.v2.StreamFilter = function(opt_data) {
146
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
147
- };
148
- goog.inherits(proto.kurrentdb.protocol.registry.v2.StreamFilter, jspb.Message);
149
- if (goog.DEBUG && !COMPILED) {
150
- /**
151
- * @public
152
- * @override
153
- */
154
- proto.kurrentdb.protocol.registry.v2.StreamFilter.displayName = 'proto.kurrentdb.protocol.registry.v2.StreamFilter';
155
- }
156
- /**
157
- * Generated by JsPbCodeGenerator.
158
- * @param {Array=} opt_data Optional initial data array, typically from a
159
- * server response, or constructed directly in Javascript. The array is used
160
- * in place and becomes part of the constructed object. It is not cloned.
161
- * If no data is provided, the constructed object will be empty, but still
162
- * valid.
163
- * @extends {jspb.Message}
164
- * @constructor
165
- */
166
- proto.kurrentdb.protocol.registry.v2.StreamFilterSettings = function(opt_data) {
167
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
168
- };
169
- goog.inherits(proto.kurrentdb.protocol.registry.v2.StreamFilterSettings, jspb.Message);
170
- if (goog.DEBUG && !COMPILED) {
171
- /**
172
- * @public
173
- * @override
174
- */
175
- proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.displayName = 'proto.kurrentdb.protocol.registry.v2.StreamFilterSettings';
176
- }
177
- /**
178
- * Generated by JsPbCodeGenerator.
179
- * @param {Array=} opt_data Optional initial data array, typically from a
180
- * server response, or constructed directly in Javascript. The array is used
181
- * in place and becomes part of the constructed object. It is not cloned.
182
- * If no data is provided, the constructed object will be empty, but still
183
- * valid.
184
- * @extends {jspb.Message}
185
- * @constructor
186
- */
187
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails = function(opt_data) {
188
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
189
- };
190
- goog.inherits(proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails, jspb.Message);
191
- if (goog.DEBUG && !COMPILED) {
192
- /**
193
- * @public
194
- * @override
195
- */
196
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.displayName = 'proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails';
197
- }
198
- /**
199
- * Generated by JsPbCodeGenerator.
200
- * @param {Array=} opt_data Optional initial data array, typically from a
201
- * server response, or constructed directly in Javascript. The array is used
202
- * in place and becomes part of the constructed object. It is not cloned.
203
- * If no data is provided, the constructed object will be empty, but still
204
- * valid.
205
- * @extends {jspb.Message}
206
- * @constructor
207
- */
208
- proto.kurrentdb.protocol.registry.v2.SchemaGroup = function(opt_data) {
209
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
210
- };
211
- goog.inherits(proto.kurrentdb.protocol.registry.v2.SchemaGroup, jspb.Message);
212
- if (goog.DEBUG && !COMPILED) {
213
- /**
214
- * @public
215
- * @override
216
- */
217
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.displayName = 'proto.kurrentdb.protocol.registry.v2.SchemaGroup';
218
- }
219
- /**
220
- * Generated by JsPbCodeGenerator.
221
- * @param {Array=} opt_data Optional initial data array, typically from a
222
- * server response, or constructed directly in Javascript. The array is used
223
- * in place and becomes part of the constructed object. It is not cloned.
224
- * If no data is provided, the constructed object will be empty, but still
225
- * valid.
226
- * @extends {jspb.Message}
227
- * @constructor
228
- */
229
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest = function(opt_data) {
230
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
231
- };
232
- goog.inherits(proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest, jspb.Message);
233
- if (goog.DEBUG && !COMPILED) {
234
- /**
235
- * @public
236
- * @override
237
- */
238
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest';
239
- }
240
- /**
241
- * Generated by JsPbCodeGenerator.
242
- * @param {Array=} opt_data Optional initial data array, typically from a
243
- * server response, or constructed directly in Javascript. The array is used
244
- * in place and becomes part of the constructed object. It is not cloned.
245
- * If no data is provided, the constructed object will be empty, but still
246
- * valid.
247
- * @extends {jspb.Message}
248
- * @constructor
249
- */
250
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse = function(opt_data) {
251
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
252
- };
253
- goog.inherits(proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse, jspb.Message);
254
- if (goog.DEBUG && !COMPILED) {
255
- /**
256
- * @public
257
- * @override
258
- */
259
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse';
260
- }
261
- /**
262
- * Generated by JsPbCodeGenerator.
263
- * @param {Array=} opt_data Optional initial data array, typically from a
264
- * server response, or constructed directly in Javascript. The array is used
265
- * in place and becomes part of the constructed object. It is not cloned.
266
- * If no data is provided, the constructed object will be empty, but still
267
- * valid.
268
- * @extends {jspb.Message}
269
- * @constructor
270
- */
271
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest = function(opt_data) {
272
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
273
- };
274
- goog.inherits(proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest, jspb.Message);
275
- if (goog.DEBUG && !COMPILED) {
276
- /**
277
- * @public
278
- * @override
279
- */
280
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest';
281
- }
282
- /**
283
- * Generated by JsPbCodeGenerator.
284
- * @param {Array=} opt_data Optional initial data array, typically from a
285
- * server response, or constructed directly in Javascript. The array is used
286
- * in place and becomes part of the constructed object. It is not cloned.
287
- * If no data is provided, the constructed object will be empty, but still
288
- * valid.
289
- * @extends {jspb.Message}
290
- * @constructor
291
- */
292
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse = function(opt_data) {
293
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
294
- };
295
- goog.inherits(proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse, jspb.Message);
296
- if (goog.DEBUG && !COMPILED) {
297
- /**
298
- * @public
299
- * @override
300
- */
301
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse';
302
- }
303
- /**
304
- * Generated by JsPbCodeGenerator.
305
- * @param {Array=} opt_data Optional initial data array, typically from a
306
- * server response, or constructed directly in Javascript. The array is used
307
- * in place and becomes part of the constructed object. It is not cloned.
308
- * If no data is provided, the constructed object will be empty, but still
309
- * valid.
310
- * @extends {jspb.Message}
311
- * @constructor
312
- */
313
- proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest = function(opt_data) {
314
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
315
- };
316
- goog.inherits(proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest, jspb.Message);
317
- if (goog.DEBUG && !COMPILED) {
318
- /**
319
- * @public
320
- * @override
321
- */
322
- proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest';
323
- }
324
- /**
325
- * Generated by JsPbCodeGenerator.
326
- * @param {Array=} opt_data Optional initial data array, typically from a
327
- * server response, or constructed directly in Javascript. The array is used
328
- * in place and becomes part of the constructed object. It is not cloned.
329
- * If no data is provided, the constructed object will be empty, but still
330
- * valid.
331
- * @extends {jspb.Message}
332
- * @constructor
333
- */
334
- proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse = function(opt_data) {
335
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
336
- };
337
- goog.inherits(proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse, jspb.Message);
338
- if (goog.DEBUG && !COMPILED) {
339
- /**
340
- * @public
341
- * @override
342
- */
343
- proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse';
344
- }
345
- /**
346
- * Generated by JsPbCodeGenerator.
347
- * @param {Array=} opt_data Optional initial data array, typically from a
348
- * server response, or constructed directly in Javascript. The array is used
349
- * in place and becomes part of the constructed object. It is not cloned.
350
- * If no data is provided, the constructed object will be empty, but still
351
- * valid.
352
- * @extends {jspb.Message}
353
- * @constructor
354
- */
355
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest = function(opt_data) {
356
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
357
- };
358
- goog.inherits(proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest, jspb.Message);
359
- if (goog.DEBUG && !COMPILED) {
360
- /**
361
- * @public
362
- * @override
363
- */
364
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest';
365
- }
366
- /**
367
- * Generated by JsPbCodeGenerator.
368
- * @param {Array=} opt_data Optional initial data array, typically from a
369
- * server response, or constructed directly in Javascript. The array is used
370
- * in place and becomes part of the constructed object. It is not cloned.
371
- * If no data is provided, the constructed object will be empty, but still
372
- * valid.
373
- * @extends {jspb.Message}
374
- * @constructor
375
- */
376
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse = function(opt_data) {
377
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
378
- };
379
- goog.inherits(proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse, jspb.Message);
380
- if (goog.DEBUG && !COMPILED) {
381
- /**
382
- * @public
383
- * @override
384
- */
385
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse';
386
- }
387
- /**
388
- * Generated by JsPbCodeGenerator.
389
- * @param {Array=} opt_data Optional initial data array, typically from a
390
- * server response, or constructed directly in Javascript. The array is used
391
- * in place and becomes part of the constructed object. It is not cloned.
392
- * If no data is provided, the constructed object will be empty, but still
393
- * valid.
394
- * @extends {jspb.Message}
395
- * @constructor
396
- */
397
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest = function(opt_data) {
398
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
399
- };
400
- goog.inherits(proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest, jspb.Message);
401
- if (goog.DEBUG && !COMPILED) {
402
- /**
403
- * @public
404
- * @override
405
- */
406
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest';
407
- }
408
- /**
409
- * Generated by JsPbCodeGenerator.
410
- * @param {Array=} opt_data Optional initial data array, typically from a
411
- * server response, or constructed directly in Javascript. The array is used
412
- * in place and becomes part of the constructed object. It is not cloned.
413
- * If no data is provided, the constructed object will be empty, but still
414
- * valid.
415
- * @extends {jspb.Message}
416
- * @constructor
417
- */
418
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse = function(opt_data) {
419
- jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.repeatedFields_, null);
420
- };
421
- goog.inherits(proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse, jspb.Message);
422
- if (goog.DEBUG && !COMPILED) {
423
- /**
424
- * @public
425
- * @override
426
- */
427
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse';
428
- }
429
-
430
-
431
-
432
- if (jspb.Message.GENERATE_TO_OBJECT) {
433
- /**
434
- * Creates an object representation of this proto.
435
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
436
- * Optional fields that are not set will be set to undefined.
437
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
438
- * For the list of reserved names please see:
439
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
440
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
441
- * JSPB instance for transitional soy proto support:
442
- * http://goto/soy-param-migration
443
- * @return {!Object}
444
- */
445
- proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.prototype.toObject = function(opt_includeInstance) {
446
- return proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.toObject(opt_includeInstance, this);
447
- };
448
-
449
-
450
- /**
451
- * Static version of the {@see toObject} method.
452
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
453
- * the JSPB instance for transitional soy proto support:
454
- * http://goto/soy-param-migration
455
- * @param {!proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings} msg The msg instance to transform.
456
- * @return {!Object}
457
- * @suppress {unusedLocalVariables} f is only used for nested messages
458
- */
459
- proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.toObject = function(includeInstance, msg) {
460
- var f, obj = {
461
- enabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
462
- };
463
-
464
- if (includeInstance) {
465
- obj.$jspbMessageInstance = msg;
466
- }
467
- return obj;
468
- };
469
- }
470
-
471
-
472
- /**
473
- * Deserializes binary data (in protobuf wire format).
474
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
475
- * @return {!proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings}
476
- */
477
- proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.deserializeBinary = function(bytes) {
478
- var reader = new jspb.BinaryReader(bytes);
479
- var msg = new proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings;
480
- return proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.deserializeBinaryFromReader(msg, reader);
481
- };
482
-
483
-
484
- /**
485
- * Deserializes binary data (in protobuf wire format) from the
486
- * given reader into the given message object.
487
- * @param {!proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings} msg The message object to deserialize into.
488
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
489
- * @return {!proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings}
490
- */
491
- proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.deserializeBinaryFromReader = function(msg, reader) {
492
- while (reader.nextField()) {
493
- if (reader.isEndGroup()) {
494
- break;
495
- }
496
- var field = reader.getFieldNumber();
497
- switch (field) {
498
- case 1:
499
- var value = /** @type {boolean} */ (reader.readBool());
500
- msg.setEnabled(value);
501
- break;
502
- default:
503
- reader.skipField();
504
- break;
505
- }
506
- }
507
- return msg;
508
- };
509
-
510
-
511
- /**
512
- * Serializes the message to binary data (in protobuf wire format).
513
- * @return {!Uint8Array}
514
- */
515
- proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.prototype.serializeBinary = function() {
516
- var writer = new jspb.BinaryWriter();
517
- proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.serializeBinaryToWriter(this, writer);
518
- return writer.getResultBuffer();
519
- };
520
-
521
-
522
- /**
523
- * Serializes the given message to binary data (in protobuf wire
524
- * format), writing to the given BinaryWriter.
525
- * @param {!proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings} message
526
- * @param {!jspb.BinaryWriter} writer
527
- * @suppress {unusedLocalVariables} f is only used for nested messages
528
- */
529
- proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.serializeBinaryToWriter = function(message, writer) {
530
- var f = undefined;
531
- f = message.getEnabled();
532
- if (f) {
533
- writer.writeBool(
534
- 1,
535
- f
536
- );
537
- }
538
- };
539
-
540
-
541
- /**
542
- * optional bool enabled = 1;
543
- * @return {boolean}
544
- */
545
- proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.prototype.getEnabled = function() {
546
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
547
- };
548
-
549
-
550
- /**
551
- * @param {boolean} value
552
- * @return {!proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings} returns this
553
- */
554
- proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.prototype.setEnabled = function(value) {
555
- return jspb.Message.setProto3BooleanField(this, 1, value);
556
- };
557
-
558
-
559
-
560
-
561
-
562
- if (jspb.Message.GENERATE_TO_OBJECT) {
563
- /**
564
- * Creates an object representation of this proto.
565
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
566
- * Optional fields that are not set will be set to undefined.
567
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
568
- * For the list of reserved names please see:
569
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
570
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
571
- * JSPB instance for transitional soy proto support:
572
- * http://goto/soy-param-migration
573
- * @return {!Object}
574
- */
575
- proto.kurrentdb.protocol.registry.v2.ValidationSettings.prototype.toObject = function(opt_includeInstance) {
576
- return proto.kurrentdb.protocol.registry.v2.ValidationSettings.toObject(opt_includeInstance, this);
577
- };
578
-
579
-
580
- /**
581
- * Static version of the {@see toObject} method.
582
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
583
- * the JSPB instance for transitional soy proto support:
584
- * http://goto/soy-param-migration
585
- * @param {!proto.kurrentdb.protocol.registry.v2.ValidationSettings} msg The msg instance to transform.
586
- * @return {!Object}
587
- * @suppress {unusedLocalVariables} f is only used for nested messages
588
- */
589
- proto.kurrentdb.protocol.registry.v2.ValidationSettings.toObject = function(includeInstance, msg) {
590
- var f, obj = {
591
- enabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
592
- };
593
-
594
- if (includeInstance) {
595
- obj.$jspbMessageInstance = msg;
596
- }
597
- return obj;
598
- };
599
- }
600
-
601
-
602
- /**
603
- * Deserializes binary data (in protobuf wire format).
604
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
605
- * @return {!proto.kurrentdb.protocol.registry.v2.ValidationSettings}
606
- */
607
- proto.kurrentdb.protocol.registry.v2.ValidationSettings.deserializeBinary = function(bytes) {
608
- var reader = new jspb.BinaryReader(bytes);
609
- var msg = new proto.kurrentdb.protocol.registry.v2.ValidationSettings;
610
- return proto.kurrentdb.protocol.registry.v2.ValidationSettings.deserializeBinaryFromReader(msg, reader);
611
- };
612
-
613
-
614
- /**
615
- * Deserializes binary data (in protobuf wire format) from the
616
- * given reader into the given message object.
617
- * @param {!proto.kurrentdb.protocol.registry.v2.ValidationSettings} msg The message object to deserialize into.
618
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
619
- * @return {!proto.kurrentdb.protocol.registry.v2.ValidationSettings}
620
- */
621
- proto.kurrentdb.protocol.registry.v2.ValidationSettings.deserializeBinaryFromReader = function(msg, reader) {
622
- while (reader.nextField()) {
623
- if (reader.isEndGroup()) {
624
- break;
625
- }
626
- var field = reader.getFieldNumber();
627
- switch (field) {
628
- case 1:
629
- var value = /** @type {boolean} */ (reader.readBool());
630
- msg.setEnabled(value);
631
- break;
632
- default:
633
- reader.skipField();
634
- break;
635
- }
636
- }
637
- return msg;
638
- };
639
-
640
-
641
- /**
642
- * Serializes the message to binary data (in protobuf wire format).
643
- * @return {!Uint8Array}
644
- */
645
- proto.kurrentdb.protocol.registry.v2.ValidationSettings.prototype.serializeBinary = function() {
646
- var writer = new jspb.BinaryWriter();
647
- proto.kurrentdb.protocol.registry.v2.ValidationSettings.serializeBinaryToWriter(this, writer);
648
- return writer.getResultBuffer();
649
- };
650
-
651
-
652
- /**
653
- * Serializes the given message to binary data (in protobuf wire
654
- * format), writing to the given BinaryWriter.
655
- * @param {!proto.kurrentdb.protocol.registry.v2.ValidationSettings} message
656
- * @param {!jspb.BinaryWriter} writer
657
- * @suppress {unusedLocalVariables} f is only used for nested messages
658
- */
659
- proto.kurrentdb.protocol.registry.v2.ValidationSettings.serializeBinaryToWriter = function(message, writer) {
660
- var f = undefined;
661
- f = message.getEnabled();
662
- if (f) {
663
- writer.writeBool(
664
- 1,
665
- f
666
- );
667
- }
668
- };
669
-
670
-
671
- /**
672
- * optional bool enabled = 1;
673
- * @return {boolean}
674
- */
675
- proto.kurrentdb.protocol.registry.v2.ValidationSettings.prototype.getEnabled = function() {
676
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
677
- };
678
-
679
-
680
- /**
681
- * @param {boolean} value
682
- * @return {!proto.kurrentdb.protocol.registry.v2.ValidationSettings} returns this
683
- */
684
- proto.kurrentdb.protocol.registry.v2.ValidationSettings.prototype.setEnabled = function(value) {
685
- return jspb.Message.setProto3BooleanField(this, 1, value);
686
- };
687
-
688
-
689
-
690
-
691
-
692
- if (jspb.Message.GENERATE_TO_OBJECT) {
693
- /**
694
- * Creates an object representation of this proto.
695
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
696
- * Optional fields that are not set will be set to undefined.
697
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
698
- * For the list of reserved names please see:
699
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
700
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
701
- * JSPB instance for transitional soy proto support:
702
- * http://goto/soy-param-migration
703
- * @return {!Object}
704
- */
705
- proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.prototype.toObject = function(opt_includeInstance) {
706
- return proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.toObject(opt_includeInstance, this);
707
- };
708
-
709
-
710
- /**
711
- * Static version of the {@see toObject} method.
712
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
713
- * the JSPB instance for transitional soy proto support:
714
- * http://goto/soy-param-migration
715
- * @param {!proto.kurrentdb.protocol.registry.v2.CompatibilitySettings} msg The msg instance to transform.
716
- * @return {!Object}
717
- * @suppress {unusedLocalVariables} f is only used for nested messages
718
- */
719
- proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.toObject = function(includeInstance, msg) {
720
- var f, obj = {
721
- enforce: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
722
- mode: jspb.Message.getFieldWithDefault(msg, 2, 0)
723
- };
724
-
725
- if (includeInstance) {
726
- obj.$jspbMessageInstance = msg;
727
- }
728
- return obj;
729
- };
730
- }
731
-
732
-
733
- /**
734
- * Deserializes binary data (in protobuf wire format).
735
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
736
- * @return {!proto.kurrentdb.protocol.registry.v2.CompatibilitySettings}
737
- */
738
- proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.deserializeBinary = function(bytes) {
739
- var reader = new jspb.BinaryReader(bytes);
740
- var msg = new proto.kurrentdb.protocol.registry.v2.CompatibilitySettings;
741
- return proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.deserializeBinaryFromReader(msg, reader);
742
- };
743
-
744
-
745
- /**
746
- * Deserializes binary data (in protobuf wire format) from the
747
- * given reader into the given message object.
748
- * @param {!proto.kurrentdb.protocol.registry.v2.CompatibilitySettings} msg The message object to deserialize into.
749
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
750
- * @return {!proto.kurrentdb.protocol.registry.v2.CompatibilitySettings}
751
- */
752
- proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.deserializeBinaryFromReader = function(msg, reader) {
753
- while (reader.nextField()) {
754
- if (reader.isEndGroup()) {
755
- break;
756
- }
757
- var field = reader.getFieldNumber();
758
- switch (field) {
759
- case 1:
760
- var value = /** @type {boolean} */ (reader.readBool());
761
- msg.setEnforce(value);
762
- break;
763
- case 2:
764
- var value = /** @type {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} */ (reader.readEnum());
765
- msg.setMode(value);
766
- break;
767
- default:
768
- reader.skipField();
769
- break;
770
- }
771
- }
772
- return msg;
773
- };
774
-
775
-
776
- /**
777
- * Serializes the message to binary data (in protobuf wire format).
778
- * @return {!Uint8Array}
779
- */
780
- proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.prototype.serializeBinary = function() {
781
- var writer = new jspb.BinaryWriter();
782
- proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.serializeBinaryToWriter(this, writer);
783
- return writer.getResultBuffer();
784
- };
785
-
786
-
787
- /**
788
- * Serializes the given message to binary data (in protobuf wire
789
- * format), writing to the given BinaryWriter.
790
- * @param {!proto.kurrentdb.protocol.registry.v2.CompatibilitySettings} message
791
- * @param {!jspb.BinaryWriter} writer
792
- * @suppress {unusedLocalVariables} f is only used for nested messages
793
- */
794
- proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.serializeBinaryToWriter = function(message, writer) {
795
- var f = undefined;
796
- f = message.getEnforce();
797
- if (f) {
798
- writer.writeBool(
799
- 1,
800
- f
801
- );
802
- }
803
- f = message.getMode();
804
- if (f !== 0.0) {
805
- writer.writeEnum(
806
- 2,
807
- f
808
- );
809
- }
810
- };
811
-
812
-
813
- /**
814
- * optional bool enforce = 1;
815
- * @return {boolean}
816
- */
817
- proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.prototype.getEnforce = function() {
818
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
819
- };
820
-
821
-
822
- /**
823
- * @param {boolean} value
824
- * @return {!proto.kurrentdb.protocol.registry.v2.CompatibilitySettings} returns this
825
- */
826
- proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.prototype.setEnforce = function(value) {
827
- return jspb.Message.setProto3BooleanField(this, 1, value);
828
- };
829
-
830
-
831
- /**
832
- * optional CompatibilityMode mode = 2;
833
- * @return {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode}
834
- */
835
- proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.prototype.getMode = function() {
836
- return /** @type {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
837
- };
838
-
839
-
840
- /**
841
- * @param {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} value
842
- * @return {!proto.kurrentdb.protocol.registry.v2.CompatibilitySettings} returns this
843
- */
844
- proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.prototype.setMode = function(value) {
845
- return jspb.Message.setProto3EnumField(this, 2, value);
846
- };
847
-
848
-
849
-
850
-
851
-
852
- if (jspb.Message.GENERATE_TO_OBJECT) {
853
- /**
854
- * Creates an object representation of this proto.
855
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
856
- * Optional fields that are not set will be set to undefined.
857
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
858
- * For the list of reserved names please see:
859
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
860
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
861
- * JSPB instance for transitional soy proto support:
862
- * http://goto/soy-param-migration
863
- * @return {!Object}
864
- */
865
- proto.kurrentdb.protocol.registry.v2.DataFormatSettings.prototype.toObject = function(opt_includeInstance) {
866
- return proto.kurrentdb.protocol.registry.v2.DataFormatSettings.toObject(opt_includeInstance, this);
867
- };
868
-
869
-
870
- /**
871
- * Static version of the {@see toObject} method.
872
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
873
- * the JSPB instance for transitional soy proto support:
874
- * http://goto/soy-param-migration
875
- * @param {!proto.kurrentdb.protocol.registry.v2.DataFormatSettings} msg The msg instance to transform.
876
- * @return {!Object}
877
- * @suppress {unusedLocalVariables} f is only used for nested messages
878
- */
879
- proto.kurrentdb.protocol.registry.v2.DataFormatSettings.toObject = function(includeInstance, msg) {
880
- var f, obj = {
881
- enforce: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
882
- format: jspb.Message.getFieldWithDefault(msg, 2, 0)
883
- };
884
-
885
- if (includeInstance) {
886
- obj.$jspbMessageInstance = msg;
887
- }
888
- return obj;
889
- };
890
- }
891
-
892
-
893
- /**
894
- * Deserializes binary data (in protobuf wire format).
895
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
896
- * @return {!proto.kurrentdb.protocol.registry.v2.DataFormatSettings}
897
- */
898
- proto.kurrentdb.protocol.registry.v2.DataFormatSettings.deserializeBinary = function(bytes) {
899
- var reader = new jspb.BinaryReader(bytes);
900
- var msg = new proto.kurrentdb.protocol.registry.v2.DataFormatSettings;
901
- return proto.kurrentdb.protocol.registry.v2.DataFormatSettings.deserializeBinaryFromReader(msg, reader);
902
- };
903
-
904
-
905
- /**
906
- * Deserializes binary data (in protobuf wire format) from the
907
- * given reader into the given message object.
908
- * @param {!proto.kurrentdb.protocol.registry.v2.DataFormatSettings} msg The message object to deserialize into.
909
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
910
- * @return {!proto.kurrentdb.protocol.registry.v2.DataFormatSettings}
911
- */
912
- proto.kurrentdb.protocol.registry.v2.DataFormatSettings.deserializeBinaryFromReader = function(msg, reader) {
913
- while (reader.nextField()) {
914
- if (reader.isEndGroup()) {
915
- break;
916
- }
917
- var field = reader.getFieldNumber();
918
- switch (field) {
919
- case 1:
920
- var value = /** @type {boolean} */ (reader.readBool());
921
- msg.setEnforce(value);
922
- break;
923
- case 2:
924
- var value = /** @type {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} */ (reader.readEnum());
925
- msg.setFormat(value);
926
- break;
927
- default:
928
- reader.skipField();
929
- break;
930
- }
931
- }
932
- return msg;
933
- };
934
-
935
-
936
- /**
937
- * Serializes the message to binary data (in protobuf wire format).
938
- * @return {!Uint8Array}
939
- */
940
- proto.kurrentdb.protocol.registry.v2.DataFormatSettings.prototype.serializeBinary = function() {
941
- var writer = new jspb.BinaryWriter();
942
- proto.kurrentdb.protocol.registry.v2.DataFormatSettings.serializeBinaryToWriter(this, writer);
943
- return writer.getResultBuffer();
944
- };
945
-
946
-
947
- /**
948
- * Serializes the given message to binary data (in protobuf wire
949
- * format), writing to the given BinaryWriter.
950
- * @param {!proto.kurrentdb.protocol.registry.v2.DataFormatSettings} message
951
- * @param {!jspb.BinaryWriter} writer
952
- * @suppress {unusedLocalVariables} f is only used for nested messages
953
- */
954
- proto.kurrentdb.protocol.registry.v2.DataFormatSettings.serializeBinaryToWriter = function(message, writer) {
955
- var f = undefined;
956
- f = message.getEnforce();
957
- if (f) {
958
- writer.writeBool(
959
- 1,
960
- f
961
- );
962
- }
963
- f = message.getFormat();
964
- if (f !== 0.0) {
965
- writer.writeEnum(
966
- 2,
967
- f
968
- );
969
- }
970
- };
971
-
972
-
973
- /**
974
- * optional bool enforce = 1;
975
- * @return {boolean}
976
- */
977
- proto.kurrentdb.protocol.registry.v2.DataFormatSettings.prototype.getEnforce = function() {
978
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
979
- };
980
-
981
-
982
- /**
983
- * @param {boolean} value
984
- * @return {!proto.kurrentdb.protocol.registry.v2.DataFormatSettings} returns this
985
- */
986
- proto.kurrentdb.protocol.registry.v2.DataFormatSettings.prototype.setEnforce = function(value) {
987
- return jspb.Message.setProto3BooleanField(this, 1, value);
988
- };
989
-
990
-
991
- /**
992
- * optional SchemaDataFormat format = 2;
993
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat}
994
- */
995
- proto.kurrentdb.protocol.registry.v2.DataFormatSettings.prototype.getFormat = function() {
996
- return /** @type {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
997
- };
998
-
999
-
1000
- /**
1001
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} value
1002
- * @return {!proto.kurrentdb.protocol.registry.v2.DataFormatSettings} returns this
1003
- */
1004
- proto.kurrentdb.protocol.registry.v2.DataFormatSettings.prototype.setFormat = function(value) {
1005
- return jspb.Message.setProto3EnumField(this, 2, value);
1006
- };
1007
-
1008
-
1009
-
1010
-
1011
-
1012
- if (jspb.Message.GENERATE_TO_OBJECT) {
1013
- /**
1014
- * Creates an object representation of this proto.
1015
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1016
- * Optional fields that are not set will be set to undefined.
1017
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1018
- * For the list of reserved names please see:
1019
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1020
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1021
- * JSPB instance for transitional soy proto support:
1022
- * http://goto/soy-param-migration
1023
- * @return {!Object}
1024
- */
1025
- proto.kurrentdb.protocol.registry.v2.StreamFilter.prototype.toObject = function(opt_includeInstance) {
1026
- return proto.kurrentdb.protocol.registry.v2.StreamFilter.toObject(opt_includeInstance, this);
1027
- };
1028
-
1029
-
1030
- /**
1031
- * Static version of the {@see toObject} method.
1032
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1033
- * the JSPB instance for transitional soy proto support:
1034
- * http://goto/soy-param-migration
1035
- * @param {!proto.kurrentdb.protocol.registry.v2.StreamFilter} msg The msg instance to transform.
1036
- * @return {!Object}
1037
- * @suppress {unusedLocalVariables} f is only used for nested messages
1038
- */
1039
- proto.kurrentdb.protocol.registry.v2.StreamFilter.toObject = function(includeInstance, msg) {
1040
- var f, obj = {
1041
- filterType: jspb.Message.getFieldWithDefault(msg, 1, 0),
1042
- expression: jspb.Message.getFieldWithDefault(msg, 2, "")
1043
- };
1044
-
1045
- if (includeInstance) {
1046
- obj.$jspbMessageInstance = msg;
1047
- }
1048
- return obj;
1049
- };
1050
- }
1051
-
1052
-
1053
- /**
1054
- * Deserializes binary data (in protobuf wire format).
1055
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1056
- * @return {!proto.kurrentdb.protocol.registry.v2.StreamFilter}
1057
- */
1058
- proto.kurrentdb.protocol.registry.v2.StreamFilter.deserializeBinary = function(bytes) {
1059
- var reader = new jspb.BinaryReader(bytes);
1060
- var msg = new proto.kurrentdb.protocol.registry.v2.StreamFilter;
1061
- return proto.kurrentdb.protocol.registry.v2.StreamFilter.deserializeBinaryFromReader(msg, reader);
1062
- };
1063
-
1064
-
1065
- /**
1066
- * Deserializes binary data (in protobuf wire format) from the
1067
- * given reader into the given message object.
1068
- * @param {!proto.kurrentdb.protocol.registry.v2.StreamFilter} msg The message object to deserialize into.
1069
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1070
- * @return {!proto.kurrentdb.protocol.registry.v2.StreamFilter}
1071
- */
1072
- proto.kurrentdb.protocol.registry.v2.StreamFilter.deserializeBinaryFromReader = function(msg, reader) {
1073
- while (reader.nextField()) {
1074
- if (reader.isEndGroup()) {
1075
- break;
1076
- }
1077
- var field = reader.getFieldNumber();
1078
- switch (field) {
1079
- case 1:
1080
- var value = /** @type {!proto.kurrentdb.protocol.registry.v2.StreamFilterType} */ (reader.readEnum());
1081
- msg.setFilterType(value);
1082
- break;
1083
- case 2:
1084
- var value = /** @type {string} */ (reader.readString());
1085
- msg.setExpression(value);
1086
- break;
1087
- default:
1088
- reader.skipField();
1089
- break;
1090
- }
1091
- }
1092
- return msg;
1093
- };
1094
-
1095
-
1096
- /**
1097
- * Serializes the message to binary data (in protobuf wire format).
1098
- * @return {!Uint8Array}
1099
- */
1100
- proto.kurrentdb.protocol.registry.v2.StreamFilter.prototype.serializeBinary = function() {
1101
- var writer = new jspb.BinaryWriter();
1102
- proto.kurrentdb.protocol.registry.v2.StreamFilter.serializeBinaryToWriter(this, writer);
1103
- return writer.getResultBuffer();
1104
- };
1105
-
1106
-
1107
- /**
1108
- * Serializes the given message to binary data (in protobuf wire
1109
- * format), writing to the given BinaryWriter.
1110
- * @param {!proto.kurrentdb.protocol.registry.v2.StreamFilter} message
1111
- * @param {!jspb.BinaryWriter} writer
1112
- * @suppress {unusedLocalVariables} f is only used for nested messages
1113
- */
1114
- proto.kurrentdb.protocol.registry.v2.StreamFilter.serializeBinaryToWriter = function(message, writer) {
1115
- var f = undefined;
1116
- f = message.getFilterType();
1117
- if (f !== 0.0) {
1118
- writer.writeEnum(
1119
- 1,
1120
- f
1121
- );
1122
- }
1123
- f = message.getExpression();
1124
- if (f.length > 0) {
1125
- writer.writeString(
1126
- 2,
1127
- f
1128
- );
1129
- }
1130
- };
1131
-
1132
-
1133
- /**
1134
- * optional StreamFilterType filter_type = 1;
1135
- * @return {!proto.kurrentdb.protocol.registry.v2.StreamFilterType}
1136
- */
1137
- proto.kurrentdb.protocol.registry.v2.StreamFilter.prototype.getFilterType = function() {
1138
- return /** @type {!proto.kurrentdb.protocol.registry.v2.StreamFilterType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1139
- };
1140
-
1141
-
1142
- /**
1143
- * @param {!proto.kurrentdb.protocol.registry.v2.StreamFilterType} value
1144
- * @return {!proto.kurrentdb.protocol.registry.v2.StreamFilter} returns this
1145
- */
1146
- proto.kurrentdb.protocol.registry.v2.StreamFilter.prototype.setFilterType = function(value) {
1147
- return jspb.Message.setProto3EnumField(this, 1, value);
1148
- };
1149
-
1150
-
1151
- /**
1152
- * optional string expression = 2;
1153
- * @return {string}
1154
- */
1155
- proto.kurrentdb.protocol.registry.v2.StreamFilter.prototype.getExpression = function() {
1156
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1157
- };
1158
-
1159
-
1160
- /**
1161
- * @param {string} value
1162
- * @return {!proto.kurrentdb.protocol.registry.v2.StreamFilter} returns this
1163
- */
1164
- proto.kurrentdb.protocol.registry.v2.StreamFilter.prototype.setExpression = function(value) {
1165
- return jspb.Message.setProto3StringField(this, 2, value);
1166
- };
1167
-
1168
-
1169
-
1170
-
1171
-
1172
- if (jspb.Message.GENERATE_TO_OBJECT) {
1173
- /**
1174
- * Creates an object representation of this proto.
1175
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1176
- * Optional fields that are not set will be set to undefined.
1177
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1178
- * For the list of reserved names please see:
1179
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1180
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1181
- * JSPB instance for transitional soy proto support:
1182
- * http://goto/soy-param-migration
1183
- * @return {!Object}
1184
- */
1185
- proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.prototype.toObject = function(opt_includeInstance) {
1186
- return proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.toObject(opt_includeInstance, this);
1187
- };
1188
-
1189
-
1190
- /**
1191
- * Static version of the {@see toObject} method.
1192
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1193
- * the JSPB instance for transitional soy proto support:
1194
- * http://goto/soy-param-migration
1195
- * @param {!proto.kurrentdb.protocol.registry.v2.StreamFilterSettings} msg The msg instance to transform.
1196
- * @return {!Object}
1197
- * @suppress {unusedLocalVariables} f is only used for nested messages
1198
- */
1199
- proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.toObject = function(includeInstance, msg) {
1200
- var f, obj = {
1201
- enforce: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
1202
- filter: (f = msg.getFilter()) && proto.kurrentdb.protocol.registry.v2.StreamFilter.toObject(includeInstance, f)
1203
- };
1204
-
1205
- if (includeInstance) {
1206
- obj.$jspbMessageInstance = msg;
1207
- }
1208
- return obj;
1209
- };
1210
- }
1211
-
1212
-
1213
- /**
1214
- * Deserializes binary data (in protobuf wire format).
1215
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1216
- * @return {!proto.kurrentdb.protocol.registry.v2.StreamFilterSettings}
1217
- */
1218
- proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.deserializeBinary = function(bytes) {
1219
- var reader = new jspb.BinaryReader(bytes);
1220
- var msg = new proto.kurrentdb.protocol.registry.v2.StreamFilterSettings;
1221
- return proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.deserializeBinaryFromReader(msg, reader);
1222
- };
1223
-
1224
-
1225
- /**
1226
- * Deserializes binary data (in protobuf wire format) from the
1227
- * given reader into the given message object.
1228
- * @param {!proto.kurrentdb.protocol.registry.v2.StreamFilterSettings} msg The message object to deserialize into.
1229
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1230
- * @return {!proto.kurrentdb.protocol.registry.v2.StreamFilterSettings}
1231
- */
1232
- proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.deserializeBinaryFromReader = function(msg, reader) {
1233
- while (reader.nextField()) {
1234
- if (reader.isEndGroup()) {
1235
- break;
1236
- }
1237
- var field = reader.getFieldNumber();
1238
- switch (field) {
1239
- case 1:
1240
- var value = /** @type {boolean} */ (reader.readBool());
1241
- msg.setEnforce(value);
1242
- break;
1243
- case 2:
1244
- var value = new proto.kurrentdb.protocol.registry.v2.StreamFilter;
1245
- reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.StreamFilter.deserializeBinaryFromReader);
1246
- msg.setFilter(value);
1247
- break;
1248
- default:
1249
- reader.skipField();
1250
- break;
1251
- }
1252
- }
1253
- return msg;
1254
- };
1255
-
1256
-
1257
- /**
1258
- * Serializes the message to binary data (in protobuf wire format).
1259
- * @return {!Uint8Array}
1260
- */
1261
- proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.prototype.serializeBinary = function() {
1262
- var writer = new jspb.BinaryWriter();
1263
- proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.serializeBinaryToWriter(this, writer);
1264
- return writer.getResultBuffer();
1265
- };
1266
-
1267
-
1268
- /**
1269
- * Serializes the given message to binary data (in protobuf wire
1270
- * format), writing to the given BinaryWriter.
1271
- * @param {!proto.kurrentdb.protocol.registry.v2.StreamFilterSettings} message
1272
- * @param {!jspb.BinaryWriter} writer
1273
- * @suppress {unusedLocalVariables} f is only used for nested messages
1274
- */
1275
- proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.serializeBinaryToWriter = function(message, writer) {
1276
- var f = undefined;
1277
- f = message.getEnforce();
1278
- if (f) {
1279
- writer.writeBool(
1280
- 1,
1281
- f
1282
- );
1283
- }
1284
- f = message.getFilter();
1285
- if (f != null) {
1286
- writer.writeMessage(
1287
- 2,
1288
- f,
1289
- proto.kurrentdb.protocol.registry.v2.StreamFilter.serializeBinaryToWriter
1290
- );
1291
- }
1292
- };
1293
-
1294
-
1295
- /**
1296
- * optional bool enforce = 1;
1297
- * @return {boolean}
1298
- */
1299
- proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.prototype.getEnforce = function() {
1300
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
1301
- };
1302
-
1303
-
1304
- /**
1305
- * @param {boolean} value
1306
- * @return {!proto.kurrentdb.protocol.registry.v2.StreamFilterSettings} returns this
1307
- */
1308
- proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.prototype.setEnforce = function(value) {
1309
- return jspb.Message.setProto3BooleanField(this, 1, value);
1310
- };
1311
-
1312
-
1313
- /**
1314
- * optional StreamFilter filter = 2;
1315
- * @return {?proto.kurrentdb.protocol.registry.v2.StreamFilter}
1316
- */
1317
- proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.prototype.getFilter = function() {
1318
- return /** @type{?proto.kurrentdb.protocol.registry.v2.StreamFilter} */ (
1319
- jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.StreamFilter, 2));
1320
- };
1321
-
1322
-
1323
- /**
1324
- * @param {?proto.kurrentdb.protocol.registry.v2.StreamFilter|undefined} value
1325
- * @return {!proto.kurrentdb.protocol.registry.v2.StreamFilterSettings} returns this
1326
- */
1327
- proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.prototype.setFilter = function(value) {
1328
- return jspb.Message.setWrapperField(this, 2, value);
1329
- };
1330
-
1331
-
1332
- /**
1333
- * Clears the message field making it undefined.
1334
- * @return {!proto.kurrentdb.protocol.registry.v2.StreamFilterSettings} returns this
1335
- */
1336
- proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.prototype.clearFilter = function() {
1337
- return this.setFilter(undefined);
1338
- };
1339
-
1340
-
1341
- /**
1342
- * Returns whether this field is set.
1343
- * @return {boolean}
1344
- */
1345
- proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.prototype.hasFilter = function() {
1346
- return jspb.Message.getField(this, 2) != null;
1347
- };
1348
-
1349
-
1350
-
1351
-
1352
-
1353
- if (jspb.Message.GENERATE_TO_OBJECT) {
1354
- /**
1355
- * Creates an object representation of this proto.
1356
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1357
- * Optional fields that are not set will be set to undefined.
1358
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1359
- * For the list of reserved names please see:
1360
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1361
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1362
- * JSPB instance for transitional soy proto support:
1363
- * http://goto/soy-param-migration
1364
- * @return {!Object}
1365
- */
1366
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.toObject = function(opt_includeInstance) {
1367
- return proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.toObject(opt_includeInstance, this);
1368
- };
1369
-
1370
-
1371
- /**
1372
- * Static version of the {@see toObject} method.
1373
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1374
- * the JSPB instance for transitional soy proto support:
1375
- * http://goto/soy-param-migration
1376
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} msg The msg instance to transform.
1377
- * @return {!Object}
1378
- * @suppress {unusedLocalVariables} f is only used for nested messages
1379
- */
1380
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.toObject = function(includeInstance, msg) {
1381
- var f, obj = {
1382
- name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1383
- description: jspb.Message.getFieldWithDefault(msg, 2, ""),
1384
- tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [],
1385
- autoRegistration: (f = msg.getAutoRegistration()) && proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.toObject(includeInstance, f),
1386
- validation: (f = msg.getValidation()) && proto.kurrentdb.protocol.registry.v2.ValidationSettings.toObject(includeInstance, f),
1387
- compatibility: (f = msg.getCompatibility()) && proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.toObject(includeInstance, f),
1388
- dataFormat: (f = msg.getDataFormat()) && proto.kurrentdb.protocol.registry.v2.DataFormatSettings.toObject(includeInstance, f),
1389
- streamFilter: (f = msg.getStreamFilter()) && proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.toObject(includeInstance, f)
1390
- };
1391
-
1392
- if (includeInstance) {
1393
- obj.$jspbMessageInstance = msg;
1394
- }
1395
- return obj;
1396
- };
1397
- }
1398
-
1399
-
1400
- /**
1401
- * Deserializes binary data (in protobuf wire format).
1402
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1403
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails}
1404
- */
1405
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.deserializeBinary = function(bytes) {
1406
- var reader = new jspb.BinaryReader(bytes);
1407
- var msg = new proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails;
1408
- return proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.deserializeBinaryFromReader(msg, reader);
1409
- };
1410
-
1411
-
1412
- /**
1413
- * Deserializes binary data (in protobuf wire format) from the
1414
- * given reader into the given message object.
1415
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} msg The message object to deserialize into.
1416
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1417
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails}
1418
- */
1419
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.deserializeBinaryFromReader = function(msg, reader) {
1420
- while (reader.nextField()) {
1421
- if (reader.isEndGroup()) {
1422
- break;
1423
- }
1424
- var field = reader.getFieldNumber();
1425
- switch (field) {
1426
- case 1:
1427
- var value = /** @type {string} */ (reader.readString());
1428
- msg.setName(value);
1429
- break;
1430
- case 2:
1431
- var value = /** @type {string} */ (reader.readString());
1432
- msg.setDescription(value);
1433
- break;
1434
- case 3:
1435
- var value = msg.getTagsMap();
1436
- reader.readMessage(value, function(message, reader) {
1437
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
1438
- });
1439
- break;
1440
- case 11:
1441
- var value = new proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings;
1442
- reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.deserializeBinaryFromReader);
1443
- msg.setAutoRegistration(value);
1444
- break;
1445
- case 12:
1446
- var value = new proto.kurrentdb.protocol.registry.v2.ValidationSettings;
1447
- reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.ValidationSettings.deserializeBinaryFromReader);
1448
- msg.setValidation(value);
1449
- break;
1450
- case 13:
1451
- var value = new proto.kurrentdb.protocol.registry.v2.CompatibilitySettings;
1452
- reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.deserializeBinaryFromReader);
1453
- msg.setCompatibility(value);
1454
- break;
1455
- case 14:
1456
- var value = new proto.kurrentdb.protocol.registry.v2.DataFormatSettings;
1457
- reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.DataFormatSettings.deserializeBinaryFromReader);
1458
- msg.setDataFormat(value);
1459
- break;
1460
- case 15:
1461
- var value = new proto.kurrentdb.protocol.registry.v2.StreamFilterSettings;
1462
- reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.deserializeBinaryFromReader);
1463
- msg.setStreamFilter(value);
1464
- break;
1465
- default:
1466
- reader.skipField();
1467
- break;
1468
- }
1469
- }
1470
- return msg;
1471
- };
1472
-
1473
-
1474
- /**
1475
- * Serializes the message to binary data (in protobuf wire format).
1476
- * @return {!Uint8Array}
1477
- */
1478
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.serializeBinary = function() {
1479
- var writer = new jspb.BinaryWriter();
1480
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.serializeBinaryToWriter(this, writer);
1481
- return writer.getResultBuffer();
1482
- };
1483
-
1484
-
1485
- /**
1486
- * Serializes the given message to binary data (in protobuf wire
1487
- * format), writing to the given BinaryWriter.
1488
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} message
1489
- * @param {!jspb.BinaryWriter} writer
1490
- * @suppress {unusedLocalVariables} f is only used for nested messages
1491
- */
1492
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.serializeBinaryToWriter = function(message, writer) {
1493
- var f = undefined;
1494
- f = message.getName();
1495
- if (f.length > 0) {
1496
- writer.writeString(
1497
- 1,
1498
- f
1499
- );
1500
- }
1501
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
1502
- if (f != null) {
1503
- writer.writeString(
1504
- 2,
1505
- f
1506
- );
1507
- }
1508
- f = message.getTagsMap(true);
1509
- if (f && f.getLength() > 0) {
1510
- f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
1511
- }
1512
- f = message.getAutoRegistration();
1513
- if (f != null) {
1514
- writer.writeMessage(
1515
- 11,
1516
- f,
1517
- proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.serializeBinaryToWriter
1518
- );
1519
- }
1520
- f = message.getValidation();
1521
- if (f != null) {
1522
- writer.writeMessage(
1523
- 12,
1524
- f,
1525
- proto.kurrentdb.protocol.registry.v2.ValidationSettings.serializeBinaryToWriter
1526
- );
1527
- }
1528
- f = message.getCompatibility();
1529
- if (f != null) {
1530
- writer.writeMessage(
1531
- 13,
1532
- f,
1533
- proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.serializeBinaryToWriter
1534
- );
1535
- }
1536
- f = message.getDataFormat();
1537
- if (f != null) {
1538
- writer.writeMessage(
1539
- 14,
1540
- f,
1541
- proto.kurrentdb.protocol.registry.v2.DataFormatSettings.serializeBinaryToWriter
1542
- );
1543
- }
1544
- f = message.getStreamFilter();
1545
- if (f != null) {
1546
- writer.writeMessage(
1547
- 15,
1548
- f,
1549
- proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.serializeBinaryToWriter
1550
- );
1551
- }
1552
- };
1553
-
1554
-
1555
- /**
1556
- * optional string name = 1;
1557
- * @return {string}
1558
- */
1559
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.getName = function() {
1560
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1561
- };
1562
-
1563
-
1564
- /**
1565
- * @param {string} value
1566
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this
1567
- */
1568
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.setName = function(value) {
1569
- return jspb.Message.setProto3StringField(this, 1, value);
1570
- };
1571
-
1572
-
1573
- /**
1574
- * optional string description = 2;
1575
- * @return {string}
1576
- */
1577
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.getDescription = function() {
1578
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1579
- };
1580
-
1581
-
1582
- /**
1583
- * @param {string} value
1584
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this
1585
- */
1586
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.setDescription = function(value) {
1587
- return jspb.Message.setField(this, 2, value);
1588
- };
1589
-
1590
-
1591
- /**
1592
- * Clears the field making it undefined.
1593
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this
1594
- */
1595
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.clearDescription = function() {
1596
- return jspb.Message.setField(this, 2, undefined);
1597
- };
1598
-
1599
-
1600
- /**
1601
- * Returns whether this field is set.
1602
- * @return {boolean}
1603
- */
1604
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.hasDescription = function() {
1605
- return jspb.Message.getField(this, 2) != null;
1606
- };
1607
-
1608
-
1609
- /**
1610
- * map<string, string> tags = 3;
1611
- * @param {boolean=} opt_noLazyCreate Do not create the map if
1612
- * empty, instead returning `undefined`
1613
- * @return {!jspb.Map<string,string>}
1614
- */
1615
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.getTagsMap = function(opt_noLazyCreate) {
1616
- return /** @type {!jspb.Map<string,string>} */ (
1617
- jspb.Message.getMapField(this, 3, opt_noLazyCreate,
1618
- null));
1619
- };
1620
-
1621
-
1622
- /**
1623
- * Clears values from the map. The map will be non-null.
1624
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this
1625
- */
1626
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.clearTagsMap = function() {
1627
- this.getTagsMap().clear();
1628
- return this;};
1629
-
1630
-
1631
- /**
1632
- * optional AutoRegistrationSettings auto_registration = 11;
1633
- * @return {?proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings}
1634
- */
1635
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.getAutoRegistration = function() {
1636
- return /** @type{?proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings} */ (
1637
- jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings, 11));
1638
- };
1639
-
1640
-
1641
- /**
1642
- * @param {?proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings|undefined} value
1643
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this
1644
- */
1645
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.setAutoRegistration = function(value) {
1646
- return jspb.Message.setWrapperField(this, 11, value);
1647
- };
1648
-
1649
-
1650
- /**
1651
- * Clears the message field making it undefined.
1652
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this
1653
- */
1654
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.clearAutoRegistration = function() {
1655
- return this.setAutoRegistration(undefined);
1656
- };
1657
-
1658
-
1659
- /**
1660
- * Returns whether this field is set.
1661
- * @return {boolean}
1662
- */
1663
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.hasAutoRegistration = function() {
1664
- return jspb.Message.getField(this, 11) != null;
1665
- };
1666
-
1667
-
1668
- /**
1669
- * optional ValidationSettings validation = 12;
1670
- * @return {?proto.kurrentdb.protocol.registry.v2.ValidationSettings}
1671
- */
1672
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.getValidation = function() {
1673
- return /** @type{?proto.kurrentdb.protocol.registry.v2.ValidationSettings} */ (
1674
- jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.ValidationSettings, 12));
1675
- };
1676
-
1677
-
1678
- /**
1679
- * @param {?proto.kurrentdb.protocol.registry.v2.ValidationSettings|undefined} value
1680
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this
1681
- */
1682
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.setValidation = function(value) {
1683
- return jspb.Message.setWrapperField(this, 12, value);
1684
- };
1685
-
1686
-
1687
- /**
1688
- * Clears the message field making it undefined.
1689
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this
1690
- */
1691
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.clearValidation = function() {
1692
- return this.setValidation(undefined);
1693
- };
1694
-
1695
-
1696
- /**
1697
- * Returns whether this field is set.
1698
- * @return {boolean}
1699
- */
1700
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.hasValidation = function() {
1701
- return jspb.Message.getField(this, 12) != null;
1702
- };
1703
-
1704
-
1705
- /**
1706
- * optional CompatibilitySettings compatibility = 13;
1707
- * @return {?proto.kurrentdb.protocol.registry.v2.CompatibilitySettings}
1708
- */
1709
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.getCompatibility = function() {
1710
- return /** @type{?proto.kurrentdb.protocol.registry.v2.CompatibilitySettings} */ (
1711
- jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.CompatibilitySettings, 13));
1712
- };
1713
-
1714
-
1715
- /**
1716
- * @param {?proto.kurrentdb.protocol.registry.v2.CompatibilitySettings|undefined} value
1717
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this
1718
- */
1719
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.setCompatibility = function(value) {
1720
- return jspb.Message.setWrapperField(this, 13, value);
1721
- };
1722
-
1723
-
1724
- /**
1725
- * Clears the message field making it undefined.
1726
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this
1727
- */
1728
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.clearCompatibility = function() {
1729
- return this.setCompatibility(undefined);
1730
- };
1731
-
1732
-
1733
- /**
1734
- * Returns whether this field is set.
1735
- * @return {boolean}
1736
- */
1737
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.hasCompatibility = function() {
1738
- return jspb.Message.getField(this, 13) != null;
1739
- };
1740
-
1741
-
1742
- /**
1743
- * optional DataFormatSettings data_format = 14;
1744
- * @return {?proto.kurrentdb.protocol.registry.v2.DataFormatSettings}
1745
- */
1746
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.getDataFormat = function() {
1747
- return /** @type{?proto.kurrentdb.protocol.registry.v2.DataFormatSettings} */ (
1748
- jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.DataFormatSettings, 14));
1749
- };
1750
-
1751
-
1752
- /**
1753
- * @param {?proto.kurrentdb.protocol.registry.v2.DataFormatSettings|undefined} value
1754
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this
1755
- */
1756
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.setDataFormat = function(value) {
1757
- return jspb.Message.setWrapperField(this, 14, value);
1758
- };
1759
-
1760
-
1761
- /**
1762
- * Clears the message field making it undefined.
1763
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this
1764
- */
1765
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.clearDataFormat = function() {
1766
- return this.setDataFormat(undefined);
1767
- };
1768
-
1769
-
1770
- /**
1771
- * Returns whether this field is set.
1772
- * @return {boolean}
1773
- */
1774
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.hasDataFormat = function() {
1775
- return jspb.Message.getField(this, 14) != null;
1776
- };
1777
-
1778
-
1779
- /**
1780
- * optional StreamFilterSettings stream_filter = 15;
1781
- * @return {?proto.kurrentdb.protocol.registry.v2.StreamFilterSettings}
1782
- */
1783
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.getStreamFilter = function() {
1784
- return /** @type{?proto.kurrentdb.protocol.registry.v2.StreamFilterSettings} */ (
1785
- jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.StreamFilterSettings, 15));
1786
- };
1787
-
1788
-
1789
- /**
1790
- * @param {?proto.kurrentdb.protocol.registry.v2.StreamFilterSettings|undefined} value
1791
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this
1792
- */
1793
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.setStreamFilter = function(value) {
1794
- return jspb.Message.setWrapperField(this, 15, value);
1795
- };
1796
-
1797
-
1798
- /**
1799
- * Clears the message field making it undefined.
1800
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this
1801
- */
1802
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.clearStreamFilter = function() {
1803
- return this.setStreamFilter(undefined);
1804
- };
1805
-
1806
-
1807
- /**
1808
- * Returns whether this field is set.
1809
- * @return {boolean}
1810
- */
1811
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.hasStreamFilter = function() {
1812
- return jspb.Message.getField(this, 15) != null;
1813
- };
1814
-
1815
-
1816
-
1817
-
1818
-
1819
- if (jspb.Message.GENERATE_TO_OBJECT) {
1820
- /**
1821
- * Creates an object representation of this proto.
1822
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1823
- * Optional fields that are not set will be set to undefined.
1824
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1825
- * For the list of reserved names please see:
1826
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1827
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1828
- * JSPB instance for transitional soy proto support:
1829
- * http://goto/soy-param-migration
1830
- * @return {!Object}
1831
- */
1832
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.toObject = function(opt_includeInstance) {
1833
- return proto.kurrentdb.protocol.registry.v2.SchemaGroup.toObject(opt_includeInstance, this);
1834
- };
1835
-
1836
-
1837
- /**
1838
- * Static version of the {@see toObject} method.
1839
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1840
- * the JSPB instance for transitional soy proto support:
1841
- * http://goto/soy-param-migration
1842
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaGroup} msg The msg instance to transform.
1843
- * @return {!Object}
1844
- * @suppress {unusedLocalVariables} f is only used for nested messages
1845
- */
1846
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.toObject = function(includeInstance, msg) {
1847
- var f, obj = {
1848
- groupId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1849
- details: (f = msg.getDetails()) && proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.toObject(includeInstance, f),
1850
- createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1851
- updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1852
- };
1853
-
1854
- if (includeInstance) {
1855
- obj.$jspbMessageInstance = msg;
1856
- }
1857
- return obj;
1858
- };
1859
- }
1860
-
1861
-
1862
- /**
1863
- * Deserializes binary data (in protobuf wire format).
1864
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1865
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroup}
1866
- */
1867
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.deserializeBinary = function(bytes) {
1868
- var reader = new jspb.BinaryReader(bytes);
1869
- var msg = new proto.kurrentdb.protocol.registry.v2.SchemaGroup;
1870
- return proto.kurrentdb.protocol.registry.v2.SchemaGroup.deserializeBinaryFromReader(msg, reader);
1871
- };
1872
-
1873
-
1874
- /**
1875
- * Deserializes binary data (in protobuf wire format) from the
1876
- * given reader into the given message object.
1877
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaGroup} msg The message object to deserialize into.
1878
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1879
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroup}
1880
- */
1881
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.deserializeBinaryFromReader = function(msg, reader) {
1882
- while (reader.nextField()) {
1883
- if (reader.isEndGroup()) {
1884
- break;
1885
- }
1886
- var field = reader.getFieldNumber();
1887
- switch (field) {
1888
- case 1:
1889
- var value = /** @type {string} */ (reader.readString());
1890
- msg.setGroupId(value);
1891
- break;
1892
- case 2:
1893
- var value = new proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails;
1894
- reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.deserializeBinaryFromReader);
1895
- msg.setDetails(value);
1896
- break;
1897
- case 5:
1898
- var value = new google_protobuf_timestamp_pb.Timestamp;
1899
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1900
- msg.setCreatedAt(value);
1901
- break;
1902
- case 6:
1903
- var value = new google_protobuf_timestamp_pb.Timestamp;
1904
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1905
- msg.setUpdatedAt(value);
1906
- break;
1907
- default:
1908
- reader.skipField();
1909
- break;
1910
- }
1911
- }
1912
- return msg;
1913
- };
1914
-
1915
-
1916
- /**
1917
- * Serializes the message to binary data (in protobuf wire format).
1918
- * @return {!Uint8Array}
1919
- */
1920
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.serializeBinary = function() {
1921
- var writer = new jspb.BinaryWriter();
1922
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.serializeBinaryToWriter(this, writer);
1923
- return writer.getResultBuffer();
1924
- };
1925
-
1926
-
1927
- /**
1928
- * Serializes the given message to binary data (in protobuf wire
1929
- * format), writing to the given BinaryWriter.
1930
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaGroup} message
1931
- * @param {!jspb.BinaryWriter} writer
1932
- * @suppress {unusedLocalVariables} f is only used for nested messages
1933
- */
1934
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.serializeBinaryToWriter = function(message, writer) {
1935
- var f = undefined;
1936
- f = message.getGroupId();
1937
- if (f.length > 0) {
1938
- writer.writeString(
1939
- 1,
1940
- f
1941
- );
1942
- }
1943
- f = message.getDetails();
1944
- if (f != null) {
1945
- writer.writeMessage(
1946
- 2,
1947
- f,
1948
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.serializeBinaryToWriter
1949
- );
1950
- }
1951
- f = message.getCreatedAt();
1952
- if (f != null) {
1953
- writer.writeMessage(
1954
- 5,
1955
- f,
1956
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1957
- );
1958
- }
1959
- f = message.getUpdatedAt();
1960
- if (f != null) {
1961
- writer.writeMessage(
1962
- 6,
1963
- f,
1964
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1965
- );
1966
- }
1967
- };
1968
-
1969
-
1970
- /**
1971
- * optional string group_id = 1;
1972
- * @return {string}
1973
- */
1974
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.getGroupId = function() {
1975
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1976
- };
1977
-
1978
-
1979
- /**
1980
- * @param {string} value
1981
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroup} returns this
1982
- */
1983
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.setGroupId = function(value) {
1984
- return jspb.Message.setProto3StringField(this, 1, value);
1985
- };
1986
-
1987
-
1988
- /**
1989
- * optional SchemaGroupDetails details = 2;
1990
- * @return {?proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails}
1991
- */
1992
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.getDetails = function() {
1993
- return /** @type{?proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} */ (
1994
- jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails, 2));
1995
- };
1996
-
1997
-
1998
- /**
1999
- * @param {?proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails|undefined} value
2000
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroup} returns this
2001
- */
2002
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.setDetails = function(value) {
2003
- return jspb.Message.setWrapperField(this, 2, value);
2004
- };
2005
-
2006
-
2007
- /**
2008
- * Clears the message field making it undefined.
2009
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroup} returns this
2010
- */
2011
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.clearDetails = function() {
2012
- return this.setDetails(undefined);
2013
- };
2014
-
2015
-
2016
- /**
2017
- * Returns whether this field is set.
2018
- * @return {boolean}
2019
- */
2020
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.hasDetails = function() {
2021
- return jspb.Message.getField(this, 2) != null;
2022
- };
2023
-
2024
-
2025
- /**
2026
- * optional google.protobuf.Timestamp created_at = 5;
2027
- * @return {?proto.google.protobuf.Timestamp}
2028
- */
2029
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.getCreatedAt = function() {
2030
- return /** @type{?proto.google.protobuf.Timestamp} */ (
2031
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
2032
- };
2033
-
2034
-
2035
- /**
2036
- * @param {?proto.google.protobuf.Timestamp|undefined} value
2037
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroup} returns this
2038
- */
2039
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.setCreatedAt = function(value) {
2040
- return jspb.Message.setWrapperField(this, 5, value);
2041
- };
2042
-
2043
-
2044
- /**
2045
- * Clears the message field making it undefined.
2046
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroup} returns this
2047
- */
2048
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.clearCreatedAt = function() {
2049
- return this.setCreatedAt(undefined);
2050
- };
2051
-
2052
-
2053
- /**
2054
- * Returns whether this field is set.
2055
- * @return {boolean}
2056
- */
2057
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.hasCreatedAt = function() {
2058
- return jspb.Message.getField(this, 5) != null;
2059
- };
2060
-
2061
-
2062
- /**
2063
- * optional google.protobuf.Timestamp updated_at = 6;
2064
- * @return {?proto.google.protobuf.Timestamp}
2065
- */
2066
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.getUpdatedAt = function() {
2067
- return /** @type{?proto.google.protobuf.Timestamp} */ (
2068
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
2069
- };
2070
-
2071
-
2072
- /**
2073
- * @param {?proto.google.protobuf.Timestamp|undefined} value
2074
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroup} returns this
2075
- */
2076
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.setUpdatedAt = function(value) {
2077
- return jspb.Message.setWrapperField(this, 6, value);
2078
- };
2079
-
2080
-
2081
- /**
2082
- * Clears the message field making it undefined.
2083
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroup} returns this
2084
- */
2085
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.clearUpdatedAt = function() {
2086
- return this.setUpdatedAt(undefined);
2087
- };
2088
-
2089
-
2090
- /**
2091
- * Returns whether this field is set.
2092
- * @return {boolean}
2093
- */
2094
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.hasUpdatedAt = function() {
2095
- return jspb.Message.getField(this, 6) != null;
2096
- };
2097
-
2098
-
2099
-
2100
-
2101
-
2102
- if (jspb.Message.GENERATE_TO_OBJECT) {
2103
- /**
2104
- * Creates an object representation of this proto.
2105
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2106
- * Optional fields that are not set will be set to undefined.
2107
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2108
- * For the list of reserved names please see:
2109
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2110
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2111
- * JSPB instance for transitional soy proto support:
2112
- * http://goto/soy-param-migration
2113
- * @return {!Object}
2114
- */
2115
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.prototype.toObject = function(opt_includeInstance) {
2116
- return proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.toObject(opt_includeInstance, this);
2117
- };
2118
-
2119
-
2120
- /**
2121
- * Static version of the {@see toObject} method.
2122
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2123
- * the JSPB instance for transitional soy proto support:
2124
- * http://goto/soy-param-migration
2125
- * @param {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest} msg The msg instance to transform.
2126
- * @return {!Object}
2127
- * @suppress {unusedLocalVariables} f is only used for nested messages
2128
- */
2129
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.toObject = function(includeInstance, msg) {
2130
- var f, obj = {
2131
- groupId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2132
- details: (f = msg.getDetails()) && proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.toObject(includeInstance, f)
2133
- };
2134
-
2135
- if (includeInstance) {
2136
- obj.$jspbMessageInstance = msg;
2137
- }
2138
- return obj;
2139
- };
2140
- }
2141
-
2142
-
2143
- /**
2144
- * Deserializes binary data (in protobuf wire format).
2145
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2146
- * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest}
2147
- */
2148
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.deserializeBinary = function(bytes) {
2149
- var reader = new jspb.BinaryReader(bytes);
2150
- var msg = new proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest;
2151
- return proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.deserializeBinaryFromReader(msg, reader);
2152
- };
2153
-
2154
-
2155
- /**
2156
- * Deserializes binary data (in protobuf wire format) from the
2157
- * given reader into the given message object.
2158
- * @param {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest} msg The message object to deserialize into.
2159
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2160
- * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest}
2161
- */
2162
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.deserializeBinaryFromReader = function(msg, reader) {
2163
- while (reader.nextField()) {
2164
- if (reader.isEndGroup()) {
2165
- break;
2166
- }
2167
- var field = reader.getFieldNumber();
2168
- switch (field) {
2169
- case 1:
2170
- var value = /** @type {string} */ (reader.readString());
2171
- msg.setGroupId(value);
2172
- break;
2173
- case 2:
2174
- var value = new proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails;
2175
- reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.deserializeBinaryFromReader);
2176
- msg.setDetails(value);
2177
- break;
2178
- default:
2179
- reader.skipField();
2180
- break;
2181
- }
2182
- }
2183
- return msg;
2184
- };
2185
-
2186
-
2187
- /**
2188
- * Serializes the message to binary data (in protobuf wire format).
2189
- * @return {!Uint8Array}
2190
- */
2191
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.prototype.serializeBinary = function() {
2192
- var writer = new jspb.BinaryWriter();
2193
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.serializeBinaryToWriter(this, writer);
2194
- return writer.getResultBuffer();
2195
- };
2196
-
2197
-
2198
- /**
2199
- * Serializes the given message to binary data (in protobuf wire
2200
- * format), writing to the given BinaryWriter.
2201
- * @param {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest} message
2202
- * @param {!jspb.BinaryWriter} writer
2203
- * @suppress {unusedLocalVariables} f is only used for nested messages
2204
- */
2205
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.serializeBinaryToWriter = function(message, writer) {
2206
- var f = undefined;
2207
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
2208
- if (f != null) {
2209
- writer.writeString(
2210
- 1,
2211
- f
2212
- );
2213
- }
2214
- f = message.getDetails();
2215
- if (f != null) {
2216
- writer.writeMessage(
2217
- 2,
2218
- f,
2219
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.serializeBinaryToWriter
2220
- );
2221
- }
2222
- };
2223
-
2224
-
2225
- /**
2226
- * optional string group_id = 1;
2227
- * @return {string}
2228
- */
2229
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.prototype.getGroupId = function() {
2230
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2231
- };
2232
-
2233
-
2234
- /**
2235
- * @param {string} value
2236
- * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest} returns this
2237
- */
2238
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.prototype.setGroupId = function(value) {
2239
- return jspb.Message.setField(this, 1, value);
2240
- };
2241
-
2242
-
2243
- /**
2244
- * Clears the field making it undefined.
2245
- * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest} returns this
2246
- */
2247
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.prototype.clearGroupId = function() {
2248
- return jspb.Message.setField(this, 1, undefined);
2249
- };
2250
-
2251
-
2252
- /**
2253
- * Returns whether this field is set.
2254
- * @return {boolean}
2255
- */
2256
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.prototype.hasGroupId = function() {
2257
- return jspb.Message.getField(this, 1) != null;
2258
- };
2259
-
2260
-
2261
- /**
2262
- * optional SchemaGroupDetails details = 2;
2263
- * @return {?proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails}
2264
- */
2265
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.prototype.getDetails = function() {
2266
- return /** @type{?proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} */ (
2267
- jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails, 2));
2268
- };
2269
-
2270
-
2271
- /**
2272
- * @param {?proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails|undefined} value
2273
- * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest} returns this
2274
- */
2275
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.prototype.setDetails = function(value) {
2276
- return jspb.Message.setWrapperField(this, 2, value);
2277
- };
2278
-
2279
-
2280
- /**
2281
- * Clears the message field making it undefined.
2282
- * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest} returns this
2283
- */
2284
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.prototype.clearDetails = function() {
2285
- return this.setDetails(undefined);
2286
- };
2287
-
2288
-
2289
- /**
2290
- * Returns whether this field is set.
2291
- * @return {boolean}
2292
- */
2293
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.prototype.hasDetails = function() {
2294
- return jspb.Message.getField(this, 2) != null;
2295
- };
2296
-
2297
-
2298
-
2299
-
2300
-
2301
- if (jspb.Message.GENERATE_TO_OBJECT) {
2302
- /**
2303
- * Creates an object representation of this proto.
2304
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2305
- * Optional fields that are not set will be set to undefined.
2306
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2307
- * For the list of reserved names please see:
2308
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2309
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2310
- * JSPB instance for transitional soy proto support:
2311
- * http://goto/soy-param-migration
2312
- * @return {!Object}
2313
- */
2314
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse.prototype.toObject = function(opt_includeInstance) {
2315
- return proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse.toObject(opt_includeInstance, this);
2316
- };
2317
-
2318
-
2319
- /**
2320
- * Static version of the {@see toObject} method.
2321
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2322
- * the JSPB instance for transitional soy proto support:
2323
- * http://goto/soy-param-migration
2324
- * @param {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse} msg The msg instance to transform.
2325
- * @return {!Object}
2326
- * @suppress {unusedLocalVariables} f is only used for nested messages
2327
- */
2328
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse.toObject = function(includeInstance, msg) {
2329
- var f, obj = {
2330
- groupId: jspb.Message.getFieldWithDefault(msg, 1, "")
2331
- };
2332
-
2333
- if (includeInstance) {
2334
- obj.$jspbMessageInstance = msg;
2335
- }
2336
- return obj;
2337
- };
2338
- }
2339
-
2340
-
2341
- /**
2342
- * Deserializes binary data (in protobuf wire format).
2343
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2344
- * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse}
2345
- */
2346
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse.deserializeBinary = function(bytes) {
2347
- var reader = new jspb.BinaryReader(bytes);
2348
- var msg = new proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse;
2349
- return proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse.deserializeBinaryFromReader(msg, reader);
2350
- };
2351
-
2352
-
2353
- /**
2354
- * Deserializes binary data (in protobuf wire format) from the
2355
- * given reader into the given message object.
2356
- * @param {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse} msg The message object to deserialize into.
2357
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2358
- * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse}
2359
- */
2360
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse.deserializeBinaryFromReader = function(msg, reader) {
2361
- while (reader.nextField()) {
2362
- if (reader.isEndGroup()) {
2363
- break;
2364
- }
2365
- var field = reader.getFieldNumber();
2366
- switch (field) {
2367
- case 1:
2368
- var value = /** @type {string} */ (reader.readString());
2369
- msg.setGroupId(value);
2370
- break;
2371
- default:
2372
- reader.skipField();
2373
- break;
2374
- }
2375
- }
2376
- return msg;
2377
- };
2378
-
2379
-
2380
- /**
2381
- * Serializes the message to binary data (in protobuf wire format).
2382
- * @return {!Uint8Array}
2383
- */
2384
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse.prototype.serializeBinary = function() {
2385
- var writer = new jspb.BinaryWriter();
2386
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse.serializeBinaryToWriter(this, writer);
2387
- return writer.getResultBuffer();
2388
- };
2389
-
2390
-
2391
- /**
2392
- * Serializes the given message to binary data (in protobuf wire
2393
- * format), writing to the given BinaryWriter.
2394
- * @param {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse} message
2395
- * @param {!jspb.BinaryWriter} writer
2396
- * @suppress {unusedLocalVariables} f is only used for nested messages
2397
- */
2398
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse.serializeBinaryToWriter = function(message, writer) {
2399
- var f = undefined;
2400
- f = message.getGroupId();
2401
- if (f.length > 0) {
2402
- writer.writeString(
2403
- 1,
2404
- f
2405
- );
2406
- }
2407
- };
2408
-
2409
-
2410
- /**
2411
- * optional string group_id = 1;
2412
- * @return {string}
2413
- */
2414
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse.prototype.getGroupId = function() {
2415
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2416
- };
2417
-
2418
-
2419
- /**
2420
- * @param {string} value
2421
- * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse} returns this
2422
- */
2423
- proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse.prototype.setGroupId = function(value) {
2424
- return jspb.Message.setProto3StringField(this, 1, value);
2425
- };
2426
-
2427
-
2428
-
2429
-
2430
-
2431
- if (jspb.Message.GENERATE_TO_OBJECT) {
2432
- /**
2433
- * Creates an object representation of this proto.
2434
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2435
- * Optional fields that are not set will be set to undefined.
2436
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2437
- * For the list of reserved names please see:
2438
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2439
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2440
- * JSPB instance for transitional soy proto support:
2441
- * http://goto/soy-param-migration
2442
- * @return {!Object}
2443
- */
2444
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.prototype.toObject = function(opt_includeInstance) {
2445
- return proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.toObject(opt_includeInstance, this);
2446
- };
2447
-
2448
-
2449
- /**
2450
- * Static version of the {@see toObject} method.
2451
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2452
- * the JSPB instance for transitional soy proto support:
2453
- * http://goto/soy-param-migration
2454
- * @param {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest} msg The msg instance to transform.
2455
- * @return {!Object}
2456
- * @suppress {unusedLocalVariables} f is only used for nested messages
2457
- */
2458
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.toObject = function(includeInstance, msg) {
2459
- var f, obj = {
2460
- groupId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2461
- details: (f = msg.getDetails()) && proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.toObject(includeInstance, f),
2462
- updateMask: (f = msg.getUpdateMask()) && google_protobuf_field_mask_pb.FieldMask.toObject(includeInstance, f)
2463
- };
2464
-
2465
- if (includeInstance) {
2466
- obj.$jspbMessageInstance = msg;
2467
- }
2468
- return obj;
2469
- };
2470
- }
2471
-
2472
-
2473
- /**
2474
- * Deserializes binary data (in protobuf wire format).
2475
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2476
- * @return {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest}
2477
- */
2478
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.deserializeBinary = function(bytes) {
2479
- var reader = new jspb.BinaryReader(bytes);
2480
- var msg = new proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest;
2481
- return proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.deserializeBinaryFromReader(msg, reader);
2482
- };
2483
-
2484
-
2485
- /**
2486
- * Deserializes binary data (in protobuf wire format) from the
2487
- * given reader into the given message object.
2488
- * @param {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest} msg The message object to deserialize into.
2489
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2490
- * @return {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest}
2491
- */
2492
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.deserializeBinaryFromReader = function(msg, reader) {
2493
- while (reader.nextField()) {
2494
- if (reader.isEndGroup()) {
2495
- break;
2496
- }
2497
- var field = reader.getFieldNumber();
2498
- switch (field) {
2499
- case 1:
2500
- var value = /** @type {string} */ (reader.readString());
2501
- msg.setGroupId(value);
2502
- break;
2503
- case 2:
2504
- var value = new proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails;
2505
- reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.deserializeBinaryFromReader);
2506
- msg.setDetails(value);
2507
- break;
2508
- case 3:
2509
- var value = new google_protobuf_field_mask_pb.FieldMask;
2510
- reader.readMessage(value,google_protobuf_field_mask_pb.FieldMask.deserializeBinaryFromReader);
2511
- msg.setUpdateMask(value);
2512
- break;
2513
- default:
2514
- reader.skipField();
2515
- break;
2516
- }
2517
- }
2518
- return msg;
2519
- };
2520
-
2521
-
2522
- /**
2523
- * Serializes the message to binary data (in protobuf wire format).
2524
- * @return {!Uint8Array}
2525
- */
2526
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.prototype.serializeBinary = function() {
2527
- var writer = new jspb.BinaryWriter();
2528
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.serializeBinaryToWriter(this, writer);
2529
- return writer.getResultBuffer();
2530
- };
2531
-
2532
-
2533
- /**
2534
- * Serializes the given message to binary data (in protobuf wire
2535
- * format), writing to the given BinaryWriter.
2536
- * @param {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest} message
2537
- * @param {!jspb.BinaryWriter} writer
2538
- * @suppress {unusedLocalVariables} f is only used for nested messages
2539
- */
2540
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.serializeBinaryToWriter = function(message, writer) {
2541
- var f = undefined;
2542
- f = message.getGroupId();
2543
- if (f.length > 0) {
2544
- writer.writeString(
2545
- 1,
2546
- f
2547
- );
2548
- }
2549
- f = message.getDetails();
2550
- if (f != null) {
2551
- writer.writeMessage(
2552
- 2,
2553
- f,
2554
- proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.serializeBinaryToWriter
2555
- );
2556
- }
2557
- f = message.getUpdateMask();
2558
- if (f != null) {
2559
- writer.writeMessage(
2560
- 3,
2561
- f,
2562
- google_protobuf_field_mask_pb.FieldMask.serializeBinaryToWriter
2563
- );
2564
- }
2565
- };
2566
-
2567
-
2568
- /**
2569
- * optional string group_id = 1;
2570
- * @return {string}
2571
- */
2572
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.prototype.getGroupId = function() {
2573
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2574
- };
2575
-
2576
-
2577
- /**
2578
- * @param {string} value
2579
- * @return {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest} returns this
2580
- */
2581
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.prototype.setGroupId = function(value) {
2582
- return jspb.Message.setProto3StringField(this, 1, value);
2583
- };
2584
-
2585
-
2586
- /**
2587
- * optional SchemaGroupDetails details = 2;
2588
- * @return {?proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails}
2589
- */
2590
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.prototype.getDetails = function() {
2591
- return /** @type{?proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} */ (
2592
- jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails, 2));
2593
- };
2594
-
2595
-
2596
- /**
2597
- * @param {?proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails|undefined} value
2598
- * @return {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest} returns this
2599
- */
2600
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.prototype.setDetails = function(value) {
2601
- return jspb.Message.setWrapperField(this, 2, value);
2602
- };
2603
-
2604
-
2605
- /**
2606
- * Clears the message field making it undefined.
2607
- * @return {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest} returns this
2608
- */
2609
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.prototype.clearDetails = function() {
2610
- return this.setDetails(undefined);
2611
- };
2612
-
2613
-
2614
- /**
2615
- * Returns whether this field is set.
2616
- * @return {boolean}
2617
- */
2618
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.prototype.hasDetails = function() {
2619
- return jspb.Message.getField(this, 2) != null;
2620
- };
2621
-
2622
-
2623
- /**
2624
- * optional google.protobuf.FieldMask update_mask = 3;
2625
- * @return {?proto.google.protobuf.FieldMask}
2626
- */
2627
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.prototype.getUpdateMask = function() {
2628
- return /** @type{?proto.google.protobuf.FieldMask} */ (
2629
- jspb.Message.getWrapperField(this, google_protobuf_field_mask_pb.FieldMask, 3));
2630
- };
2631
-
2632
-
2633
- /**
2634
- * @param {?proto.google.protobuf.FieldMask|undefined} value
2635
- * @return {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest} returns this
2636
- */
2637
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.prototype.setUpdateMask = function(value) {
2638
- return jspb.Message.setWrapperField(this, 3, value);
2639
- };
2640
-
2641
-
2642
- /**
2643
- * Clears the message field making it undefined.
2644
- * @return {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest} returns this
2645
- */
2646
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.prototype.clearUpdateMask = function() {
2647
- return this.setUpdateMask(undefined);
2648
- };
2649
-
2650
-
2651
- /**
2652
- * Returns whether this field is set.
2653
- * @return {boolean}
2654
- */
2655
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.prototype.hasUpdateMask = function() {
2656
- return jspb.Message.getField(this, 3) != null;
2657
- };
2658
-
2659
-
2660
-
2661
-
2662
-
2663
- if (jspb.Message.GENERATE_TO_OBJECT) {
2664
- /**
2665
- * Creates an object representation of this proto.
2666
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2667
- * Optional fields that are not set will be set to undefined.
2668
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2669
- * For the list of reserved names please see:
2670
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2671
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2672
- * JSPB instance for transitional soy proto support:
2673
- * http://goto/soy-param-migration
2674
- * @return {!Object}
2675
- */
2676
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse.prototype.toObject = function(opt_includeInstance) {
2677
- return proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse.toObject(opt_includeInstance, this);
2678
- };
2679
-
2680
-
2681
- /**
2682
- * Static version of the {@see toObject} method.
2683
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2684
- * the JSPB instance for transitional soy proto support:
2685
- * http://goto/soy-param-migration
2686
- * @param {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse} msg The msg instance to transform.
2687
- * @return {!Object}
2688
- * @suppress {unusedLocalVariables} f is only used for nested messages
2689
- */
2690
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse.toObject = function(includeInstance, msg) {
2691
- var f, obj = {
2692
-
2693
- };
2694
-
2695
- if (includeInstance) {
2696
- obj.$jspbMessageInstance = msg;
2697
- }
2698
- return obj;
2699
- };
2700
- }
2701
-
2702
-
2703
- /**
2704
- * Deserializes binary data (in protobuf wire format).
2705
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2706
- * @return {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse}
2707
- */
2708
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse.deserializeBinary = function(bytes) {
2709
- var reader = new jspb.BinaryReader(bytes);
2710
- var msg = new proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse;
2711
- return proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse.deserializeBinaryFromReader(msg, reader);
2712
- };
2713
-
2714
-
2715
- /**
2716
- * Deserializes binary data (in protobuf wire format) from the
2717
- * given reader into the given message object.
2718
- * @param {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse} msg The message object to deserialize into.
2719
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2720
- * @return {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse}
2721
- */
2722
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse.deserializeBinaryFromReader = function(msg, reader) {
2723
- while (reader.nextField()) {
2724
- if (reader.isEndGroup()) {
2725
- break;
2726
- }
2727
- var field = reader.getFieldNumber();
2728
- switch (field) {
2729
- default:
2730
- reader.skipField();
2731
- break;
2732
- }
2733
- }
2734
- return msg;
2735
- };
2736
-
2737
-
2738
- /**
2739
- * Serializes the message to binary data (in protobuf wire format).
2740
- * @return {!Uint8Array}
2741
- */
2742
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse.prototype.serializeBinary = function() {
2743
- var writer = new jspb.BinaryWriter();
2744
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse.serializeBinaryToWriter(this, writer);
2745
- return writer.getResultBuffer();
2746
- };
2747
-
2748
-
2749
- /**
2750
- * Serializes the given message to binary data (in protobuf wire
2751
- * format), writing to the given BinaryWriter.
2752
- * @param {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse} message
2753
- * @param {!jspb.BinaryWriter} writer
2754
- * @suppress {unusedLocalVariables} f is only used for nested messages
2755
- */
2756
- proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse.serializeBinaryToWriter = function(message, writer) {
2757
- var f = undefined;
2758
- };
2759
-
2760
-
2761
-
2762
-
2763
-
2764
- if (jspb.Message.GENERATE_TO_OBJECT) {
2765
- /**
2766
- * Creates an object representation of this proto.
2767
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2768
- * Optional fields that are not set will be set to undefined.
2769
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2770
- * For the list of reserved names please see:
2771
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2772
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2773
- * JSPB instance for transitional soy proto support:
2774
- * http://goto/soy-param-migration
2775
- * @return {!Object}
2776
- */
2777
- proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest.prototype.toObject = function(opt_includeInstance) {
2778
- return proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest.toObject(opt_includeInstance, this);
2779
- };
2780
-
2781
-
2782
- /**
2783
- * Static version of the {@see toObject} method.
2784
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2785
- * the JSPB instance for transitional soy proto support:
2786
- * http://goto/soy-param-migration
2787
- * @param {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest} msg The msg instance to transform.
2788
- * @return {!Object}
2789
- * @suppress {unusedLocalVariables} f is only used for nested messages
2790
- */
2791
- proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest.toObject = function(includeInstance, msg) {
2792
- var f, obj = {
2793
- groupId: jspb.Message.getFieldWithDefault(msg, 1, "")
2794
- };
2795
-
2796
- if (includeInstance) {
2797
- obj.$jspbMessageInstance = msg;
2798
- }
2799
- return obj;
2800
- };
2801
- }
2802
-
2803
-
2804
- /**
2805
- * Deserializes binary data (in protobuf wire format).
2806
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2807
- * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest}
2808
- */
2809
- proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest.deserializeBinary = function(bytes) {
2810
- var reader = new jspb.BinaryReader(bytes);
2811
- var msg = new proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest;
2812
- return proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest.deserializeBinaryFromReader(msg, reader);
2813
- };
2814
-
2815
-
2816
- /**
2817
- * Deserializes binary data (in protobuf wire format) from the
2818
- * given reader into the given message object.
2819
- * @param {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest} msg The message object to deserialize into.
2820
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2821
- * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest}
2822
- */
2823
- proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest.deserializeBinaryFromReader = function(msg, reader) {
2824
- while (reader.nextField()) {
2825
- if (reader.isEndGroup()) {
2826
- break;
2827
- }
2828
- var field = reader.getFieldNumber();
2829
- switch (field) {
2830
- case 1:
2831
- var value = /** @type {string} */ (reader.readString());
2832
- msg.setGroupId(value);
2833
- break;
2834
- default:
2835
- reader.skipField();
2836
- break;
2837
- }
2838
- }
2839
- return msg;
2840
- };
2841
-
2842
-
2843
- /**
2844
- * Serializes the message to binary data (in protobuf wire format).
2845
- * @return {!Uint8Array}
2846
- */
2847
- proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest.prototype.serializeBinary = function() {
2848
- var writer = new jspb.BinaryWriter();
2849
- proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest.serializeBinaryToWriter(this, writer);
2850
- return writer.getResultBuffer();
2851
- };
2852
-
2853
-
2854
- /**
2855
- * Serializes the given message to binary data (in protobuf wire
2856
- * format), writing to the given BinaryWriter.
2857
- * @param {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest} message
2858
- * @param {!jspb.BinaryWriter} writer
2859
- * @suppress {unusedLocalVariables} f is only used for nested messages
2860
- */
2861
- proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest.serializeBinaryToWriter = function(message, writer) {
2862
- var f = undefined;
2863
- f = message.getGroupId();
2864
- if (f.length > 0) {
2865
- writer.writeString(
2866
- 1,
2867
- f
2868
- );
2869
- }
2870
- };
2871
-
2872
-
2873
- /**
2874
- * optional string group_id = 1;
2875
- * @return {string}
2876
- */
2877
- proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest.prototype.getGroupId = function() {
2878
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2879
- };
2880
-
2881
-
2882
- /**
2883
- * @param {string} value
2884
- * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest} returns this
2885
- */
2886
- proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest.prototype.setGroupId = function(value) {
2887
- return jspb.Message.setProto3StringField(this, 1, value);
2888
- };
2889
-
2890
-
2891
-
2892
-
2893
-
2894
- if (jspb.Message.GENERATE_TO_OBJECT) {
2895
- /**
2896
- * Creates an object representation of this proto.
2897
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2898
- * Optional fields that are not set will be set to undefined.
2899
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2900
- * For the list of reserved names please see:
2901
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2902
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2903
- * JSPB instance for transitional soy proto support:
2904
- * http://goto/soy-param-migration
2905
- * @return {!Object}
2906
- */
2907
- proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse.prototype.toObject = function(opt_includeInstance) {
2908
- return proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse.toObject(opt_includeInstance, this);
2909
- };
2910
-
2911
-
2912
- /**
2913
- * Static version of the {@see toObject} method.
2914
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2915
- * the JSPB instance for transitional soy proto support:
2916
- * http://goto/soy-param-migration
2917
- * @param {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse} msg The msg instance to transform.
2918
- * @return {!Object}
2919
- * @suppress {unusedLocalVariables} f is only used for nested messages
2920
- */
2921
- proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse.toObject = function(includeInstance, msg) {
2922
- var f, obj = {
2923
-
2924
- };
2925
-
2926
- if (includeInstance) {
2927
- obj.$jspbMessageInstance = msg;
2928
- }
2929
- return obj;
2930
- };
2931
- }
2932
-
2933
-
2934
- /**
2935
- * Deserializes binary data (in protobuf wire format).
2936
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2937
- * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse}
2938
- */
2939
- proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse.deserializeBinary = function(bytes) {
2940
- var reader = new jspb.BinaryReader(bytes);
2941
- var msg = new proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse;
2942
- return proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse.deserializeBinaryFromReader(msg, reader);
2943
- };
2944
-
2945
-
2946
- /**
2947
- * Deserializes binary data (in protobuf wire format) from the
2948
- * given reader into the given message object.
2949
- * @param {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse} msg The message object to deserialize into.
2950
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2951
- * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse}
2952
- */
2953
- proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse.deserializeBinaryFromReader = function(msg, reader) {
2954
- while (reader.nextField()) {
2955
- if (reader.isEndGroup()) {
2956
- break;
2957
- }
2958
- var field = reader.getFieldNumber();
2959
- switch (field) {
2960
- default:
2961
- reader.skipField();
2962
- break;
2963
- }
2964
- }
2965
- return msg;
2966
- };
2967
-
2968
-
2969
- /**
2970
- * Serializes the message to binary data (in protobuf wire format).
2971
- * @return {!Uint8Array}
2972
- */
2973
- proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse.prototype.serializeBinary = function() {
2974
- var writer = new jspb.BinaryWriter();
2975
- proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse.serializeBinaryToWriter(this, writer);
2976
- return writer.getResultBuffer();
2977
- };
2978
-
2979
-
2980
- /**
2981
- * Serializes the given message to binary data (in protobuf wire
2982
- * format), writing to the given BinaryWriter.
2983
- * @param {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse} message
2984
- * @param {!jspb.BinaryWriter} writer
2985
- * @suppress {unusedLocalVariables} f is only used for nested messages
2986
- */
2987
- proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse.serializeBinaryToWriter = function(message, writer) {
2988
- var f = undefined;
2989
- };
2990
-
2991
-
2992
-
2993
-
2994
-
2995
- if (jspb.Message.GENERATE_TO_OBJECT) {
2996
- /**
2997
- * Creates an object representation of this proto.
2998
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2999
- * Optional fields that are not set will be set to undefined.
3000
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3001
- * For the list of reserved names please see:
3002
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3003
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3004
- * JSPB instance for transitional soy proto support:
3005
- * http://goto/soy-param-migration
3006
- * @return {!Object}
3007
- */
3008
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest.prototype.toObject = function(opt_includeInstance) {
3009
- return proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest.toObject(opt_includeInstance, this);
3010
- };
3011
-
3012
-
3013
- /**
3014
- * Static version of the {@see toObject} method.
3015
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3016
- * the JSPB instance for transitional soy proto support:
3017
- * http://goto/soy-param-migration
3018
- * @param {!proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest} msg The msg instance to transform.
3019
- * @return {!Object}
3020
- * @suppress {unusedLocalVariables} f is only used for nested messages
3021
- */
3022
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest.toObject = function(includeInstance, msg) {
3023
- var f, obj = {
3024
- groupId: jspb.Message.getFieldWithDefault(msg, 1, "")
3025
- };
3026
-
3027
- if (includeInstance) {
3028
- obj.$jspbMessageInstance = msg;
3029
- }
3030
- return obj;
3031
- };
3032
- }
3033
-
3034
-
3035
- /**
3036
- * Deserializes binary data (in protobuf wire format).
3037
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3038
- * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest}
3039
- */
3040
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest.deserializeBinary = function(bytes) {
3041
- var reader = new jspb.BinaryReader(bytes);
3042
- var msg = new proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest;
3043
- return proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest.deserializeBinaryFromReader(msg, reader);
3044
- };
3045
-
3046
-
3047
- /**
3048
- * Deserializes binary data (in protobuf wire format) from the
3049
- * given reader into the given message object.
3050
- * @param {!proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest} msg The message object to deserialize into.
3051
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3052
- * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest}
3053
- */
3054
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest.deserializeBinaryFromReader = function(msg, reader) {
3055
- while (reader.nextField()) {
3056
- if (reader.isEndGroup()) {
3057
- break;
3058
- }
3059
- var field = reader.getFieldNumber();
3060
- switch (field) {
3061
- case 1:
3062
- var value = /** @type {string} */ (reader.readString());
3063
- msg.setGroupId(value);
3064
- break;
3065
- default:
3066
- reader.skipField();
3067
- break;
3068
- }
3069
- }
3070
- return msg;
3071
- };
3072
-
3073
-
3074
- /**
3075
- * Serializes the message to binary data (in protobuf wire format).
3076
- * @return {!Uint8Array}
3077
- */
3078
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest.prototype.serializeBinary = function() {
3079
- var writer = new jspb.BinaryWriter();
3080
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest.serializeBinaryToWriter(this, writer);
3081
- return writer.getResultBuffer();
3082
- };
3083
-
3084
-
3085
- /**
3086
- * Serializes the given message to binary data (in protobuf wire
3087
- * format), writing to the given BinaryWriter.
3088
- * @param {!proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest} message
3089
- * @param {!jspb.BinaryWriter} writer
3090
- * @suppress {unusedLocalVariables} f is only used for nested messages
3091
- */
3092
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest.serializeBinaryToWriter = function(message, writer) {
3093
- var f = undefined;
3094
- f = message.getGroupId();
3095
- if (f.length > 0) {
3096
- writer.writeString(
3097
- 1,
3098
- f
3099
- );
3100
- }
3101
- };
3102
-
3103
-
3104
- /**
3105
- * optional string group_id = 1;
3106
- * @return {string}
3107
- */
3108
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest.prototype.getGroupId = function() {
3109
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3110
- };
3111
-
3112
-
3113
- /**
3114
- * @param {string} value
3115
- * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest} returns this
3116
- */
3117
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest.prototype.setGroupId = function(value) {
3118
- return jspb.Message.setProto3StringField(this, 1, value);
3119
- };
3120
-
3121
-
3122
-
3123
-
3124
-
3125
- if (jspb.Message.GENERATE_TO_OBJECT) {
3126
- /**
3127
- * Creates an object representation of this proto.
3128
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3129
- * Optional fields that are not set will be set to undefined.
3130
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3131
- * For the list of reserved names please see:
3132
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3133
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3134
- * JSPB instance for transitional soy proto support:
3135
- * http://goto/soy-param-migration
3136
- * @return {!Object}
3137
- */
3138
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.prototype.toObject = function(opt_includeInstance) {
3139
- return proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.toObject(opt_includeInstance, this);
3140
- };
3141
-
3142
-
3143
- /**
3144
- * Static version of the {@see toObject} method.
3145
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3146
- * the JSPB instance for transitional soy proto support:
3147
- * http://goto/soy-param-migration
3148
- * @param {!proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse} msg The msg instance to transform.
3149
- * @return {!Object}
3150
- * @suppress {unusedLocalVariables} f is only used for nested messages
3151
- */
3152
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.toObject = function(includeInstance, msg) {
3153
- var f, obj = {
3154
- group: (f = msg.getGroup()) && proto.kurrentdb.protocol.registry.v2.SchemaGroup.toObject(includeInstance, f)
3155
- };
3156
-
3157
- if (includeInstance) {
3158
- obj.$jspbMessageInstance = msg;
3159
- }
3160
- return obj;
3161
- };
3162
- }
3163
-
3164
-
3165
- /**
3166
- * Deserializes binary data (in protobuf wire format).
3167
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3168
- * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse}
3169
- */
3170
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.deserializeBinary = function(bytes) {
3171
- var reader = new jspb.BinaryReader(bytes);
3172
- var msg = new proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse;
3173
- return proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.deserializeBinaryFromReader(msg, reader);
3174
- };
3175
-
3176
-
3177
- /**
3178
- * Deserializes binary data (in protobuf wire format) from the
3179
- * given reader into the given message object.
3180
- * @param {!proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse} msg The message object to deserialize into.
3181
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3182
- * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse}
3183
- */
3184
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.deserializeBinaryFromReader = function(msg, reader) {
3185
- while (reader.nextField()) {
3186
- if (reader.isEndGroup()) {
3187
- break;
3188
- }
3189
- var field = reader.getFieldNumber();
3190
- switch (field) {
3191
- case 1:
3192
- var value = new proto.kurrentdb.protocol.registry.v2.SchemaGroup;
3193
- reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.SchemaGroup.deserializeBinaryFromReader);
3194
- msg.setGroup(value);
3195
- break;
3196
- default:
3197
- reader.skipField();
3198
- break;
3199
- }
3200
- }
3201
- return msg;
3202
- };
3203
-
3204
-
3205
- /**
3206
- * Serializes the message to binary data (in protobuf wire format).
3207
- * @return {!Uint8Array}
3208
- */
3209
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.prototype.serializeBinary = function() {
3210
- var writer = new jspb.BinaryWriter();
3211
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.serializeBinaryToWriter(this, writer);
3212
- return writer.getResultBuffer();
3213
- };
3214
-
3215
-
3216
- /**
3217
- * Serializes the given message to binary data (in protobuf wire
3218
- * format), writing to the given BinaryWriter.
3219
- * @param {!proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse} message
3220
- * @param {!jspb.BinaryWriter} writer
3221
- * @suppress {unusedLocalVariables} f is only used for nested messages
3222
- */
3223
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.serializeBinaryToWriter = function(message, writer) {
3224
- var f = undefined;
3225
- f = message.getGroup();
3226
- if (f != null) {
3227
- writer.writeMessage(
3228
- 1,
3229
- f,
3230
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.serializeBinaryToWriter
3231
- );
3232
- }
3233
- };
3234
-
3235
-
3236
- /**
3237
- * optional SchemaGroup group = 1;
3238
- * @return {?proto.kurrentdb.protocol.registry.v2.SchemaGroup}
3239
- */
3240
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.prototype.getGroup = function() {
3241
- return /** @type{?proto.kurrentdb.protocol.registry.v2.SchemaGroup} */ (
3242
- jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.SchemaGroup, 1));
3243
- };
3244
-
3245
-
3246
- /**
3247
- * @param {?proto.kurrentdb.protocol.registry.v2.SchemaGroup|undefined} value
3248
- * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse} returns this
3249
- */
3250
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.prototype.setGroup = function(value) {
3251
- return jspb.Message.setWrapperField(this, 1, value);
3252
- };
3253
-
3254
-
3255
- /**
3256
- * Clears the message field making it undefined.
3257
- * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse} returns this
3258
- */
3259
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.prototype.clearGroup = function() {
3260
- return this.setGroup(undefined);
3261
- };
3262
-
3263
-
3264
- /**
3265
- * Returns whether this field is set.
3266
- * @return {boolean}
3267
- */
3268
- proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.prototype.hasGroup = function() {
3269
- return jspb.Message.getField(this, 1) != null;
3270
- };
3271
-
3272
-
3273
-
3274
-
3275
-
3276
- if (jspb.Message.GENERATE_TO_OBJECT) {
3277
- /**
3278
- * Creates an object representation of this proto.
3279
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3280
- * Optional fields that are not set will be set to undefined.
3281
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3282
- * For the list of reserved names please see:
3283
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3284
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3285
- * JSPB instance for transitional soy proto support:
3286
- * http://goto/soy-param-migration
3287
- * @return {!Object}
3288
- */
3289
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.prototype.toObject = function(opt_includeInstance) {
3290
- return proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.toObject(opt_includeInstance, this);
3291
- };
3292
-
3293
-
3294
- /**
3295
- * Static version of the {@see toObject} method.
3296
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3297
- * the JSPB instance for transitional soy proto support:
3298
- * http://goto/soy-param-migration
3299
- * @param {!proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest} msg The msg instance to transform.
3300
- * @return {!Object}
3301
- * @suppress {unusedLocalVariables} f is only used for nested messages
3302
- */
3303
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.toObject = function(includeInstance, msg) {
3304
- var f, obj = {
3305
- groupNamePrefix: (f = msg.getGroupNamePrefix()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f)
3306
- };
3307
-
3308
- if (includeInstance) {
3309
- obj.$jspbMessageInstance = msg;
3310
- }
3311
- return obj;
3312
- };
3313
- }
3314
-
3315
-
3316
- /**
3317
- * Deserializes binary data (in protobuf wire format).
3318
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3319
- * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest}
3320
- */
3321
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.deserializeBinary = function(bytes) {
3322
- var reader = new jspb.BinaryReader(bytes);
3323
- var msg = new proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest;
3324
- return proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.deserializeBinaryFromReader(msg, reader);
3325
- };
3326
-
3327
-
3328
- /**
3329
- * Deserializes binary data (in protobuf wire format) from the
3330
- * given reader into the given message object.
3331
- * @param {!proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest} msg The message object to deserialize into.
3332
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3333
- * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest}
3334
- */
3335
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.deserializeBinaryFromReader = function(msg, reader) {
3336
- while (reader.nextField()) {
3337
- if (reader.isEndGroup()) {
3338
- break;
3339
- }
3340
- var field = reader.getFieldNumber();
3341
- switch (field) {
3342
- case 1:
3343
- var value = new google_protobuf_wrappers_pb.StringValue;
3344
- reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
3345
- msg.setGroupNamePrefix(value);
3346
- break;
3347
- default:
3348
- reader.skipField();
3349
- break;
3350
- }
3351
- }
3352
- return msg;
3353
- };
3354
-
3355
-
3356
- /**
3357
- * Serializes the message to binary data (in protobuf wire format).
3358
- * @return {!Uint8Array}
3359
- */
3360
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.prototype.serializeBinary = function() {
3361
- var writer = new jspb.BinaryWriter();
3362
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.serializeBinaryToWriter(this, writer);
3363
- return writer.getResultBuffer();
3364
- };
3365
-
3366
-
3367
- /**
3368
- * Serializes the given message to binary data (in protobuf wire
3369
- * format), writing to the given BinaryWriter.
3370
- * @param {!proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest} message
3371
- * @param {!jspb.BinaryWriter} writer
3372
- * @suppress {unusedLocalVariables} f is only used for nested messages
3373
- */
3374
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.serializeBinaryToWriter = function(message, writer) {
3375
- var f = undefined;
3376
- f = message.getGroupNamePrefix();
3377
- if (f != null) {
3378
- writer.writeMessage(
3379
- 1,
3380
- f,
3381
- google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
3382
- );
3383
- }
3384
- };
3385
-
3386
-
3387
- /**
3388
- * optional google.protobuf.StringValue group_name_prefix = 1;
3389
- * @return {?proto.google.protobuf.StringValue}
3390
- */
3391
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.prototype.getGroupNamePrefix = function() {
3392
- return /** @type{?proto.google.protobuf.StringValue} */ (
3393
- jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
3394
- };
3395
-
3396
-
3397
- /**
3398
- * @param {?proto.google.protobuf.StringValue|undefined} value
3399
- * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest} returns this
3400
- */
3401
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.prototype.setGroupNamePrefix = function(value) {
3402
- return jspb.Message.setWrapperField(this, 1, value);
3403
- };
3404
-
3405
-
3406
- /**
3407
- * Clears the message field making it undefined.
3408
- * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest} returns this
3409
- */
3410
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.prototype.clearGroupNamePrefix = function() {
3411
- return this.setGroupNamePrefix(undefined);
3412
- };
3413
-
3414
-
3415
- /**
3416
- * Returns whether this field is set.
3417
- * @return {boolean}
3418
- */
3419
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.prototype.hasGroupNamePrefix = function() {
3420
- return jspb.Message.getField(this, 1) != null;
3421
- };
3422
-
3423
-
3424
-
3425
- /**
3426
- * List of repeated fields within this message type.
3427
- * @private {!Array<number>}
3428
- * @const
3429
- */
3430
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.repeatedFields_ = [1];
3431
-
3432
-
3433
-
3434
- if (jspb.Message.GENERATE_TO_OBJECT) {
3435
- /**
3436
- * Creates an object representation of this proto.
3437
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3438
- * Optional fields that are not set will be set to undefined.
3439
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3440
- * For the list of reserved names please see:
3441
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3442
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3443
- * JSPB instance for transitional soy proto support:
3444
- * http://goto/soy-param-migration
3445
- * @return {!Object}
3446
- */
3447
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.prototype.toObject = function(opt_includeInstance) {
3448
- return proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.toObject(opt_includeInstance, this);
3449
- };
3450
-
3451
-
3452
- /**
3453
- * Static version of the {@see toObject} method.
3454
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3455
- * the JSPB instance for transitional soy proto support:
3456
- * http://goto/soy-param-migration
3457
- * @param {!proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse} msg The msg instance to transform.
3458
- * @return {!Object}
3459
- * @suppress {unusedLocalVariables} f is only used for nested messages
3460
- */
3461
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.toObject = function(includeInstance, msg) {
3462
- var f, obj = {
3463
- groupsList: jspb.Message.toObjectList(msg.getGroupsList(),
3464
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.toObject, includeInstance)
3465
- };
3466
-
3467
- if (includeInstance) {
3468
- obj.$jspbMessageInstance = msg;
3469
- }
3470
- return obj;
3471
- };
3472
- }
3473
-
3474
-
3475
- /**
3476
- * Deserializes binary data (in protobuf wire format).
3477
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3478
- * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse}
3479
- */
3480
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.deserializeBinary = function(bytes) {
3481
- var reader = new jspb.BinaryReader(bytes);
3482
- var msg = new proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse;
3483
- return proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.deserializeBinaryFromReader(msg, reader);
3484
- };
3485
-
3486
-
3487
- /**
3488
- * Deserializes binary data (in protobuf wire format) from the
3489
- * given reader into the given message object.
3490
- * @param {!proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse} msg The message object to deserialize into.
3491
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3492
- * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse}
3493
- */
3494
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.deserializeBinaryFromReader = function(msg, reader) {
3495
- while (reader.nextField()) {
3496
- if (reader.isEndGroup()) {
3497
- break;
3498
- }
3499
- var field = reader.getFieldNumber();
3500
- switch (field) {
3501
- case 1:
3502
- var value = new proto.kurrentdb.protocol.registry.v2.SchemaGroup;
3503
- reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.SchemaGroup.deserializeBinaryFromReader);
3504
- msg.addGroups(value);
3505
- break;
3506
- default:
3507
- reader.skipField();
3508
- break;
3509
- }
3510
- }
3511
- return msg;
3512
- };
3513
-
3514
-
3515
- /**
3516
- * Serializes the message to binary data (in protobuf wire format).
3517
- * @return {!Uint8Array}
3518
- */
3519
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.prototype.serializeBinary = function() {
3520
- var writer = new jspb.BinaryWriter();
3521
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.serializeBinaryToWriter(this, writer);
3522
- return writer.getResultBuffer();
3523
- };
3524
-
3525
-
3526
- /**
3527
- * Serializes the given message to binary data (in protobuf wire
3528
- * format), writing to the given BinaryWriter.
3529
- * @param {!proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse} message
3530
- * @param {!jspb.BinaryWriter} writer
3531
- * @suppress {unusedLocalVariables} f is only used for nested messages
3532
- */
3533
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.serializeBinaryToWriter = function(message, writer) {
3534
- var f = undefined;
3535
- f = message.getGroupsList();
3536
- if (f.length > 0) {
3537
- writer.writeRepeatedMessage(
3538
- 1,
3539
- f,
3540
- proto.kurrentdb.protocol.registry.v2.SchemaGroup.serializeBinaryToWriter
3541
- );
3542
- }
3543
- };
3544
-
3545
-
3546
- /**
3547
- * repeated SchemaGroup groups = 1;
3548
- * @return {!Array<!proto.kurrentdb.protocol.registry.v2.SchemaGroup>}
3549
- */
3550
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.prototype.getGroupsList = function() {
3551
- return /** @type{!Array<!proto.kurrentdb.protocol.registry.v2.SchemaGroup>} */ (
3552
- jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.registry.v2.SchemaGroup, 1));
3553
- };
3554
-
3555
-
3556
- /**
3557
- * @param {!Array<!proto.kurrentdb.protocol.registry.v2.SchemaGroup>} value
3558
- * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse} returns this
3559
- */
3560
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.prototype.setGroupsList = function(value) {
3561
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
3562
- };
3563
-
3564
-
3565
- /**
3566
- * @param {!proto.kurrentdb.protocol.registry.v2.SchemaGroup=} opt_value
3567
- * @param {number=} opt_index
3568
- * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroup}
3569
- */
3570
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.prototype.addGroups = function(opt_value, opt_index) {
3571
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.kurrentdb.protocol.registry.v2.SchemaGroup, opt_index);
3572
- };
3573
-
3574
-
3575
- /**
3576
- * Clears the list making it empty but non-null.
3577
- * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse} returns this
3578
- */
3579
- proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.prototype.clearGroupsList = function() {
3580
- return this.setGroupsList([]);
3581
- };
3582
-
3583
-
3584
- /**
3585
- * @enum {number}
3586
- */
3587
- proto.kurrentdb.protocol.registry.v2.StreamFilterType = {
3588
- CONSUME_FILTER_TYPE_UNSPECIFIED: 0,
3589
- CONSUME_FILTER_TYPE_REGEX: 1,
3590
- CONSUME_FILTER_TYPE_CATEGORY: 2
3591
- };
3592
-
3593
- goog.object.extend(exports, proto.kurrentdb.protocol.registry.v2);