weave-typescript 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/google/api/annotations.pb.d.ts +1 -0
- package/dist/google/api/annotations.pb.js +10 -0
- package/dist/google/api/http.pb.d.ts +371 -0
- package/dist/google/api/http.pb.js +360 -0
- package/dist/google/protobuf/descriptor.pb.d.ts +1285 -0
- package/dist/google/protobuf/descriptor.pb.js +5217 -0
- package/dist/google/protobuf/struct.pb.d.ts +107 -0
- package/dist/google/protobuf/struct.pb.js +461 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +54 -0
- package/dist/weave/datamanagement/generate/v1/configuration.pb.d.ts +123 -0
- package/dist/weave/datamanagement/generate/v1/configuration.pb.js +799 -0
- package/dist/weave/datamanagement/generate/v1/generate.pb.d.ts +30 -0
- package/dist/weave/datamanagement/generate/v1/generate.pb.js +119 -0
- package/dist/weave/datamanagement/generate/v1/service.pb.d.ts +126 -0
- package/dist/weave/datamanagement/generate/v1/service.pb.js +578 -0
- package/dist/weave/datamanagement/storage/v1/auth.pb.d.ts +27 -0
- package/dist/weave/datamanagement/storage/v1/auth.pb.js +98 -0
- package/dist/weave/datamanagement/storage/v1/nosql_database.pb.d.ts +91 -0
- package/dist/weave/datamanagement/storage/v1/nosql_database.pb.js +1030 -0
- package/dist/weave/datamanagement/storage/v1/object_store.pb.d.ts +49 -0
- package/dist/weave/datamanagement/storage/v1/object_store.pb.js +405 -0
- package/dist/weave/datamanagement/storage/v1/service.pb.d.ts +257 -0
- package/dist/weave/datamanagement/storage/v1/service.pb.js +1188 -0
- package/dist/weave/datamanagement/storage/v1/sql_database.pb.d.ts +98 -0
- package/dist/weave/datamanagement/storage/v1/sql_database.pb.js +1142 -0
- package/dist/weave/datamanagement/storage/v1/storage.pb.d.ts +33 -0
- package/dist/weave/datamanagement/storage/v1/storage.pb.js +159 -0
- package/dist/weave/datamanagement/synthesize/v1/dataset.pb.d.ts +68 -0
- package/dist/weave/datamanagement/synthesize/v1/dataset.pb.js +439 -0
- package/dist/weave/datamanagement/synthesize/v1/inline_data.pb.d.ts +45 -0
- package/dist/weave/datamanagement/synthesize/v1/inline_data.pb.js +166 -0
- package/dist/weave/datamanagement/synthesize/v1/relationship.pb.d.ts +58 -0
- package/dist/weave/datamanagement/synthesize/v1/relationship.pb.js +241 -0
- package/dist/weave/datamanagement/synthesize/v1/service.pb.d.ts +133 -0
- package/dist/weave/datamanagement/synthesize/v1/service.pb.js +705 -0
- package/dist/weave/datamanagement/synthesize/v1/training.pb.d.ts +58 -0
- package/dist/weave/datamanagement/synthesize/v1/training.pb.js +353 -0
- package/package.json +27 -0
|
@@ -0,0 +1,1030 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.6.1
|
|
5
|
+
// protoc unknown
|
|
6
|
+
// source: weave/datamanagement/storage/v1/nosql_database.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.OpenSearch = exports.Elasticsearch = exports.Valkey = exports.Redis = exports.CosmosDB = exports.DynamoDB = exports.MongoDB = exports.Cassandra = exports.NoSqlDatabase = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
const auth_pb_1 = require("./auth.pb");
|
|
12
|
+
exports.protobufPackage = "weave.datamanagement.storage.v1";
|
|
13
|
+
function createBaseNoSqlDatabase() {
|
|
14
|
+
return {
|
|
15
|
+
cassandra: undefined,
|
|
16
|
+
mongodb: undefined,
|
|
17
|
+
dynamodb: undefined,
|
|
18
|
+
cosmosdb: undefined,
|
|
19
|
+
redis: undefined,
|
|
20
|
+
valkey: undefined,
|
|
21
|
+
elasticsearch: undefined,
|
|
22
|
+
openSearch: undefined,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
exports.NoSqlDatabase = {
|
|
26
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
27
|
+
if (message.cassandra !== undefined) {
|
|
28
|
+
exports.Cassandra.encode(message.cassandra, writer.uint32(10).fork()).join();
|
|
29
|
+
}
|
|
30
|
+
if (message.mongodb !== undefined) {
|
|
31
|
+
exports.MongoDB.encode(message.mongodb, writer.uint32(18).fork()).join();
|
|
32
|
+
}
|
|
33
|
+
if (message.dynamodb !== undefined) {
|
|
34
|
+
exports.DynamoDB.encode(message.dynamodb, writer.uint32(26).fork()).join();
|
|
35
|
+
}
|
|
36
|
+
if (message.cosmosdb !== undefined) {
|
|
37
|
+
exports.CosmosDB.encode(message.cosmosdb, writer.uint32(34).fork()).join();
|
|
38
|
+
}
|
|
39
|
+
if (message.redis !== undefined) {
|
|
40
|
+
exports.Redis.encode(message.redis, writer.uint32(42).fork()).join();
|
|
41
|
+
}
|
|
42
|
+
if (message.valkey !== undefined) {
|
|
43
|
+
exports.Valkey.encode(message.valkey, writer.uint32(50).fork()).join();
|
|
44
|
+
}
|
|
45
|
+
if (message.elasticsearch !== undefined) {
|
|
46
|
+
exports.Elasticsearch.encode(message.elasticsearch, writer.uint32(58).fork()).join();
|
|
47
|
+
}
|
|
48
|
+
if (message.openSearch !== undefined) {
|
|
49
|
+
exports.OpenSearch.encode(message.openSearch, writer.uint32(66).fork()).join();
|
|
50
|
+
}
|
|
51
|
+
return writer;
|
|
52
|
+
},
|
|
53
|
+
decode(input, length) {
|
|
54
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
55
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
56
|
+
const message = createBaseNoSqlDatabase();
|
|
57
|
+
while (reader.pos < end) {
|
|
58
|
+
const tag = reader.uint32();
|
|
59
|
+
switch (tag >>> 3) {
|
|
60
|
+
case 1: {
|
|
61
|
+
if (tag !== 10) {
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
message.cassandra = exports.Cassandra.decode(reader, reader.uint32());
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
67
|
+
case 2: {
|
|
68
|
+
if (tag !== 18) {
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
message.mongodb = exports.MongoDB.decode(reader, reader.uint32());
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
case 3: {
|
|
75
|
+
if (tag !== 26) {
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
message.dynamodb = exports.DynamoDB.decode(reader, reader.uint32());
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
case 4: {
|
|
82
|
+
if (tag !== 34) {
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
message.cosmosdb = exports.CosmosDB.decode(reader, reader.uint32());
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
case 5: {
|
|
89
|
+
if (tag !== 42) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
message.redis = exports.Redis.decode(reader, reader.uint32());
|
|
93
|
+
continue;
|
|
94
|
+
}
|
|
95
|
+
case 6: {
|
|
96
|
+
if (tag !== 50) {
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
message.valkey = exports.Valkey.decode(reader, reader.uint32());
|
|
100
|
+
continue;
|
|
101
|
+
}
|
|
102
|
+
case 7: {
|
|
103
|
+
if (tag !== 58) {
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
message.elasticsearch = exports.Elasticsearch.decode(reader, reader.uint32());
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
case 8: {
|
|
110
|
+
if (tag !== 66) {
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
message.openSearch = exports.OpenSearch.decode(reader, reader.uint32());
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
reader.skip(tag & 7);
|
|
121
|
+
}
|
|
122
|
+
return message;
|
|
123
|
+
},
|
|
124
|
+
fromJSON(object) {
|
|
125
|
+
return {
|
|
126
|
+
cassandra: isSet(object.cassandra) ? exports.Cassandra.fromJSON(object.cassandra) : undefined,
|
|
127
|
+
mongodb: isSet(object.mongodb) ? exports.MongoDB.fromJSON(object.mongodb) : undefined,
|
|
128
|
+
dynamodb: isSet(object.dynamodb) ? exports.DynamoDB.fromJSON(object.dynamodb) : undefined,
|
|
129
|
+
cosmosdb: isSet(object.cosmosdb) ? exports.CosmosDB.fromJSON(object.cosmosdb) : undefined,
|
|
130
|
+
redis: isSet(object.redis) ? exports.Redis.fromJSON(object.redis) : undefined,
|
|
131
|
+
valkey: isSet(object.valkey) ? exports.Valkey.fromJSON(object.valkey) : undefined,
|
|
132
|
+
elasticsearch: isSet(object.elasticsearch) ? exports.Elasticsearch.fromJSON(object.elasticsearch) : undefined,
|
|
133
|
+
openSearch: isSet(object.openSearch) ? exports.OpenSearch.fromJSON(object.openSearch) : undefined,
|
|
134
|
+
};
|
|
135
|
+
},
|
|
136
|
+
toJSON(message) {
|
|
137
|
+
const obj = {};
|
|
138
|
+
if (message.cassandra !== undefined) {
|
|
139
|
+
obj.cassandra = exports.Cassandra.toJSON(message.cassandra);
|
|
140
|
+
}
|
|
141
|
+
if (message.mongodb !== undefined) {
|
|
142
|
+
obj.mongodb = exports.MongoDB.toJSON(message.mongodb);
|
|
143
|
+
}
|
|
144
|
+
if (message.dynamodb !== undefined) {
|
|
145
|
+
obj.dynamodb = exports.DynamoDB.toJSON(message.dynamodb);
|
|
146
|
+
}
|
|
147
|
+
if (message.cosmosdb !== undefined) {
|
|
148
|
+
obj.cosmosdb = exports.CosmosDB.toJSON(message.cosmosdb);
|
|
149
|
+
}
|
|
150
|
+
if (message.redis !== undefined) {
|
|
151
|
+
obj.redis = exports.Redis.toJSON(message.redis);
|
|
152
|
+
}
|
|
153
|
+
if (message.valkey !== undefined) {
|
|
154
|
+
obj.valkey = exports.Valkey.toJSON(message.valkey);
|
|
155
|
+
}
|
|
156
|
+
if (message.elasticsearch !== undefined) {
|
|
157
|
+
obj.elasticsearch = exports.Elasticsearch.toJSON(message.elasticsearch);
|
|
158
|
+
}
|
|
159
|
+
if (message.openSearch !== undefined) {
|
|
160
|
+
obj.openSearch = exports.OpenSearch.toJSON(message.openSearch);
|
|
161
|
+
}
|
|
162
|
+
return obj;
|
|
163
|
+
},
|
|
164
|
+
create(base) {
|
|
165
|
+
return exports.NoSqlDatabase.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
166
|
+
},
|
|
167
|
+
fromPartial(object) {
|
|
168
|
+
const message = createBaseNoSqlDatabase();
|
|
169
|
+
message.cassandra = (object.cassandra !== undefined && object.cassandra !== null)
|
|
170
|
+
? exports.Cassandra.fromPartial(object.cassandra)
|
|
171
|
+
: undefined;
|
|
172
|
+
message.mongodb = (object.mongodb !== undefined && object.mongodb !== null)
|
|
173
|
+
? exports.MongoDB.fromPartial(object.mongodb)
|
|
174
|
+
: undefined;
|
|
175
|
+
message.dynamodb = (object.dynamodb !== undefined && object.dynamodb !== null)
|
|
176
|
+
? exports.DynamoDB.fromPartial(object.dynamodb)
|
|
177
|
+
: undefined;
|
|
178
|
+
message.cosmosdb = (object.cosmosdb !== undefined && object.cosmosdb !== null)
|
|
179
|
+
? exports.CosmosDB.fromPartial(object.cosmosdb)
|
|
180
|
+
: undefined;
|
|
181
|
+
message.redis = (object.redis !== undefined && object.redis !== null) ? exports.Redis.fromPartial(object.redis) : undefined;
|
|
182
|
+
message.valkey = (object.valkey !== undefined && object.valkey !== null)
|
|
183
|
+
? exports.Valkey.fromPartial(object.valkey)
|
|
184
|
+
: undefined;
|
|
185
|
+
message.elasticsearch = (object.elasticsearch !== undefined && object.elasticsearch !== null)
|
|
186
|
+
? exports.Elasticsearch.fromPartial(object.elasticsearch)
|
|
187
|
+
: undefined;
|
|
188
|
+
message.openSearch = (object.openSearch !== undefined && object.openSearch !== null)
|
|
189
|
+
? exports.OpenSearch.fromPartial(object.openSearch)
|
|
190
|
+
: undefined;
|
|
191
|
+
return message;
|
|
192
|
+
},
|
|
193
|
+
};
|
|
194
|
+
function createBaseCassandra() {
|
|
195
|
+
return {
|
|
196
|
+
contactPoints: "",
|
|
197
|
+
port: 0,
|
|
198
|
+
keyspace: "",
|
|
199
|
+
username: "",
|
|
200
|
+
password: "",
|
|
201
|
+
sslEnabled: false,
|
|
202
|
+
localDatacenter: "",
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
exports.Cassandra = {
|
|
206
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
207
|
+
if (message.contactPoints !== "") {
|
|
208
|
+
writer.uint32(10).string(message.contactPoints);
|
|
209
|
+
}
|
|
210
|
+
if (message.port !== 0) {
|
|
211
|
+
writer.uint32(16).int32(message.port);
|
|
212
|
+
}
|
|
213
|
+
if (message.keyspace !== "") {
|
|
214
|
+
writer.uint32(26).string(message.keyspace);
|
|
215
|
+
}
|
|
216
|
+
if (message.username !== "") {
|
|
217
|
+
writer.uint32(34).string(message.username);
|
|
218
|
+
}
|
|
219
|
+
if (message.password !== "") {
|
|
220
|
+
writer.uint32(42).string(message.password);
|
|
221
|
+
}
|
|
222
|
+
if (message.sslEnabled !== false) {
|
|
223
|
+
writer.uint32(48).bool(message.sslEnabled);
|
|
224
|
+
}
|
|
225
|
+
if (message.localDatacenter !== "") {
|
|
226
|
+
writer.uint32(58).string(message.localDatacenter);
|
|
227
|
+
}
|
|
228
|
+
return writer;
|
|
229
|
+
},
|
|
230
|
+
decode(input, length) {
|
|
231
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
232
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
233
|
+
const message = createBaseCassandra();
|
|
234
|
+
while (reader.pos < end) {
|
|
235
|
+
const tag = reader.uint32();
|
|
236
|
+
switch (tag >>> 3) {
|
|
237
|
+
case 1: {
|
|
238
|
+
if (tag !== 10) {
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
message.contactPoints = reader.string();
|
|
242
|
+
continue;
|
|
243
|
+
}
|
|
244
|
+
case 2: {
|
|
245
|
+
if (tag !== 16) {
|
|
246
|
+
break;
|
|
247
|
+
}
|
|
248
|
+
message.port = reader.int32();
|
|
249
|
+
continue;
|
|
250
|
+
}
|
|
251
|
+
case 3: {
|
|
252
|
+
if (tag !== 26) {
|
|
253
|
+
break;
|
|
254
|
+
}
|
|
255
|
+
message.keyspace = reader.string();
|
|
256
|
+
continue;
|
|
257
|
+
}
|
|
258
|
+
case 4: {
|
|
259
|
+
if (tag !== 34) {
|
|
260
|
+
break;
|
|
261
|
+
}
|
|
262
|
+
message.username = reader.string();
|
|
263
|
+
continue;
|
|
264
|
+
}
|
|
265
|
+
case 5: {
|
|
266
|
+
if (tag !== 42) {
|
|
267
|
+
break;
|
|
268
|
+
}
|
|
269
|
+
message.password = reader.string();
|
|
270
|
+
continue;
|
|
271
|
+
}
|
|
272
|
+
case 6: {
|
|
273
|
+
if (tag !== 48) {
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
message.sslEnabled = reader.bool();
|
|
277
|
+
continue;
|
|
278
|
+
}
|
|
279
|
+
case 7: {
|
|
280
|
+
if (tag !== 58) {
|
|
281
|
+
break;
|
|
282
|
+
}
|
|
283
|
+
message.localDatacenter = reader.string();
|
|
284
|
+
continue;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
288
|
+
break;
|
|
289
|
+
}
|
|
290
|
+
reader.skip(tag & 7);
|
|
291
|
+
}
|
|
292
|
+
return message;
|
|
293
|
+
},
|
|
294
|
+
fromJSON(object) {
|
|
295
|
+
return {
|
|
296
|
+
contactPoints: isSet(object.contactPoints) ? globalThis.String(object.contactPoints) : "",
|
|
297
|
+
port: isSet(object.port) ? globalThis.Number(object.port) : 0,
|
|
298
|
+
keyspace: isSet(object.keyspace) ? globalThis.String(object.keyspace) : "",
|
|
299
|
+
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
300
|
+
password: isSet(object.password) ? globalThis.String(object.password) : "",
|
|
301
|
+
sslEnabled: isSet(object.sslEnabled) ? globalThis.Boolean(object.sslEnabled) : false,
|
|
302
|
+
localDatacenter: isSet(object.localDatacenter) ? globalThis.String(object.localDatacenter) : "",
|
|
303
|
+
};
|
|
304
|
+
},
|
|
305
|
+
toJSON(message) {
|
|
306
|
+
const obj = {};
|
|
307
|
+
if (message.contactPoints !== "") {
|
|
308
|
+
obj.contactPoints = message.contactPoints;
|
|
309
|
+
}
|
|
310
|
+
if (message.port !== 0) {
|
|
311
|
+
obj.port = Math.round(message.port);
|
|
312
|
+
}
|
|
313
|
+
if (message.keyspace !== "") {
|
|
314
|
+
obj.keyspace = message.keyspace;
|
|
315
|
+
}
|
|
316
|
+
if (message.username !== "") {
|
|
317
|
+
obj.username = message.username;
|
|
318
|
+
}
|
|
319
|
+
if (message.password !== "") {
|
|
320
|
+
obj.password = message.password;
|
|
321
|
+
}
|
|
322
|
+
if (message.sslEnabled !== false) {
|
|
323
|
+
obj.sslEnabled = message.sslEnabled;
|
|
324
|
+
}
|
|
325
|
+
if (message.localDatacenter !== "") {
|
|
326
|
+
obj.localDatacenter = message.localDatacenter;
|
|
327
|
+
}
|
|
328
|
+
return obj;
|
|
329
|
+
},
|
|
330
|
+
create(base) {
|
|
331
|
+
return exports.Cassandra.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
332
|
+
},
|
|
333
|
+
fromPartial(object) {
|
|
334
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
335
|
+
const message = createBaseCassandra();
|
|
336
|
+
message.contactPoints = (_a = object.contactPoints) !== null && _a !== void 0 ? _a : "";
|
|
337
|
+
message.port = (_b = object.port) !== null && _b !== void 0 ? _b : 0;
|
|
338
|
+
message.keyspace = (_c = object.keyspace) !== null && _c !== void 0 ? _c : "";
|
|
339
|
+
message.username = (_d = object.username) !== null && _d !== void 0 ? _d : "";
|
|
340
|
+
message.password = (_e = object.password) !== null && _e !== void 0 ? _e : "";
|
|
341
|
+
message.sslEnabled = (_f = object.sslEnabled) !== null && _f !== void 0 ? _f : false;
|
|
342
|
+
message.localDatacenter = (_g = object.localDatacenter) !== null && _g !== void 0 ? _g : "";
|
|
343
|
+
return message;
|
|
344
|
+
},
|
|
345
|
+
};
|
|
346
|
+
function createBaseMongoDB() {
|
|
347
|
+
return { connectionString: "", database: "", collection: "" };
|
|
348
|
+
}
|
|
349
|
+
exports.MongoDB = {
|
|
350
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
351
|
+
if (message.connectionString !== "") {
|
|
352
|
+
writer.uint32(10).string(message.connectionString);
|
|
353
|
+
}
|
|
354
|
+
if (message.database !== "") {
|
|
355
|
+
writer.uint32(18).string(message.database);
|
|
356
|
+
}
|
|
357
|
+
if (message.collection !== "") {
|
|
358
|
+
writer.uint32(26).string(message.collection);
|
|
359
|
+
}
|
|
360
|
+
return writer;
|
|
361
|
+
},
|
|
362
|
+
decode(input, length) {
|
|
363
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
364
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
365
|
+
const message = createBaseMongoDB();
|
|
366
|
+
while (reader.pos < end) {
|
|
367
|
+
const tag = reader.uint32();
|
|
368
|
+
switch (tag >>> 3) {
|
|
369
|
+
case 1: {
|
|
370
|
+
if (tag !== 10) {
|
|
371
|
+
break;
|
|
372
|
+
}
|
|
373
|
+
message.connectionString = reader.string();
|
|
374
|
+
continue;
|
|
375
|
+
}
|
|
376
|
+
case 2: {
|
|
377
|
+
if (tag !== 18) {
|
|
378
|
+
break;
|
|
379
|
+
}
|
|
380
|
+
message.database = reader.string();
|
|
381
|
+
continue;
|
|
382
|
+
}
|
|
383
|
+
case 3: {
|
|
384
|
+
if (tag !== 26) {
|
|
385
|
+
break;
|
|
386
|
+
}
|
|
387
|
+
message.collection = reader.string();
|
|
388
|
+
continue;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
392
|
+
break;
|
|
393
|
+
}
|
|
394
|
+
reader.skip(tag & 7);
|
|
395
|
+
}
|
|
396
|
+
return message;
|
|
397
|
+
},
|
|
398
|
+
fromJSON(object) {
|
|
399
|
+
return {
|
|
400
|
+
connectionString: isSet(object.connectionString) ? globalThis.String(object.connectionString) : "",
|
|
401
|
+
database: isSet(object.database) ? globalThis.String(object.database) : "",
|
|
402
|
+
collection: isSet(object.collection) ? globalThis.String(object.collection) : "",
|
|
403
|
+
};
|
|
404
|
+
},
|
|
405
|
+
toJSON(message) {
|
|
406
|
+
const obj = {};
|
|
407
|
+
if (message.connectionString !== "") {
|
|
408
|
+
obj.connectionString = message.connectionString;
|
|
409
|
+
}
|
|
410
|
+
if (message.database !== "") {
|
|
411
|
+
obj.database = message.database;
|
|
412
|
+
}
|
|
413
|
+
if (message.collection !== "") {
|
|
414
|
+
obj.collection = message.collection;
|
|
415
|
+
}
|
|
416
|
+
return obj;
|
|
417
|
+
},
|
|
418
|
+
create(base) {
|
|
419
|
+
return exports.MongoDB.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
420
|
+
},
|
|
421
|
+
fromPartial(object) {
|
|
422
|
+
var _a, _b, _c;
|
|
423
|
+
const message = createBaseMongoDB();
|
|
424
|
+
message.connectionString = (_a = object.connectionString) !== null && _a !== void 0 ? _a : "";
|
|
425
|
+
message.database = (_b = object.database) !== null && _b !== void 0 ? _b : "";
|
|
426
|
+
message.collection = (_c = object.collection) !== null && _c !== void 0 ? _c : "";
|
|
427
|
+
return message;
|
|
428
|
+
},
|
|
429
|
+
};
|
|
430
|
+
function createBaseDynamoDB() {
|
|
431
|
+
return { region: "", table: "", credentials: undefined, useInstanceProfile: undefined };
|
|
432
|
+
}
|
|
433
|
+
exports.DynamoDB = {
|
|
434
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
435
|
+
if (message.region !== "") {
|
|
436
|
+
writer.uint32(10).string(message.region);
|
|
437
|
+
}
|
|
438
|
+
if (message.table !== "") {
|
|
439
|
+
writer.uint32(18).string(message.table);
|
|
440
|
+
}
|
|
441
|
+
if (message.credentials !== undefined) {
|
|
442
|
+
auth_pb_1.AwsCredentials.encode(message.credentials, writer.uint32(82).fork()).join();
|
|
443
|
+
}
|
|
444
|
+
if (message.useInstanceProfile !== undefined) {
|
|
445
|
+
writer.uint32(88).bool(message.useInstanceProfile);
|
|
446
|
+
}
|
|
447
|
+
return writer;
|
|
448
|
+
},
|
|
449
|
+
decode(input, length) {
|
|
450
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
451
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
452
|
+
const message = createBaseDynamoDB();
|
|
453
|
+
while (reader.pos < end) {
|
|
454
|
+
const tag = reader.uint32();
|
|
455
|
+
switch (tag >>> 3) {
|
|
456
|
+
case 1: {
|
|
457
|
+
if (tag !== 10) {
|
|
458
|
+
break;
|
|
459
|
+
}
|
|
460
|
+
message.region = reader.string();
|
|
461
|
+
continue;
|
|
462
|
+
}
|
|
463
|
+
case 2: {
|
|
464
|
+
if (tag !== 18) {
|
|
465
|
+
break;
|
|
466
|
+
}
|
|
467
|
+
message.table = reader.string();
|
|
468
|
+
continue;
|
|
469
|
+
}
|
|
470
|
+
case 10: {
|
|
471
|
+
if (tag !== 82) {
|
|
472
|
+
break;
|
|
473
|
+
}
|
|
474
|
+
message.credentials = auth_pb_1.AwsCredentials.decode(reader, reader.uint32());
|
|
475
|
+
continue;
|
|
476
|
+
}
|
|
477
|
+
case 11: {
|
|
478
|
+
if (tag !== 88) {
|
|
479
|
+
break;
|
|
480
|
+
}
|
|
481
|
+
message.useInstanceProfile = reader.bool();
|
|
482
|
+
continue;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
486
|
+
break;
|
|
487
|
+
}
|
|
488
|
+
reader.skip(tag & 7);
|
|
489
|
+
}
|
|
490
|
+
return message;
|
|
491
|
+
},
|
|
492
|
+
fromJSON(object) {
|
|
493
|
+
return {
|
|
494
|
+
region: isSet(object.region) ? globalThis.String(object.region) : "",
|
|
495
|
+
table: isSet(object.table) ? globalThis.String(object.table) : "",
|
|
496
|
+
credentials: isSet(object.credentials) ? auth_pb_1.AwsCredentials.fromJSON(object.credentials) : undefined,
|
|
497
|
+
useInstanceProfile: isSet(object.useInstanceProfile) ? globalThis.Boolean(object.useInstanceProfile) : undefined,
|
|
498
|
+
};
|
|
499
|
+
},
|
|
500
|
+
toJSON(message) {
|
|
501
|
+
const obj = {};
|
|
502
|
+
if (message.region !== "") {
|
|
503
|
+
obj.region = message.region;
|
|
504
|
+
}
|
|
505
|
+
if (message.table !== "") {
|
|
506
|
+
obj.table = message.table;
|
|
507
|
+
}
|
|
508
|
+
if (message.credentials !== undefined) {
|
|
509
|
+
obj.credentials = auth_pb_1.AwsCredentials.toJSON(message.credentials);
|
|
510
|
+
}
|
|
511
|
+
if (message.useInstanceProfile !== undefined) {
|
|
512
|
+
obj.useInstanceProfile = message.useInstanceProfile;
|
|
513
|
+
}
|
|
514
|
+
return obj;
|
|
515
|
+
},
|
|
516
|
+
create(base) {
|
|
517
|
+
return exports.DynamoDB.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
518
|
+
},
|
|
519
|
+
fromPartial(object) {
|
|
520
|
+
var _a, _b, _c;
|
|
521
|
+
const message = createBaseDynamoDB();
|
|
522
|
+
message.region = (_a = object.region) !== null && _a !== void 0 ? _a : "";
|
|
523
|
+
message.table = (_b = object.table) !== null && _b !== void 0 ? _b : "";
|
|
524
|
+
message.credentials = (object.credentials !== undefined && object.credentials !== null)
|
|
525
|
+
? auth_pb_1.AwsCredentials.fromPartial(object.credentials)
|
|
526
|
+
: undefined;
|
|
527
|
+
message.useInstanceProfile = (_c = object.useInstanceProfile) !== null && _c !== void 0 ? _c : undefined;
|
|
528
|
+
return message;
|
|
529
|
+
},
|
|
530
|
+
};
|
|
531
|
+
function createBaseCosmosDB() {
|
|
532
|
+
return { endpoint: "", key: "", database: "", container: "" };
|
|
533
|
+
}
|
|
534
|
+
exports.CosmosDB = {
|
|
535
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
536
|
+
if (message.endpoint !== "") {
|
|
537
|
+
writer.uint32(10).string(message.endpoint);
|
|
538
|
+
}
|
|
539
|
+
if (message.key !== "") {
|
|
540
|
+
writer.uint32(18).string(message.key);
|
|
541
|
+
}
|
|
542
|
+
if (message.database !== "") {
|
|
543
|
+
writer.uint32(26).string(message.database);
|
|
544
|
+
}
|
|
545
|
+
if (message.container !== "") {
|
|
546
|
+
writer.uint32(34).string(message.container);
|
|
547
|
+
}
|
|
548
|
+
return writer;
|
|
549
|
+
},
|
|
550
|
+
decode(input, length) {
|
|
551
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
552
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
553
|
+
const message = createBaseCosmosDB();
|
|
554
|
+
while (reader.pos < end) {
|
|
555
|
+
const tag = reader.uint32();
|
|
556
|
+
switch (tag >>> 3) {
|
|
557
|
+
case 1: {
|
|
558
|
+
if (tag !== 10) {
|
|
559
|
+
break;
|
|
560
|
+
}
|
|
561
|
+
message.endpoint = reader.string();
|
|
562
|
+
continue;
|
|
563
|
+
}
|
|
564
|
+
case 2: {
|
|
565
|
+
if (tag !== 18) {
|
|
566
|
+
break;
|
|
567
|
+
}
|
|
568
|
+
message.key = reader.string();
|
|
569
|
+
continue;
|
|
570
|
+
}
|
|
571
|
+
case 3: {
|
|
572
|
+
if (tag !== 26) {
|
|
573
|
+
break;
|
|
574
|
+
}
|
|
575
|
+
message.database = reader.string();
|
|
576
|
+
continue;
|
|
577
|
+
}
|
|
578
|
+
case 4: {
|
|
579
|
+
if (tag !== 34) {
|
|
580
|
+
break;
|
|
581
|
+
}
|
|
582
|
+
message.container = reader.string();
|
|
583
|
+
continue;
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
587
|
+
break;
|
|
588
|
+
}
|
|
589
|
+
reader.skip(tag & 7);
|
|
590
|
+
}
|
|
591
|
+
return message;
|
|
592
|
+
},
|
|
593
|
+
fromJSON(object) {
|
|
594
|
+
return {
|
|
595
|
+
endpoint: isSet(object.endpoint) ? globalThis.String(object.endpoint) : "",
|
|
596
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
597
|
+
database: isSet(object.database) ? globalThis.String(object.database) : "",
|
|
598
|
+
container: isSet(object.container) ? globalThis.String(object.container) : "",
|
|
599
|
+
};
|
|
600
|
+
},
|
|
601
|
+
toJSON(message) {
|
|
602
|
+
const obj = {};
|
|
603
|
+
if (message.endpoint !== "") {
|
|
604
|
+
obj.endpoint = message.endpoint;
|
|
605
|
+
}
|
|
606
|
+
if (message.key !== "") {
|
|
607
|
+
obj.key = message.key;
|
|
608
|
+
}
|
|
609
|
+
if (message.database !== "") {
|
|
610
|
+
obj.database = message.database;
|
|
611
|
+
}
|
|
612
|
+
if (message.container !== "") {
|
|
613
|
+
obj.container = message.container;
|
|
614
|
+
}
|
|
615
|
+
return obj;
|
|
616
|
+
},
|
|
617
|
+
create(base) {
|
|
618
|
+
return exports.CosmosDB.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
619
|
+
},
|
|
620
|
+
fromPartial(object) {
|
|
621
|
+
var _a, _b, _c, _d;
|
|
622
|
+
const message = createBaseCosmosDB();
|
|
623
|
+
message.endpoint = (_a = object.endpoint) !== null && _a !== void 0 ? _a : "";
|
|
624
|
+
message.key = (_b = object.key) !== null && _b !== void 0 ? _b : "";
|
|
625
|
+
message.database = (_c = object.database) !== null && _c !== void 0 ? _c : "";
|
|
626
|
+
message.container = (_d = object.container) !== null && _d !== void 0 ? _d : "";
|
|
627
|
+
return message;
|
|
628
|
+
},
|
|
629
|
+
};
|
|
630
|
+
function createBaseRedis() {
|
|
631
|
+
return { hosts: [], port: 0, username: "", password: "" };
|
|
632
|
+
}
|
|
633
|
+
exports.Redis = {
|
|
634
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
635
|
+
for (const v of message.hosts) {
|
|
636
|
+
writer.uint32(10).string(v);
|
|
637
|
+
}
|
|
638
|
+
if (message.port !== 0) {
|
|
639
|
+
writer.uint32(16).int32(message.port);
|
|
640
|
+
}
|
|
641
|
+
if (message.username !== "") {
|
|
642
|
+
writer.uint32(26).string(message.username);
|
|
643
|
+
}
|
|
644
|
+
if (message.password !== "") {
|
|
645
|
+
writer.uint32(34).string(message.password);
|
|
646
|
+
}
|
|
647
|
+
return writer;
|
|
648
|
+
},
|
|
649
|
+
decode(input, length) {
|
|
650
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
651
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
652
|
+
const message = createBaseRedis();
|
|
653
|
+
while (reader.pos < end) {
|
|
654
|
+
const tag = reader.uint32();
|
|
655
|
+
switch (tag >>> 3) {
|
|
656
|
+
case 1: {
|
|
657
|
+
if (tag !== 10) {
|
|
658
|
+
break;
|
|
659
|
+
}
|
|
660
|
+
message.hosts.push(reader.string());
|
|
661
|
+
continue;
|
|
662
|
+
}
|
|
663
|
+
case 2: {
|
|
664
|
+
if (tag !== 16) {
|
|
665
|
+
break;
|
|
666
|
+
}
|
|
667
|
+
message.port = reader.int32();
|
|
668
|
+
continue;
|
|
669
|
+
}
|
|
670
|
+
case 3: {
|
|
671
|
+
if (tag !== 26) {
|
|
672
|
+
break;
|
|
673
|
+
}
|
|
674
|
+
message.username = reader.string();
|
|
675
|
+
continue;
|
|
676
|
+
}
|
|
677
|
+
case 4: {
|
|
678
|
+
if (tag !== 34) {
|
|
679
|
+
break;
|
|
680
|
+
}
|
|
681
|
+
message.password = reader.string();
|
|
682
|
+
continue;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
686
|
+
break;
|
|
687
|
+
}
|
|
688
|
+
reader.skip(tag & 7);
|
|
689
|
+
}
|
|
690
|
+
return message;
|
|
691
|
+
},
|
|
692
|
+
fromJSON(object) {
|
|
693
|
+
return {
|
|
694
|
+
hosts: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.hosts) ? object.hosts.map((e) => globalThis.String(e)) : [],
|
|
695
|
+
port: isSet(object.port) ? globalThis.Number(object.port) : 0,
|
|
696
|
+
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
697
|
+
password: isSet(object.password) ? globalThis.String(object.password) : "",
|
|
698
|
+
};
|
|
699
|
+
},
|
|
700
|
+
toJSON(message) {
|
|
701
|
+
var _a;
|
|
702
|
+
const obj = {};
|
|
703
|
+
if ((_a = message.hosts) === null || _a === void 0 ? void 0 : _a.length) {
|
|
704
|
+
obj.hosts = message.hosts;
|
|
705
|
+
}
|
|
706
|
+
if (message.port !== 0) {
|
|
707
|
+
obj.port = Math.round(message.port);
|
|
708
|
+
}
|
|
709
|
+
if (message.username !== "") {
|
|
710
|
+
obj.username = message.username;
|
|
711
|
+
}
|
|
712
|
+
if (message.password !== "") {
|
|
713
|
+
obj.password = message.password;
|
|
714
|
+
}
|
|
715
|
+
return obj;
|
|
716
|
+
},
|
|
717
|
+
create(base) {
|
|
718
|
+
return exports.Redis.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
719
|
+
},
|
|
720
|
+
fromPartial(object) {
|
|
721
|
+
var _a, _b, _c, _d;
|
|
722
|
+
const message = createBaseRedis();
|
|
723
|
+
message.hosts = ((_a = object.hosts) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
724
|
+
message.port = (_b = object.port) !== null && _b !== void 0 ? _b : 0;
|
|
725
|
+
message.username = (_c = object.username) !== null && _c !== void 0 ? _c : "";
|
|
726
|
+
message.password = (_d = object.password) !== null && _d !== void 0 ? _d : "";
|
|
727
|
+
return message;
|
|
728
|
+
},
|
|
729
|
+
};
|
|
730
|
+
function createBaseValkey() {
|
|
731
|
+
return { hosts: [], port: 0, username: "", password: "" };
|
|
732
|
+
}
|
|
733
|
+
exports.Valkey = {
|
|
734
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
735
|
+
for (const v of message.hosts) {
|
|
736
|
+
writer.uint32(10).string(v);
|
|
737
|
+
}
|
|
738
|
+
if (message.port !== 0) {
|
|
739
|
+
writer.uint32(16).int32(message.port);
|
|
740
|
+
}
|
|
741
|
+
if (message.username !== "") {
|
|
742
|
+
writer.uint32(26).string(message.username);
|
|
743
|
+
}
|
|
744
|
+
if (message.password !== "") {
|
|
745
|
+
writer.uint32(34).string(message.password);
|
|
746
|
+
}
|
|
747
|
+
return writer;
|
|
748
|
+
},
|
|
749
|
+
decode(input, length) {
|
|
750
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
751
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
752
|
+
const message = createBaseValkey();
|
|
753
|
+
while (reader.pos < end) {
|
|
754
|
+
const tag = reader.uint32();
|
|
755
|
+
switch (tag >>> 3) {
|
|
756
|
+
case 1: {
|
|
757
|
+
if (tag !== 10) {
|
|
758
|
+
break;
|
|
759
|
+
}
|
|
760
|
+
message.hosts.push(reader.string());
|
|
761
|
+
continue;
|
|
762
|
+
}
|
|
763
|
+
case 2: {
|
|
764
|
+
if (tag !== 16) {
|
|
765
|
+
break;
|
|
766
|
+
}
|
|
767
|
+
message.port = reader.int32();
|
|
768
|
+
continue;
|
|
769
|
+
}
|
|
770
|
+
case 3: {
|
|
771
|
+
if (tag !== 26) {
|
|
772
|
+
break;
|
|
773
|
+
}
|
|
774
|
+
message.username = reader.string();
|
|
775
|
+
continue;
|
|
776
|
+
}
|
|
777
|
+
case 4: {
|
|
778
|
+
if (tag !== 34) {
|
|
779
|
+
break;
|
|
780
|
+
}
|
|
781
|
+
message.password = reader.string();
|
|
782
|
+
continue;
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
786
|
+
break;
|
|
787
|
+
}
|
|
788
|
+
reader.skip(tag & 7);
|
|
789
|
+
}
|
|
790
|
+
return message;
|
|
791
|
+
},
|
|
792
|
+
fromJSON(object) {
|
|
793
|
+
return {
|
|
794
|
+
hosts: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.hosts) ? object.hosts.map((e) => globalThis.String(e)) : [],
|
|
795
|
+
port: isSet(object.port) ? globalThis.Number(object.port) : 0,
|
|
796
|
+
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
797
|
+
password: isSet(object.password) ? globalThis.String(object.password) : "",
|
|
798
|
+
};
|
|
799
|
+
},
|
|
800
|
+
toJSON(message) {
|
|
801
|
+
var _a;
|
|
802
|
+
const obj = {};
|
|
803
|
+
if ((_a = message.hosts) === null || _a === void 0 ? void 0 : _a.length) {
|
|
804
|
+
obj.hosts = message.hosts;
|
|
805
|
+
}
|
|
806
|
+
if (message.port !== 0) {
|
|
807
|
+
obj.port = Math.round(message.port);
|
|
808
|
+
}
|
|
809
|
+
if (message.username !== "") {
|
|
810
|
+
obj.username = message.username;
|
|
811
|
+
}
|
|
812
|
+
if (message.password !== "") {
|
|
813
|
+
obj.password = message.password;
|
|
814
|
+
}
|
|
815
|
+
return obj;
|
|
816
|
+
},
|
|
817
|
+
create(base) {
|
|
818
|
+
return exports.Valkey.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
819
|
+
},
|
|
820
|
+
fromPartial(object) {
|
|
821
|
+
var _a, _b, _c, _d;
|
|
822
|
+
const message = createBaseValkey();
|
|
823
|
+
message.hosts = ((_a = object.hosts) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
824
|
+
message.port = (_b = object.port) !== null && _b !== void 0 ? _b : 0;
|
|
825
|
+
message.username = (_c = object.username) !== null && _c !== void 0 ? _c : "";
|
|
826
|
+
message.password = (_d = object.password) !== null && _d !== void 0 ? _d : "";
|
|
827
|
+
return message;
|
|
828
|
+
},
|
|
829
|
+
};
|
|
830
|
+
function createBaseElasticsearch() {
|
|
831
|
+
return { hosts: "", index: "", username: "", password: "" };
|
|
832
|
+
}
|
|
833
|
+
exports.Elasticsearch = {
|
|
834
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
835
|
+
if (message.hosts !== "") {
|
|
836
|
+
writer.uint32(10).string(message.hosts);
|
|
837
|
+
}
|
|
838
|
+
if (message.index !== "") {
|
|
839
|
+
writer.uint32(18).string(message.index);
|
|
840
|
+
}
|
|
841
|
+
if (message.username !== "") {
|
|
842
|
+
writer.uint32(26).string(message.username);
|
|
843
|
+
}
|
|
844
|
+
if (message.password !== "") {
|
|
845
|
+
writer.uint32(34).string(message.password);
|
|
846
|
+
}
|
|
847
|
+
return writer;
|
|
848
|
+
},
|
|
849
|
+
decode(input, length) {
|
|
850
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
851
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
852
|
+
const message = createBaseElasticsearch();
|
|
853
|
+
while (reader.pos < end) {
|
|
854
|
+
const tag = reader.uint32();
|
|
855
|
+
switch (tag >>> 3) {
|
|
856
|
+
case 1: {
|
|
857
|
+
if (tag !== 10) {
|
|
858
|
+
break;
|
|
859
|
+
}
|
|
860
|
+
message.hosts = reader.string();
|
|
861
|
+
continue;
|
|
862
|
+
}
|
|
863
|
+
case 2: {
|
|
864
|
+
if (tag !== 18) {
|
|
865
|
+
break;
|
|
866
|
+
}
|
|
867
|
+
message.index = reader.string();
|
|
868
|
+
continue;
|
|
869
|
+
}
|
|
870
|
+
case 3: {
|
|
871
|
+
if (tag !== 26) {
|
|
872
|
+
break;
|
|
873
|
+
}
|
|
874
|
+
message.username = reader.string();
|
|
875
|
+
continue;
|
|
876
|
+
}
|
|
877
|
+
case 4: {
|
|
878
|
+
if (tag !== 34) {
|
|
879
|
+
break;
|
|
880
|
+
}
|
|
881
|
+
message.password = reader.string();
|
|
882
|
+
continue;
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
886
|
+
break;
|
|
887
|
+
}
|
|
888
|
+
reader.skip(tag & 7);
|
|
889
|
+
}
|
|
890
|
+
return message;
|
|
891
|
+
},
|
|
892
|
+
fromJSON(object) {
|
|
893
|
+
return {
|
|
894
|
+
hosts: isSet(object.hosts) ? globalThis.String(object.hosts) : "",
|
|
895
|
+
index: isSet(object.index) ? globalThis.String(object.index) : "",
|
|
896
|
+
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
897
|
+
password: isSet(object.password) ? globalThis.String(object.password) : "",
|
|
898
|
+
};
|
|
899
|
+
},
|
|
900
|
+
toJSON(message) {
|
|
901
|
+
const obj = {};
|
|
902
|
+
if (message.hosts !== "") {
|
|
903
|
+
obj.hosts = message.hosts;
|
|
904
|
+
}
|
|
905
|
+
if (message.index !== "") {
|
|
906
|
+
obj.index = message.index;
|
|
907
|
+
}
|
|
908
|
+
if (message.username !== "") {
|
|
909
|
+
obj.username = message.username;
|
|
910
|
+
}
|
|
911
|
+
if (message.password !== "") {
|
|
912
|
+
obj.password = message.password;
|
|
913
|
+
}
|
|
914
|
+
return obj;
|
|
915
|
+
},
|
|
916
|
+
create(base) {
|
|
917
|
+
return exports.Elasticsearch.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
918
|
+
},
|
|
919
|
+
fromPartial(object) {
|
|
920
|
+
var _a, _b, _c, _d;
|
|
921
|
+
const message = createBaseElasticsearch();
|
|
922
|
+
message.hosts = (_a = object.hosts) !== null && _a !== void 0 ? _a : "";
|
|
923
|
+
message.index = (_b = object.index) !== null && _b !== void 0 ? _b : "";
|
|
924
|
+
message.username = (_c = object.username) !== null && _c !== void 0 ? _c : "";
|
|
925
|
+
message.password = (_d = object.password) !== null && _d !== void 0 ? _d : "";
|
|
926
|
+
return message;
|
|
927
|
+
},
|
|
928
|
+
};
|
|
929
|
+
function createBaseOpenSearch() {
|
|
930
|
+
return { hosts: "", index: "", username: "", password: "" };
|
|
931
|
+
}
|
|
932
|
+
exports.OpenSearch = {
|
|
933
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
934
|
+
if (message.hosts !== "") {
|
|
935
|
+
writer.uint32(10).string(message.hosts);
|
|
936
|
+
}
|
|
937
|
+
if (message.index !== "") {
|
|
938
|
+
writer.uint32(18).string(message.index);
|
|
939
|
+
}
|
|
940
|
+
if (message.username !== "") {
|
|
941
|
+
writer.uint32(26).string(message.username);
|
|
942
|
+
}
|
|
943
|
+
if (message.password !== "") {
|
|
944
|
+
writer.uint32(34).string(message.password);
|
|
945
|
+
}
|
|
946
|
+
return writer;
|
|
947
|
+
},
|
|
948
|
+
decode(input, length) {
|
|
949
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
950
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
951
|
+
const message = createBaseOpenSearch();
|
|
952
|
+
while (reader.pos < end) {
|
|
953
|
+
const tag = reader.uint32();
|
|
954
|
+
switch (tag >>> 3) {
|
|
955
|
+
case 1: {
|
|
956
|
+
if (tag !== 10) {
|
|
957
|
+
break;
|
|
958
|
+
}
|
|
959
|
+
message.hosts = reader.string();
|
|
960
|
+
continue;
|
|
961
|
+
}
|
|
962
|
+
case 2: {
|
|
963
|
+
if (tag !== 18) {
|
|
964
|
+
break;
|
|
965
|
+
}
|
|
966
|
+
message.index = reader.string();
|
|
967
|
+
continue;
|
|
968
|
+
}
|
|
969
|
+
case 3: {
|
|
970
|
+
if (tag !== 26) {
|
|
971
|
+
break;
|
|
972
|
+
}
|
|
973
|
+
message.username = reader.string();
|
|
974
|
+
continue;
|
|
975
|
+
}
|
|
976
|
+
case 4: {
|
|
977
|
+
if (tag !== 34) {
|
|
978
|
+
break;
|
|
979
|
+
}
|
|
980
|
+
message.password = reader.string();
|
|
981
|
+
continue;
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
985
|
+
break;
|
|
986
|
+
}
|
|
987
|
+
reader.skip(tag & 7);
|
|
988
|
+
}
|
|
989
|
+
return message;
|
|
990
|
+
},
|
|
991
|
+
fromJSON(object) {
|
|
992
|
+
return {
|
|
993
|
+
hosts: isSet(object.hosts) ? globalThis.String(object.hosts) : "",
|
|
994
|
+
index: isSet(object.index) ? globalThis.String(object.index) : "",
|
|
995
|
+
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
996
|
+
password: isSet(object.password) ? globalThis.String(object.password) : "",
|
|
997
|
+
};
|
|
998
|
+
},
|
|
999
|
+
toJSON(message) {
|
|
1000
|
+
const obj = {};
|
|
1001
|
+
if (message.hosts !== "") {
|
|
1002
|
+
obj.hosts = message.hosts;
|
|
1003
|
+
}
|
|
1004
|
+
if (message.index !== "") {
|
|
1005
|
+
obj.index = message.index;
|
|
1006
|
+
}
|
|
1007
|
+
if (message.username !== "") {
|
|
1008
|
+
obj.username = message.username;
|
|
1009
|
+
}
|
|
1010
|
+
if (message.password !== "") {
|
|
1011
|
+
obj.password = message.password;
|
|
1012
|
+
}
|
|
1013
|
+
return obj;
|
|
1014
|
+
},
|
|
1015
|
+
create(base) {
|
|
1016
|
+
return exports.OpenSearch.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1017
|
+
},
|
|
1018
|
+
fromPartial(object) {
|
|
1019
|
+
var _a, _b, _c, _d;
|
|
1020
|
+
const message = createBaseOpenSearch();
|
|
1021
|
+
message.hosts = (_a = object.hosts) !== null && _a !== void 0 ? _a : "";
|
|
1022
|
+
message.index = (_b = object.index) !== null && _b !== void 0 ? _b : "";
|
|
1023
|
+
message.username = (_c = object.username) !== null && _c !== void 0 ? _c : "";
|
|
1024
|
+
message.password = (_d = object.password) !== null && _d !== void 0 ? _d : "";
|
|
1025
|
+
return message;
|
|
1026
|
+
},
|
|
1027
|
+
};
|
|
1028
|
+
function isSet(value) {
|
|
1029
|
+
return value !== null && value !== undefined;
|
|
1030
|
+
}
|