@nacos-group/sdk-proto 1.0.0-beta.2
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/package.json +21 -0
- package/src/ai/agentcapabilities.ts +104 -0
- package/src/ai/agentcard.ts +292 -0
- package/src/ai/agentcarddetailinfo.ts +308 -0
- package/src/ai/agentendpoint.ts +134 -0
- package/src/ai/agentextension.ts +152 -0
- package/src/ai/agentinterface.ts +93 -0
- package/src/ai/agentprovider.ts +75 -0
- package/src/ai/agentskill.ts +109 -0
- package/src/ai/ai_request.ts +608 -0
- package/src/ai/ai_response.ts +466 -0
- package/src/ai/argument.ts +58 -0
- package/src/ai/encryptobject.ts +142 -0
- package/src/ai/frontendpointconfig.ts +93 -0
- package/src/ai/icon.ts +87 -0
- package/src/ai/input.ts +120 -0
- package/src/ai/keyvalueinput.ts +200 -0
- package/src/ai/mcpendpointinfo.ts +87 -0
- package/src/ai/mcpendpointspec.ts +140 -0
- package/src/ai/mcpresourcespecification.ts +165 -0
- package/src/ai/mcpserverbasicinfo.ts +268 -0
- package/src/ai/mcpserverdetailinfo.ts +316 -0
- package/src/ai/mcpserverremoteserviceconfig.ts +88 -0
- package/src/ai/mcpserviceref.ts +87 -0
- package/src/ai/mcptool.ts +289 -0
- package/src/ai/mcptoolannotations.ts +93 -0
- package/src/ai/mcptoolmeta.ts +209 -0
- package/src/ai/mcptoolspecification.ts +250 -0
- package/src/ai/package.ts +142 -0
- package/src/ai/prompt.ts +96 -0
- package/src/ai/promptvariable.ts +81 -0
- package/src/ai/repository.ts +87 -0
- package/src/ai/securityscheme.ts +142 -0
- package/src/ai/serverversiondetail.ts +89 -0
- package/src/common/common.ts +1166 -0
- package/src/config/config_request.ts +887 -0
- package/src/config/config_response.ts +781 -0
- package/src/google/protobuf/struct.ts +415 -0
- package/src/index.ts +42 -0
- package/src/lock/lock.ts +264 -0
- package/src/naming/instance.ts +199 -0
- package/src/naming/naming_request.ts +768 -0
- package/src/naming/naming_response.ts +574 -0
- package/src/naming/serviceinfo.ts +130 -0
- package/tsconfig.json +11 -0
|
@@ -0,0 +1,887 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.11.8
|
|
4
|
+
// protoc v5.28.3
|
|
5
|
+
// source: config/config_request.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
|
|
9
|
+
/** Auto-generated by proto-generator. DO NOT EDIT. */
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* metadata.type = "ClientConfigMetricRequest"
|
|
13
|
+
* Flattened from: ClientConfigMetricRequest -> ServerRequest -> Request
|
|
14
|
+
*/
|
|
15
|
+
export interface ClientConfigMetricRequest {
|
|
16
|
+
requestId: string;
|
|
17
|
+
metricsKeys: ClientConfigMetricRequestMetricsKey[];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* metadata.type = "ClientConfigMetricRequestMetricsKey"
|
|
22
|
+
* Flattened from: MetricsKey
|
|
23
|
+
*/
|
|
24
|
+
export interface ClientConfigMetricRequestMetricsKey {
|
|
25
|
+
type: string;
|
|
26
|
+
key: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* metadata.type = "ConfigBatchListenRequest"
|
|
31
|
+
* Flattened from: ConfigBatchListenRequest -> AbstractConfigRequest -> Request
|
|
32
|
+
*/
|
|
33
|
+
export interface ConfigBatchListenRequest {
|
|
34
|
+
requestId: string;
|
|
35
|
+
dataId: string;
|
|
36
|
+
group: string;
|
|
37
|
+
tenant: string;
|
|
38
|
+
listen: boolean;
|
|
39
|
+
configListenContexts: ConfigBatchListenRequestConfigListenContext[];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* metadata.type = "ConfigBatchListenRequestConfigListenContext"
|
|
44
|
+
* Flattened from: ConfigListenContext
|
|
45
|
+
*/
|
|
46
|
+
export interface ConfigBatchListenRequestConfigListenContext {
|
|
47
|
+
group: string;
|
|
48
|
+
md5: string;
|
|
49
|
+
dataId: string;
|
|
50
|
+
tenant: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* metadata.type = "ConfigChangeClusterSyncRequest"
|
|
55
|
+
* Flattened from: ConfigChangeClusterSyncRequest -> AbstractConfigRequest -> Request
|
|
56
|
+
*/
|
|
57
|
+
export interface ConfigChangeClusterSyncRequest {
|
|
58
|
+
requestId: string;
|
|
59
|
+
dataId: string;
|
|
60
|
+
group: string;
|
|
61
|
+
tenant: string;
|
|
62
|
+
lastModified: number;
|
|
63
|
+
grayName: string;
|
|
64
|
+
isBeta: boolean;
|
|
65
|
+
tag: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* metadata.type = "ConfigChangeNotifyRequest"
|
|
70
|
+
* Flattened from: ConfigChangeNotifyRequest -> ServerRequest -> Request
|
|
71
|
+
*/
|
|
72
|
+
export interface ConfigChangeNotifyRequest {
|
|
73
|
+
requestId: string;
|
|
74
|
+
dataId: string;
|
|
75
|
+
group: string;
|
|
76
|
+
tenant: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* metadata.type = "ConfigFuzzyWatchChangeNotifyRequest"
|
|
81
|
+
* Flattened from: ConfigFuzzyWatchChangeNotifyRequest -> AbstractFuzzyWatchNotifyRequest -> ServerRequest -> Request
|
|
82
|
+
*/
|
|
83
|
+
export interface ConfigFuzzyWatchChangeNotifyRequest {
|
|
84
|
+
requestId: string;
|
|
85
|
+
groupKey: string;
|
|
86
|
+
changeType: string;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* metadata.type = "ConfigFuzzyWatchRequest"
|
|
91
|
+
* Flattened from: ConfigFuzzyWatchRequest -> Request
|
|
92
|
+
*/
|
|
93
|
+
export interface ConfigFuzzyWatchRequest {
|
|
94
|
+
requestId: string;
|
|
95
|
+
groupKeyPattern: string;
|
|
96
|
+
receivedGroupKeys: string[];
|
|
97
|
+
watchType: string;
|
|
98
|
+
isInitializing: boolean;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* metadata.type = "ConfigFuzzyWatchSyncRequest"
|
|
103
|
+
* Flattened from: ConfigFuzzyWatchSyncRequest -> AbstractFuzzyWatchNotifyRequest -> ServerRequest -> Request
|
|
104
|
+
*/
|
|
105
|
+
export interface ConfigFuzzyWatchSyncRequest {
|
|
106
|
+
requestId: string;
|
|
107
|
+
groupKeyPattern: string;
|
|
108
|
+
contexts: ConfigFuzzyWatchSyncRequestContext[];
|
|
109
|
+
syncType: string;
|
|
110
|
+
totalBatch: number;
|
|
111
|
+
currentBatch: number;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* metadata.type = "ConfigFuzzyWatchSyncRequestContext"
|
|
116
|
+
* Flattened from: Context
|
|
117
|
+
*/
|
|
118
|
+
export interface ConfigFuzzyWatchSyncRequestContext {
|
|
119
|
+
groupKey: string;
|
|
120
|
+
changedType: string;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* metadata.type = "ConfigPublishRequest"
|
|
125
|
+
* Flattened from: ConfigPublishRequest -> AbstractConfigRequest -> Request
|
|
126
|
+
*/
|
|
127
|
+
export interface ConfigPublishRequest {
|
|
128
|
+
requestId: string;
|
|
129
|
+
dataId: string;
|
|
130
|
+
group: string;
|
|
131
|
+
tenant: string;
|
|
132
|
+
content: string;
|
|
133
|
+
casMd5: string;
|
|
134
|
+
additionMap: { [key: string]: string };
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export interface ConfigPublishRequest_AdditionMapEntry {
|
|
138
|
+
key: string;
|
|
139
|
+
value: string;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* metadata.type = "ConfigQueryRequest"
|
|
144
|
+
* Flattened from: ConfigQueryRequest -> AbstractConfigRequest -> Request
|
|
145
|
+
*/
|
|
146
|
+
export interface ConfigQueryRequest {
|
|
147
|
+
requestId: string;
|
|
148
|
+
dataId: string;
|
|
149
|
+
group: string;
|
|
150
|
+
tenant: string;
|
|
151
|
+
tag: string;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* metadata.type = "ConfigRemoveRequest"
|
|
156
|
+
* Flattened from: ConfigRemoveRequest -> AbstractConfigRequest -> Request
|
|
157
|
+
*/
|
|
158
|
+
export interface ConfigRemoveRequest {
|
|
159
|
+
requestId: string;
|
|
160
|
+
dataId: string;
|
|
161
|
+
group: string;
|
|
162
|
+
tenant: string;
|
|
163
|
+
tag: string;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
function createBaseClientConfigMetricRequest(): ClientConfigMetricRequest {
|
|
167
|
+
return { requestId: "", metricsKeys: [] };
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export const ClientConfigMetricRequest: MessageFns<ClientConfigMetricRequest> = {
|
|
171
|
+
fromJSON(object: any): ClientConfigMetricRequest {
|
|
172
|
+
return {
|
|
173
|
+
requestId: isSet(object.requestId) ? globalThis.String(object.requestId) : "",
|
|
174
|
+
metricsKeys: globalThis.Array.isArray(object?.metricsKeys)
|
|
175
|
+
? object.metricsKeys.map((e: any) => ClientConfigMetricRequestMetricsKey.fromJSON(e))
|
|
176
|
+
: [],
|
|
177
|
+
};
|
|
178
|
+
},
|
|
179
|
+
|
|
180
|
+
toJSON(message: ClientConfigMetricRequest): unknown {
|
|
181
|
+
const obj: any = {};
|
|
182
|
+
if (message.requestId !== "") {
|
|
183
|
+
obj.requestId = message.requestId;
|
|
184
|
+
}
|
|
185
|
+
if (message.metricsKeys?.length) {
|
|
186
|
+
obj.metricsKeys = message.metricsKeys.map((e) => ClientConfigMetricRequestMetricsKey.toJSON(e));
|
|
187
|
+
}
|
|
188
|
+
return obj;
|
|
189
|
+
},
|
|
190
|
+
|
|
191
|
+
create<I extends Exact<DeepPartial<ClientConfigMetricRequest>, I>>(base?: I): ClientConfigMetricRequest {
|
|
192
|
+
return ClientConfigMetricRequest.fromPartial(base ?? ({} as any));
|
|
193
|
+
},
|
|
194
|
+
fromPartial<I extends Exact<DeepPartial<ClientConfigMetricRequest>, I>>(object: I): ClientConfigMetricRequest {
|
|
195
|
+
const message = createBaseClientConfigMetricRequest();
|
|
196
|
+
message.requestId = object.requestId ?? "";
|
|
197
|
+
message.metricsKeys = object.metricsKeys?.map((e) => ClientConfigMetricRequestMetricsKey.fromPartial(e)) || [];
|
|
198
|
+
return message;
|
|
199
|
+
},
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
function createBaseClientConfigMetricRequestMetricsKey(): ClientConfigMetricRequestMetricsKey {
|
|
203
|
+
return { type: "", key: "" };
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export const ClientConfigMetricRequestMetricsKey: MessageFns<ClientConfigMetricRequestMetricsKey> = {
|
|
207
|
+
fromJSON(object: any): ClientConfigMetricRequestMetricsKey {
|
|
208
|
+
return {
|
|
209
|
+
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
210
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
211
|
+
};
|
|
212
|
+
},
|
|
213
|
+
|
|
214
|
+
toJSON(message: ClientConfigMetricRequestMetricsKey): unknown {
|
|
215
|
+
const obj: any = {};
|
|
216
|
+
if (message.type !== "") {
|
|
217
|
+
obj.type = message.type;
|
|
218
|
+
}
|
|
219
|
+
if (message.key !== "") {
|
|
220
|
+
obj.key = message.key;
|
|
221
|
+
}
|
|
222
|
+
return obj;
|
|
223
|
+
},
|
|
224
|
+
|
|
225
|
+
create<I extends Exact<DeepPartial<ClientConfigMetricRequestMetricsKey>, I>>(
|
|
226
|
+
base?: I,
|
|
227
|
+
): ClientConfigMetricRequestMetricsKey {
|
|
228
|
+
return ClientConfigMetricRequestMetricsKey.fromPartial(base ?? ({} as any));
|
|
229
|
+
},
|
|
230
|
+
fromPartial<I extends Exact<DeepPartial<ClientConfigMetricRequestMetricsKey>, I>>(
|
|
231
|
+
object: I,
|
|
232
|
+
): ClientConfigMetricRequestMetricsKey {
|
|
233
|
+
const message = createBaseClientConfigMetricRequestMetricsKey();
|
|
234
|
+
message.type = object.type ?? "";
|
|
235
|
+
message.key = object.key ?? "";
|
|
236
|
+
return message;
|
|
237
|
+
},
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
function createBaseConfigBatchListenRequest(): ConfigBatchListenRequest {
|
|
241
|
+
return { requestId: "", dataId: "", group: "", tenant: "", listen: false, configListenContexts: [] };
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export const ConfigBatchListenRequest: MessageFns<ConfigBatchListenRequest> = {
|
|
245
|
+
fromJSON(object: any): ConfigBatchListenRequest {
|
|
246
|
+
return {
|
|
247
|
+
requestId: isSet(object.requestId) ? globalThis.String(object.requestId) : "",
|
|
248
|
+
dataId: isSet(object.dataId) ? globalThis.String(object.dataId) : "",
|
|
249
|
+
group: isSet(object.group) ? globalThis.String(object.group) : "",
|
|
250
|
+
tenant: isSet(object.tenant) ? globalThis.String(object.tenant) : "",
|
|
251
|
+
listen: isSet(object.listen) ? globalThis.Boolean(object.listen) : false,
|
|
252
|
+
configListenContexts: globalThis.Array.isArray(object?.configListenContexts)
|
|
253
|
+
? object.configListenContexts.map((e: any) => ConfigBatchListenRequestConfigListenContext.fromJSON(e))
|
|
254
|
+
: [],
|
|
255
|
+
};
|
|
256
|
+
},
|
|
257
|
+
|
|
258
|
+
toJSON(message: ConfigBatchListenRequest): unknown {
|
|
259
|
+
const obj: any = {};
|
|
260
|
+
if (message.requestId !== "") {
|
|
261
|
+
obj.requestId = message.requestId;
|
|
262
|
+
}
|
|
263
|
+
if (message.dataId !== "") {
|
|
264
|
+
obj.dataId = message.dataId;
|
|
265
|
+
}
|
|
266
|
+
if (message.group !== "") {
|
|
267
|
+
obj.group = message.group;
|
|
268
|
+
}
|
|
269
|
+
if (message.tenant !== "") {
|
|
270
|
+
obj.tenant = message.tenant;
|
|
271
|
+
}
|
|
272
|
+
if (message.listen !== false) {
|
|
273
|
+
obj.listen = message.listen;
|
|
274
|
+
}
|
|
275
|
+
if (message.configListenContexts?.length) {
|
|
276
|
+
obj.configListenContexts = message.configListenContexts.map((e) =>
|
|
277
|
+
ConfigBatchListenRequestConfigListenContext.toJSON(e)
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
return obj;
|
|
281
|
+
},
|
|
282
|
+
|
|
283
|
+
create<I extends Exact<DeepPartial<ConfigBatchListenRequest>, I>>(base?: I): ConfigBatchListenRequest {
|
|
284
|
+
return ConfigBatchListenRequest.fromPartial(base ?? ({} as any));
|
|
285
|
+
},
|
|
286
|
+
fromPartial<I extends Exact<DeepPartial<ConfigBatchListenRequest>, I>>(object: I): ConfigBatchListenRequest {
|
|
287
|
+
const message = createBaseConfigBatchListenRequest();
|
|
288
|
+
message.requestId = object.requestId ?? "";
|
|
289
|
+
message.dataId = object.dataId ?? "";
|
|
290
|
+
message.group = object.group ?? "";
|
|
291
|
+
message.tenant = object.tenant ?? "";
|
|
292
|
+
message.listen = object.listen ?? false;
|
|
293
|
+
message.configListenContexts =
|
|
294
|
+
object.configListenContexts?.map((e) => ConfigBatchListenRequestConfigListenContext.fromPartial(e)) || [];
|
|
295
|
+
return message;
|
|
296
|
+
},
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
function createBaseConfigBatchListenRequestConfigListenContext(): ConfigBatchListenRequestConfigListenContext {
|
|
300
|
+
return { group: "", md5: "", dataId: "", tenant: "" };
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export const ConfigBatchListenRequestConfigListenContext: MessageFns<ConfigBatchListenRequestConfigListenContext> = {
|
|
304
|
+
fromJSON(object: any): ConfigBatchListenRequestConfigListenContext {
|
|
305
|
+
return {
|
|
306
|
+
group: isSet(object.group) ? globalThis.String(object.group) : "",
|
|
307
|
+
md5: isSet(object.md5) ? globalThis.String(object.md5) : "",
|
|
308
|
+
dataId: isSet(object.dataId) ? globalThis.String(object.dataId) : "",
|
|
309
|
+
tenant: isSet(object.tenant) ? globalThis.String(object.tenant) : "",
|
|
310
|
+
};
|
|
311
|
+
},
|
|
312
|
+
|
|
313
|
+
toJSON(message: ConfigBatchListenRequestConfigListenContext): unknown {
|
|
314
|
+
const obj: any = {};
|
|
315
|
+
if (message.group !== "") {
|
|
316
|
+
obj.group = message.group;
|
|
317
|
+
}
|
|
318
|
+
if (message.md5 !== "") {
|
|
319
|
+
obj.md5 = message.md5;
|
|
320
|
+
}
|
|
321
|
+
if (message.dataId !== "") {
|
|
322
|
+
obj.dataId = message.dataId;
|
|
323
|
+
}
|
|
324
|
+
if (message.tenant !== "") {
|
|
325
|
+
obj.tenant = message.tenant;
|
|
326
|
+
}
|
|
327
|
+
return obj;
|
|
328
|
+
},
|
|
329
|
+
|
|
330
|
+
create<I extends Exact<DeepPartial<ConfigBatchListenRequestConfigListenContext>, I>>(
|
|
331
|
+
base?: I,
|
|
332
|
+
): ConfigBatchListenRequestConfigListenContext {
|
|
333
|
+
return ConfigBatchListenRequestConfigListenContext.fromPartial(base ?? ({} as any));
|
|
334
|
+
},
|
|
335
|
+
fromPartial<I extends Exact<DeepPartial<ConfigBatchListenRequestConfigListenContext>, I>>(
|
|
336
|
+
object: I,
|
|
337
|
+
): ConfigBatchListenRequestConfigListenContext {
|
|
338
|
+
const message = createBaseConfigBatchListenRequestConfigListenContext();
|
|
339
|
+
message.group = object.group ?? "";
|
|
340
|
+
message.md5 = object.md5 ?? "";
|
|
341
|
+
message.dataId = object.dataId ?? "";
|
|
342
|
+
message.tenant = object.tenant ?? "";
|
|
343
|
+
return message;
|
|
344
|
+
},
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
function createBaseConfigChangeClusterSyncRequest(): ConfigChangeClusterSyncRequest {
|
|
348
|
+
return { requestId: "", dataId: "", group: "", tenant: "", lastModified: 0, grayName: "", isBeta: false, tag: "" };
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export const ConfigChangeClusterSyncRequest: MessageFns<ConfigChangeClusterSyncRequest> = {
|
|
352
|
+
fromJSON(object: any): ConfigChangeClusterSyncRequest {
|
|
353
|
+
return {
|
|
354
|
+
requestId: isSet(object.requestId) ? globalThis.String(object.requestId) : "",
|
|
355
|
+
dataId: isSet(object.dataId) ? globalThis.String(object.dataId) : "",
|
|
356
|
+
group: isSet(object.group) ? globalThis.String(object.group) : "",
|
|
357
|
+
tenant: isSet(object.tenant) ? globalThis.String(object.tenant) : "",
|
|
358
|
+
lastModified: isSet(object.lastModified) ? globalThis.Number(object.lastModified) : 0,
|
|
359
|
+
grayName: isSet(object.grayName) ? globalThis.String(object.grayName) : "",
|
|
360
|
+
isBeta: isSet(object.isBeta) ? globalThis.Boolean(object.isBeta) : false,
|
|
361
|
+
tag: isSet(object.tag) ? globalThis.String(object.tag) : "",
|
|
362
|
+
};
|
|
363
|
+
},
|
|
364
|
+
|
|
365
|
+
toJSON(message: ConfigChangeClusterSyncRequest): unknown {
|
|
366
|
+
const obj: any = {};
|
|
367
|
+
if (message.requestId !== "") {
|
|
368
|
+
obj.requestId = message.requestId;
|
|
369
|
+
}
|
|
370
|
+
if (message.dataId !== "") {
|
|
371
|
+
obj.dataId = message.dataId;
|
|
372
|
+
}
|
|
373
|
+
if (message.group !== "") {
|
|
374
|
+
obj.group = message.group;
|
|
375
|
+
}
|
|
376
|
+
if (message.tenant !== "") {
|
|
377
|
+
obj.tenant = message.tenant;
|
|
378
|
+
}
|
|
379
|
+
if (message.lastModified !== 0) {
|
|
380
|
+
obj.lastModified = Math.round(message.lastModified);
|
|
381
|
+
}
|
|
382
|
+
if (message.grayName !== "") {
|
|
383
|
+
obj.grayName = message.grayName;
|
|
384
|
+
}
|
|
385
|
+
if (message.isBeta !== false) {
|
|
386
|
+
obj.isBeta = message.isBeta;
|
|
387
|
+
}
|
|
388
|
+
if (message.tag !== "") {
|
|
389
|
+
obj.tag = message.tag;
|
|
390
|
+
}
|
|
391
|
+
return obj;
|
|
392
|
+
},
|
|
393
|
+
|
|
394
|
+
create<I extends Exact<DeepPartial<ConfigChangeClusterSyncRequest>, I>>(base?: I): ConfigChangeClusterSyncRequest {
|
|
395
|
+
return ConfigChangeClusterSyncRequest.fromPartial(base ?? ({} as any));
|
|
396
|
+
},
|
|
397
|
+
fromPartial<I extends Exact<DeepPartial<ConfigChangeClusterSyncRequest>, I>>(
|
|
398
|
+
object: I,
|
|
399
|
+
): ConfigChangeClusterSyncRequest {
|
|
400
|
+
const message = createBaseConfigChangeClusterSyncRequest();
|
|
401
|
+
message.requestId = object.requestId ?? "";
|
|
402
|
+
message.dataId = object.dataId ?? "";
|
|
403
|
+
message.group = object.group ?? "";
|
|
404
|
+
message.tenant = object.tenant ?? "";
|
|
405
|
+
message.lastModified = object.lastModified ?? 0;
|
|
406
|
+
message.grayName = object.grayName ?? "";
|
|
407
|
+
message.isBeta = object.isBeta ?? false;
|
|
408
|
+
message.tag = object.tag ?? "";
|
|
409
|
+
return message;
|
|
410
|
+
},
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
function createBaseConfigChangeNotifyRequest(): ConfigChangeNotifyRequest {
|
|
414
|
+
return { requestId: "", dataId: "", group: "", tenant: "" };
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
export const ConfigChangeNotifyRequest: MessageFns<ConfigChangeNotifyRequest> = {
|
|
418
|
+
fromJSON(object: any): ConfigChangeNotifyRequest {
|
|
419
|
+
return {
|
|
420
|
+
requestId: isSet(object.requestId) ? globalThis.String(object.requestId) : "",
|
|
421
|
+
dataId: isSet(object.dataId) ? globalThis.String(object.dataId) : "",
|
|
422
|
+
group: isSet(object.group) ? globalThis.String(object.group) : "",
|
|
423
|
+
tenant: isSet(object.tenant) ? globalThis.String(object.tenant) : "",
|
|
424
|
+
};
|
|
425
|
+
},
|
|
426
|
+
|
|
427
|
+
toJSON(message: ConfigChangeNotifyRequest): unknown {
|
|
428
|
+
const obj: any = {};
|
|
429
|
+
if (message.requestId !== "") {
|
|
430
|
+
obj.requestId = message.requestId;
|
|
431
|
+
}
|
|
432
|
+
if (message.dataId !== "") {
|
|
433
|
+
obj.dataId = message.dataId;
|
|
434
|
+
}
|
|
435
|
+
if (message.group !== "") {
|
|
436
|
+
obj.group = message.group;
|
|
437
|
+
}
|
|
438
|
+
if (message.tenant !== "") {
|
|
439
|
+
obj.tenant = message.tenant;
|
|
440
|
+
}
|
|
441
|
+
return obj;
|
|
442
|
+
},
|
|
443
|
+
|
|
444
|
+
create<I extends Exact<DeepPartial<ConfigChangeNotifyRequest>, I>>(base?: I): ConfigChangeNotifyRequest {
|
|
445
|
+
return ConfigChangeNotifyRequest.fromPartial(base ?? ({} as any));
|
|
446
|
+
},
|
|
447
|
+
fromPartial<I extends Exact<DeepPartial<ConfigChangeNotifyRequest>, I>>(object: I): ConfigChangeNotifyRequest {
|
|
448
|
+
const message = createBaseConfigChangeNotifyRequest();
|
|
449
|
+
message.requestId = object.requestId ?? "";
|
|
450
|
+
message.dataId = object.dataId ?? "";
|
|
451
|
+
message.group = object.group ?? "";
|
|
452
|
+
message.tenant = object.tenant ?? "";
|
|
453
|
+
return message;
|
|
454
|
+
},
|
|
455
|
+
};
|
|
456
|
+
|
|
457
|
+
function createBaseConfigFuzzyWatchChangeNotifyRequest(): ConfigFuzzyWatchChangeNotifyRequest {
|
|
458
|
+
return { requestId: "", groupKey: "", changeType: "" };
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
export const ConfigFuzzyWatchChangeNotifyRequest: MessageFns<ConfigFuzzyWatchChangeNotifyRequest> = {
|
|
462
|
+
fromJSON(object: any): ConfigFuzzyWatchChangeNotifyRequest {
|
|
463
|
+
return {
|
|
464
|
+
requestId: isSet(object.requestId) ? globalThis.String(object.requestId) : "",
|
|
465
|
+
groupKey: isSet(object.groupKey) ? globalThis.String(object.groupKey) : "",
|
|
466
|
+
changeType: isSet(object.changeType) ? globalThis.String(object.changeType) : "",
|
|
467
|
+
};
|
|
468
|
+
},
|
|
469
|
+
|
|
470
|
+
toJSON(message: ConfigFuzzyWatchChangeNotifyRequest): unknown {
|
|
471
|
+
const obj: any = {};
|
|
472
|
+
if (message.requestId !== "") {
|
|
473
|
+
obj.requestId = message.requestId;
|
|
474
|
+
}
|
|
475
|
+
if (message.groupKey !== "") {
|
|
476
|
+
obj.groupKey = message.groupKey;
|
|
477
|
+
}
|
|
478
|
+
if (message.changeType !== "") {
|
|
479
|
+
obj.changeType = message.changeType;
|
|
480
|
+
}
|
|
481
|
+
return obj;
|
|
482
|
+
},
|
|
483
|
+
|
|
484
|
+
create<I extends Exact<DeepPartial<ConfigFuzzyWatchChangeNotifyRequest>, I>>(
|
|
485
|
+
base?: I,
|
|
486
|
+
): ConfigFuzzyWatchChangeNotifyRequest {
|
|
487
|
+
return ConfigFuzzyWatchChangeNotifyRequest.fromPartial(base ?? ({} as any));
|
|
488
|
+
},
|
|
489
|
+
fromPartial<I extends Exact<DeepPartial<ConfigFuzzyWatchChangeNotifyRequest>, I>>(
|
|
490
|
+
object: I,
|
|
491
|
+
): ConfigFuzzyWatchChangeNotifyRequest {
|
|
492
|
+
const message = createBaseConfigFuzzyWatchChangeNotifyRequest();
|
|
493
|
+
message.requestId = object.requestId ?? "";
|
|
494
|
+
message.groupKey = object.groupKey ?? "";
|
|
495
|
+
message.changeType = object.changeType ?? "";
|
|
496
|
+
return message;
|
|
497
|
+
},
|
|
498
|
+
};
|
|
499
|
+
|
|
500
|
+
function createBaseConfigFuzzyWatchRequest(): ConfigFuzzyWatchRequest {
|
|
501
|
+
return { requestId: "", groupKeyPattern: "", receivedGroupKeys: [], watchType: "", isInitializing: false };
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
export const ConfigFuzzyWatchRequest: MessageFns<ConfigFuzzyWatchRequest> = {
|
|
505
|
+
fromJSON(object: any): ConfigFuzzyWatchRequest {
|
|
506
|
+
return {
|
|
507
|
+
requestId: isSet(object.requestId) ? globalThis.String(object.requestId) : "",
|
|
508
|
+
groupKeyPattern: isSet(object.groupKeyPattern) ? globalThis.String(object.groupKeyPattern) : "",
|
|
509
|
+
receivedGroupKeys: globalThis.Array.isArray(object?.receivedGroupKeys)
|
|
510
|
+
? object.receivedGroupKeys.map((e: any) => globalThis.String(e))
|
|
511
|
+
: [],
|
|
512
|
+
watchType: isSet(object.watchType) ? globalThis.String(object.watchType) : "",
|
|
513
|
+
isInitializing: isSet(object.isInitializing) ? globalThis.Boolean(object.isInitializing) : false,
|
|
514
|
+
};
|
|
515
|
+
},
|
|
516
|
+
|
|
517
|
+
toJSON(message: ConfigFuzzyWatchRequest): unknown {
|
|
518
|
+
const obj: any = {};
|
|
519
|
+
if (message.requestId !== "") {
|
|
520
|
+
obj.requestId = message.requestId;
|
|
521
|
+
}
|
|
522
|
+
if (message.groupKeyPattern !== "") {
|
|
523
|
+
obj.groupKeyPattern = message.groupKeyPattern;
|
|
524
|
+
}
|
|
525
|
+
if (message.receivedGroupKeys?.length) {
|
|
526
|
+
obj.receivedGroupKeys = message.receivedGroupKeys;
|
|
527
|
+
}
|
|
528
|
+
if (message.watchType !== "") {
|
|
529
|
+
obj.watchType = message.watchType;
|
|
530
|
+
}
|
|
531
|
+
if (message.isInitializing !== false) {
|
|
532
|
+
obj.isInitializing = message.isInitializing;
|
|
533
|
+
}
|
|
534
|
+
return obj;
|
|
535
|
+
},
|
|
536
|
+
|
|
537
|
+
create<I extends Exact<DeepPartial<ConfigFuzzyWatchRequest>, I>>(base?: I): ConfigFuzzyWatchRequest {
|
|
538
|
+
return ConfigFuzzyWatchRequest.fromPartial(base ?? ({} as any));
|
|
539
|
+
},
|
|
540
|
+
fromPartial<I extends Exact<DeepPartial<ConfigFuzzyWatchRequest>, I>>(object: I): ConfigFuzzyWatchRequest {
|
|
541
|
+
const message = createBaseConfigFuzzyWatchRequest();
|
|
542
|
+
message.requestId = object.requestId ?? "";
|
|
543
|
+
message.groupKeyPattern = object.groupKeyPattern ?? "";
|
|
544
|
+
message.receivedGroupKeys = object.receivedGroupKeys?.map((e) => e) || [];
|
|
545
|
+
message.watchType = object.watchType ?? "";
|
|
546
|
+
message.isInitializing = object.isInitializing ?? false;
|
|
547
|
+
return message;
|
|
548
|
+
},
|
|
549
|
+
};
|
|
550
|
+
|
|
551
|
+
function createBaseConfigFuzzyWatchSyncRequest(): ConfigFuzzyWatchSyncRequest {
|
|
552
|
+
return { requestId: "", groupKeyPattern: "", contexts: [], syncType: "", totalBatch: 0, currentBatch: 0 };
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
export const ConfigFuzzyWatchSyncRequest: MessageFns<ConfigFuzzyWatchSyncRequest> = {
|
|
556
|
+
fromJSON(object: any): ConfigFuzzyWatchSyncRequest {
|
|
557
|
+
return {
|
|
558
|
+
requestId: isSet(object.requestId) ? globalThis.String(object.requestId) : "",
|
|
559
|
+
groupKeyPattern: isSet(object.groupKeyPattern) ? globalThis.String(object.groupKeyPattern) : "",
|
|
560
|
+
contexts: globalThis.Array.isArray(object?.contexts)
|
|
561
|
+
? object.contexts.map((e: any) => ConfigFuzzyWatchSyncRequestContext.fromJSON(e))
|
|
562
|
+
: [],
|
|
563
|
+
syncType: isSet(object.syncType) ? globalThis.String(object.syncType) : "",
|
|
564
|
+
totalBatch: isSet(object.totalBatch) ? globalThis.Number(object.totalBatch) : 0,
|
|
565
|
+
currentBatch: isSet(object.currentBatch) ? globalThis.Number(object.currentBatch) : 0,
|
|
566
|
+
};
|
|
567
|
+
},
|
|
568
|
+
|
|
569
|
+
toJSON(message: ConfigFuzzyWatchSyncRequest): unknown {
|
|
570
|
+
const obj: any = {};
|
|
571
|
+
if (message.requestId !== "") {
|
|
572
|
+
obj.requestId = message.requestId;
|
|
573
|
+
}
|
|
574
|
+
if (message.groupKeyPattern !== "") {
|
|
575
|
+
obj.groupKeyPattern = message.groupKeyPattern;
|
|
576
|
+
}
|
|
577
|
+
if (message.contexts?.length) {
|
|
578
|
+
obj.contexts = message.contexts.map((e) => ConfigFuzzyWatchSyncRequestContext.toJSON(e));
|
|
579
|
+
}
|
|
580
|
+
if (message.syncType !== "") {
|
|
581
|
+
obj.syncType = message.syncType;
|
|
582
|
+
}
|
|
583
|
+
if (message.totalBatch !== 0) {
|
|
584
|
+
obj.totalBatch = Math.round(message.totalBatch);
|
|
585
|
+
}
|
|
586
|
+
if (message.currentBatch !== 0) {
|
|
587
|
+
obj.currentBatch = Math.round(message.currentBatch);
|
|
588
|
+
}
|
|
589
|
+
return obj;
|
|
590
|
+
},
|
|
591
|
+
|
|
592
|
+
create<I extends Exact<DeepPartial<ConfigFuzzyWatchSyncRequest>, I>>(base?: I): ConfigFuzzyWatchSyncRequest {
|
|
593
|
+
return ConfigFuzzyWatchSyncRequest.fromPartial(base ?? ({} as any));
|
|
594
|
+
},
|
|
595
|
+
fromPartial<I extends Exact<DeepPartial<ConfigFuzzyWatchSyncRequest>, I>>(object: I): ConfigFuzzyWatchSyncRequest {
|
|
596
|
+
const message = createBaseConfigFuzzyWatchSyncRequest();
|
|
597
|
+
message.requestId = object.requestId ?? "";
|
|
598
|
+
message.groupKeyPattern = object.groupKeyPattern ?? "";
|
|
599
|
+
message.contexts = object.contexts?.map((e) => ConfigFuzzyWatchSyncRequestContext.fromPartial(e)) || [];
|
|
600
|
+
message.syncType = object.syncType ?? "";
|
|
601
|
+
message.totalBatch = object.totalBatch ?? 0;
|
|
602
|
+
message.currentBatch = object.currentBatch ?? 0;
|
|
603
|
+
return message;
|
|
604
|
+
},
|
|
605
|
+
};
|
|
606
|
+
|
|
607
|
+
function createBaseConfigFuzzyWatchSyncRequestContext(): ConfigFuzzyWatchSyncRequestContext {
|
|
608
|
+
return { groupKey: "", changedType: "" };
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
export const ConfigFuzzyWatchSyncRequestContext: MessageFns<ConfigFuzzyWatchSyncRequestContext> = {
|
|
612
|
+
fromJSON(object: any): ConfigFuzzyWatchSyncRequestContext {
|
|
613
|
+
return {
|
|
614
|
+
groupKey: isSet(object.groupKey) ? globalThis.String(object.groupKey) : "",
|
|
615
|
+
changedType: isSet(object.changedType) ? globalThis.String(object.changedType) : "",
|
|
616
|
+
};
|
|
617
|
+
},
|
|
618
|
+
|
|
619
|
+
toJSON(message: ConfigFuzzyWatchSyncRequestContext): unknown {
|
|
620
|
+
const obj: any = {};
|
|
621
|
+
if (message.groupKey !== "") {
|
|
622
|
+
obj.groupKey = message.groupKey;
|
|
623
|
+
}
|
|
624
|
+
if (message.changedType !== "") {
|
|
625
|
+
obj.changedType = message.changedType;
|
|
626
|
+
}
|
|
627
|
+
return obj;
|
|
628
|
+
},
|
|
629
|
+
|
|
630
|
+
create<I extends Exact<DeepPartial<ConfigFuzzyWatchSyncRequestContext>, I>>(
|
|
631
|
+
base?: I,
|
|
632
|
+
): ConfigFuzzyWatchSyncRequestContext {
|
|
633
|
+
return ConfigFuzzyWatchSyncRequestContext.fromPartial(base ?? ({} as any));
|
|
634
|
+
},
|
|
635
|
+
fromPartial<I extends Exact<DeepPartial<ConfigFuzzyWatchSyncRequestContext>, I>>(
|
|
636
|
+
object: I,
|
|
637
|
+
): ConfigFuzzyWatchSyncRequestContext {
|
|
638
|
+
const message = createBaseConfigFuzzyWatchSyncRequestContext();
|
|
639
|
+
message.groupKey = object.groupKey ?? "";
|
|
640
|
+
message.changedType = object.changedType ?? "";
|
|
641
|
+
return message;
|
|
642
|
+
},
|
|
643
|
+
};
|
|
644
|
+
|
|
645
|
+
function createBaseConfigPublishRequest(): ConfigPublishRequest {
|
|
646
|
+
return { requestId: "", dataId: "", group: "", tenant: "", content: "", casMd5: "", additionMap: {} };
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
export const ConfigPublishRequest: MessageFns<ConfigPublishRequest> = {
|
|
650
|
+
fromJSON(object: any): ConfigPublishRequest {
|
|
651
|
+
return {
|
|
652
|
+
requestId: isSet(object.requestId) ? globalThis.String(object.requestId) : "",
|
|
653
|
+
dataId: isSet(object.dataId) ? globalThis.String(object.dataId) : "",
|
|
654
|
+
group: isSet(object.group) ? globalThis.String(object.group) : "",
|
|
655
|
+
tenant: isSet(object.tenant) ? globalThis.String(object.tenant) : "",
|
|
656
|
+
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
657
|
+
casMd5: isSet(object.casMd5) ? globalThis.String(object.casMd5) : "",
|
|
658
|
+
additionMap: isObject(object.additionMap)
|
|
659
|
+
? (globalThis.Object.entries(object.additionMap) as [string, any][]).reduce(
|
|
660
|
+
(acc: { [key: string]: string }, [key, value]: [string, any]) => {
|
|
661
|
+
acc[key] = globalThis.String(value);
|
|
662
|
+
return acc;
|
|
663
|
+
},
|
|
664
|
+
{},
|
|
665
|
+
)
|
|
666
|
+
: {},
|
|
667
|
+
};
|
|
668
|
+
},
|
|
669
|
+
|
|
670
|
+
toJSON(message: ConfigPublishRequest): unknown {
|
|
671
|
+
const obj: any = {};
|
|
672
|
+
if (message.requestId !== "") {
|
|
673
|
+
obj.requestId = message.requestId;
|
|
674
|
+
}
|
|
675
|
+
if (message.dataId !== "") {
|
|
676
|
+
obj.dataId = message.dataId;
|
|
677
|
+
}
|
|
678
|
+
if (message.group !== "") {
|
|
679
|
+
obj.group = message.group;
|
|
680
|
+
}
|
|
681
|
+
if (message.tenant !== "") {
|
|
682
|
+
obj.tenant = message.tenant;
|
|
683
|
+
}
|
|
684
|
+
if (message.content !== "") {
|
|
685
|
+
obj.content = message.content;
|
|
686
|
+
}
|
|
687
|
+
if (message.casMd5 !== "") {
|
|
688
|
+
obj.casMd5 = message.casMd5;
|
|
689
|
+
}
|
|
690
|
+
if (message.additionMap) {
|
|
691
|
+
const entries = globalThis.Object.entries(message.additionMap) as [string, string][];
|
|
692
|
+
if (entries.length > 0) {
|
|
693
|
+
obj.additionMap = {};
|
|
694
|
+
entries.forEach(([k, v]) => {
|
|
695
|
+
obj.additionMap[k] = v;
|
|
696
|
+
});
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
return obj;
|
|
700
|
+
},
|
|
701
|
+
|
|
702
|
+
create<I extends Exact<DeepPartial<ConfigPublishRequest>, I>>(base?: I): ConfigPublishRequest {
|
|
703
|
+
return ConfigPublishRequest.fromPartial(base ?? ({} as any));
|
|
704
|
+
},
|
|
705
|
+
fromPartial<I extends Exact<DeepPartial<ConfigPublishRequest>, I>>(object: I): ConfigPublishRequest {
|
|
706
|
+
const message = createBaseConfigPublishRequest();
|
|
707
|
+
message.requestId = object.requestId ?? "";
|
|
708
|
+
message.dataId = object.dataId ?? "";
|
|
709
|
+
message.group = object.group ?? "";
|
|
710
|
+
message.tenant = object.tenant ?? "";
|
|
711
|
+
message.content = object.content ?? "";
|
|
712
|
+
message.casMd5 = object.casMd5 ?? "";
|
|
713
|
+
message.additionMap = (globalThis.Object.entries(object.additionMap ?? {}) as [string, string][]).reduce(
|
|
714
|
+
(acc: { [key: string]: string }, [key, value]: [string, string]) => {
|
|
715
|
+
if (value !== undefined) {
|
|
716
|
+
acc[key] = globalThis.String(value);
|
|
717
|
+
}
|
|
718
|
+
return acc;
|
|
719
|
+
},
|
|
720
|
+
{},
|
|
721
|
+
);
|
|
722
|
+
return message;
|
|
723
|
+
},
|
|
724
|
+
};
|
|
725
|
+
|
|
726
|
+
function createBaseConfigPublishRequest_AdditionMapEntry(): ConfigPublishRequest_AdditionMapEntry {
|
|
727
|
+
return { key: "", value: "" };
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
export const ConfigPublishRequest_AdditionMapEntry: MessageFns<ConfigPublishRequest_AdditionMapEntry> = {
|
|
731
|
+
fromJSON(object: any): ConfigPublishRequest_AdditionMapEntry {
|
|
732
|
+
return {
|
|
733
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
734
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
735
|
+
};
|
|
736
|
+
},
|
|
737
|
+
|
|
738
|
+
toJSON(message: ConfigPublishRequest_AdditionMapEntry): unknown {
|
|
739
|
+
const obj: any = {};
|
|
740
|
+
if (message.key !== "") {
|
|
741
|
+
obj.key = message.key;
|
|
742
|
+
}
|
|
743
|
+
if (message.value !== "") {
|
|
744
|
+
obj.value = message.value;
|
|
745
|
+
}
|
|
746
|
+
return obj;
|
|
747
|
+
},
|
|
748
|
+
|
|
749
|
+
create<I extends Exact<DeepPartial<ConfigPublishRequest_AdditionMapEntry>, I>>(
|
|
750
|
+
base?: I,
|
|
751
|
+
): ConfigPublishRequest_AdditionMapEntry {
|
|
752
|
+
return ConfigPublishRequest_AdditionMapEntry.fromPartial(base ?? ({} as any));
|
|
753
|
+
},
|
|
754
|
+
fromPartial<I extends Exact<DeepPartial<ConfigPublishRequest_AdditionMapEntry>, I>>(
|
|
755
|
+
object: I,
|
|
756
|
+
): ConfigPublishRequest_AdditionMapEntry {
|
|
757
|
+
const message = createBaseConfigPublishRequest_AdditionMapEntry();
|
|
758
|
+
message.key = object.key ?? "";
|
|
759
|
+
message.value = object.value ?? "";
|
|
760
|
+
return message;
|
|
761
|
+
},
|
|
762
|
+
};
|
|
763
|
+
|
|
764
|
+
function createBaseConfigQueryRequest(): ConfigQueryRequest {
|
|
765
|
+
return { requestId: "", dataId: "", group: "", tenant: "", tag: "" };
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
export const ConfigQueryRequest: MessageFns<ConfigQueryRequest> = {
|
|
769
|
+
fromJSON(object: any): ConfigQueryRequest {
|
|
770
|
+
return {
|
|
771
|
+
requestId: isSet(object.requestId) ? globalThis.String(object.requestId) : "",
|
|
772
|
+
dataId: isSet(object.dataId) ? globalThis.String(object.dataId) : "",
|
|
773
|
+
group: isSet(object.group) ? globalThis.String(object.group) : "",
|
|
774
|
+
tenant: isSet(object.tenant) ? globalThis.String(object.tenant) : "",
|
|
775
|
+
tag: isSet(object.tag) ? globalThis.String(object.tag) : "",
|
|
776
|
+
};
|
|
777
|
+
},
|
|
778
|
+
|
|
779
|
+
toJSON(message: ConfigQueryRequest): unknown {
|
|
780
|
+
const obj: any = {};
|
|
781
|
+
if (message.requestId !== "") {
|
|
782
|
+
obj.requestId = message.requestId;
|
|
783
|
+
}
|
|
784
|
+
if (message.dataId !== "") {
|
|
785
|
+
obj.dataId = message.dataId;
|
|
786
|
+
}
|
|
787
|
+
if (message.group !== "") {
|
|
788
|
+
obj.group = message.group;
|
|
789
|
+
}
|
|
790
|
+
if (message.tenant !== "") {
|
|
791
|
+
obj.tenant = message.tenant;
|
|
792
|
+
}
|
|
793
|
+
if (message.tag !== "") {
|
|
794
|
+
obj.tag = message.tag;
|
|
795
|
+
}
|
|
796
|
+
return obj;
|
|
797
|
+
},
|
|
798
|
+
|
|
799
|
+
create<I extends Exact<DeepPartial<ConfigQueryRequest>, I>>(base?: I): ConfigQueryRequest {
|
|
800
|
+
return ConfigQueryRequest.fromPartial(base ?? ({} as any));
|
|
801
|
+
},
|
|
802
|
+
fromPartial<I extends Exact<DeepPartial<ConfigQueryRequest>, I>>(object: I): ConfigQueryRequest {
|
|
803
|
+
const message = createBaseConfigQueryRequest();
|
|
804
|
+
message.requestId = object.requestId ?? "";
|
|
805
|
+
message.dataId = object.dataId ?? "";
|
|
806
|
+
message.group = object.group ?? "";
|
|
807
|
+
message.tenant = object.tenant ?? "";
|
|
808
|
+
message.tag = object.tag ?? "";
|
|
809
|
+
return message;
|
|
810
|
+
},
|
|
811
|
+
};
|
|
812
|
+
|
|
813
|
+
function createBaseConfigRemoveRequest(): ConfigRemoveRequest {
|
|
814
|
+
return { requestId: "", dataId: "", group: "", tenant: "", tag: "" };
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
export const ConfigRemoveRequest: MessageFns<ConfigRemoveRequest> = {
|
|
818
|
+
fromJSON(object: any): ConfigRemoveRequest {
|
|
819
|
+
return {
|
|
820
|
+
requestId: isSet(object.requestId) ? globalThis.String(object.requestId) : "",
|
|
821
|
+
dataId: isSet(object.dataId) ? globalThis.String(object.dataId) : "",
|
|
822
|
+
group: isSet(object.group) ? globalThis.String(object.group) : "",
|
|
823
|
+
tenant: isSet(object.tenant) ? globalThis.String(object.tenant) : "",
|
|
824
|
+
tag: isSet(object.tag) ? globalThis.String(object.tag) : "",
|
|
825
|
+
};
|
|
826
|
+
},
|
|
827
|
+
|
|
828
|
+
toJSON(message: ConfigRemoveRequest): unknown {
|
|
829
|
+
const obj: any = {};
|
|
830
|
+
if (message.requestId !== "") {
|
|
831
|
+
obj.requestId = message.requestId;
|
|
832
|
+
}
|
|
833
|
+
if (message.dataId !== "") {
|
|
834
|
+
obj.dataId = message.dataId;
|
|
835
|
+
}
|
|
836
|
+
if (message.group !== "") {
|
|
837
|
+
obj.group = message.group;
|
|
838
|
+
}
|
|
839
|
+
if (message.tenant !== "") {
|
|
840
|
+
obj.tenant = message.tenant;
|
|
841
|
+
}
|
|
842
|
+
if (message.tag !== "") {
|
|
843
|
+
obj.tag = message.tag;
|
|
844
|
+
}
|
|
845
|
+
return obj;
|
|
846
|
+
},
|
|
847
|
+
|
|
848
|
+
create<I extends Exact<DeepPartial<ConfigRemoveRequest>, I>>(base?: I): ConfigRemoveRequest {
|
|
849
|
+
return ConfigRemoveRequest.fromPartial(base ?? ({} as any));
|
|
850
|
+
},
|
|
851
|
+
fromPartial<I extends Exact<DeepPartial<ConfigRemoveRequest>, I>>(object: I): ConfigRemoveRequest {
|
|
852
|
+
const message = createBaseConfigRemoveRequest();
|
|
853
|
+
message.requestId = object.requestId ?? "";
|
|
854
|
+
message.dataId = object.dataId ?? "";
|
|
855
|
+
message.group = object.group ?? "";
|
|
856
|
+
message.tenant = object.tenant ?? "";
|
|
857
|
+
message.tag = object.tag ?? "";
|
|
858
|
+
return message;
|
|
859
|
+
},
|
|
860
|
+
};
|
|
861
|
+
|
|
862
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
863
|
+
|
|
864
|
+
type DeepPartial<T> = T extends Builtin ? T
|
|
865
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
866
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
867
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
868
|
+
: Partial<T>;
|
|
869
|
+
|
|
870
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
871
|
+
type Exact<P, I extends P> = P extends Builtin ? P
|
|
872
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
873
|
+
|
|
874
|
+
function isObject(value: any): boolean {
|
|
875
|
+
return typeof value === "object" && value !== null;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
function isSet(value: any): boolean {
|
|
879
|
+
return value !== null && value !== undefined;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
interface MessageFns<T> {
|
|
883
|
+
fromJSON(object: any): T;
|
|
884
|
+
toJSON(message: T): unknown;
|
|
885
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
886
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
887
|
+
}
|