@fonoster/sdk 0.7.4 → 0.7.7
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/README.md +20 -13
- package/dist/node/Calls.d.ts +2 -2
- package/dist/node/Calls.js +2 -2
- package/dist/node/Workspaces.js +0 -6
- package/dist/node/client/makeRpcRequest.js +0 -1
- package/dist/node/client/types/common.d.ts +1 -1
- package/dist/node/client/types/index.d.ts +3 -3
- package/dist/node/client/types/index.js +5 -5
- package/dist/node/client/utils.d.ts +1 -1
- package/dist/node/client/utils.js +2 -2
- package/dist/node/generated/node/applications_pb.js +1 -1
- package/dist/node/generated/web/applications_pb.d.ts +1 -1
- package/dist/node/generated/web/applications_pb.js +1 -1
- package/dist/node/node.d.ts +8 -8
- package/dist/node/node.js +12 -12
- package/dist/node/tsconfig.node.tsbuildinfo +1 -1
- package/dist/node/utils.js +0 -1
- package/dist/web/fonoster.min.js +1 -1
- package/dist/web/index.esm.js +1 -1
- package/package.json +4 -4
- package/dist/node/generated/node/acls.ts +0 -1054
- package/dist/node/generated/node/agents.ts +0 -1388
- package/dist/node/generated/node/applications.ts +0 -1411
- package/dist/node/generated/node/calls.ts +0 -1123
- package/dist/node/generated/node/credentials.ts +0 -1054
- package/dist/node/generated/node/domains.ts +0 -1144
- package/dist/node/generated/node/google/protobuf/empty.ts +0 -48
- package/dist/node/generated/node/google/protobuf/struct.ts +0 -408
- package/dist/node/generated/node/identity.ts +0 -4267
- package/dist/node/generated/node/numbers.ts +0 -1371
- package/dist/node/generated/node/secrets.ts +0 -985
- package/dist/node/generated/node/trunks.ts +0 -1546
- package/dist/node/generated/web/acls.ts +0 -1054
- package/dist/node/generated/web/agents.ts +0 -1388
- package/dist/node/generated/web/applications.ts +0 -1411
- package/dist/node/generated/web/calls.ts +0 -1123
- package/dist/node/generated/web/credentials.ts +0 -1054
- package/dist/node/generated/web/domains.ts +0 -1144
- package/dist/node/generated/web/google/protobuf/empty.ts +0 -48
- package/dist/node/generated/web/google/protobuf/struct.ts +0 -408
- package/dist/node/generated/web/identity.ts +0 -4267
- package/dist/node/generated/web/numbers.ts +0 -1371
- package/dist/node/generated/web/secrets.ts +0 -985
- package/dist/node/generated/web/trunks.ts +0 -1546
|
@@ -1,1411 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
|
3
|
-
* compiler version: 3.20.3
|
|
4
|
-
* source: applications.proto
|
|
5
|
-
* git: https://github.com/thesayyn/protoc-gen-ts */
|
|
6
|
-
import * as dependency_1 from "./google/protobuf/struct";
|
|
7
|
-
import * as pb_1 from "google-protobuf";
|
|
8
|
-
import * as grpc_1 from "@grpc/grpc-js";
|
|
9
|
-
export namespace fonoster.applications.v1beta2 {
|
|
10
|
-
export enum ApplicationType {
|
|
11
|
-
PROGRAMMABLE_VOICE = 0
|
|
12
|
-
}
|
|
13
|
-
export class ProductContainer extends pb_1.Message {
|
|
14
|
-
#one_of_decls: number[][] = [];
|
|
15
|
-
constructor(data?: any[] | {
|
|
16
|
-
product_ref?: string;
|
|
17
|
-
config?: dependency_1.google.protobuf.Struct;
|
|
18
|
-
credentials?: dependency_1.google.protobuf.Struct;
|
|
19
|
-
}) {
|
|
20
|
-
super();
|
|
21
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
22
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
23
|
-
if ("product_ref" in data && data.product_ref != undefined) {
|
|
24
|
-
this.product_ref = data.product_ref;
|
|
25
|
-
}
|
|
26
|
-
if ("config" in data && data.config != undefined) {
|
|
27
|
-
this.config = data.config;
|
|
28
|
-
}
|
|
29
|
-
if ("credentials" in data && data.credentials != undefined) {
|
|
30
|
-
this.credentials = data.credentials;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
get product_ref() {
|
|
35
|
-
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
36
|
-
}
|
|
37
|
-
set product_ref(value: string) {
|
|
38
|
-
pb_1.Message.setField(this, 1, value);
|
|
39
|
-
}
|
|
40
|
-
get config() {
|
|
41
|
-
return pb_1.Message.getWrapperField(this, dependency_1.google.protobuf.Struct, 2) as dependency_1.google.protobuf.Struct;
|
|
42
|
-
}
|
|
43
|
-
set config(value: dependency_1.google.protobuf.Struct) {
|
|
44
|
-
pb_1.Message.setWrapperField(this, 2, value);
|
|
45
|
-
}
|
|
46
|
-
get has_config() {
|
|
47
|
-
return pb_1.Message.getField(this, 2) != null;
|
|
48
|
-
}
|
|
49
|
-
get credentials() {
|
|
50
|
-
return pb_1.Message.getWrapperField(this, dependency_1.google.protobuf.Struct, 3) as dependency_1.google.protobuf.Struct;
|
|
51
|
-
}
|
|
52
|
-
set credentials(value: dependency_1.google.protobuf.Struct) {
|
|
53
|
-
pb_1.Message.setWrapperField(this, 3, value);
|
|
54
|
-
}
|
|
55
|
-
get has_credentials() {
|
|
56
|
-
return pb_1.Message.getField(this, 3) != null;
|
|
57
|
-
}
|
|
58
|
-
static fromObject(data: {
|
|
59
|
-
product_ref?: string;
|
|
60
|
-
config?: ReturnType<typeof dependency_1.google.protobuf.Struct.prototype.toObject>;
|
|
61
|
-
credentials?: ReturnType<typeof dependency_1.google.protobuf.Struct.prototype.toObject>;
|
|
62
|
-
}): ProductContainer {
|
|
63
|
-
const message = new ProductContainer({});
|
|
64
|
-
if (data.product_ref != null) {
|
|
65
|
-
message.product_ref = data.product_ref;
|
|
66
|
-
}
|
|
67
|
-
if (data.config != null) {
|
|
68
|
-
message.config = dependency_1.google.protobuf.Struct.fromObject(data.config);
|
|
69
|
-
}
|
|
70
|
-
if (data.credentials != null) {
|
|
71
|
-
message.credentials = dependency_1.google.protobuf.Struct.fromObject(data.credentials);
|
|
72
|
-
}
|
|
73
|
-
return message;
|
|
74
|
-
}
|
|
75
|
-
toObject() {
|
|
76
|
-
const data: {
|
|
77
|
-
product_ref?: string;
|
|
78
|
-
config?: ReturnType<typeof dependency_1.google.protobuf.Struct.prototype.toObject>;
|
|
79
|
-
credentials?: ReturnType<typeof dependency_1.google.protobuf.Struct.prototype.toObject>;
|
|
80
|
-
} = {};
|
|
81
|
-
if (this.product_ref != null) {
|
|
82
|
-
data.product_ref = this.product_ref;
|
|
83
|
-
}
|
|
84
|
-
if (this.config != null) {
|
|
85
|
-
data.config = this.config.toObject();
|
|
86
|
-
}
|
|
87
|
-
if (this.credentials != null) {
|
|
88
|
-
data.credentials = this.credentials.toObject();
|
|
89
|
-
}
|
|
90
|
-
return data;
|
|
91
|
-
}
|
|
92
|
-
serialize(): Uint8Array;
|
|
93
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
94
|
-
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
95
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
96
|
-
if (this.product_ref.length)
|
|
97
|
-
writer.writeString(1, this.product_ref);
|
|
98
|
-
if (this.has_config)
|
|
99
|
-
writer.writeMessage(2, this.config, () => this.config.serialize(writer));
|
|
100
|
-
if (this.has_credentials)
|
|
101
|
-
writer.writeMessage(3, this.credentials, () => this.credentials.serialize(writer));
|
|
102
|
-
if (!w)
|
|
103
|
-
return writer.getResultBuffer();
|
|
104
|
-
}
|
|
105
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ProductContainer {
|
|
106
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ProductContainer();
|
|
107
|
-
while (reader.nextField()) {
|
|
108
|
-
if (reader.isEndGroup())
|
|
109
|
-
break;
|
|
110
|
-
switch (reader.getFieldNumber()) {
|
|
111
|
-
case 1:
|
|
112
|
-
message.product_ref = reader.readString();
|
|
113
|
-
break;
|
|
114
|
-
case 2:
|
|
115
|
-
reader.readMessage(message.config, () => message.config = dependency_1.google.protobuf.Struct.deserialize(reader));
|
|
116
|
-
break;
|
|
117
|
-
case 3:
|
|
118
|
-
reader.readMessage(message.credentials, () => message.credentials = dependency_1.google.protobuf.Struct.deserialize(reader));
|
|
119
|
-
break;
|
|
120
|
-
default: reader.skipField();
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
return message;
|
|
124
|
-
}
|
|
125
|
-
serializeBinary(): Uint8Array {
|
|
126
|
-
return this.serialize();
|
|
127
|
-
}
|
|
128
|
-
static deserializeBinary(bytes: Uint8Array): ProductContainer {
|
|
129
|
-
return ProductContainer.deserialize(bytes);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
export class Application extends pb_1.Message {
|
|
133
|
-
#one_of_decls: number[][] = [];
|
|
134
|
-
constructor(data?: any[] | {
|
|
135
|
-
ref?: string;
|
|
136
|
-
name?: string;
|
|
137
|
-
type?: ApplicationType;
|
|
138
|
-
app_endpoint?: string;
|
|
139
|
-
text_to_speech?: ProductContainer;
|
|
140
|
-
speech_to_text?: ProductContainer;
|
|
141
|
-
conversation?: ProductContainer;
|
|
142
|
-
created_at?: number;
|
|
143
|
-
updated_at?: number;
|
|
144
|
-
}) {
|
|
145
|
-
super();
|
|
146
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
147
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
148
|
-
if ("ref" in data && data.ref != undefined) {
|
|
149
|
-
this.ref = data.ref;
|
|
150
|
-
}
|
|
151
|
-
if ("name" in data && data.name != undefined) {
|
|
152
|
-
this.name = data.name;
|
|
153
|
-
}
|
|
154
|
-
if ("type" in data && data.type != undefined) {
|
|
155
|
-
this.type = data.type;
|
|
156
|
-
}
|
|
157
|
-
if ("app_endpoint" in data && data.app_endpoint != undefined) {
|
|
158
|
-
this.app_endpoint = data.app_endpoint;
|
|
159
|
-
}
|
|
160
|
-
if ("text_to_speech" in data && data.text_to_speech != undefined) {
|
|
161
|
-
this.text_to_speech = data.text_to_speech;
|
|
162
|
-
}
|
|
163
|
-
if ("speech_to_text" in data && data.speech_to_text != undefined) {
|
|
164
|
-
this.speech_to_text = data.speech_to_text;
|
|
165
|
-
}
|
|
166
|
-
if ("conversation" in data && data.conversation != undefined) {
|
|
167
|
-
this.conversation = data.conversation;
|
|
168
|
-
}
|
|
169
|
-
if ("created_at" in data && data.created_at != undefined) {
|
|
170
|
-
this.created_at = data.created_at;
|
|
171
|
-
}
|
|
172
|
-
if ("updated_at" in data && data.updated_at != undefined) {
|
|
173
|
-
this.updated_at = data.updated_at;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
get ref() {
|
|
178
|
-
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
179
|
-
}
|
|
180
|
-
set ref(value: string) {
|
|
181
|
-
pb_1.Message.setField(this, 1, value);
|
|
182
|
-
}
|
|
183
|
-
get name() {
|
|
184
|
-
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
185
|
-
}
|
|
186
|
-
set name(value: string) {
|
|
187
|
-
pb_1.Message.setField(this, 2, value);
|
|
188
|
-
}
|
|
189
|
-
get type() {
|
|
190
|
-
return pb_1.Message.getFieldWithDefault(this, 3, ApplicationType.PROGRAMMABLE_VOICE) as ApplicationType;
|
|
191
|
-
}
|
|
192
|
-
set type(value: ApplicationType) {
|
|
193
|
-
pb_1.Message.setField(this, 3, value);
|
|
194
|
-
}
|
|
195
|
-
get app_endpoint() {
|
|
196
|
-
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
|
|
197
|
-
}
|
|
198
|
-
set app_endpoint(value: string) {
|
|
199
|
-
pb_1.Message.setField(this, 4, value);
|
|
200
|
-
}
|
|
201
|
-
get text_to_speech() {
|
|
202
|
-
return pb_1.Message.getWrapperField(this, ProductContainer, 5) as ProductContainer;
|
|
203
|
-
}
|
|
204
|
-
set text_to_speech(value: ProductContainer) {
|
|
205
|
-
pb_1.Message.setWrapperField(this, 5, value);
|
|
206
|
-
}
|
|
207
|
-
get has_text_to_speech() {
|
|
208
|
-
return pb_1.Message.getField(this, 5) != null;
|
|
209
|
-
}
|
|
210
|
-
get speech_to_text() {
|
|
211
|
-
return pb_1.Message.getWrapperField(this, ProductContainer, 6) as ProductContainer;
|
|
212
|
-
}
|
|
213
|
-
set speech_to_text(value: ProductContainer) {
|
|
214
|
-
pb_1.Message.setWrapperField(this, 6, value);
|
|
215
|
-
}
|
|
216
|
-
get has_speech_to_text() {
|
|
217
|
-
return pb_1.Message.getField(this, 6) != null;
|
|
218
|
-
}
|
|
219
|
-
get conversation() {
|
|
220
|
-
return pb_1.Message.getWrapperField(this, ProductContainer, 7) as ProductContainer;
|
|
221
|
-
}
|
|
222
|
-
set conversation(value: ProductContainer) {
|
|
223
|
-
pb_1.Message.setWrapperField(this, 7, value);
|
|
224
|
-
}
|
|
225
|
-
get has_conversation() {
|
|
226
|
-
return pb_1.Message.getField(this, 7) != null;
|
|
227
|
-
}
|
|
228
|
-
get created_at() {
|
|
229
|
-
return pb_1.Message.getFieldWithDefault(this, 8, 0) as number;
|
|
230
|
-
}
|
|
231
|
-
set created_at(value: number) {
|
|
232
|
-
pb_1.Message.setField(this, 8, value);
|
|
233
|
-
}
|
|
234
|
-
get updated_at() {
|
|
235
|
-
return pb_1.Message.getFieldWithDefault(this, 9, 0) as number;
|
|
236
|
-
}
|
|
237
|
-
set updated_at(value: number) {
|
|
238
|
-
pb_1.Message.setField(this, 9, value);
|
|
239
|
-
}
|
|
240
|
-
static fromObject(data: {
|
|
241
|
-
ref?: string;
|
|
242
|
-
name?: string;
|
|
243
|
-
type?: ApplicationType;
|
|
244
|
-
app_endpoint?: string;
|
|
245
|
-
text_to_speech?: ReturnType<typeof ProductContainer.prototype.toObject>;
|
|
246
|
-
speech_to_text?: ReturnType<typeof ProductContainer.prototype.toObject>;
|
|
247
|
-
conversation?: ReturnType<typeof ProductContainer.prototype.toObject>;
|
|
248
|
-
created_at?: number;
|
|
249
|
-
updated_at?: number;
|
|
250
|
-
}): Application {
|
|
251
|
-
const message = new Application({});
|
|
252
|
-
if (data.ref != null) {
|
|
253
|
-
message.ref = data.ref;
|
|
254
|
-
}
|
|
255
|
-
if (data.name != null) {
|
|
256
|
-
message.name = data.name;
|
|
257
|
-
}
|
|
258
|
-
if (data.type != null) {
|
|
259
|
-
message.type = data.type;
|
|
260
|
-
}
|
|
261
|
-
if (data.app_endpoint != null) {
|
|
262
|
-
message.app_endpoint = data.app_endpoint;
|
|
263
|
-
}
|
|
264
|
-
if (data.text_to_speech != null) {
|
|
265
|
-
message.text_to_speech = ProductContainer.fromObject(data.text_to_speech);
|
|
266
|
-
}
|
|
267
|
-
if (data.speech_to_text != null) {
|
|
268
|
-
message.speech_to_text = ProductContainer.fromObject(data.speech_to_text);
|
|
269
|
-
}
|
|
270
|
-
if (data.conversation != null) {
|
|
271
|
-
message.conversation = ProductContainer.fromObject(data.conversation);
|
|
272
|
-
}
|
|
273
|
-
if (data.created_at != null) {
|
|
274
|
-
message.created_at = data.created_at;
|
|
275
|
-
}
|
|
276
|
-
if (data.updated_at != null) {
|
|
277
|
-
message.updated_at = data.updated_at;
|
|
278
|
-
}
|
|
279
|
-
return message;
|
|
280
|
-
}
|
|
281
|
-
toObject() {
|
|
282
|
-
const data: {
|
|
283
|
-
ref?: string;
|
|
284
|
-
name?: string;
|
|
285
|
-
type?: ApplicationType;
|
|
286
|
-
app_endpoint?: string;
|
|
287
|
-
text_to_speech?: ReturnType<typeof ProductContainer.prototype.toObject>;
|
|
288
|
-
speech_to_text?: ReturnType<typeof ProductContainer.prototype.toObject>;
|
|
289
|
-
conversation?: ReturnType<typeof ProductContainer.prototype.toObject>;
|
|
290
|
-
created_at?: number;
|
|
291
|
-
updated_at?: number;
|
|
292
|
-
} = {};
|
|
293
|
-
if (this.ref != null) {
|
|
294
|
-
data.ref = this.ref;
|
|
295
|
-
}
|
|
296
|
-
if (this.name != null) {
|
|
297
|
-
data.name = this.name;
|
|
298
|
-
}
|
|
299
|
-
if (this.type != null) {
|
|
300
|
-
data.type = this.type;
|
|
301
|
-
}
|
|
302
|
-
if (this.app_endpoint != null) {
|
|
303
|
-
data.app_endpoint = this.app_endpoint;
|
|
304
|
-
}
|
|
305
|
-
if (this.text_to_speech != null) {
|
|
306
|
-
data.text_to_speech = this.text_to_speech.toObject();
|
|
307
|
-
}
|
|
308
|
-
if (this.speech_to_text != null) {
|
|
309
|
-
data.speech_to_text = this.speech_to_text.toObject();
|
|
310
|
-
}
|
|
311
|
-
if (this.conversation != null) {
|
|
312
|
-
data.conversation = this.conversation.toObject();
|
|
313
|
-
}
|
|
314
|
-
if (this.created_at != null) {
|
|
315
|
-
data.created_at = this.created_at;
|
|
316
|
-
}
|
|
317
|
-
if (this.updated_at != null) {
|
|
318
|
-
data.updated_at = this.updated_at;
|
|
319
|
-
}
|
|
320
|
-
return data;
|
|
321
|
-
}
|
|
322
|
-
serialize(): Uint8Array;
|
|
323
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
324
|
-
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
325
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
326
|
-
if (this.ref.length)
|
|
327
|
-
writer.writeString(1, this.ref);
|
|
328
|
-
if (this.name.length)
|
|
329
|
-
writer.writeString(2, this.name);
|
|
330
|
-
if (this.type != ApplicationType.PROGRAMMABLE_VOICE)
|
|
331
|
-
writer.writeEnum(3, this.type);
|
|
332
|
-
if (this.app_endpoint.length)
|
|
333
|
-
writer.writeString(4, this.app_endpoint);
|
|
334
|
-
if (this.has_text_to_speech)
|
|
335
|
-
writer.writeMessage(5, this.text_to_speech, () => this.text_to_speech.serialize(writer));
|
|
336
|
-
if (this.has_speech_to_text)
|
|
337
|
-
writer.writeMessage(6, this.speech_to_text, () => this.speech_to_text.serialize(writer));
|
|
338
|
-
if (this.has_conversation)
|
|
339
|
-
writer.writeMessage(7, this.conversation, () => this.conversation.serialize(writer));
|
|
340
|
-
if (this.created_at != 0)
|
|
341
|
-
writer.writeInt64(8, this.created_at);
|
|
342
|
-
if (this.updated_at != 0)
|
|
343
|
-
writer.writeInt64(9, this.updated_at);
|
|
344
|
-
if (!w)
|
|
345
|
-
return writer.getResultBuffer();
|
|
346
|
-
}
|
|
347
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Application {
|
|
348
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Application();
|
|
349
|
-
while (reader.nextField()) {
|
|
350
|
-
if (reader.isEndGroup())
|
|
351
|
-
break;
|
|
352
|
-
switch (reader.getFieldNumber()) {
|
|
353
|
-
case 1:
|
|
354
|
-
message.ref = reader.readString();
|
|
355
|
-
break;
|
|
356
|
-
case 2:
|
|
357
|
-
message.name = reader.readString();
|
|
358
|
-
break;
|
|
359
|
-
case 3:
|
|
360
|
-
message.type = reader.readEnum();
|
|
361
|
-
break;
|
|
362
|
-
case 4:
|
|
363
|
-
message.app_endpoint = reader.readString();
|
|
364
|
-
break;
|
|
365
|
-
case 5:
|
|
366
|
-
reader.readMessage(message.text_to_speech, () => message.text_to_speech = ProductContainer.deserialize(reader));
|
|
367
|
-
break;
|
|
368
|
-
case 6:
|
|
369
|
-
reader.readMessage(message.speech_to_text, () => message.speech_to_text = ProductContainer.deserialize(reader));
|
|
370
|
-
break;
|
|
371
|
-
case 7:
|
|
372
|
-
reader.readMessage(message.conversation, () => message.conversation = ProductContainer.deserialize(reader));
|
|
373
|
-
break;
|
|
374
|
-
case 8:
|
|
375
|
-
message.created_at = reader.readInt64();
|
|
376
|
-
break;
|
|
377
|
-
case 9:
|
|
378
|
-
message.updated_at = reader.readInt64();
|
|
379
|
-
break;
|
|
380
|
-
default: reader.skipField();
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
return message;
|
|
384
|
-
}
|
|
385
|
-
serializeBinary(): Uint8Array {
|
|
386
|
-
return this.serialize();
|
|
387
|
-
}
|
|
388
|
-
static deserializeBinary(bytes: Uint8Array): Application {
|
|
389
|
-
return Application.deserialize(bytes);
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
export class CreateApplicationRequest extends pb_1.Message {
|
|
393
|
-
#one_of_decls: number[][] = [];
|
|
394
|
-
constructor(data?: any[] | {
|
|
395
|
-
name?: string;
|
|
396
|
-
type?: ApplicationType;
|
|
397
|
-
app_endpoint?: string;
|
|
398
|
-
text_to_speech?: ProductContainer;
|
|
399
|
-
speech_to_text?: ProductContainer;
|
|
400
|
-
intelligence?: ProductContainer;
|
|
401
|
-
}) {
|
|
402
|
-
super();
|
|
403
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
404
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
405
|
-
if ("name" in data && data.name != undefined) {
|
|
406
|
-
this.name = data.name;
|
|
407
|
-
}
|
|
408
|
-
if ("type" in data && data.type != undefined) {
|
|
409
|
-
this.type = data.type;
|
|
410
|
-
}
|
|
411
|
-
if ("app_endpoint" in data && data.app_endpoint != undefined) {
|
|
412
|
-
this.app_endpoint = data.app_endpoint;
|
|
413
|
-
}
|
|
414
|
-
if ("text_to_speech" in data && data.text_to_speech != undefined) {
|
|
415
|
-
this.text_to_speech = data.text_to_speech;
|
|
416
|
-
}
|
|
417
|
-
if ("speech_to_text" in data && data.speech_to_text != undefined) {
|
|
418
|
-
this.speech_to_text = data.speech_to_text;
|
|
419
|
-
}
|
|
420
|
-
if ("intelligence" in data && data.intelligence != undefined) {
|
|
421
|
-
this.intelligence = data.intelligence;
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
get name() {
|
|
426
|
-
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
427
|
-
}
|
|
428
|
-
set name(value: string) {
|
|
429
|
-
pb_1.Message.setField(this, 1, value);
|
|
430
|
-
}
|
|
431
|
-
get type() {
|
|
432
|
-
return pb_1.Message.getFieldWithDefault(this, 2, ApplicationType.PROGRAMMABLE_VOICE) as ApplicationType;
|
|
433
|
-
}
|
|
434
|
-
set type(value: ApplicationType) {
|
|
435
|
-
pb_1.Message.setField(this, 2, value);
|
|
436
|
-
}
|
|
437
|
-
get app_endpoint() {
|
|
438
|
-
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
|
|
439
|
-
}
|
|
440
|
-
set app_endpoint(value: string) {
|
|
441
|
-
pb_1.Message.setField(this, 3, value);
|
|
442
|
-
}
|
|
443
|
-
get text_to_speech() {
|
|
444
|
-
return pb_1.Message.getWrapperField(this, ProductContainer, 4) as ProductContainer;
|
|
445
|
-
}
|
|
446
|
-
set text_to_speech(value: ProductContainer) {
|
|
447
|
-
pb_1.Message.setWrapperField(this, 4, value);
|
|
448
|
-
}
|
|
449
|
-
get has_text_to_speech() {
|
|
450
|
-
return pb_1.Message.getField(this, 4) != null;
|
|
451
|
-
}
|
|
452
|
-
get speech_to_text() {
|
|
453
|
-
return pb_1.Message.getWrapperField(this, ProductContainer, 5) as ProductContainer;
|
|
454
|
-
}
|
|
455
|
-
set speech_to_text(value: ProductContainer) {
|
|
456
|
-
pb_1.Message.setWrapperField(this, 5, value);
|
|
457
|
-
}
|
|
458
|
-
get has_speech_to_text() {
|
|
459
|
-
return pb_1.Message.getField(this, 5) != null;
|
|
460
|
-
}
|
|
461
|
-
get intelligence() {
|
|
462
|
-
return pb_1.Message.getWrapperField(this, ProductContainer, 6) as ProductContainer;
|
|
463
|
-
}
|
|
464
|
-
set intelligence(value: ProductContainer) {
|
|
465
|
-
pb_1.Message.setWrapperField(this, 6, value);
|
|
466
|
-
}
|
|
467
|
-
get has_intelligence() {
|
|
468
|
-
return pb_1.Message.getField(this, 6) != null;
|
|
469
|
-
}
|
|
470
|
-
static fromObject(data: {
|
|
471
|
-
name?: string;
|
|
472
|
-
type?: ApplicationType;
|
|
473
|
-
app_endpoint?: string;
|
|
474
|
-
text_to_speech?: ReturnType<typeof ProductContainer.prototype.toObject>;
|
|
475
|
-
speech_to_text?: ReturnType<typeof ProductContainer.prototype.toObject>;
|
|
476
|
-
intelligence?: ReturnType<typeof ProductContainer.prototype.toObject>;
|
|
477
|
-
}): CreateApplicationRequest {
|
|
478
|
-
const message = new CreateApplicationRequest({});
|
|
479
|
-
if (data.name != null) {
|
|
480
|
-
message.name = data.name;
|
|
481
|
-
}
|
|
482
|
-
if (data.type != null) {
|
|
483
|
-
message.type = data.type;
|
|
484
|
-
}
|
|
485
|
-
if (data.app_endpoint != null) {
|
|
486
|
-
message.app_endpoint = data.app_endpoint;
|
|
487
|
-
}
|
|
488
|
-
if (data.text_to_speech != null) {
|
|
489
|
-
message.text_to_speech = ProductContainer.fromObject(data.text_to_speech);
|
|
490
|
-
}
|
|
491
|
-
if (data.speech_to_text != null) {
|
|
492
|
-
message.speech_to_text = ProductContainer.fromObject(data.speech_to_text);
|
|
493
|
-
}
|
|
494
|
-
if (data.intelligence != null) {
|
|
495
|
-
message.intelligence = ProductContainer.fromObject(data.intelligence);
|
|
496
|
-
}
|
|
497
|
-
return message;
|
|
498
|
-
}
|
|
499
|
-
toObject() {
|
|
500
|
-
const data: {
|
|
501
|
-
name?: string;
|
|
502
|
-
type?: ApplicationType;
|
|
503
|
-
app_endpoint?: string;
|
|
504
|
-
text_to_speech?: ReturnType<typeof ProductContainer.prototype.toObject>;
|
|
505
|
-
speech_to_text?: ReturnType<typeof ProductContainer.prototype.toObject>;
|
|
506
|
-
intelligence?: ReturnType<typeof ProductContainer.prototype.toObject>;
|
|
507
|
-
} = {};
|
|
508
|
-
if (this.name != null) {
|
|
509
|
-
data.name = this.name;
|
|
510
|
-
}
|
|
511
|
-
if (this.type != null) {
|
|
512
|
-
data.type = this.type;
|
|
513
|
-
}
|
|
514
|
-
if (this.app_endpoint != null) {
|
|
515
|
-
data.app_endpoint = this.app_endpoint;
|
|
516
|
-
}
|
|
517
|
-
if (this.text_to_speech != null) {
|
|
518
|
-
data.text_to_speech = this.text_to_speech.toObject();
|
|
519
|
-
}
|
|
520
|
-
if (this.speech_to_text != null) {
|
|
521
|
-
data.speech_to_text = this.speech_to_text.toObject();
|
|
522
|
-
}
|
|
523
|
-
if (this.intelligence != null) {
|
|
524
|
-
data.intelligence = this.intelligence.toObject();
|
|
525
|
-
}
|
|
526
|
-
return data;
|
|
527
|
-
}
|
|
528
|
-
serialize(): Uint8Array;
|
|
529
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
530
|
-
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
531
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
532
|
-
if (this.name.length)
|
|
533
|
-
writer.writeString(1, this.name);
|
|
534
|
-
if (this.type != ApplicationType.PROGRAMMABLE_VOICE)
|
|
535
|
-
writer.writeEnum(2, this.type);
|
|
536
|
-
if (this.app_endpoint.length)
|
|
537
|
-
writer.writeString(3, this.app_endpoint);
|
|
538
|
-
if (this.has_text_to_speech)
|
|
539
|
-
writer.writeMessage(4, this.text_to_speech, () => this.text_to_speech.serialize(writer));
|
|
540
|
-
if (this.has_speech_to_text)
|
|
541
|
-
writer.writeMessage(5, this.speech_to_text, () => this.speech_to_text.serialize(writer));
|
|
542
|
-
if (this.has_intelligence)
|
|
543
|
-
writer.writeMessage(6, this.intelligence, () => this.intelligence.serialize(writer));
|
|
544
|
-
if (!w)
|
|
545
|
-
return writer.getResultBuffer();
|
|
546
|
-
}
|
|
547
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CreateApplicationRequest {
|
|
548
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CreateApplicationRequest();
|
|
549
|
-
while (reader.nextField()) {
|
|
550
|
-
if (reader.isEndGroup())
|
|
551
|
-
break;
|
|
552
|
-
switch (reader.getFieldNumber()) {
|
|
553
|
-
case 1:
|
|
554
|
-
message.name = reader.readString();
|
|
555
|
-
break;
|
|
556
|
-
case 2:
|
|
557
|
-
message.type = reader.readEnum();
|
|
558
|
-
break;
|
|
559
|
-
case 3:
|
|
560
|
-
message.app_endpoint = reader.readString();
|
|
561
|
-
break;
|
|
562
|
-
case 4:
|
|
563
|
-
reader.readMessage(message.text_to_speech, () => message.text_to_speech = ProductContainer.deserialize(reader));
|
|
564
|
-
break;
|
|
565
|
-
case 5:
|
|
566
|
-
reader.readMessage(message.speech_to_text, () => message.speech_to_text = ProductContainer.deserialize(reader));
|
|
567
|
-
break;
|
|
568
|
-
case 6:
|
|
569
|
-
reader.readMessage(message.intelligence, () => message.intelligence = ProductContainer.deserialize(reader));
|
|
570
|
-
break;
|
|
571
|
-
default: reader.skipField();
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
return message;
|
|
575
|
-
}
|
|
576
|
-
serializeBinary(): Uint8Array {
|
|
577
|
-
return this.serialize();
|
|
578
|
-
}
|
|
579
|
-
static deserializeBinary(bytes: Uint8Array): CreateApplicationRequest {
|
|
580
|
-
return CreateApplicationRequest.deserialize(bytes);
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
export class CreateApplicationResponse extends pb_1.Message {
|
|
584
|
-
#one_of_decls: number[][] = [];
|
|
585
|
-
constructor(data?: any[] | {
|
|
586
|
-
ref?: string;
|
|
587
|
-
}) {
|
|
588
|
-
super();
|
|
589
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
590
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
591
|
-
if ("ref" in data && data.ref != undefined) {
|
|
592
|
-
this.ref = data.ref;
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
get ref() {
|
|
597
|
-
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
598
|
-
}
|
|
599
|
-
set ref(value: string) {
|
|
600
|
-
pb_1.Message.setField(this, 1, value);
|
|
601
|
-
}
|
|
602
|
-
static fromObject(data: {
|
|
603
|
-
ref?: string;
|
|
604
|
-
}): CreateApplicationResponse {
|
|
605
|
-
const message = new CreateApplicationResponse({});
|
|
606
|
-
if (data.ref != null) {
|
|
607
|
-
message.ref = data.ref;
|
|
608
|
-
}
|
|
609
|
-
return message;
|
|
610
|
-
}
|
|
611
|
-
toObject() {
|
|
612
|
-
const data: {
|
|
613
|
-
ref?: string;
|
|
614
|
-
} = {};
|
|
615
|
-
if (this.ref != null) {
|
|
616
|
-
data.ref = this.ref;
|
|
617
|
-
}
|
|
618
|
-
return data;
|
|
619
|
-
}
|
|
620
|
-
serialize(): Uint8Array;
|
|
621
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
622
|
-
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
623
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
624
|
-
if (this.ref.length)
|
|
625
|
-
writer.writeString(1, this.ref);
|
|
626
|
-
if (!w)
|
|
627
|
-
return writer.getResultBuffer();
|
|
628
|
-
}
|
|
629
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CreateApplicationResponse {
|
|
630
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CreateApplicationResponse();
|
|
631
|
-
while (reader.nextField()) {
|
|
632
|
-
if (reader.isEndGroup())
|
|
633
|
-
break;
|
|
634
|
-
switch (reader.getFieldNumber()) {
|
|
635
|
-
case 1:
|
|
636
|
-
message.ref = reader.readString();
|
|
637
|
-
break;
|
|
638
|
-
default: reader.skipField();
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
return message;
|
|
642
|
-
}
|
|
643
|
-
serializeBinary(): Uint8Array {
|
|
644
|
-
return this.serialize();
|
|
645
|
-
}
|
|
646
|
-
static deserializeBinary(bytes: Uint8Array): CreateApplicationResponse {
|
|
647
|
-
return CreateApplicationResponse.deserialize(bytes);
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
export class GetApplicationRequest extends pb_1.Message {
|
|
651
|
-
#one_of_decls: number[][] = [];
|
|
652
|
-
constructor(data?: any[] | {
|
|
653
|
-
ref?: string;
|
|
654
|
-
}) {
|
|
655
|
-
super();
|
|
656
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
657
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
658
|
-
if ("ref" in data && data.ref != undefined) {
|
|
659
|
-
this.ref = data.ref;
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
get ref() {
|
|
664
|
-
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
665
|
-
}
|
|
666
|
-
set ref(value: string) {
|
|
667
|
-
pb_1.Message.setField(this, 1, value);
|
|
668
|
-
}
|
|
669
|
-
static fromObject(data: {
|
|
670
|
-
ref?: string;
|
|
671
|
-
}): GetApplicationRequest {
|
|
672
|
-
const message = new GetApplicationRequest({});
|
|
673
|
-
if (data.ref != null) {
|
|
674
|
-
message.ref = data.ref;
|
|
675
|
-
}
|
|
676
|
-
return message;
|
|
677
|
-
}
|
|
678
|
-
toObject() {
|
|
679
|
-
const data: {
|
|
680
|
-
ref?: string;
|
|
681
|
-
} = {};
|
|
682
|
-
if (this.ref != null) {
|
|
683
|
-
data.ref = this.ref;
|
|
684
|
-
}
|
|
685
|
-
return data;
|
|
686
|
-
}
|
|
687
|
-
serialize(): Uint8Array;
|
|
688
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
689
|
-
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
690
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
691
|
-
if (this.ref.length)
|
|
692
|
-
writer.writeString(1, this.ref);
|
|
693
|
-
if (!w)
|
|
694
|
-
return writer.getResultBuffer();
|
|
695
|
-
}
|
|
696
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetApplicationRequest {
|
|
697
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetApplicationRequest();
|
|
698
|
-
while (reader.nextField()) {
|
|
699
|
-
if (reader.isEndGroup())
|
|
700
|
-
break;
|
|
701
|
-
switch (reader.getFieldNumber()) {
|
|
702
|
-
case 1:
|
|
703
|
-
message.ref = reader.readString();
|
|
704
|
-
break;
|
|
705
|
-
default: reader.skipField();
|
|
706
|
-
}
|
|
707
|
-
}
|
|
708
|
-
return message;
|
|
709
|
-
}
|
|
710
|
-
serializeBinary(): Uint8Array {
|
|
711
|
-
return this.serialize();
|
|
712
|
-
}
|
|
713
|
-
static deserializeBinary(bytes: Uint8Array): GetApplicationRequest {
|
|
714
|
-
return GetApplicationRequest.deserialize(bytes);
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
export class ListApplicationsRequest extends pb_1.Message {
|
|
718
|
-
#one_of_decls: number[][] = [];
|
|
719
|
-
constructor(data?: any[] | {
|
|
720
|
-
page_size?: number;
|
|
721
|
-
page_token?: string;
|
|
722
|
-
}) {
|
|
723
|
-
super();
|
|
724
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
725
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
726
|
-
if ("page_size" in data && data.page_size != undefined) {
|
|
727
|
-
this.page_size = data.page_size;
|
|
728
|
-
}
|
|
729
|
-
if ("page_token" in data && data.page_token != undefined) {
|
|
730
|
-
this.page_token = data.page_token;
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
get page_size() {
|
|
735
|
-
return pb_1.Message.getFieldWithDefault(this, 1, 0) as number;
|
|
736
|
-
}
|
|
737
|
-
set page_size(value: number) {
|
|
738
|
-
pb_1.Message.setField(this, 1, value);
|
|
739
|
-
}
|
|
740
|
-
get page_token() {
|
|
741
|
-
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
742
|
-
}
|
|
743
|
-
set page_token(value: string) {
|
|
744
|
-
pb_1.Message.setField(this, 2, value);
|
|
745
|
-
}
|
|
746
|
-
static fromObject(data: {
|
|
747
|
-
page_size?: number;
|
|
748
|
-
page_token?: string;
|
|
749
|
-
}): ListApplicationsRequest {
|
|
750
|
-
const message = new ListApplicationsRequest({});
|
|
751
|
-
if (data.page_size != null) {
|
|
752
|
-
message.page_size = data.page_size;
|
|
753
|
-
}
|
|
754
|
-
if (data.page_token != null) {
|
|
755
|
-
message.page_token = data.page_token;
|
|
756
|
-
}
|
|
757
|
-
return message;
|
|
758
|
-
}
|
|
759
|
-
toObject() {
|
|
760
|
-
const data: {
|
|
761
|
-
page_size?: number;
|
|
762
|
-
page_token?: string;
|
|
763
|
-
} = {};
|
|
764
|
-
if (this.page_size != null) {
|
|
765
|
-
data.page_size = this.page_size;
|
|
766
|
-
}
|
|
767
|
-
if (this.page_token != null) {
|
|
768
|
-
data.page_token = this.page_token;
|
|
769
|
-
}
|
|
770
|
-
return data;
|
|
771
|
-
}
|
|
772
|
-
serialize(): Uint8Array;
|
|
773
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
774
|
-
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
775
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
776
|
-
if (this.page_size != 0)
|
|
777
|
-
writer.writeInt32(1, this.page_size);
|
|
778
|
-
if (this.page_token.length)
|
|
779
|
-
writer.writeString(2, this.page_token);
|
|
780
|
-
if (!w)
|
|
781
|
-
return writer.getResultBuffer();
|
|
782
|
-
}
|
|
783
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ListApplicationsRequest {
|
|
784
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ListApplicationsRequest();
|
|
785
|
-
while (reader.nextField()) {
|
|
786
|
-
if (reader.isEndGroup())
|
|
787
|
-
break;
|
|
788
|
-
switch (reader.getFieldNumber()) {
|
|
789
|
-
case 1:
|
|
790
|
-
message.page_size = reader.readInt32();
|
|
791
|
-
break;
|
|
792
|
-
case 2:
|
|
793
|
-
message.page_token = reader.readString();
|
|
794
|
-
break;
|
|
795
|
-
default: reader.skipField();
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
|
-
return message;
|
|
799
|
-
}
|
|
800
|
-
serializeBinary(): Uint8Array {
|
|
801
|
-
return this.serialize();
|
|
802
|
-
}
|
|
803
|
-
static deserializeBinary(bytes: Uint8Array): ListApplicationsRequest {
|
|
804
|
-
return ListApplicationsRequest.deserialize(bytes);
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
export class ListApplicationsResponse extends pb_1.Message {
|
|
808
|
-
#one_of_decls: number[][] = [];
|
|
809
|
-
constructor(data?: any[] | {
|
|
810
|
-
items?: Application[];
|
|
811
|
-
next_page_token?: string;
|
|
812
|
-
}) {
|
|
813
|
-
super();
|
|
814
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], this.#one_of_decls);
|
|
815
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
816
|
-
if ("items" in data && data.items != undefined) {
|
|
817
|
-
this.items = data.items;
|
|
818
|
-
}
|
|
819
|
-
if ("next_page_token" in data && data.next_page_token != undefined) {
|
|
820
|
-
this.next_page_token = data.next_page_token;
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
}
|
|
824
|
-
get items() {
|
|
825
|
-
return pb_1.Message.getRepeatedWrapperField(this, Application, 1) as Application[];
|
|
826
|
-
}
|
|
827
|
-
set items(value: Application[]) {
|
|
828
|
-
pb_1.Message.setRepeatedWrapperField(this, 1, value);
|
|
829
|
-
}
|
|
830
|
-
get next_page_token() {
|
|
831
|
-
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
832
|
-
}
|
|
833
|
-
set next_page_token(value: string) {
|
|
834
|
-
pb_1.Message.setField(this, 2, value);
|
|
835
|
-
}
|
|
836
|
-
static fromObject(data: {
|
|
837
|
-
items?: ReturnType<typeof Application.prototype.toObject>[];
|
|
838
|
-
next_page_token?: string;
|
|
839
|
-
}): ListApplicationsResponse {
|
|
840
|
-
const message = new ListApplicationsResponse({});
|
|
841
|
-
if (data.items != null) {
|
|
842
|
-
message.items = data.items.map(item => Application.fromObject(item));
|
|
843
|
-
}
|
|
844
|
-
if (data.next_page_token != null) {
|
|
845
|
-
message.next_page_token = data.next_page_token;
|
|
846
|
-
}
|
|
847
|
-
return message;
|
|
848
|
-
}
|
|
849
|
-
toObject() {
|
|
850
|
-
const data: {
|
|
851
|
-
items?: ReturnType<typeof Application.prototype.toObject>[];
|
|
852
|
-
next_page_token?: string;
|
|
853
|
-
} = {};
|
|
854
|
-
if (this.items != null) {
|
|
855
|
-
data.items = this.items.map((item: Application) => item.toObject());
|
|
856
|
-
}
|
|
857
|
-
if (this.next_page_token != null) {
|
|
858
|
-
data.next_page_token = this.next_page_token;
|
|
859
|
-
}
|
|
860
|
-
return data;
|
|
861
|
-
}
|
|
862
|
-
serialize(): Uint8Array;
|
|
863
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
864
|
-
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
865
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
866
|
-
if (this.items.length)
|
|
867
|
-
writer.writeRepeatedMessage(1, this.items, (item: Application) => item.serialize(writer));
|
|
868
|
-
if (this.next_page_token.length)
|
|
869
|
-
writer.writeString(2, this.next_page_token);
|
|
870
|
-
if (!w)
|
|
871
|
-
return writer.getResultBuffer();
|
|
872
|
-
}
|
|
873
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ListApplicationsResponse {
|
|
874
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ListApplicationsResponse();
|
|
875
|
-
while (reader.nextField()) {
|
|
876
|
-
if (reader.isEndGroup())
|
|
877
|
-
break;
|
|
878
|
-
switch (reader.getFieldNumber()) {
|
|
879
|
-
case 1:
|
|
880
|
-
reader.readMessage(message.items, () => pb_1.Message.addToRepeatedWrapperField(message, 1, Application.deserialize(reader), Application));
|
|
881
|
-
break;
|
|
882
|
-
case 2:
|
|
883
|
-
message.next_page_token = reader.readString();
|
|
884
|
-
break;
|
|
885
|
-
default: reader.skipField();
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
return message;
|
|
889
|
-
}
|
|
890
|
-
serializeBinary(): Uint8Array {
|
|
891
|
-
return this.serialize();
|
|
892
|
-
}
|
|
893
|
-
static deserializeBinary(bytes: Uint8Array): ListApplicationsResponse {
|
|
894
|
-
return ListApplicationsResponse.deserialize(bytes);
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
export class UpdateApplicationRequest extends pb_1.Message {
|
|
898
|
-
#one_of_decls: number[][] = [];
|
|
899
|
-
constructor(data?: any[] | {
|
|
900
|
-
ref?: string;
|
|
901
|
-
name?: string;
|
|
902
|
-
type?: ApplicationType;
|
|
903
|
-
app_endpoint?: string;
|
|
904
|
-
text_to_speech?: ProductContainer;
|
|
905
|
-
speech_to_text?: ProductContainer;
|
|
906
|
-
intelligence?: ProductContainer;
|
|
907
|
-
}) {
|
|
908
|
-
super();
|
|
909
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
910
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
911
|
-
if ("ref" in data && data.ref != undefined) {
|
|
912
|
-
this.ref = data.ref;
|
|
913
|
-
}
|
|
914
|
-
if ("name" in data && data.name != undefined) {
|
|
915
|
-
this.name = data.name;
|
|
916
|
-
}
|
|
917
|
-
if ("type" in data && data.type != undefined) {
|
|
918
|
-
this.type = data.type;
|
|
919
|
-
}
|
|
920
|
-
if ("app_endpoint" in data && data.app_endpoint != undefined) {
|
|
921
|
-
this.app_endpoint = data.app_endpoint;
|
|
922
|
-
}
|
|
923
|
-
if ("text_to_speech" in data && data.text_to_speech != undefined) {
|
|
924
|
-
this.text_to_speech = data.text_to_speech;
|
|
925
|
-
}
|
|
926
|
-
if ("speech_to_text" in data && data.speech_to_text != undefined) {
|
|
927
|
-
this.speech_to_text = data.speech_to_text;
|
|
928
|
-
}
|
|
929
|
-
if ("intelligence" in data && data.intelligence != undefined) {
|
|
930
|
-
this.intelligence = data.intelligence;
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
get ref() {
|
|
935
|
-
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
936
|
-
}
|
|
937
|
-
set ref(value: string) {
|
|
938
|
-
pb_1.Message.setField(this, 1, value);
|
|
939
|
-
}
|
|
940
|
-
get name() {
|
|
941
|
-
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
942
|
-
}
|
|
943
|
-
set name(value: string) {
|
|
944
|
-
pb_1.Message.setField(this, 2, value);
|
|
945
|
-
}
|
|
946
|
-
get type() {
|
|
947
|
-
return pb_1.Message.getFieldWithDefault(this, 3, ApplicationType.PROGRAMMABLE_VOICE) as ApplicationType;
|
|
948
|
-
}
|
|
949
|
-
set type(value: ApplicationType) {
|
|
950
|
-
pb_1.Message.setField(this, 3, value);
|
|
951
|
-
}
|
|
952
|
-
get app_endpoint() {
|
|
953
|
-
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
|
|
954
|
-
}
|
|
955
|
-
set app_endpoint(value: string) {
|
|
956
|
-
pb_1.Message.setField(this, 4, value);
|
|
957
|
-
}
|
|
958
|
-
get text_to_speech() {
|
|
959
|
-
return pb_1.Message.getWrapperField(this, ProductContainer, 5) as ProductContainer;
|
|
960
|
-
}
|
|
961
|
-
set text_to_speech(value: ProductContainer) {
|
|
962
|
-
pb_1.Message.setWrapperField(this, 5, value);
|
|
963
|
-
}
|
|
964
|
-
get has_text_to_speech() {
|
|
965
|
-
return pb_1.Message.getField(this, 5) != null;
|
|
966
|
-
}
|
|
967
|
-
get speech_to_text() {
|
|
968
|
-
return pb_1.Message.getWrapperField(this, ProductContainer, 6) as ProductContainer;
|
|
969
|
-
}
|
|
970
|
-
set speech_to_text(value: ProductContainer) {
|
|
971
|
-
pb_1.Message.setWrapperField(this, 6, value);
|
|
972
|
-
}
|
|
973
|
-
get has_speech_to_text() {
|
|
974
|
-
return pb_1.Message.getField(this, 6) != null;
|
|
975
|
-
}
|
|
976
|
-
get intelligence() {
|
|
977
|
-
return pb_1.Message.getWrapperField(this, ProductContainer, 7) as ProductContainer;
|
|
978
|
-
}
|
|
979
|
-
set intelligence(value: ProductContainer) {
|
|
980
|
-
pb_1.Message.setWrapperField(this, 7, value);
|
|
981
|
-
}
|
|
982
|
-
get has_intelligence() {
|
|
983
|
-
return pb_1.Message.getField(this, 7) != null;
|
|
984
|
-
}
|
|
985
|
-
static fromObject(data: {
|
|
986
|
-
ref?: string;
|
|
987
|
-
name?: string;
|
|
988
|
-
type?: ApplicationType;
|
|
989
|
-
app_endpoint?: string;
|
|
990
|
-
text_to_speech?: ReturnType<typeof ProductContainer.prototype.toObject>;
|
|
991
|
-
speech_to_text?: ReturnType<typeof ProductContainer.prototype.toObject>;
|
|
992
|
-
intelligence?: ReturnType<typeof ProductContainer.prototype.toObject>;
|
|
993
|
-
}): UpdateApplicationRequest {
|
|
994
|
-
const message = new UpdateApplicationRequest({});
|
|
995
|
-
if (data.ref != null) {
|
|
996
|
-
message.ref = data.ref;
|
|
997
|
-
}
|
|
998
|
-
if (data.name != null) {
|
|
999
|
-
message.name = data.name;
|
|
1000
|
-
}
|
|
1001
|
-
if (data.type != null) {
|
|
1002
|
-
message.type = data.type;
|
|
1003
|
-
}
|
|
1004
|
-
if (data.app_endpoint != null) {
|
|
1005
|
-
message.app_endpoint = data.app_endpoint;
|
|
1006
|
-
}
|
|
1007
|
-
if (data.text_to_speech != null) {
|
|
1008
|
-
message.text_to_speech = ProductContainer.fromObject(data.text_to_speech);
|
|
1009
|
-
}
|
|
1010
|
-
if (data.speech_to_text != null) {
|
|
1011
|
-
message.speech_to_text = ProductContainer.fromObject(data.speech_to_text);
|
|
1012
|
-
}
|
|
1013
|
-
if (data.intelligence != null) {
|
|
1014
|
-
message.intelligence = ProductContainer.fromObject(data.intelligence);
|
|
1015
|
-
}
|
|
1016
|
-
return message;
|
|
1017
|
-
}
|
|
1018
|
-
toObject() {
|
|
1019
|
-
const data: {
|
|
1020
|
-
ref?: string;
|
|
1021
|
-
name?: string;
|
|
1022
|
-
type?: ApplicationType;
|
|
1023
|
-
app_endpoint?: string;
|
|
1024
|
-
text_to_speech?: ReturnType<typeof ProductContainer.prototype.toObject>;
|
|
1025
|
-
speech_to_text?: ReturnType<typeof ProductContainer.prototype.toObject>;
|
|
1026
|
-
intelligence?: ReturnType<typeof ProductContainer.prototype.toObject>;
|
|
1027
|
-
} = {};
|
|
1028
|
-
if (this.ref != null) {
|
|
1029
|
-
data.ref = this.ref;
|
|
1030
|
-
}
|
|
1031
|
-
if (this.name != null) {
|
|
1032
|
-
data.name = this.name;
|
|
1033
|
-
}
|
|
1034
|
-
if (this.type != null) {
|
|
1035
|
-
data.type = this.type;
|
|
1036
|
-
}
|
|
1037
|
-
if (this.app_endpoint != null) {
|
|
1038
|
-
data.app_endpoint = this.app_endpoint;
|
|
1039
|
-
}
|
|
1040
|
-
if (this.text_to_speech != null) {
|
|
1041
|
-
data.text_to_speech = this.text_to_speech.toObject();
|
|
1042
|
-
}
|
|
1043
|
-
if (this.speech_to_text != null) {
|
|
1044
|
-
data.speech_to_text = this.speech_to_text.toObject();
|
|
1045
|
-
}
|
|
1046
|
-
if (this.intelligence != null) {
|
|
1047
|
-
data.intelligence = this.intelligence.toObject();
|
|
1048
|
-
}
|
|
1049
|
-
return data;
|
|
1050
|
-
}
|
|
1051
|
-
serialize(): Uint8Array;
|
|
1052
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
1053
|
-
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
1054
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
1055
|
-
if (this.ref.length)
|
|
1056
|
-
writer.writeString(1, this.ref);
|
|
1057
|
-
if (this.name.length)
|
|
1058
|
-
writer.writeString(2, this.name);
|
|
1059
|
-
if (this.type != ApplicationType.PROGRAMMABLE_VOICE)
|
|
1060
|
-
writer.writeEnum(3, this.type);
|
|
1061
|
-
if (this.app_endpoint.length)
|
|
1062
|
-
writer.writeString(4, this.app_endpoint);
|
|
1063
|
-
if (this.has_text_to_speech)
|
|
1064
|
-
writer.writeMessage(5, this.text_to_speech, () => this.text_to_speech.serialize(writer));
|
|
1065
|
-
if (this.has_speech_to_text)
|
|
1066
|
-
writer.writeMessage(6, this.speech_to_text, () => this.speech_to_text.serialize(writer));
|
|
1067
|
-
if (this.has_intelligence)
|
|
1068
|
-
writer.writeMessage(7, this.intelligence, () => this.intelligence.serialize(writer));
|
|
1069
|
-
if (!w)
|
|
1070
|
-
return writer.getResultBuffer();
|
|
1071
|
-
}
|
|
1072
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): UpdateApplicationRequest {
|
|
1073
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new UpdateApplicationRequest();
|
|
1074
|
-
while (reader.nextField()) {
|
|
1075
|
-
if (reader.isEndGroup())
|
|
1076
|
-
break;
|
|
1077
|
-
switch (reader.getFieldNumber()) {
|
|
1078
|
-
case 1:
|
|
1079
|
-
message.ref = reader.readString();
|
|
1080
|
-
break;
|
|
1081
|
-
case 2:
|
|
1082
|
-
message.name = reader.readString();
|
|
1083
|
-
break;
|
|
1084
|
-
case 3:
|
|
1085
|
-
message.type = reader.readEnum();
|
|
1086
|
-
break;
|
|
1087
|
-
case 4:
|
|
1088
|
-
message.app_endpoint = reader.readString();
|
|
1089
|
-
break;
|
|
1090
|
-
case 5:
|
|
1091
|
-
reader.readMessage(message.text_to_speech, () => message.text_to_speech = ProductContainer.deserialize(reader));
|
|
1092
|
-
break;
|
|
1093
|
-
case 6:
|
|
1094
|
-
reader.readMessage(message.speech_to_text, () => message.speech_to_text = ProductContainer.deserialize(reader));
|
|
1095
|
-
break;
|
|
1096
|
-
case 7:
|
|
1097
|
-
reader.readMessage(message.intelligence, () => message.intelligence = ProductContainer.deserialize(reader));
|
|
1098
|
-
break;
|
|
1099
|
-
default: reader.skipField();
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
return message;
|
|
1103
|
-
}
|
|
1104
|
-
serializeBinary(): Uint8Array {
|
|
1105
|
-
return this.serialize();
|
|
1106
|
-
}
|
|
1107
|
-
static deserializeBinary(bytes: Uint8Array): UpdateApplicationRequest {
|
|
1108
|
-
return UpdateApplicationRequest.deserialize(bytes);
|
|
1109
|
-
}
|
|
1110
|
-
}
|
|
1111
|
-
export class UpdateApplicationResponse extends pb_1.Message {
|
|
1112
|
-
#one_of_decls: number[][] = [];
|
|
1113
|
-
constructor(data?: any[] | {
|
|
1114
|
-
ref?: string;
|
|
1115
|
-
}) {
|
|
1116
|
-
super();
|
|
1117
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
1118
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
1119
|
-
if ("ref" in data && data.ref != undefined) {
|
|
1120
|
-
this.ref = data.ref;
|
|
1121
|
-
}
|
|
1122
|
-
}
|
|
1123
|
-
}
|
|
1124
|
-
get ref() {
|
|
1125
|
-
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
1126
|
-
}
|
|
1127
|
-
set ref(value: string) {
|
|
1128
|
-
pb_1.Message.setField(this, 1, value);
|
|
1129
|
-
}
|
|
1130
|
-
static fromObject(data: {
|
|
1131
|
-
ref?: string;
|
|
1132
|
-
}): UpdateApplicationResponse {
|
|
1133
|
-
const message = new UpdateApplicationResponse({});
|
|
1134
|
-
if (data.ref != null) {
|
|
1135
|
-
message.ref = data.ref;
|
|
1136
|
-
}
|
|
1137
|
-
return message;
|
|
1138
|
-
}
|
|
1139
|
-
toObject() {
|
|
1140
|
-
const data: {
|
|
1141
|
-
ref?: string;
|
|
1142
|
-
} = {};
|
|
1143
|
-
if (this.ref != null) {
|
|
1144
|
-
data.ref = this.ref;
|
|
1145
|
-
}
|
|
1146
|
-
return data;
|
|
1147
|
-
}
|
|
1148
|
-
serialize(): Uint8Array;
|
|
1149
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
1150
|
-
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
1151
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
1152
|
-
if (this.ref.length)
|
|
1153
|
-
writer.writeString(1, this.ref);
|
|
1154
|
-
if (!w)
|
|
1155
|
-
return writer.getResultBuffer();
|
|
1156
|
-
}
|
|
1157
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): UpdateApplicationResponse {
|
|
1158
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new UpdateApplicationResponse();
|
|
1159
|
-
while (reader.nextField()) {
|
|
1160
|
-
if (reader.isEndGroup())
|
|
1161
|
-
break;
|
|
1162
|
-
switch (reader.getFieldNumber()) {
|
|
1163
|
-
case 1:
|
|
1164
|
-
message.ref = reader.readString();
|
|
1165
|
-
break;
|
|
1166
|
-
default: reader.skipField();
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
return message;
|
|
1170
|
-
}
|
|
1171
|
-
serializeBinary(): Uint8Array {
|
|
1172
|
-
return this.serialize();
|
|
1173
|
-
}
|
|
1174
|
-
static deserializeBinary(bytes: Uint8Array): UpdateApplicationResponse {
|
|
1175
|
-
return UpdateApplicationResponse.deserialize(bytes);
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1178
|
-
export class DeleteApplicationRequest extends pb_1.Message {
|
|
1179
|
-
#one_of_decls: number[][] = [];
|
|
1180
|
-
constructor(data?: any[] | {
|
|
1181
|
-
ref?: string;
|
|
1182
|
-
}) {
|
|
1183
|
-
super();
|
|
1184
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
1185
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
1186
|
-
if ("ref" in data && data.ref != undefined) {
|
|
1187
|
-
this.ref = data.ref;
|
|
1188
|
-
}
|
|
1189
|
-
}
|
|
1190
|
-
}
|
|
1191
|
-
get ref() {
|
|
1192
|
-
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
1193
|
-
}
|
|
1194
|
-
set ref(value: string) {
|
|
1195
|
-
pb_1.Message.setField(this, 1, value);
|
|
1196
|
-
}
|
|
1197
|
-
static fromObject(data: {
|
|
1198
|
-
ref?: string;
|
|
1199
|
-
}): DeleteApplicationRequest {
|
|
1200
|
-
const message = new DeleteApplicationRequest({});
|
|
1201
|
-
if (data.ref != null) {
|
|
1202
|
-
message.ref = data.ref;
|
|
1203
|
-
}
|
|
1204
|
-
return message;
|
|
1205
|
-
}
|
|
1206
|
-
toObject() {
|
|
1207
|
-
const data: {
|
|
1208
|
-
ref?: string;
|
|
1209
|
-
} = {};
|
|
1210
|
-
if (this.ref != null) {
|
|
1211
|
-
data.ref = this.ref;
|
|
1212
|
-
}
|
|
1213
|
-
return data;
|
|
1214
|
-
}
|
|
1215
|
-
serialize(): Uint8Array;
|
|
1216
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
1217
|
-
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
1218
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
1219
|
-
if (this.ref.length)
|
|
1220
|
-
writer.writeString(1, this.ref);
|
|
1221
|
-
if (!w)
|
|
1222
|
-
return writer.getResultBuffer();
|
|
1223
|
-
}
|
|
1224
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DeleteApplicationRequest {
|
|
1225
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new DeleteApplicationRequest();
|
|
1226
|
-
while (reader.nextField()) {
|
|
1227
|
-
if (reader.isEndGroup())
|
|
1228
|
-
break;
|
|
1229
|
-
switch (reader.getFieldNumber()) {
|
|
1230
|
-
case 1:
|
|
1231
|
-
message.ref = reader.readString();
|
|
1232
|
-
break;
|
|
1233
|
-
default: reader.skipField();
|
|
1234
|
-
}
|
|
1235
|
-
}
|
|
1236
|
-
return message;
|
|
1237
|
-
}
|
|
1238
|
-
serializeBinary(): Uint8Array {
|
|
1239
|
-
return this.serialize();
|
|
1240
|
-
}
|
|
1241
|
-
static deserializeBinary(bytes: Uint8Array): DeleteApplicationRequest {
|
|
1242
|
-
return DeleteApplicationRequest.deserialize(bytes);
|
|
1243
|
-
}
|
|
1244
|
-
}
|
|
1245
|
-
export class DeleteApplicationResponse extends pb_1.Message {
|
|
1246
|
-
#one_of_decls: number[][] = [];
|
|
1247
|
-
constructor(data?: any[] | {
|
|
1248
|
-
ref?: string;
|
|
1249
|
-
}) {
|
|
1250
|
-
super();
|
|
1251
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
1252
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
1253
|
-
if ("ref" in data && data.ref != undefined) {
|
|
1254
|
-
this.ref = data.ref;
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
|
-
}
|
|
1258
|
-
get ref() {
|
|
1259
|
-
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
1260
|
-
}
|
|
1261
|
-
set ref(value: string) {
|
|
1262
|
-
pb_1.Message.setField(this, 1, value);
|
|
1263
|
-
}
|
|
1264
|
-
static fromObject(data: {
|
|
1265
|
-
ref?: string;
|
|
1266
|
-
}): DeleteApplicationResponse {
|
|
1267
|
-
const message = new DeleteApplicationResponse({});
|
|
1268
|
-
if (data.ref != null) {
|
|
1269
|
-
message.ref = data.ref;
|
|
1270
|
-
}
|
|
1271
|
-
return message;
|
|
1272
|
-
}
|
|
1273
|
-
toObject() {
|
|
1274
|
-
const data: {
|
|
1275
|
-
ref?: string;
|
|
1276
|
-
} = {};
|
|
1277
|
-
if (this.ref != null) {
|
|
1278
|
-
data.ref = this.ref;
|
|
1279
|
-
}
|
|
1280
|
-
return data;
|
|
1281
|
-
}
|
|
1282
|
-
serialize(): Uint8Array;
|
|
1283
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
1284
|
-
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
1285
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
1286
|
-
if (this.ref.length)
|
|
1287
|
-
writer.writeString(1, this.ref);
|
|
1288
|
-
if (!w)
|
|
1289
|
-
return writer.getResultBuffer();
|
|
1290
|
-
}
|
|
1291
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DeleteApplicationResponse {
|
|
1292
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new DeleteApplicationResponse();
|
|
1293
|
-
while (reader.nextField()) {
|
|
1294
|
-
if (reader.isEndGroup())
|
|
1295
|
-
break;
|
|
1296
|
-
switch (reader.getFieldNumber()) {
|
|
1297
|
-
case 1:
|
|
1298
|
-
message.ref = reader.readString();
|
|
1299
|
-
break;
|
|
1300
|
-
default: reader.skipField();
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
return message;
|
|
1304
|
-
}
|
|
1305
|
-
serializeBinary(): Uint8Array {
|
|
1306
|
-
return this.serialize();
|
|
1307
|
-
}
|
|
1308
|
-
static deserializeBinary(bytes: Uint8Array): DeleteApplicationResponse {
|
|
1309
|
-
return DeleteApplicationResponse.deserialize(bytes);
|
|
1310
|
-
}
|
|
1311
|
-
}
|
|
1312
|
-
interface GrpcUnaryServiceInterface<P, R> {
|
|
1313
|
-
(message: P, metadata: grpc_1.Metadata, options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall;
|
|
1314
|
-
(message: P, metadata: grpc_1.Metadata, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall;
|
|
1315
|
-
(message: P, options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall;
|
|
1316
|
-
(message: P, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall;
|
|
1317
|
-
}
|
|
1318
|
-
interface GrpcStreamServiceInterface<P, R> {
|
|
1319
|
-
(message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): grpc_1.ClientReadableStream<R>;
|
|
1320
|
-
(message: P, options?: grpc_1.CallOptions): grpc_1.ClientReadableStream<R>;
|
|
1321
|
-
}
|
|
1322
|
-
interface GrpWritableServiceInterface<P, R> {
|
|
1323
|
-
(metadata: grpc_1.Metadata, options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientWritableStream<P>;
|
|
1324
|
-
(metadata: grpc_1.Metadata, callback: grpc_1.requestCallback<R>): grpc_1.ClientWritableStream<P>;
|
|
1325
|
-
(options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientWritableStream<P>;
|
|
1326
|
-
(callback: grpc_1.requestCallback<R>): grpc_1.ClientWritableStream<P>;
|
|
1327
|
-
}
|
|
1328
|
-
interface GrpcChunkServiceInterface<P, R> {
|
|
1329
|
-
(metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): grpc_1.ClientDuplexStream<P, R>;
|
|
1330
|
-
(options?: grpc_1.CallOptions): grpc_1.ClientDuplexStream<P, R>;
|
|
1331
|
-
}
|
|
1332
|
-
interface GrpcPromiseServiceInterface<P, R> {
|
|
1333
|
-
(message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): Promise<R>;
|
|
1334
|
-
(message: P, options?: grpc_1.CallOptions): Promise<R>;
|
|
1335
|
-
}
|
|
1336
|
-
export abstract class UnimplementedApplicationsService {
|
|
1337
|
-
static definition = {
|
|
1338
|
-
CreateApplication: {
|
|
1339
|
-
path: "/fonoster.applications.v1beta2.Applications/CreateApplication",
|
|
1340
|
-
requestStream: false,
|
|
1341
|
-
responseStream: false,
|
|
1342
|
-
requestSerialize: (message: CreateApplicationRequest) => Buffer.from(message.serialize()),
|
|
1343
|
-
requestDeserialize: (bytes: Buffer) => CreateApplicationRequest.deserialize(new Uint8Array(bytes)),
|
|
1344
|
-
responseSerialize: (message: CreateApplicationResponse) => Buffer.from(message.serialize()),
|
|
1345
|
-
responseDeserialize: (bytes: Buffer) => CreateApplicationResponse.deserialize(new Uint8Array(bytes))
|
|
1346
|
-
},
|
|
1347
|
-
GetApplication: {
|
|
1348
|
-
path: "/fonoster.applications.v1beta2.Applications/GetApplication",
|
|
1349
|
-
requestStream: false,
|
|
1350
|
-
responseStream: false,
|
|
1351
|
-
requestSerialize: (message: GetApplicationRequest) => Buffer.from(message.serialize()),
|
|
1352
|
-
requestDeserialize: (bytes: Buffer) => GetApplicationRequest.deserialize(new Uint8Array(bytes)),
|
|
1353
|
-
responseSerialize: (message: Application) => Buffer.from(message.serialize()),
|
|
1354
|
-
responseDeserialize: (bytes: Buffer) => Application.deserialize(new Uint8Array(bytes))
|
|
1355
|
-
},
|
|
1356
|
-
ListApplications: {
|
|
1357
|
-
path: "/fonoster.applications.v1beta2.Applications/ListApplications",
|
|
1358
|
-
requestStream: false,
|
|
1359
|
-
responseStream: false,
|
|
1360
|
-
requestSerialize: (message: ListApplicationsRequest) => Buffer.from(message.serialize()),
|
|
1361
|
-
requestDeserialize: (bytes: Buffer) => ListApplicationsRequest.deserialize(new Uint8Array(bytes)),
|
|
1362
|
-
responseSerialize: (message: ListApplicationsResponse) => Buffer.from(message.serialize()),
|
|
1363
|
-
responseDeserialize: (bytes: Buffer) => ListApplicationsResponse.deserialize(new Uint8Array(bytes))
|
|
1364
|
-
},
|
|
1365
|
-
UpdateApplication: {
|
|
1366
|
-
path: "/fonoster.applications.v1beta2.Applications/UpdateApplication",
|
|
1367
|
-
requestStream: false,
|
|
1368
|
-
responseStream: false,
|
|
1369
|
-
requestSerialize: (message: UpdateApplicationRequest) => Buffer.from(message.serialize()),
|
|
1370
|
-
requestDeserialize: (bytes: Buffer) => UpdateApplicationRequest.deserialize(new Uint8Array(bytes)),
|
|
1371
|
-
responseSerialize: (message: UpdateApplicationResponse) => Buffer.from(message.serialize()),
|
|
1372
|
-
responseDeserialize: (bytes: Buffer) => UpdateApplicationResponse.deserialize(new Uint8Array(bytes))
|
|
1373
|
-
},
|
|
1374
|
-
DeleteApplication: {
|
|
1375
|
-
path: "/fonoster.applications.v1beta2.Applications/DeleteApplication",
|
|
1376
|
-
requestStream: false,
|
|
1377
|
-
responseStream: false,
|
|
1378
|
-
requestSerialize: (message: DeleteApplicationRequest) => Buffer.from(message.serialize()),
|
|
1379
|
-
requestDeserialize: (bytes: Buffer) => DeleteApplicationRequest.deserialize(new Uint8Array(bytes)),
|
|
1380
|
-
responseSerialize: (message: DeleteApplicationResponse) => Buffer.from(message.serialize()),
|
|
1381
|
-
responseDeserialize: (bytes: Buffer) => DeleteApplicationResponse.deserialize(new Uint8Array(bytes))
|
|
1382
|
-
}
|
|
1383
|
-
};
|
|
1384
|
-
[method: string]: grpc_1.UntypedHandleCall;
|
|
1385
|
-
abstract CreateApplication(call: grpc_1.ServerUnaryCall<CreateApplicationRequest, CreateApplicationResponse>, callback: grpc_1.sendUnaryData<CreateApplicationResponse>): void;
|
|
1386
|
-
abstract GetApplication(call: grpc_1.ServerUnaryCall<GetApplicationRequest, Application>, callback: grpc_1.sendUnaryData<Application>): void;
|
|
1387
|
-
abstract ListApplications(call: grpc_1.ServerUnaryCall<ListApplicationsRequest, ListApplicationsResponse>, callback: grpc_1.sendUnaryData<ListApplicationsResponse>): void;
|
|
1388
|
-
abstract UpdateApplication(call: grpc_1.ServerUnaryCall<UpdateApplicationRequest, UpdateApplicationResponse>, callback: grpc_1.sendUnaryData<UpdateApplicationResponse>): void;
|
|
1389
|
-
abstract DeleteApplication(call: grpc_1.ServerUnaryCall<DeleteApplicationRequest, DeleteApplicationResponse>, callback: grpc_1.sendUnaryData<DeleteApplicationResponse>): void;
|
|
1390
|
-
}
|
|
1391
|
-
export class ApplicationsClient extends grpc_1.makeGenericClientConstructor(UnimplementedApplicationsService.definition, "Applications", {}) {
|
|
1392
|
-
constructor(address: string, credentials: grpc_1.ChannelCredentials, options?: Partial<grpc_1.ChannelOptions>) {
|
|
1393
|
-
super(address, credentials, options);
|
|
1394
|
-
}
|
|
1395
|
-
CreateApplication: GrpcUnaryServiceInterface<CreateApplicationRequest, CreateApplicationResponse> = (message: CreateApplicationRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<CreateApplicationResponse>, options?: grpc_1.CallOptions | grpc_1.requestCallback<CreateApplicationResponse>, callback?: grpc_1.requestCallback<CreateApplicationResponse>): grpc_1.ClientUnaryCall => {
|
|
1396
|
-
return super.CreateApplication(message, metadata, options, callback);
|
|
1397
|
-
};
|
|
1398
|
-
GetApplication: GrpcUnaryServiceInterface<GetApplicationRequest, Application> = (message: GetApplicationRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<Application>, options?: grpc_1.CallOptions | grpc_1.requestCallback<Application>, callback?: grpc_1.requestCallback<Application>): grpc_1.ClientUnaryCall => {
|
|
1399
|
-
return super.GetApplication(message, metadata, options, callback);
|
|
1400
|
-
};
|
|
1401
|
-
ListApplications: GrpcUnaryServiceInterface<ListApplicationsRequest, ListApplicationsResponse> = (message: ListApplicationsRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<ListApplicationsResponse>, options?: grpc_1.CallOptions | grpc_1.requestCallback<ListApplicationsResponse>, callback?: grpc_1.requestCallback<ListApplicationsResponse>): grpc_1.ClientUnaryCall => {
|
|
1402
|
-
return super.ListApplications(message, metadata, options, callback);
|
|
1403
|
-
};
|
|
1404
|
-
UpdateApplication: GrpcUnaryServiceInterface<UpdateApplicationRequest, UpdateApplicationResponse> = (message: UpdateApplicationRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<UpdateApplicationResponse>, options?: grpc_1.CallOptions | grpc_1.requestCallback<UpdateApplicationResponse>, callback?: grpc_1.requestCallback<UpdateApplicationResponse>): grpc_1.ClientUnaryCall => {
|
|
1405
|
-
return super.UpdateApplication(message, metadata, options, callback);
|
|
1406
|
-
};
|
|
1407
|
-
DeleteApplication: GrpcUnaryServiceInterface<DeleteApplicationRequest, DeleteApplicationResponse> = (message: DeleteApplicationRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<DeleteApplicationResponse>, options?: grpc_1.CallOptions | grpc_1.requestCallback<DeleteApplicationResponse>, callback?: grpc_1.requestCallback<DeleteApplicationResponse>): grpc_1.ClientUnaryCall => {
|
|
1408
|
-
return super.DeleteApplication(message, metadata, options, callback);
|
|
1409
|
-
};
|
|
1410
|
-
}
|
|
1411
|
-
}
|