@fonoster/sdk 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +358 -2
  3. package/dist/node/Applications.d.ts +206 -0
  4. package/dist/node/Applications.js +267 -0
  5. package/dist/node/client/AbstractClient.d.ts +22 -0
  6. package/dist/node/client/AbstractClient.js +86 -0
  7. package/dist/node/client/Client.d.ts +15 -0
  8. package/dist/node/client/Client.js +61 -0
  9. package/dist/node/client/TokenRefresherNode.d.ts +8 -0
  10. package/dist/node/client/TokenRefresherNode.js +43 -0
  11. package/dist/node/client/TokenRefresherWeb.d.ts +13 -0
  12. package/dist/node/client/TokenRefresherWeb.js +44 -0
  13. package/dist/node/client/isJwtExpired.d.ts +2 -0
  14. package/dist/node/client/isJwtExpired.js +37 -0
  15. package/dist/node/client/jsonToObject.d.ts +8 -0
  16. package/dist/node/client/jsonToObject.js +31 -0
  17. package/dist/node/client/makeRpcRequest.d.ts +11 -0
  18. package/dist/node/client/makeRpcRequest.js +44 -0
  19. package/dist/node/client/objectToJson.d.ts +3 -0
  20. package/dist/node/client/objectToJson.js +32 -0
  21. package/dist/node/client/types.d.ts +26 -0
  22. package/dist/node/client/types.js +2 -0
  23. package/dist/node/client/utils.d.ts +5 -0
  24. package/dist/node/client/utils.js +17 -0
  25. package/dist/node/generated/node/acls.ts +1054 -0
  26. package/dist/node/generated/node/acls_grpc_pb.js +200 -0
  27. package/dist/node/generated/node/acls_pb.js +2063 -0
  28. package/dist/node/generated/node/agents.ts +1388 -0
  29. package/dist/node/generated/node/agents_grpc_pb.js +202 -0
  30. package/dist/node/generated/node/agents_pb.js +2403 -0
  31. package/dist/node/generated/node/applications.ts +1411 -0
  32. package/dist/node/generated/node/applications_grpc_pb.js +201 -0
  33. package/dist/node/generated/node/applications_pb.js +2651 -0
  34. package/dist/node/generated/node/calls.ts +1123 -0
  35. package/dist/node/generated/node/calls_grpc_pb.js +169 -0
  36. package/dist/node/generated/node/calls_pb.js +1916 -0
  37. package/dist/node/generated/node/credentials.ts +1054 -0
  38. package/dist/node/generated/node/credentials_grpc_pb.js +200 -0
  39. package/dist/node/generated/node/credentials_pb.js +1928 -0
  40. package/dist/node/generated/node/domains.ts +1144 -0
  41. package/dist/node/generated/node/domains_grpc_pb.js +200 -0
  42. package/dist/node/generated/node/domains_pb.js +2170 -0
  43. package/dist/node/generated/node/google/protobuf/empty.ts +48 -0
  44. package/dist/node/generated/node/google/protobuf/struct.ts +408 -0
  45. package/dist/node/generated/node/identity.ts +4267 -0
  46. package/dist/node/generated/node/identity_grpc_pb.js +761 -0
  47. package/dist/node/generated/node/identity_pb.js +8058 -0
  48. package/dist/node/generated/node/numbers.ts +1371 -0
  49. package/dist/node/generated/node/numbers_grpc_pb.js +201 -0
  50. package/dist/node/generated/node/numbers_pb.js +2470 -0
  51. package/dist/node/generated/node/secrets.ts +985 -0
  52. package/dist/node/generated/node/secrets_grpc_pb.js +200 -0
  53. package/dist/node/generated/node/secrets_pb.js +1838 -0
  54. package/dist/node/generated/node/trunks.ts +1546 -0
  55. package/dist/node/generated/node/trunks_grpc_pb.js +202 -0
  56. package/dist/node/generated/node/trunks_pb.js +2777 -0
  57. package/dist/node/generated/web/AclsServiceClientPb.ts +258 -0
  58. package/dist/node/generated/web/AgentsServiceClientPb.ts +258 -0
  59. package/dist/node/generated/web/ApplicationsServiceClientPb.ts +258 -0
  60. package/dist/node/generated/web/CallsServiceClientPb.ts +194 -0
  61. package/dist/node/generated/web/CredentialsServiceClientPb.ts +258 -0
  62. package/dist/node/generated/web/DomainsServiceClientPb.ts +258 -0
  63. package/dist/node/generated/web/IdentityServiceClientPb.ts +990 -0
  64. package/dist/node/generated/web/NumbersServiceClientPb.ts +258 -0
  65. package/dist/node/generated/web/SecretsServiceClientPb.ts +258 -0
  66. package/dist/node/generated/web/TrunksServiceClientPb.ts +258 -0
  67. package/dist/node/generated/web/acls.ts +1054 -0
  68. package/dist/node/generated/web/acls_pb.d.ts +246 -0
  69. package/dist/node/generated/web/acls_pb.js +2063 -0
  70. package/dist/node/generated/web/agents.ts +1388 -0
  71. package/dist/node/generated/web/agents_pb.d.ts +300 -0
  72. package/dist/node/generated/web/agents_pb.js +2403 -0
  73. package/dist/node/generated/web/applications.ts +1411 -0
  74. package/dist/node/generated/web/applications_pb.d.ts +322 -0
  75. package/dist/node/generated/web/applications_pb.js +2651 -0
  76. package/dist/node/generated/web/calls.ts +1123 -0
  77. package/dist/node/generated/web/calls_pb.d.ts +262 -0
  78. package/dist/node/generated/web/calls_pb.js +1916 -0
  79. package/dist/node/generated/web/credentials.ts +1054 -0
  80. package/dist/node/generated/web/credentials_pb.d.ts +234 -0
  81. package/dist/node/generated/web/credentials_pb.js +1928 -0
  82. package/dist/node/generated/web/domains.ts +1144 -0
  83. package/dist/node/generated/web/domains_pb.d.ts +260 -0
  84. package/dist/node/generated/web/domains_pb.js +2170 -0
  85. package/dist/node/generated/web/google/protobuf/empty.ts +48 -0
  86. package/dist/node/generated/web/google/protobuf/struct.ts +408 -0
  87. package/dist/node/generated/web/identity.ts +4267 -0
  88. package/dist/node/generated/web/identity_pb.d.ts +973 -0
  89. package/dist/node/generated/web/identity_pb.js +8058 -0
  90. package/dist/node/generated/web/numbers.ts +1371 -0
  91. package/dist/node/generated/web/numbers_pb.d.ts +305 -0
  92. package/dist/node/generated/web/numbers_pb.js +2470 -0
  93. package/dist/node/generated/web/secrets.ts +985 -0
  94. package/dist/node/generated/web/secrets_pb.d.ts +222 -0
  95. package/dist/node/generated/web/secrets_pb.js +1838 -0
  96. package/dist/node/generated/web/trunks.ts +1546 -0
  97. package/dist/node/generated/web/trunks_pb.d.ts +338 -0
  98. package/dist/node/generated/web/trunks_pb.js +2777 -0
  99. package/dist/node/node.d.ts +2 -0
  100. package/dist/node/node.js +36 -0
  101. package/dist/node/tsconfig.node.tsbuildinfo +1 -0
  102. package/dist/node/utils.d.ts +22 -0
  103. package/dist/node/utils.js +54 -0
  104. package/dist/web/fonoster.min.js +1 -0
  105. package/dist/web/index.esm.js +1 -0
  106. package/package.json +24 -12
  107. package/dist/fonoster.min.js +0 -1
  108. package/dist/index.d.ts +0 -6
  109. package/dist/index.esm.js +0 -1
  110. package/dist/index.js +0 -1
  111. package/dist/printHello.d.ts +0 -2
@@ -0,0 +1,2651 @@
1
+ // source: applications.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
17
+
18
+ var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
19
+ goog.object.extend(proto, google_protobuf_struct_pb);
20
+ goog.exportSymbol('proto.fonoster.applications.v1beta2.Application', null, global);
21
+ goog.exportSymbol('proto.fonoster.applications.v1beta2.ApplicationType', null, global);
22
+ goog.exportSymbol('proto.fonoster.applications.v1beta2.CreateApplicationRequest', null, global);
23
+ goog.exportSymbol('proto.fonoster.applications.v1beta2.CreateApplicationResponse', null, global);
24
+ goog.exportSymbol('proto.fonoster.applications.v1beta2.DeleteApplicationRequest', null, global);
25
+ goog.exportSymbol('proto.fonoster.applications.v1beta2.DeleteApplicationResponse', null, global);
26
+ goog.exportSymbol('proto.fonoster.applications.v1beta2.GetApplicationRequest', null, global);
27
+ goog.exportSymbol('proto.fonoster.applications.v1beta2.ListApplicationsRequest', null, global);
28
+ goog.exportSymbol('proto.fonoster.applications.v1beta2.ListApplicationsResponse', null, global);
29
+ goog.exportSymbol('proto.fonoster.applications.v1beta2.ProductContainer', null, global);
30
+ goog.exportSymbol('proto.fonoster.applications.v1beta2.UpdateApplicationRequest', null, global);
31
+ goog.exportSymbol('proto.fonoster.applications.v1beta2.UpdateApplicationResponse', null, global);
32
+ /**
33
+ * Generated by JsPbCodeGenerator.
34
+ * @param {Array=} opt_data Optional initial data array, typically from a
35
+ * server response, or constructed directly in Javascript. The array is used
36
+ * in place and becomes part of the constructed object. It is not cloned.
37
+ * If no data is provided, the constructed object will be empty, but still
38
+ * valid.
39
+ * @extends {jspb.Message}
40
+ * @constructor
41
+ */
42
+ proto.fonoster.applications.v1beta2.ProductContainer = function(opt_data) {
43
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
44
+ };
45
+ goog.inherits(proto.fonoster.applications.v1beta2.ProductContainer, jspb.Message);
46
+ if (goog.DEBUG && !COMPILED) {
47
+ /**
48
+ * @public
49
+ * @override
50
+ */
51
+ proto.fonoster.applications.v1beta2.ProductContainer.displayName = 'proto.fonoster.applications.v1beta2.ProductContainer';
52
+ }
53
+ /**
54
+ * Generated by JsPbCodeGenerator.
55
+ * @param {Array=} opt_data Optional initial data array, typically from a
56
+ * server response, or constructed directly in Javascript. The array is used
57
+ * in place and becomes part of the constructed object. It is not cloned.
58
+ * If no data is provided, the constructed object will be empty, but still
59
+ * valid.
60
+ * @extends {jspb.Message}
61
+ * @constructor
62
+ */
63
+ proto.fonoster.applications.v1beta2.Application = function(opt_data) {
64
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
65
+ };
66
+ goog.inherits(proto.fonoster.applications.v1beta2.Application, jspb.Message);
67
+ if (goog.DEBUG && !COMPILED) {
68
+ /**
69
+ * @public
70
+ * @override
71
+ */
72
+ proto.fonoster.applications.v1beta2.Application.displayName = 'proto.fonoster.applications.v1beta2.Application';
73
+ }
74
+ /**
75
+ * Generated by JsPbCodeGenerator.
76
+ * @param {Array=} opt_data Optional initial data array, typically from a
77
+ * server response, or constructed directly in Javascript. The array is used
78
+ * in place and becomes part of the constructed object. It is not cloned.
79
+ * If no data is provided, the constructed object will be empty, but still
80
+ * valid.
81
+ * @extends {jspb.Message}
82
+ * @constructor
83
+ */
84
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest = function(opt_data) {
85
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
86
+ };
87
+ goog.inherits(proto.fonoster.applications.v1beta2.CreateApplicationRequest, jspb.Message);
88
+ if (goog.DEBUG && !COMPILED) {
89
+ /**
90
+ * @public
91
+ * @override
92
+ */
93
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.displayName = 'proto.fonoster.applications.v1beta2.CreateApplicationRequest';
94
+ }
95
+ /**
96
+ * Generated by JsPbCodeGenerator.
97
+ * @param {Array=} opt_data Optional initial data array, typically from a
98
+ * server response, or constructed directly in Javascript. The array is used
99
+ * in place and becomes part of the constructed object. It is not cloned.
100
+ * If no data is provided, the constructed object will be empty, but still
101
+ * valid.
102
+ * @extends {jspb.Message}
103
+ * @constructor
104
+ */
105
+ proto.fonoster.applications.v1beta2.CreateApplicationResponse = function(opt_data) {
106
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
107
+ };
108
+ goog.inherits(proto.fonoster.applications.v1beta2.CreateApplicationResponse, jspb.Message);
109
+ if (goog.DEBUG && !COMPILED) {
110
+ /**
111
+ * @public
112
+ * @override
113
+ */
114
+ proto.fonoster.applications.v1beta2.CreateApplicationResponse.displayName = 'proto.fonoster.applications.v1beta2.CreateApplicationResponse';
115
+ }
116
+ /**
117
+ * Generated by JsPbCodeGenerator.
118
+ * @param {Array=} opt_data Optional initial data array, typically from a
119
+ * server response, or constructed directly in Javascript. The array is used
120
+ * in place and becomes part of the constructed object. It is not cloned.
121
+ * If no data is provided, the constructed object will be empty, but still
122
+ * valid.
123
+ * @extends {jspb.Message}
124
+ * @constructor
125
+ */
126
+ proto.fonoster.applications.v1beta2.GetApplicationRequest = function(opt_data) {
127
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
128
+ };
129
+ goog.inherits(proto.fonoster.applications.v1beta2.GetApplicationRequest, jspb.Message);
130
+ if (goog.DEBUG && !COMPILED) {
131
+ /**
132
+ * @public
133
+ * @override
134
+ */
135
+ proto.fonoster.applications.v1beta2.GetApplicationRequest.displayName = 'proto.fonoster.applications.v1beta2.GetApplicationRequest';
136
+ }
137
+ /**
138
+ * Generated by JsPbCodeGenerator.
139
+ * @param {Array=} opt_data Optional initial data array, typically from a
140
+ * server response, or constructed directly in Javascript. The array is used
141
+ * in place and becomes part of the constructed object. It is not cloned.
142
+ * If no data is provided, the constructed object will be empty, but still
143
+ * valid.
144
+ * @extends {jspb.Message}
145
+ * @constructor
146
+ */
147
+ proto.fonoster.applications.v1beta2.ListApplicationsRequest = function(opt_data) {
148
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
149
+ };
150
+ goog.inherits(proto.fonoster.applications.v1beta2.ListApplicationsRequest, jspb.Message);
151
+ if (goog.DEBUG && !COMPILED) {
152
+ /**
153
+ * @public
154
+ * @override
155
+ */
156
+ proto.fonoster.applications.v1beta2.ListApplicationsRequest.displayName = 'proto.fonoster.applications.v1beta2.ListApplicationsRequest';
157
+ }
158
+ /**
159
+ * Generated by JsPbCodeGenerator.
160
+ * @param {Array=} opt_data Optional initial data array, typically from a
161
+ * server response, or constructed directly in Javascript. The array is used
162
+ * in place and becomes part of the constructed object. It is not cloned.
163
+ * If no data is provided, the constructed object will be empty, but still
164
+ * valid.
165
+ * @extends {jspb.Message}
166
+ * @constructor
167
+ */
168
+ proto.fonoster.applications.v1beta2.ListApplicationsResponse = function(opt_data) {
169
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.fonoster.applications.v1beta2.ListApplicationsResponse.repeatedFields_, null);
170
+ };
171
+ goog.inherits(proto.fonoster.applications.v1beta2.ListApplicationsResponse, jspb.Message);
172
+ if (goog.DEBUG && !COMPILED) {
173
+ /**
174
+ * @public
175
+ * @override
176
+ */
177
+ proto.fonoster.applications.v1beta2.ListApplicationsResponse.displayName = 'proto.fonoster.applications.v1beta2.ListApplicationsResponse';
178
+ }
179
+ /**
180
+ * Generated by JsPbCodeGenerator.
181
+ * @param {Array=} opt_data Optional initial data array, typically from a
182
+ * server response, or constructed directly in Javascript. The array is used
183
+ * in place and becomes part of the constructed object. It is not cloned.
184
+ * If no data is provided, the constructed object will be empty, but still
185
+ * valid.
186
+ * @extends {jspb.Message}
187
+ * @constructor
188
+ */
189
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest = function(opt_data) {
190
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
191
+ };
192
+ goog.inherits(proto.fonoster.applications.v1beta2.UpdateApplicationRequest, jspb.Message);
193
+ if (goog.DEBUG && !COMPILED) {
194
+ /**
195
+ * @public
196
+ * @override
197
+ */
198
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.displayName = 'proto.fonoster.applications.v1beta2.UpdateApplicationRequest';
199
+ }
200
+ /**
201
+ * Generated by JsPbCodeGenerator.
202
+ * @param {Array=} opt_data Optional initial data array, typically from a
203
+ * server response, or constructed directly in Javascript. The array is used
204
+ * in place and becomes part of the constructed object. It is not cloned.
205
+ * If no data is provided, the constructed object will be empty, but still
206
+ * valid.
207
+ * @extends {jspb.Message}
208
+ * @constructor
209
+ */
210
+ proto.fonoster.applications.v1beta2.UpdateApplicationResponse = function(opt_data) {
211
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
212
+ };
213
+ goog.inherits(proto.fonoster.applications.v1beta2.UpdateApplicationResponse, jspb.Message);
214
+ if (goog.DEBUG && !COMPILED) {
215
+ /**
216
+ * @public
217
+ * @override
218
+ */
219
+ proto.fonoster.applications.v1beta2.UpdateApplicationResponse.displayName = 'proto.fonoster.applications.v1beta2.UpdateApplicationResponse';
220
+ }
221
+ /**
222
+ * Generated by JsPbCodeGenerator.
223
+ * @param {Array=} opt_data Optional initial data array, typically from a
224
+ * server response, or constructed directly in Javascript. The array is used
225
+ * in place and becomes part of the constructed object. It is not cloned.
226
+ * If no data is provided, the constructed object will be empty, but still
227
+ * valid.
228
+ * @extends {jspb.Message}
229
+ * @constructor
230
+ */
231
+ proto.fonoster.applications.v1beta2.DeleteApplicationRequest = function(opt_data) {
232
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
233
+ };
234
+ goog.inherits(proto.fonoster.applications.v1beta2.DeleteApplicationRequest, jspb.Message);
235
+ if (goog.DEBUG && !COMPILED) {
236
+ /**
237
+ * @public
238
+ * @override
239
+ */
240
+ proto.fonoster.applications.v1beta2.DeleteApplicationRequest.displayName = 'proto.fonoster.applications.v1beta2.DeleteApplicationRequest';
241
+ }
242
+ /**
243
+ * Generated by JsPbCodeGenerator.
244
+ * @param {Array=} opt_data Optional initial data array, typically from a
245
+ * server response, or constructed directly in Javascript. The array is used
246
+ * in place and becomes part of the constructed object. It is not cloned.
247
+ * If no data is provided, the constructed object will be empty, but still
248
+ * valid.
249
+ * @extends {jspb.Message}
250
+ * @constructor
251
+ */
252
+ proto.fonoster.applications.v1beta2.DeleteApplicationResponse = function(opt_data) {
253
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
254
+ };
255
+ goog.inherits(proto.fonoster.applications.v1beta2.DeleteApplicationResponse, jspb.Message);
256
+ if (goog.DEBUG && !COMPILED) {
257
+ /**
258
+ * @public
259
+ * @override
260
+ */
261
+ proto.fonoster.applications.v1beta2.DeleteApplicationResponse.displayName = 'proto.fonoster.applications.v1beta2.DeleteApplicationResponse';
262
+ }
263
+
264
+
265
+
266
+ if (jspb.Message.GENERATE_TO_OBJECT) {
267
+ /**
268
+ * Creates an object representation of this proto.
269
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
270
+ * Optional fields that are not set will be set to undefined.
271
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
272
+ * For the list of reserved names please see:
273
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
274
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
275
+ * JSPB instance for transitional soy proto support:
276
+ * http://goto/soy-param-migration
277
+ * @return {!Object}
278
+ */
279
+ proto.fonoster.applications.v1beta2.ProductContainer.prototype.toObject = function(opt_includeInstance) {
280
+ return proto.fonoster.applications.v1beta2.ProductContainer.toObject(opt_includeInstance, this);
281
+ };
282
+
283
+
284
+ /**
285
+ * Static version of the {@see toObject} method.
286
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
287
+ * the JSPB instance for transitional soy proto support:
288
+ * http://goto/soy-param-migration
289
+ * @param {!proto.fonoster.applications.v1beta2.ProductContainer} msg The msg instance to transform.
290
+ * @return {!Object}
291
+ * @suppress {unusedLocalVariables} f is only used for nested messages
292
+ */
293
+ proto.fonoster.applications.v1beta2.ProductContainer.toObject = function(includeInstance, msg) {
294
+ var f, obj = {
295
+ productRef: jspb.Message.getFieldWithDefault(msg, 1, ""),
296
+ config: (f = msg.getConfig()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
297
+ credentials: (f = msg.getCredentials()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
298
+ };
299
+
300
+ if (includeInstance) {
301
+ obj.$jspbMessageInstance = msg;
302
+ }
303
+ return obj;
304
+ };
305
+ }
306
+
307
+
308
+ /**
309
+ * Deserializes binary data (in protobuf wire format).
310
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
311
+ * @return {!proto.fonoster.applications.v1beta2.ProductContainer}
312
+ */
313
+ proto.fonoster.applications.v1beta2.ProductContainer.deserializeBinary = function(bytes) {
314
+ var reader = new jspb.BinaryReader(bytes);
315
+ var msg = new proto.fonoster.applications.v1beta2.ProductContainer;
316
+ return proto.fonoster.applications.v1beta2.ProductContainer.deserializeBinaryFromReader(msg, reader);
317
+ };
318
+
319
+
320
+ /**
321
+ * Deserializes binary data (in protobuf wire format) from the
322
+ * given reader into the given message object.
323
+ * @param {!proto.fonoster.applications.v1beta2.ProductContainer} msg The message object to deserialize into.
324
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
325
+ * @return {!proto.fonoster.applications.v1beta2.ProductContainer}
326
+ */
327
+ proto.fonoster.applications.v1beta2.ProductContainer.deserializeBinaryFromReader = function(msg, reader) {
328
+ while (reader.nextField()) {
329
+ if (reader.isEndGroup()) {
330
+ break;
331
+ }
332
+ var field = reader.getFieldNumber();
333
+ switch (field) {
334
+ case 1:
335
+ var value = /** @type {string} */ (reader.readString());
336
+ msg.setProductRef(value);
337
+ break;
338
+ case 2:
339
+ var value = new google_protobuf_struct_pb.Struct;
340
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
341
+ msg.setConfig(value);
342
+ break;
343
+ case 3:
344
+ var value = new google_protobuf_struct_pb.Struct;
345
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
346
+ msg.setCredentials(value);
347
+ break;
348
+ default:
349
+ reader.skipField();
350
+ break;
351
+ }
352
+ }
353
+ return msg;
354
+ };
355
+
356
+
357
+ /**
358
+ * Serializes the message to binary data (in protobuf wire format).
359
+ * @return {!Uint8Array}
360
+ */
361
+ proto.fonoster.applications.v1beta2.ProductContainer.prototype.serializeBinary = function() {
362
+ var writer = new jspb.BinaryWriter();
363
+ proto.fonoster.applications.v1beta2.ProductContainer.serializeBinaryToWriter(this, writer);
364
+ return writer.getResultBuffer();
365
+ };
366
+
367
+
368
+ /**
369
+ * Serializes the given message to binary data (in protobuf wire
370
+ * format), writing to the given BinaryWriter.
371
+ * @param {!proto.fonoster.applications.v1beta2.ProductContainer} message
372
+ * @param {!jspb.BinaryWriter} writer
373
+ * @suppress {unusedLocalVariables} f is only used for nested messages
374
+ */
375
+ proto.fonoster.applications.v1beta2.ProductContainer.serializeBinaryToWriter = function(message, writer) {
376
+ var f = undefined;
377
+ f = message.getProductRef();
378
+ if (f.length > 0) {
379
+ writer.writeString(
380
+ 1,
381
+ f
382
+ );
383
+ }
384
+ f = message.getConfig();
385
+ if (f != null) {
386
+ writer.writeMessage(
387
+ 2,
388
+ f,
389
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
390
+ );
391
+ }
392
+ f = message.getCredentials();
393
+ if (f != null) {
394
+ writer.writeMessage(
395
+ 3,
396
+ f,
397
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
398
+ );
399
+ }
400
+ };
401
+
402
+
403
+ /**
404
+ * optional string product_ref = 1;
405
+ * @return {string}
406
+ */
407
+ proto.fonoster.applications.v1beta2.ProductContainer.prototype.getProductRef = function() {
408
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
409
+ };
410
+
411
+
412
+ /**
413
+ * @param {string} value
414
+ * @return {!proto.fonoster.applications.v1beta2.ProductContainer} returns this
415
+ */
416
+ proto.fonoster.applications.v1beta2.ProductContainer.prototype.setProductRef = function(value) {
417
+ return jspb.Message.setProto3StringField(this, 1, value);
418
+ };
419
+
420
+
421
+ /**
422
+ * optional google.protobuf.Struct config = 2;
423
+ * @return {?proto.google.protobuf.Struct}
424
+ */
425
+ proto.fonoster.applications.v1beta2.ProductContainer.prototype.getConfig = function() {
426
+ return /** @type{?proto.google.protobuf.Struct} */ (
427
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 2));
428
+ };
429
+
430
+
431
+ /**
432
+ * @param {?proto.google.protobuf.Struct|undefined} value
433
+ * @return {!proto.fonoster.applications.v1beta2.ProductContainer} returns this
434
+ */
435
+ proto.fonoster.applications.v1beta2.ProductContainer.prototype.setConfig = function(value) {
436
+ return jspb.Message.setWrapperField(this, 2, value);
437
+ };
438
+
439
+
440
+ /**
441
+ * Clears the message field making it undefined.
442
+ * @return {!proto.fonoster.applications.v1beta2.ProductContainer} returns this
443
+ */
444
+ proto.fonoster.applications.v1beta2.ProductContainer.prototype.clearConfig = function() {
445
+ return this.setConfig(undefined);
446
+ };
447
+
448
+
449
+ /**
450
+ * Returns whether this field is set.
451
+ * @return {boolean}
452
+ */
453
+ proto.fonoster.applications.v1beta2.ProductContainer.prototype.hasConfig = function() {
454
+ return jspb.Message.getField(this, 2) != null;
455
+ };
456
+
457
+
458
+ /**
459
+ * optional google.protobuf.Struct credentials = 3;
460
+ * @return {?proto.google.protobuf.Struct}
461
+ */
462
+ proto.fonoster.applications.v1beta2.ProductContainer.prototype.getCredentials = function() {
463
+ return /** @type{?proto.google.protobuf.Struct} */ (
464
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 3));
465
+ };
466
+
467
+
468
+ /**
469
+ * @param {?proto.google.protobuf.Struct|undefined} value
470
+ * @return {!proto.fonoster.applications.v1beta2.ProductContainer} returns this
471
+ */
472
+ proto.fonoster.applications.v1beta2.ProductContainer.prototype.setCredentials = function(value) {
473
+ return jspb.Message.setWrapperField(this, 3, value);
474
+ };
475
+
476
+
477
+ /**
478
+ * Clears the message field making it undefined.
479
+ * @return {!proto.fonoster.applications.v1beta2.ProductContainer} returns this
480
+ */
481
+ proto.fonoster.applications.v1beta2.ProductContainer.prototype.clearCredentials = function() {
482
+ return this.setCredentials(undefined);
483
+ };
484
+
485
+
486
+ /**
487
+ * Returns whether this field is set.
488
+ * @return {boolean}
489
+ */
490
+ proto.fonoster.applications.v1beta2.ProductContainer.prototype.hasCredentials = function() {
491
+ return jspb.Message.getField(this, 3) != null;
492
+ };
493
+
494
+
495
+
496
+
497
+
498
+ if (jspb.Message.GENERATE_TO_OBJECT) {
499
+ /**
500
+ * Creates an object representation of this proto.
501
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
502
+ * Optional fields that are not set will be set to undefined.
503
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
504
+ * For the list of reserved names please see:
505
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
506
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
507
+ * JSPB instance for transitional soy proto support:
508
+ * http://goto/soy-param-migration
509
+ * @return {!Object}
510
+ */
511
+ proto.fonoster.applications.v1beta2.Application.prototype.toObject = function(opt_includeInstance) {
512
+ return proto.fonoster.applications.v1beta2.Application.toObject(opt_includeInstance, this);
513
+ };
514
+
515
+
516
+ /**
517
+ * Static version of the {@see toObject} method.
518
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
519
+ * the JSPB instance for transitional soy proto support:
520
+ * http://goto/soy-param-migration
521
+ * @param {!proto.fonoster.applications.v1beta2.Application} msg The msg instance to transform.
522
+ * @return {!Object}
523
+ * @suppress {unusedLocalVariables} f is only used for nested messages
524
+ */
525
+ proto.fonoster.applications.v1beta2.Application.toObject = function(includeInstance, msg) {
526
+ var f, obj = {
527
+ ref: jspb.Message.getFieldWithDefault(msg, 1, ""),
528
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
529
+ type: jspb.Message.getFieldWithDefault(msg, 3, 0),
530
+ appEndpoint: jspb.Message.getFieldWithDefault(msg, 4, ""),
531
+ textToSpeech: (f = msg.getTextToSpeech()) && proto.fonoster.applications.v1beta2.ProductContainer.toObject(includeInstance, f),
532
+ speechToText: (f = msg.getSpeechToText()) && proto.fonoster.applications.v1beta2.ProductContainer.toObject(includeInstance, f),
533
+ conversation: (f = msg.getConversation()) && proto.fonoster.applications.v1beta2.ProductContainer.toObject(includeInstance, f),
534
+ createdAt: jspb.Message.getFieldWithDefault(msg, 8, 0),
535
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 9, 0)
536
+ };
537
+
538
+ if (includeInstance) {
539
+ obj.$jspbMessageInstance = msg;
540
+ }
541
+ return obj;
542
+ };
543
+ }
544
+
545
+
546
+ /**
547
+ * Deserializes binary data (in protobuf wire format).
548
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
549
+ * @return {!proto.fonoster.applications.v1beta2.Application}
550
+ */
551
+ proto.fonoster.applications.v1beta2.Application.deserializeBinary = function(bytes) {
552
+ var reader = new jspb.BinaryReader(bytes);
553
+ var msg = new proto.fonoster.applications.v1beta2.Application;
554
+ return proto.fonoster.applications.v1beta2.Application.deserializeBinaryFromReader(msg, reader);
555
+ };
556
+
557
+
558
+ /**
559
+ * Deserializes binary data (in protobuf wire format) from the
560
+ * given reader into the given message object.
561
+ * @param {!proto.fonoster.applications.v1beta2.Application} msg The message object to deserialize into.
562
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
563
+ * @return {!proto.fonoster.applications.v1beta2.Application}
564
+ */
565
+ proto.fonoster.applications.v1beta2.Application.deserializeBinaryFromReader = function(msg, reader) {
566
+ while (reader.nextField()) {
567
+ if (reader.isEndGroup()) {
568
+ break;
569
+ }
570
+ var field = reader.getFieldNumber();
571
+ switch (field) {
572
+ case 1:
573
+ var value = /** @type {string} */ (reader.readString());
574
+ msg.setRef(value);
575
+ break;
576
+ case 2:
577
+ var value = /** @type {string} */ (reader.readString());
578
+ msg.setName(value);
579
+ break;
580
+ case 3:
581
+ var value = /** @type {!proto.fonoster.applications.v1beta2.ApplicationType} */ (reader.readEnum());
582
+ msg.setType(value);
583
+ break;
584
+ case 4:
585
+ var value = /** @type {string} */ (reader.readString());
586
+ msg.setAppEndpoint(value);
587
+ break;
588
+ case 5:
589
+ var value = new proto.fonoster.applications.v1beta2.ProductContainer;
590
+ reader.readMessage(value,proto.fonoster.applications.v1beta2.ProductContainer.deserializeBinaryFromReader);
591
+ msg.setTextToSpeech(value);
592
+ break;
593
+ case 6:
594
+ var value = new proto.fonoster.applications.v1beta2.ProductContainer;
595
+ reader.readMessage(value,proto.fonoster.applications.v1beta2.ProductContainer.deserializeBinaryFromReader);
596
+ msg.setSpeechToText(value);
597
+ break;
598
+ case 7:
599
+ var value = new proto.fonoster.applications.v1beta2.ProductContainer;
600
+ reader.readMessage(value,proto.fonoster.applications.v1beta2.ProductContainer.deserializeBinaryFromReader);
601
+ msg.setConversation(value);
602
+ break;
603
+ case 8:
604
+ var value = /** @type {number} */ (reader.readInt64());
605
+ msg.setCreatedAt(value);
606
+ break;
607
+ case 9:
608
+ var value = /** @type {number} */ (reader.readInt64());
609
+ msg.setUpdatedAt(value);
610
+ break;
611
+ default:
612
+ reader.skipField();
613
+ break;
614
+ }
615
+ }
616
+ return msg;
617
+ };
618
+
619
+
620
+ /**
621
+ * Serializes the message to binary data (in protobuf wire format).
622
+ * @return {!Uint8Array}
623
+ */
624
+ proto.fonoster.applications.v1beta2.Application.prototype.serializeBinary = function() {
625
+ var writer = new jspb.BinaryWriter();
626
+ proto.fonoster.applications.v1beta2.Application.serializeBinaryToWriter(this, writer);
627
+ return writer.getResultBuffer();
628
+ };
629
+
630
+
631
+ /**
632
+ * Serializes the given message to binary data (in protobuf wire
633
+ * format), writing to the given BinaryWriter.
634
+ * @param {!proto.fonoster.applications.v1beta2.Application} message
635
+ * @param {!jspb.BinaryWriter} writer
636
+ * @suppress {unusedLocalVariables} f is only used for nested messages
637
+ */
638
+ proto.fonoster.applications.v1beta2.Application.serializeBinaryToWriter = function(message, writer) {
639
+ var f = undefined;
640
+ f = message.getRef();
641
+ if (f.length > 0) {
642
+ writer.writeString(
643
+ 1,
644
+ f
645
+ );
646
+ }
647
+ f = message.getName();
648
+ if (f.length > 0) {
649
+ writer.writeString(
650
+ 2,
651
+ f
652
+ );
653
+ }
654
+ f = message.getType();
655
+ if (f !== 0.0) {
656
+ writer.writeEnum(
657
+ 3,
658
+ f
659
+ );
660
+ }
661
+ f = message.getAppEndpoint();
662
+ if (f.length > 0) {
663
+ writer.writeString(
664
+ 4,
665
+ f
666
+ );
667
+ }
668
+ f = message.getTextToSpeech();
669
+ if (f != null) {
670
+ writer.writeMessage(
671
+ 5,
672
+ f,
673
+ proto.fonoster.applications.v1beta2.ProductContainer.serializeBinaryToWriter
674
+ );
675
+ }
676
+ f = message.getSpeechToText();
677
+ if (f != null) {
678
+ writer.writeMessage(
679
+ 6,
680
+ f,
681
+ proto.fonoster.applications.v1beta2.ProductContainer.serializeBinaryToWriter
682
+ );
683
+ }
684
+ f = message.getConversation();
685
+ if (f != null) {
686
+ writer.writeMessage(
687
+ 7,
688
+ f,
689
+ proto.fonoster.applications.v1beta2.ProductContainer.serializeBinaryToWriter
690
+ );
691
+ }
692
+ f = message.getCreatedAt();
693
+ if (f !== 0) {
694
+ writer.writeInt64(
695
+ 8,
696
+ f
697
+ );
698
+ }
699
+ f = message.getUpdatedAt();
700
+ if (f !== 0) {
701
+ writer.writeInt64(
702
+ 9,
703
+ f
704
+ );
705
+ }
706
+ };
707
+
708
+
709
+ /**
710
+ * optional string ref = 1;
711
+ * @return {string}
712
+ */
713
+ proto.fonoster.applications.v1beta2.Application.prototype.getRef = function() {
714
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
715
+ };
716
+
717
+
718
+ /**
719
+ * @param {string} value
720
+ * @return {!proto.fonoster.applications.v1beta2.Application} returns this
721
+ */
722
+ proto.fonoster.applications.v1beta2.Application.prototype.setRef = function(value) {
723
+ return jspb.Message.setProto3StringField(this, 1, value);
724
+ };
725
+
726
+
727
+ /**
728
+ * optional string name = 2;
729
+ * @return {string}
730
+ */
731
+ proto.fonoster.applications.v1beta2.Application.prototype.getName = function() {
732
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
733
+ };
734
+
735
+
736
+ /**
737
+ * @param {string} value
738
+ * @return {!proto.fonoster.applications.v1beta2.Application} returns this
739
+ */
740
+ proto.fonoster.applications.v1beta2.Application.prototype.setName = function(value) {
741
+ return jspb.Message.setProto3StringField(this, 2, value);
742
+ };
743
+
744
+
745
+ /**
746
+ * optional ApplicationType type = 3;
747
+ * @return {!proto.fonoster.applications.v1beta2.ApplicationType}
748
+ */
749
+ proto.fonoster.applications.v1beta2.Application.prototype.getType = function() {
750
+ return /** @type {!proto.fonoster.applications.v1beta2.ApplicationType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
751
+ };
752
+
753
+
754
+ /**
755
+ * @param {!proto.fonoster.applications.v1beta2.ApplicationType} value
756
+ * @return {!proto.fonoster.applications.v1beta2.Application} returns this
757
+ */
758
+ proto.fonoster.applications.v1beta2.Application.prototype.setType = function(value) {
759
+ return jspb.Message.setProto3EnumField(this, 3, value);
760
+ };
761
+
762
+
763
+ /**
764
+ * optional string app_endpoint = 4;
765
+ * @return {string}
766
+ */
767
+ proto.fonoster.applications.v1beta2.Application.prototype.getAppEndpoint = function() {
768
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
769
+ };
770
+
771
+
772
+ /**
773
+ * @param {string} value
774
+ * @return {!proto.fonoster.applications.v1beta2.Application} returns this
775
+ */
776
+ proto.fonoster.applications.v1beta2.Application.prototype.setAppEndpoint = function(value) {
777
+ return jspb.Message.setProto3StringField(this, 4, value);
778
+ };
779
+
780
+
781
+ /**
782
+ * optional ProductContainer text_to_speech = 5;
783
+ * @return {?proto.fonoster.applications.v1beta2.ProductContainer}
784
+ */
785
+ proto.fonoster.applications.v1beta2.Application.prototype.getTextToSpeech = function() {
786
+ return /** @type{?proto.fonoster.applications.v1beta2.ProductContainer} */ (
787
+ jspb.Message.getWrapperField(this, proto.fonoster.applications.v1beta2.ProductContainer, 5));
788
+ };
789
+
790
+
791
+ /**
792
+ * @param {?proto.fonoster.applications.v1beta2.ProductContainer|undefined} value
793
+ * @return {!proto.fonoster.applications.v1beta2.Application} returns this
794
+ */
795
+ proto.fonoster.applications.v1beta2.Application.prototype.setTextToSpeech = function(value) {
796
+ return jspb.Message.setWrapperField(this, 5, value);
797
+ };
798
+
799
+
800
+ /**
801
+ * Clears the message field making it undefined.
802
+ * @return {!proto.fonoster.applications.v1beta2.Application} returns this
803
+ */
804
+ proto.fonoster.applications.v1beta2.Application.prototype.clearTextToSpeech = function() {
805
+ return this.setTextToSpeech(undefined);
806
+ };
807
+
808
+
809
+ /**
810
+ * Returns whether this field is set.
811
+ * @return {boolean}
812
+ */
813
+ proto.fonoster.applications.v1beta2.Application.prototype.hasTextToSpeech = function() {
814
+ return jspb.Message.getField(this, 5) != null;
815
+ };
816
+
817
+
818
+ /**
819
+ * optional ProductContainer speech_to_text = 6;
820
+ * @return {?proto.fonoster.applications.v1beta2.ProductContainer}
821
+ */
822
+ proto.fonoster.applications.v1beta2.Application.prototype.getSpeechToText = function() {
823
+ return /** @type{?proto.fonoster.applications.v1beta2.ProductContainer} */ (
824
+ jspb.Message.getWrapperField(this, proto.fonoster.applications.v1beta2.ProductContainer, 6));
825
+ };
826
+
827
+
828
+ /**
829
+ * @param {?proto.fonoster.applications.v1beta2.ProductContainer|undefined} value
830
+ * @return {!proto.fonoster.applications.v1beta2.Application} returns this
831
+ */
832
+ proto.fonoster.applications.v1beta2.Application.prototype.setSpeechToText = function(value) {
833
+ return jspb.Message.setWrapperField(this, 6, value);
834
+ };
835
+
836
+
837
+ /**
838
+ * Clears the message field making it undefined.
839
+ * @return {!proto.fonoster.applications.v1beta2.Application} returns this
840
+ */
841
+ proto.fonoster.applications.v1beta2.Application.prototype.clearSpeechToText = function() {
842
+ return this.setSpeechToText(undefined);
843
+ };
844
+
845
+
846
+ /**
847
+ * Returns whether this field is set.
848
+ * @return {boolean}
849
+ */
850
+ proto.fonoster.applications.v1beta2.Application.prototype.hasSpeechToText = function() {
851
+ return jspb.Message.getField(this, 6) != null;
852
+ };
853
+
854
+
855
+ /**
856
+ * optional ProductContainer conversation = 7;
857
+ * @return {?proto.fonoster.applications.v1beta2.ProductContainer}
858
+ */
859
+ proto.fonoster.applications.v1beta2.Application.prototype.getConversation = function() {
860
+ return /** @type{?proto.fonoster.applications.v1beta2.ProductContainer} */ (
861
+ jspb.Message.getWrapperField(this, proto.fonoster.applications.v1beta2.ProductContainer, 7));
862
+ };
863
+
864
+
865
+ /**
866
+ * @param {?proto.fonoster.applications.v1beta2.ProductContainer|undefined} value
867
+ * @return {!proto.fonoster.applications.v1beta2.Application} returns this
868
+ */
869
+ proto.fonoster.applications.v1beta2.Application.prototype.setConversation = function(value) {
870
+ return jspb.Message.setWrapperField(this, 7, value);
871
+ };
872
+
873
+
874
+ /**
875
+ * Clears the message field making it undefined.
876
+ * @return {!proto.fonoster.applications.v1beta2.Application} returns this
877
+ */
878
+ proto.fonoster.applications.v1beta2.Application.prototype.clearConversation = function() {
879
+ return this.setConversation(undefined);
880
+ };
881
+
882
+
883
+ /**
884
+ * Returns whether this field is set.
885
+ * @return {boolean}
886
+ */
887
+ proto.fonoster.applications.v1beta2.Application.prototype.hasConversation = function() {
888
+ return jspb.Message.getField(this, 7) != null;
889
+ };
890
+
891
+
892
+ /**
893
+ * optional int64 created_at = 8;
894
+ * @return {number}
895
+ */
896
+ proto.fonoster.applications.v1beta2.Application.prototype.getCreatedAt = function() {
897
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
898
+ };
899
+
900
+
901
+ /**
902
+ * @param {number} value
903
+ * @return {!proto.fonoster.applications.v1beta2.Application} returns this
904
+ */
905
+ proto.fonoster.applications.v1beta2.Application.prototype.setCreatedAt = function(value) {
906
+ return jspb.Message.setProto3IntField(this, 8, value);
907
+ };
908
+
909
+
910
+ /**
911
+ * optional int64 updated_at = 9;
912
+ * @return {number}
913
+ */
914
+ proto.fonoster.applications.v1beta2.Application.prototype.getUpdatedAt = function() {
915
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
916
+ };
917
+
918
+
919
+ /**
920
+ * @param {number} value
921
+ * @return {!proto.fonoster.applications.v1beta2.Application} returns this
922
+ */
923
+ proto.fonoster.applications.v1beta2.Application.prototype.setUpdatedAt = function(value) {
924
+ return jspb.Message.setProto3IntField(this, 9, value);
925
+ };
926
+
927
+
928
+
929
+
930
+
931
+ if (jspb.Message.GENERATE_TO_OBJECT) {
932
+ /**
933
+ * Creates an object representation of this proto.
934
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
935
+ * Optional fields that are not set will be set to undefined.
936
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
937
+ * For the list of reserved names please see:
938
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
939
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
940
+ * JSPB instance for transitional soy proto support:
941
+ * http://goto/soy-param-migration
942
+ * @return {!Object}
943
+ */
944
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.toObject = function(opt_includeInstance) {
945
+ return proto.fonoster.applications.v1beta2.CreateApplicationRequest.toObject(opt_includeInstance, this);
946
+ };
947
+
948
+
949
+ /**
950
+ * Static version of the {@see toObject} method.
951
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
952
+ * the JSPB instance for transitional soy proto support:
953
+ * http://goto/soy-param-migration
954
+ * @param {!proto.fonoster.applications.v1beta2.CreateApplicationRequest} msg The msg instance to transform.
955
+ * @return {!Object}
956
+ * @suppress {unusedLocalVariables} f is only used for nested messages
957
+ */
958
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.toObject = function(includeInstance, msg) {
959
+ var f, obj = {
960
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
961
+ type: jspb.Message.getFieldWithDefault(msg, 2, 0),
962
+ appEndpoint: jspb.Message.getFieldWithDefault(msg, 3, ""),
963
+ textToSpeech: (f = msg.getTextToSpeech()) && proto.fonoster.applications.v1beta2.ProductContainer.toObject(includeInstance, f),
964
+ speechToText: (f = msg.getSpeechToText()) && proto.fonoster.applications.v1beta2.ProductContainer.toObject(includeInstance, f),
965
+ intelligence: (f = msg.getIntelligence()) && proto.fonoster.applications.v1beta2.ProductContainer.toObject(includeInstance, f)
966
+ };
967
+
968
+ if (includeInstance) {
969
+ obj.$jspbMessageInstance = msg;
970
+ }
971
+ return obj;
972
+ };
973
+ }
974
+
975
+
976
+ /**
977
+ * Deserializes binary data (in protobuf wire format).
978
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
979
+ * @return {!proto.fonoster.applications.v1beta2.CreateApplicationRequest}
980
+ */
981
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.deserializeBinary = function(bytes) {
982
+ var reader = new jspb.BinaryReader(bytes);
983
+ var msg = new proto.fonoster.applications.v1beta2.CreateApplicationRequest;
984
+ return proto.fonoster.applications.v1beta2.CreateApplicationRequest.deserializeBinaryFromReader(msg, reader);
985
+ };
986
+
987
+
988
+ /**
989
+ * Deserializes binary data (in protobuf wire format) from the
990
+ * given reader into the given message object.
991
+ * @param {!proto.fonoster.applications.v1beta2.CreateApplicationRequest} msg The message object to deserialize into.
992
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
993
+ * @return {!proto.fonoster.applications.v1beta2.CreateApplicationRequest}
994
+ */
995
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.deserializeBinaryFromReader = function(msg, reader) {
996
+ while (reader.nextField()) {
997
+ if (reader.isEndGroup()) {
998
+ break;
999
+ }
1000
+ var field = reader.getFieldNumber();
1001
+ switch (field) {
1002
+ case 1:
1003
+ var value = /** @type {string} */ (reader.readString());
1004
+ msg.setName(value);
1005
+ break;
1006
+ case 2:
1007
+ var value = /** @type {!proto.fonoster.applications.v1beta2.ApplicationType} */ (reader.readEnum());
1008
+ msg.setType(value);
1009
+ break;
1010
+ case 3:
1011
+ var value = /** @type {string} */ (reader.readString());
1012
+ msg.setAppEndpoint(value);
1013
+ break;
1014
+ case 4:
1015
+ var value = new proto.fonoster.applications.v1beta2.ProductContainer;
1016
+ reader.readMessage(value,proto.fonoster.applications.v1beta2.ProductContainer.deserializeBinaryFromReader);
1017
+ msg.setTextToSpeech(value);
1018
+ break;
1019
+ case 5:
1020
+ var value = new proto.fonoster.applications.v1beta2.ProductContainer;
1021
+ reader.readMessage(value,proto.fonoster.applications.v1beta2.ProductContainer.deserializeBinaryFromReader);
1022
+ msg.setSpeechToText(value);
1023
+ break;
1024
+ case 6:
1025
+ var value = new proto.fonoster.applications.v1beta2.ProductContainer;
1026
+ reader.readMessage(value,proto.fonoster.applications.v1beta2.ProductContainer.deserializeBinaryFromReader);
1027
+ msg.setIntelligence(value);
1028
+ break;
1029
+ default:
1030
+ reader.skipField();
1031
+ break;
1032
+ }
1033
+ }
1034
+ return msg;
1035
+ };
1036
+
1037
+
1038
+ /**
1039
+ * Serializes the message to binary data (in protobuf wire format).
1040
+ * @return {!Uint8Array}
1041
+ */
1042
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.serializeBinary = function() {
1043
+ var writer = new jspb.BinaryWriter();
1044
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.serializeBinaryToWriter(this, writer);
1045
+ return writer.getResultBuffer();
1046
+ };
1047
+
1048
+
1049
+ /**
1050
+ * Serializes the given message to binary data (in protobuf wire
1051
+ * format), writing to the given BinaryWriter.
1052
+ * @param {!proto.fonoster.applications.v1beta2.CreateApplicationRequest} message
1053
+ * @param {!jspb.BinaryWriter} writer
1054
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1055
+ */
1056
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.serializeBinaryToWriter = function(message, writer) {
1057
+ var f = undefined;
1058
+ f = message.getName();
1059
+ if (f.length > 0) {
1060
+ writer.writeString(
1061
+ 1,
1062
+ f
1063
+ );
1064
+ }
1065
+ f = message.getType();
1066
+ if (f !== 0.0) {
1067
+ writer.writeEnum(
1068
+ 2,
1069
+ f
1070
+ );
1071
+ }
1072
+ f = message.getAppEndpoint();
1073
+ if (f.length > 0) {
1074
+ writer.writeString(
1075
+ 3,
1076
+ f
1077
+ );
1078
+ }
1079
+ f = message.getTextToSpeech();
1080
+ if (f != null) {
1081
+ writer.writeMessage(
1082
+ 4,
1083
+ f,
1084
+ proto.fonoster.applications.v1beta2.ProductContainer.serializeBinaryToWriter
1085
+ );
1086
+ }
1087
+ f = message.getSpeechToText();
1088
+ if (f != null) {
1089
+ writer.writeMessage(
1090
+ 5,
1091
+ f,
1092
+ proto.fonoster.applications.v1beta2.ProductContainer.serializeBinaryToWriter
1093
+ );
1094
+ }
1095
+ f = message.getIntelligence();
1096
+ if (f != null) {
1097
+ writer.writeMessage(
1098
+ 6,
1099
+ f,
1100
+ proto.fonoster.applications.v1beta2.ProductContainer.serializeBinaryToWriter
1101
+ );
1102
+ }
1103
+ };
1104
+
1105
+
1106
+ /**
1107
+ * optional string name = 1;
1108
+ * @return {string}
1109
+ */
1110
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.getName = function() {
1111
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1112
+ };
1113
+
1114
+
1115
+ /**
1116
+ * @param {string} value
1117
+ * @return {!proto.fonoster.applications.v1beta2.CreateApplicationRequest} returns this
1118
+ */
1119
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.setName = function(value) {
1120
+ return jspb.Message.setProto3StringField(this, 1, value);
1121
+ };
1122
+
1123
+
1124
+ /**
1125
+ * optional ApplicationType type = 2;
1126
+ * @return {!proto.fonoster.applications.v1beta2.ApplicationType}
1127
+ */
1128
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.getType = function() {
1129
+ return /** @type {!proto.fonoster.applications.v1beta2.ApplicationType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1130
+ };
1131
+
1132
+
1133
+ /**
1134
+ * @param {!proto.fonoster.applications.v1beta2.ApplicationType} value
1135
+ * @return {!proto.fonoster.applications.v1beta2.CreateApplicationRequest} returns this
1136
+ */
1137
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.setType = function(value) {
1138
+ return jspb.Message.setProto3EnumField(this, 2, value);
1139
+ };
1140
+
1141
+
1142
+ /**
1143
+ * optional string app_endpoint = 3;
1144
+ * @return {string}
1145
+ */
1146
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.getAppEndpoint = function() {
1147
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1148
+ };
1149
+
1150
+
1151
+ /**
1152
+ * @param {string} value
1153
+ * @return {!proto.fonoster.applications.v1beta2.CreateApplicationRequest} returns this
1154
+ */
1155
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.setAppEndpoint = function(value) {
1156
+ return jspb.Message.setProto3StringField(this, 3, value);
1157
+ };
1158
+
1159
+
1160
+ /**
1161
+ * optional ProductContainer text_to_speech = 4;
1162
+ * @return {?proto.fonoster.applications.v1beta2.ProductContainer}
1163
+ */
1164
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.getTextToSpeech = function() {
1165
+ return /** @type{?proto.fonoster.applications.v1beta2.ProductContainer} */ (
1166
+ jspb.Message.getWrapperField(this, proto.fonoster.applications.v1beta2.ProductContainer, 4));
1167
+ };
1168
+
1169
+
1170
+ /**
1171
+ * @param {?proto.fonoster.applications.v1beta2.ProductContainer|undefined} value
1172
+ * @return {!proto.fonoster.applications.v1beta2.CreateApplicationRequest} returns this
1173
+ */
1174
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.setTextToSpeech = function(value) {
1175
+ return jspb.Message.setWrapperField(this, 4, value);
1176
+ };
1177
+
1178
+
1179
+ /**
1180
+ * Clears the message field making it undefined.
1181
+ * @return {!proto.fonoster.applications.v1beta2.CreateApplicationRequest} returns this
1182
+ */
1183
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.clearTextToSpeech = function() {
1184
+ return this.setTextToSpeech(undefined);
1185
+ };
1186
+
1187
+
1188
+ /**
1189
+ * Returns whether this field is set.
1190
+ * @return {boolean}
1191
+ */
1192
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.hasTextToSpeech = function() {
1193
+ return jspb.Message.getField(this, 4) != null;
1194
+ };
1195
+
1196
+
1197
+ /**
1198
+ * optional ProductContainer speech_to_text = 5;
1199
+ * @return {?proto.fonoster.applications.v1beta2.ProductContainer}
1200
+ */
1201
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.getSpeechToText = function() {
1202
+ return /** @type{?proto.fonoster.applications.v1beta2.ProductContainer} */ (
1203
+ jspb.Message.getWrapperField(this, proto.fonoster.applications.v1beta2.ProductContainer, 5));
1204
+ };
1205
+
1206
+
1207
+ /**
1208
+ * @param {?proto.fonoster.applications.v1beta2.ProductContainer|undefined} value
1209
+ * @return {!proto.fonoster.applications.v1beta2.CreateApplicationRequest} returns this
1210
+ */
1211
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.setSpeechToText = function(value) {
1212
+ return jspb.Message.setWrapperField(this, 5, value);
1213
+ };
1214
+
1215
+
1216
+ /**
1217
+ * Clears the message field making it undefined.
1218
+ * @return {!proto.fonoster.applications.v1beta2.CreateApplicationRequest} returns this
1219
+ */
1220
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.clearSpeechToText = function() {
1221
+ return this.setSpeechToText(undefined);
1222
+ };
1223
+
1224
+
1225
+ /**
1226
+ * Returns whether this field is set.
1227
+ * @return {boolean}
1228
+ */
1229
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.hasSpeechToText = function() {
1230
+ return jspb.Message.getField(this, 5) != null;
1231
+ };
1232
+
1233
+
1234
+ /**
1235
+ * optional ProductContainer intelligence = 6;
1236
+ * @return {?proto.fonoster.applications.v1beta2.ProductContainer}
1237
+ */
1238
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.getIntelligence = function() {
1239
+ return /** @type{?proto.fonoster.applications.v1beta2.ProductContainer} */ (
1240
+ jspb.Message.getWrapperField(this, proto.fonoster.applications.v1beta2.ProductContainer, 6));
1241
+ };
1242
+
1243
+
1244
+ /**
1245
+ * @param {?proto.fonoster.applications.v1beta2.ProductContainer|undefined} value
1246
+ * @return {!proto.fonoster.applications.v1beta2.CreateApplicationRequest} returns this
1247
+ */
1248
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.setIntelligence = function(value) {
1249
+ return jspb.Message.setWrapperField(this, 6, value);
1250
+ };
1251
+
1252
+
1253
+ /**
1254
+ * Clears the message field making it undefined.
1255
+ * @return {!proto.fonoster.applications.v1beta2.CreateApplicationRequest} returns this
1256
+ */
1257
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.clearIntelligence = function() {
1258
+ return this.setIntelligence(undefined);
1259
+ };
1260
+
1261
+
1262
+ /**
1263
+ * Returns whether this field is set.
1264
+ * @return {boolean}
1265
+ */
1266
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.hasIntelligence = function() {
1267
+ return jspb.Message.getField(this, 6) != null;
1268
+ };
1269
+
1270
+
1271
+
1272
+
1273
+
1274
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1275
+ /**
1276
+ * Creates an object representation of this proto.
1277
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1278
+ * Optional fields that are not set will be set to undefined.
1279
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1280
+ * For the list of reserved names please see:
1281
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1282
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1283
+ * JSPB instance for transitional soy proto support:
1284
+ * http://goto/soy-param-migration
1285
+ * @return {!Object}
1286
+ */
1287
+ proto.fonoster.applications.v1beta2.CreateApplicationResponse.prototype.toObject = function(opt_includeInstance) {
1288
+ return proto.fonoster.applications.v1beta2.CreateApplicationResponse.toObject(opt_includeInstance, this);
1289
+ };
1290
+
1291
+
1292
+ /**
1293
+ * Static version of the {@see toObject} method.
1294
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1295
+ * the JSPB instance for transitional soy proto support:
1296
+ * http://goto/soy-param-migration
1297
+ * @param {!proto.fonoster.applications.v1beta2.CreateApplicationResponse} msg The msg instance to transform.
1298
+ * @return {!Object}
1299
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1300
+ */
1301
+ proto.fonoster.applications.v1beta2.CreateApplicationResponse.toObject = function(includeInstance, msg) {
1302
+ var f, obj = {
1303
+ ref: jspb.Message.getFieldWithDefault(msg, 1, "")
1304
+ };
1305
+
1306
+ if (includeInstance) {
1307
+ obj.$jspbMessageInstance = msg;
1308
+ }
1309
+ return obj;
1310
+ };
1311
+ }
1312
+
1313
+
1314
+ /**
1315
+ * Deserializes binary data (in protobuf wire format).
1316
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1317
+ * @return {!proto.fonoster.applications.v1beta2.CreateApplicationResponse}
1318
+ */
1319
+ proto.fonoster.applications.v1beta2.CreateApplicationResponse.deserializeBinary = function(bytes) {
1320
+ var reader = new jspb.BinaryReader(bytes);
1321
+ var msg = new proto.fonoster.applications.v1beta2.CreateApplicationResponse;
1322
+ return proto.fonoster.applications.v1beta2.CreateApplicationResponse.deserializeBinaryFromReader(msg, reader);
1323
+ };
1324
+
1325
+
1326
+ /**
1327
+ * Deserializes binary data (in protobuf wire format) from the
1328
+ * given reader into the given message object.
1329
+ * @param {!proto.fonoster.applications.v1beta2.CreateApplicationResponse} msg The message object to deserialize into.
1330
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1331
+ * @return {!proto.fonoster.applications.v1beta2.CreateApplicationResponse}
1332
+ */
1333
+ proto.fonoster.applications.v1beta2.CreateApplicationResponse.deserializeBinaryFromReader = function(msg, reader) {
1334
+ while (reader.nextField()) {
1335
+ if (reader.isEndGroup()) {
1336
+ break;
1337
+ }
1338
+ var field = reader.getFieldNumber();
1339
+ switch (field) {
1340
+ case 1:
1341
+ var value = /** @type {string} */ (reader.readString());
1342
+ msg.setRef(value);
1343
+ break;
1344
+ default:
1345
+ reader.skipField();
1346
+ break;
1347
+ }
1348
+ }
1349
+ return msg;
1350
+ };
1351
+
1352
+
1353
+ /**
1354
+ * Serializes the message to binary data (in protobuf wire format).
1355
+ * @return {!Uint8Array}
1356
+ */
1357
+ proto.fonoster.applications.v1beta2.CreateApplicationResponse.prototype.serializeBinary = function() {
1358
+ var writer = new jspb.BinaryWriter();
1359
+ proto.fonoster.applications.v1beta2.CreateApplicationResponse.serializeBinaryToWriter(this, writer);
1360
+ return writer.getResultBuffer();
1361
+ };
1362
+
1363
+
1364
+ /**
1365
+ * Serializes the given message to binary data (in protobuf wire
1366
+ * format), writing to the given BinaryWriter.
1367
+ * @param {!proto.fonoster.applications.v1beta2.CreateApplicationResponse} message
1368
+ * @param {!jspb.BinaryWriter} writer
1369
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1370
+ */
1371
+ proto.fonoster.applications.v1beta2.CreateApplicationResponse.serializeBinaryToWriter = function(message, writer) {
1372
+ var f = undefined;
1373
+ f = message.getRef();
1374
+ if (f.length > 0) {
1375
+ writer.writeString(
1376
+ 1,
1377
+ f
1378
+ );
1379
+ }
1380
+ };
1381
+
1382
+
1383
+ /**
1384
+ * optional string ref = 1;
1385
+ * @return {string}
1386
+ */
1387
+ proto.fonoster.applications.v1beta2.CreateApplicationResponse.prototype.getRef = function() {
1388
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1389
+ };
1390
+
1391
+
1392
+ /**
1393
+ * @param {string} value
1394
+ * @return {!proto.fonoster.applications.v1beta2.CreateApplicationResponse} returns this
1395
+ */
1396
+ proto.fonoster.applications.v1beta2.CreateApplicationResponse.prototype.setRef = function(value) {
1397
+ return jspb.Message.setProto3StringField(this, 1, value);
1398
+ };
1399
+
1400
+
1401
+
1402
+
1403
+
1404
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1405
+ /**
1406
+ * Creates an object representation of this proto.
1407
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1408
+ * Optional fields that are not set will be set to undefined.
1409
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1410
+ * For the list of reserved names please see:
1411
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1412
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1413
+ * JSPB instance for transitional soy proto support:
1414
+ * http://goto/soy-param-migration
1415
+ * @return {!Object}
1416
+ */
1417
+ proto.fonoster.applications.v1beta2.GetApplicationRequest.prototype.toObject = function(opt_includeInstance) {
1418
+ return proto.fonoster.applications.v1beta2.GetApplicationRequest.toObject(opt_includeInstance, this);
1419
+ };
1420
+
1421
+
1422
+ /**
1423
+ * Static version of the {@see toObject} method.
1424
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1425
+ * the JSPB instance for transitional soy proto support:
1426
+ * http://goto/soy-param-migration
1427
+ * @param {!proto.fonoster.applications.v1beta2.GetApplicationRequest} msg The msg instance to transform.
1428
+ * @return {!Object}
1429
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1430
+ */
1431
+ proto.fonoster.applications.v1beta2.GetApplicationRequest.toObject = function(includeInstance, msg) {
1432
+ var f, obj = {
1433
+ ref: jspb.Message.getFieldWithDefault(msg, 1, "")
1434
+ };
1435
+
1436
+ if (includeInstance) {
1437
+ obj.$jspbMessageInstance = msg;
1438
+ }
1439
+ return obj;
1440
+ };
1441
+ }
1442
+
1443
+
1444
+ /**
1445
+ * Deserializes binary data (in protobuf wire format).
1446
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1447
+ * @return {!proto.fonoster.applications.v1beta2.GetApplicationRequest}
1448
+ */
1449
+ proto.fonoster.applications.v1beta2.GetApplicationRequest.deserializeBinary = function(bytes) {
1450
+ var reader = new jspb.BinaryReader(bytes);
1451
+ var msg = new proto.fonoster.applications.v1beta2.GetApplicationRequest;
1452
+ return proto.fonoster.applications.v1beta2.GetApplicationRequest.deserializeBinaryFromReader(msg, reader);
1453
+ };
1454
+
1455
+
1456
+ /**
1457
+ * Deserializes binary data (in protobuf wire format) from the
1458
+ * given reader into the given message object.
1459
+ * @param {!proto.fonoster.applications.v1beta2.GetApplicationRequest} msg The message object to deserialize into.
1460
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1461
+ * @return {!proto.fonoster.applications.v1beta2.GetApplicationRequest}
1462
+ */
1463
+ proto.fonoster.applications.v1beta2.GetApplicationRequest.deserializeBinaryFromReader = function(msg, reader) {
1464
+ while (reader.nextField()) {
1465
+ if (reader.isEndGroup()) {
1466
+ break;
1467
+ }
1468
+ var field = reader.getFieldNumber();
1469
+ switch (field) {
1470
+ case 1:
1471
+ var value = /** @type {string} */ (reader.readString());
1472
+ msg.setRef(value);
1473
+ break;
1474
+ default:
1475
+ reader.skipField();
1476
+ break;
1477
+ }
1478
+ }
1479
+ return msg;
1480
+ };
1481
+
1482
+
1483
+ /**
1484
+ * Serializes the message to binary data (in protobuf wire format).
1485
+ * @return {!Uint8Array}
1486
+ */
1487
+ proto.fonoster.applications.v1beta2.GetApplicationRequest.prototype.serializeBinary = function() {
1488
+ var writer = new jspb.BinaryWriter();
1489
+ proto.fonoster.applications.v1beta2.GetApplicationRequest.serializeBinaryToWriter(this, writer);
1490
+ return writer.getResultBuffer();
1491
+ };
1492
+
1493
+
1494
+ /**
1495
+ * Serializes the given message to binary data (in protobuf wire
1496
+ * format), writing to the given BinaryWriter.
1497
+ * @param {!proto.fonoster.applications.v1beta2.GetApplicationRequest} message
1498
+ * @param {!jspb.BinaryWriter} writer
1499
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1500
+ */
1501
+ proto.fonoster.applications.v1beta2.GetApplicationRequest.serializeBinaryToWriter = function(message, writer) {
1502
+ var f = undefined;
1503
+ f = message.getRef();
1504
+ if (f.length > 0) {
1505
+ writer.writeString(
1506
+ 1,
1507
+ f
1508
+ );
1509
+ }
1510
+ };
1511
+
1512
+
1513
+ /**
1514
+ * optional string ref = 1;
1515
+ * @return {string}
1516
+ */
1517
+ proto.fonoster.applications.v1beta2.GetApplicationRequest.prototype.getRef = function() {
1518
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1519
+ };
1520
+
1521
+
1522
+ /**
1523
+ * @param {string} value
1524
+ * @return {!proto.fonoster.applications.v1beta2.GetApplicationRequest} returns this
1525
+ */
1526
+ proto.fonoster.applications.v1beta2.GetApplicationRequest.prototype.setRef = function(value) {
1527
+ return jspb.Message.setProto3StringField(this, 1, value);
1528
+ };
1529
+
1530
+
1531
+
1532
+
1533
+
1534
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1535
+ /**
1536
+ * Creates an object representation of this proto.
1537
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1538
+ * Optional fields that are not set will be set to undefined.
1539
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1540
+ * For the list of reserved names please see:
1541
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1542
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1543
+ * JSPB instance for transitional soy proto support:
1544
+ * http://goto/soy-param-migration
1545
+ * @return {!Object}
1546
+ */
1547
+ proto.fonoster.applications.v1beta2.ListApplicationsRequest.prototype.toObject = function(opt_includeInstance) {
1548
+ return proto.fonoster.applications.v1beta2.ListApplicationsRequest.toObject(opt_includeInstance, this);
1549
+ };
1550
+
1551
+
1552
+ /**
1553
+ * Static version of the {@see toObject} method.
1554
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1555
+ * the JSPB instance for transitional soy proto support:
1556
+ * http://goto/soy-param-migration
1557
+ * @param {!proto.fonoster.applications.v1beta2.ListApplicationsRequest} msg The msg instance to transform.
1558
+ * @return {!Object}
1559
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1560
+ */
1561
+ proto.fonoster.applications.v1beta2.ListApplicationsRequest.toObject = function(includeInstance, msg) {
1562
+ var f, obj = {
1563
+ pageSize: jspb.Message.getFieldWithDefault(msg, 1, 0),
1564
+ pageToken: jspb.Message.getFieldWithDefault(msg, 2, "")
1565
+ };
1566
+
1567
+ if (includeInstance) {
1568
+ obj.$jspbMessageInstance = msg;
1569
+ }
1570
+ return obj;
1571
+ };
1572
+ }
1573
+
1574
+
1575
+ /**
1576
+ * Deserializes binary data (in protobuf wire format).
1577
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1578
+ * @return {!proto.fonoster.applications.v1beta2.ListApplicationsRequest}
1579
+ */
1580
+ proto.fonoster.applications.v1beta2.ListApplicationsRequest.deserializeBinary = function(bytes) {
1581
+ var reader = new jspb.BinaryReader(bytes);
1582
+ var msg = new proto.fonoster.applications.v1beta2.ListApplicationsRequest;
1583
+ return proto.fonoster.applications.v1beta2.ListApplicationsRequest.deserializeBinaryFromReader(msg, reader);
1584
+ };
1585
+
1586
+
1587
+ /**
1588
+ * Deserializes binary data (in protobuf wire format) from the
1589
+ * given reader into the given message object.
1590
+ * @param {!proto.fonoster.applications.v1beta2.ListApplicationsRequest} msg The message object to deserialize into.
1591
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1592
+ * @return {!proto.fonoster.applications.v1beta2.ListApplicationsRequest}
1593
+ */
1594
+ proto.fonoster.applications.v1beta2.ListApplicationsRequest.deserializeBinaryFromReader = function(msg, reader) {
1595
+ while (reader.nextField()) {
1596
+ if (reader.isEndGroup()) {
1597
+ break;
1598
+ }
1599
+ var field = reader.getFieldNumber();
1600
+ switch (field) {
1601
+ case 1:
1602
+ var value = /** @type {number} */ (reader.readInt32());
1603
+ msg.setPageSize(value);
1604
+ break;
1605
+ case 2:
1606
+ var value = /** @type {string} */ (reader.readString());
1607
+ msg.setPageToken(value);
1608
+ break;
1609
+ default:
1610
+ reader.skipField();
1611
+ break;
1612
+ }
1613
+ }
1614
+ return msg;
1615
+ };
1616
+
1617
+
1618
+ /**
1619
+ * Serializes the message to binary data (in protobuf wire format).
1620
+ * @return {!Uint8Array}
1621
+ */
1622
+ proto.fonoster.applications.v1beta2.ListApplicationsRequest.prototype.serializeBinary = function() {
1623
+ var writer = new jspb.BinaryWriter();
1624
+ proto.fonoster.applications.v1beta2.ListApplicationsRequest.serializeBinaryToWriter(this, writer);
1625
+ return writer.getResultBuffer();
1626
+ };
1627
+
1628
+
1629
+ /**
1630
+ * Serializes the given message to binary data (in protobuf wire
1631
+ * format), writing to the given BinaryWriter.
1632
+ * @param {!proto.fonoster.applications.v1beta2.ListApplicationsRequest} message
1633
+ * @param {!jspb.BinaryWriter} writer
1634
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1635
+ */
1636
+ proto.fonoster.applications.v1beta2.ListApplicationsRequest.serializeBinaryToWriter = function(message, writer) {
1637
+ var f = undefined;
1638
+ f = message.getPageSize();
1639
+ if (f !== 0) {
1640
+ writer.writeInt32(
1641
+ 1,
1642
+ f
1643
+ );
1644
+ }
1645
+ f = message.getPageToken();
1646
+ if (f.length > 0) {
1647
+ writer.writeString(
1648
+ 2,
1649
+ f
1650
+ );
1651
+ }
1652
+ };
1653
+
1654
+
1655
+ /**
1656
+ * optional int32 page_size = 1;
1657
+ * @return {number}
1658
+ */
1659
+ proto.fonoster.applications.v1beta2.ListApplicationsRequest.prototype.getPageSize = function() {
1660
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1661
+ };
1662
+
1663
+
1664
+ /**
1665
+ * @param {number} value
1666
+ * @return {!proto.fonoster.applications.v1beta2.ListApplicationsRequest} returns this
1667
+ */
1668
+ proto.fonoster.applications.v1beta2.ListApplicationsRequest.prototype.setPageSize = function(value) {
1669
+ return jspb.Message.setProto3IntField(this, 1, value);
1670
+ };
1671
+
1672
+
1673
+ /**
1674
+ * optional string page_token = 2;
1675
+ * @return {string}
1676
+ */
1677
+ proto.fonoster.applications.v1beta2.ListApplicationsRequest.prototype.getPageToken = function() {
1678
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1679
+ };
1680
+
1681
+
1682
+ /**
1683
+ * @param {string} value
1684
+ * @return {!proto.fonoster.applications.v1beta2.ListApplicationsRequest} returns this
1685
+ */
1686
+ proto.fonoster.applications.v1beta2.ListApplicationsRequest.prototype.setPageToken = function(value) {
1687
+ return jspb.Message.setProto3StringField(this, 2, value);
1688
+ };
1689
+
1690
+
1691
+
1692
+ /**
1693
+ * List of repeated fields within this message type.
1694
+ * @private {!Array<number>}
1695
+ * @const
1696
+ */
1697
+ proto.fonoster.applications.v1beta2.ListApplicationsResponse.repeatedFields_ = [1];
1698
+
1699
+
1700
+
1701
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1702
+ /**
1703
+ * Creates an object representation of this proto.
1704
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1705
+ * Optional fields that are not set will be set to undefined.
1706
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1707
+ * For the list of reserved names please see:
1708
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1709
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1710
+ * JSPB instance for transitional soy proto support:
1711
+ * http://goto/soy-param-migration
1712
+ * @return {!Object}
1713
+ */
1714
+ proto.fonoster.applications.v1beta2.ListApplicationsResponse.prototype.toObject = function(opt_includeInstance) {
1715
+ return proto.fonoster.applications.v1beta2.ListApplicationsResponse.toObject(opt_includeInstance, this);
1716
+ };
1717
+
1718
+
1719
+ /**
1720
+ * Static version of the {@see toObject} method.
1721
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1722
+ * the JSPB instance for transitional soy proto support:
1723
+ * http://goto/soy-param-migration
1724
+ * @param {!proto.fonoster.applications.v1beta2.ListApplicationsResponse} msg The msg instance to transform.
1725
+ * @return {!Object}
1726
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1727
+ */
1728
+ proto.fonoster.applications.v1beta2.ListApplicationsResponse.toObject = function(includeInstance, msg) {
1729
+ var f, obj = {
1730
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
1731
+ proto.fonoster.applications.v1beta2.Application.toObject, includeInstance),
1732
+ nextPageToken: jspb.Message.getFieldWithDefault(msg, 2, "")
1733
+ };
1734
+
1735
+ if (includeInstance) {
1736
+ obj.$jspbMessageInstance = msg;
1737
+ }
1738
+ return obj;
1739
+ };
1740
+ }
1741
+
1742
+
1743
+ /**
1744
+ * Deserializes binary data (in protobuf wire format).
1745
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1746
+ * @return {!proto.fonoster.applications.v1beta2.ListApplicationsResponse}
1747
+ */
1748
+ proto.fonoster.applications.v1beta2.ListApplicationsResponse.deserializeBinary = function(bytes) {
1749
+ var reader = new jspb.BinaryReader(bytes);
1750
+ var msg = new proto.fonoster.applications.v1beta2.ListApplicationsResponse;
1751
+ return proto.fonoster.applications.v1beta2.ListApplicationsResponse.deserializeBinaryFromReader(msg, reader);
1752
+ };
1753
+
1754
+
1755
+ /**
1756
+ * Deserializes binary data (in protobuf wire format) from the
1757
+ * given reader into the given message object.
1758
+ * @param {!proto.fonoster.applications.v1beta2.ListApplicationsResponse} msg The message object to deserialize into.
1759
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1760
+ * @return {!proto.fonoster.applications.v1beta2.ListApplicationsResponse}
1761
+ */
1762
+ proto.fonoster.applications.v1beta2.ListApplicationsResponse.deserializeBinaryFromReader = function(msg, reader) {
1763
+ while (reader.nextField()) {
1764
+ if (reader.isEndGroup()) {
1765
+ break;
1766
+ }
1767
+ var field = reader.getFieldNumber();
1768
+ switch (field) {
1769
+ case 1:
1770
+ var value = new proto.fonoster.applications.v1beta2.Application;
1771
+ reader.readMessage(value,proto.fonoster.applications.v1beta2.Application.deserializeBinaryFromReader);
1772
+ msg.addItems(value);
1773
+ break;
1774
+ case 2:
1775
+ var value = /** @type {string} */ (reader.readString());
1776
+ msg.setNextPageToken(value);
1777
+ break;
1778
+ default:
1779
+ reader.skipField();
1780
+ break;
1781
+ }
1782
+ }
1783
+ return msg;
1784
+ };
1785
+
1786
+
1787
+ /**
1788
+ * Serializes the message to binary data (in protobuf wire format).
1789
+ * @return {!Uint8Array}
1790
+ */
1791
+ proto.fonoster.applications.v1beta2.ListApplicationsResponse.prototype.serializeBinary = function() {
1792
+ var writer = new jspb.BinaryWriter();
1793
+ proto.fonoster.applications.v1beta2.ListApplicationsResponse.serializeBinaryToWriter(this, writer);
1794
+ return writer.getResultBuffer();
1795
+ };
1796
+
1797
+
1798
+ /**
1799
+ * Serializes the given message to binary data (in protobuf wire
1800
+ * format), writing to the given BinaryWriter.
1801
+ * @param {!proto.fonoster.applications.v1beta2.ListApplicationsResponse} message
1802
+ * @param {!jspb.BinaryWriter} writer
1803
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1804
+ */
1805
+ proto.fonoster.applications.v1beta2.ListApplicationsResponse.serializeBinaryToWriter = function(message, writer) {
1806
+ var f = undefined;
1807
+ f = message.getItemsList();
1808
+ if (f.length > 0) {
1809
+ writer.writeRepeatedMessage(
1810
+ 1,
1811
+ f,
1812
+ proto.fonoster.applications.v1beta2.Application.serializeBinaryToWriter
1813
+ );
1814
+ }
1815
+ f = message.getNextPageToken();
1816
+ if (f.length > 0) {
1817
+ writer.writeString(
1818
+ 2,
1819
+ f
1820
+ );
1821
+ }
1822
+ };
1823
+
1824
+
1825
+ /**
1826
+ * repeated Application items = 1;
1827
+ * @return {!Array<!proto.fonoster.applications.v1beta2.Application>}
1828
+ */
1829
+ proto.fonoster.applications.v1beta2.ListApplicationsResponse.prototype.getItemsList = function() {
1830
+ return /** @type{!Array<!proto.fonoster.applications.v1beta2.Application>} */ (
1831
+ jspb.Message.getRepeatedWrapperField(this, proto.fonoster.applications.v1beta2.Application, 1));
1832
+ };
1833
+
1834
+
1835
+ /**
1836
+ * @param {!Array<!proto.fonoster.applications.v1beta2.Application>} value
1837
+ * @return {!proto.fonoster.applications.v1beta2.ListApplicationsResponse} returns this
1838
+ */
1839
+ proto.fonoster.applications.v1beta2.ListApplicationsResponse.prototype.setItemsList = function(value) {
1840
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1841
+ };
1842
+
1843
+
1844
+ /**
1845
+ * @param {!proto.fonoster.applications.v1beta2.Application=} opt_value
1846
+ * @param {number=} opt_index
1847
+ * @return {!proto.fonoster.applications.v1beta2.Application}
1848
+ */
1849
+ proto.fonoster.applications.v1beta2.ListApplicationsResponse.prototype.addItems = function(opt_value, opt_index) {
1850
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.fonoster.applications.v1beta2.Application, opt_index);
1851
+ };
1852
+
1853
+
1854
+ /**
1855
+ * Clears the list making it empty but non-null.
1856
+ * @return {!proto.fonoster.applications.v1beta2.ListApplicationsResponse} returns this
1857
+ */
1858
+ proto.fonoster.applications.v1beta2.ListApplicationsResponse.prototype.clearItemsList = function() {
1859
+ return this.setItemsList([]);
1860
+ };
1861
+
1862
+
1863
+ /**
1864
+ * optional string next_page_token = 2;
1865
+ * @return {string}
1866
+ */
1867
+ proto.fonoster.applications.v1beta2.ListApplicationsResponse.prototype.getNextPageToken = function() {
1868
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1869
+ };
1870
+
1871
+
1872
+ /**
1873
+ * @param {string} value
1874
+ * @return {!proto.fonoster.applications.v1beta2.ListApplicationsResponse} returns this
1875
+ */
1876
+ proto.fonoster.applications.v1beta2.ListApplicationsResponse.prototype.setNextPageToken = function(value) {
1877
+ return jspb.Message.setProto3StringField(this, 2, value);
1878
+ };
1879
+
1880
+
1881
+
1882
+
1883
+
1884
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1885
+ /**
1886
+ * Creates an object representation of this proto.
1887
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1888
+ * Optional fields that are not set will be set to undefined.
1889
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1890
+ * For the list of reserved names please see:
1891
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1892
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1893
+ * JSPB instance for transitional soy proto support:
1894
+ * http://goto/soy-param-migration
1895
+ * @return {!Object}
1896
+ */
1897
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.toObject = function(opt_includeInstance) {
1898
+ return proto.fonoster.applications.v1beta2.UpdateApplicationRequest.toObject(opt_includeInstance, this);
1899
+ };
1900
+
1901
+
1902
+ /**
1903
+ * Static version of the {@see toObject} method.
1904
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1905
+ * the JSPB instance for transitional soy proto support:
1906
+ * http://goto/soy-param-migration
1907
+ * @param {!proto.fonoster.applications.v1beta2.UpdateApplicationRequest} msg The msg instance to transform.
1908
+ * @return {!Object}
1909
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1910
+ */
1911
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.toObject = function(includeInstance, msg) {
1912
+ var f, obj = {
1913
+ ref: jspb.Message.getFieldWithDefault(msg, 1, ""),
1914
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
1915
+ type: jspb.Message.getFieldWithDefault(msg, 3, 0),
1916
+ appEndpoint: jspb.Message.getFieldWithDefault(msg, 4, ""),
1917
+ textToSpeech: (f = msg.getTextToSpeech()) && proto.fonoster.applications.v1beta2.ProductContainer.toObject(includeInstance, f),
1918
+ speechToText: (f = msg.getSpeechToText()) && proto.fonoster.applications.v1beta2.ProductContainer.toObject(includeInstance, f),
1919
+ intelligence: (f = msg.getIntelligence()) && proto.fonoster.applications.v1beta2.ProductContainer.toObject(includeInstance, f)
1920
+ };
1921
+
1922
+ if (includeInstance) {
1923
+ obj.$jspbMessageInstance = msg;
1924
+ }
1925
+ return obj;
1926
+ };
1927
+ }
1928
+
1929
+
1930
+ /**
1931
+ * Deserializes binary data (in protobuf wire format).
1932
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1933
+ * @return {!proto.fonoster.applications.v1beta2.UpdateApplicationRequest}
1934
+ */
1935
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.deserializeBinary = function(bytes) {
1936
+ var reader = new jspb.BinaryReader(bytes);
1937
+ var msg = new proto.fonoster.applications.v1beta2.UpdateApplicationRequest;
1938
+ return proto.fonoster.applications.v1beta2.UpdateApplicationRequest.deserializeBinaryFromReader(msg, reader);
1939
+ };
1940
+
1941
+
1942
+ /**
1943
+ * Deserializes binary data (in protobuf wire format) from the
1944
+ * given reader into the given message object.
1945
+ * @param {!proto.fonoster.applications.v1beta2.UpdateApplicationRequest} msg The message object to deserialize into.
1946
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1947
+ * @return {!proto.fonoster.applications.v1beta2.UpdateApplicationRequest}
1948
+ */
1949
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.deserializeBinaryFromReader = function(msg, reader) {
1950
+ while (reader.nextField()) {
1951
+ if (reader.isEndGroup()) {
1952
+ break;
1953
+ }
1954
+ var field = reader.getFieldNumber();
1955
+ switch (field) {
1956
+ case 1:
1957
+ var value = /** @type {string} */ (reader.readString());
1958
+ msg.setRef(value);
1959
+ break;
1960
+ case 2:
1961
+ var value = /** @type {string} */ (reader.readString());
1962
+ msg.setName(value);
1963
+ break;
1964
+ case 3:
1965
+ var value = /** @type {!proto.fonoster.applications.v1beta2.ApplicationType} */ (reader.readEnum());
1966
+ msg.setType(value);
1967
+ break;
1968
+ case 4:
1969
+ var value = /** @type {string} */ (reader.readString());
1970
+ msg.setAppEndpoint(value);
1971
+ break;
1972
+ case 5:
1973
+ var value = new proto.fonoster.applications.v1beta2.ProductContainer;
1974
+ reader.readMessage(value,proto.fonoster.applications.v1beta2.ProductContainer.deserializeBinaryFromReader);
1975
+ msg.setTextToSpeech(value);
1976
+ break;
1977
+ case 6:
1978
+ var value = new proto.fonoster.applications.v1beta2.ProductContainer;
1979
+ reader.readMessage(value,proto.fonoster.applications.v1beta2.ProductContainer.deserializeBinaryFromReader);
1980
+ msg.setSpeechToText(value);
1981
+ break;
1982
+ case 7:
1983
+ var value = new proto.fonoster.applications.v1beta2.ProductContainer;
1984
+ reader.readMessage(value,proto.fonoster.applications.v1beta2.ProductContainer.deserializeBinaryFromReader);
1985
+ msg.setIntelligence(value);
1986
+ break;
1987
+ default:
1988
+ reader.skipField();
1989
+ break;
1990
+ }
1991
+ }
1992
+ return msg;
1993
+ };
1994
+
1995
+
1996
+ /**
1997
+ * Serializes the message to binary data (in protobuf wire format).
1998
+ * @return {!Uint8Array}
1999
+ */
2000
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.serializeBinary = function() {
2001
+ var writer = new jspb.BinaryWriter();
2002
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.serializeBinaryToWriter(this, writer);
2003
+ return writer.getResultBuffer();
2004
+ };
2005
+
2006
+
2007
+ /**
2008
+ * Serializes the given message to binary data (in protobuf wire
2009
+ * format), writing to the given BinaryWriter.
2010
+ * @param {!proto.fonoster.applications.v1beta2.UpdateApplicationRequest} message
2011
+ * @param {!jspb.BinaryWriter} writer
2012
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2013
+ */
2014
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.serializeBinaryToWriter = function(message, writer) {
2015
+ var f = undefined;
2016
+ f = message.getRef();
2017
+ if (f.length > 0) {
2018
+ writer.writeString(
2019
+ 1,
2020
+ f
2021
+ );
2022
+ }
2023
+ f = message.getName();
2024
+ if (f.length > 0) {
2025
+ writer.writeString(
2026
+ 2,
2027
+ f
2028
+ );
2029
+ }
2030
+ f = message.getType();
2031
+ if (f !== 0.0) {
2032
+ writer.writeEnum(
2033
+ 3,
2034
+ f
2035
+ );
2036
+ }
2037
+ f = message.getAppEndpoint();
2038
+ if (f.length > 0) {
2039
+ writer.writeString(
2040
+ 4,
2041
+ f
2042
+ );
2043
+ }
2044
+ f = message.getTextToSpeech();
2045
+ if (f != null) {
2046
+ writer.writeMessage(
2047
+ 5,
2048
+ f,
2049
+ proto.fonoster.applications.v1beta2.ProductContainer.serializeBinaryToWriter
2050
+ );
2051
+ }
2052
+ f = message.getSpeechToText();
2053
+ if (f != null) {
2054
+ writer.writeMessage(
2055
+ 6,
2056
+ f,
2057
+ proto.fonoster.applications.v1beta2.ProductContainer.serializeBinaryToWriter
2058
+ );
2059
+ }
2060
+ f = message.getIntelligence();
2061
+ if (f != null) {
2062
+ writer.writeMessage(
2063
+ 7,
2064
+ f,
2065
+ proto.fonoster.applications.v1beta2.ProductContainer.serializeBinaryToWriter
2066
+ );
2067
+ }
2068
+ };
2069
+
2070
+
2071
+ /**
2072
+ * optional string ref = 1;
2073
+ * @return {string}
2074
+ */
2075
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.getRef = function() {
2076
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2077
+ };
2078
+
2079
+
2080
+ /**
2081
+ * @param {string} value
2082
+ * @return {!proto.fonoster.applications.v1beta2.UpdateApplicationRequest} returns this
2083
+ */
2084
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.setRef = function(value) {
2085
+ return jspb.Message.setProto3StringField(this, 1, value);
2086
+ };
2087
+
2088
+
2089
+ /**
2090
+ * optional string name = 2;
2091
+ * @return {string}
2092
+ */
2093
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.getName = function() {
2094
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2095
+ };
2096
+
2097
+
2098
+ /**
2099
+ * @param {string} value
2100
+ * @return {!proto.fonoster.applications.v1beta2.UpdateApplicationRequest} returns this
2101
+ */
2102
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.setName = function(value) {
2103
+ return jspb.Message.setProto3StringField(this, 2, value);
2104
+ };
2105
+
2106
+
2107
+ /**
2108
+ * optional ApplicationType type = 3;
2109
+ * @return {!proto.fonoster.applications.v1beta2.ApplicationType}
2110
+ */
2111
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.getType = function() {
2112
+ return /** @type {!proto.fonoster.applications.v1beta2.ApplicationType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2113
+ };
2114
+
2115
+
2116
+ /**
2117
+ * @param {!proto.fonoster.applications.v1beta2.ApplicationType} value
2118
+ * @return {!proto.fonoster.applications.v1beta2.UpdateApplicationRequest} returns this
2119
+ */
2120
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.setType = function(value) {
2121
+ return jspb.Message.setProto3EnumField(this, 3, value);
2122
+ };
2123
+
2124
+
2125
+ /**
2126
+ * optional string app_endpoint = 4;
2127
+ * @return {string}
2128
+ */
2129
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.getAppEndpoint = function() {
2130
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2131
+ };
2132
+
2133
+
2134
+ /**
2135
+ * @param {string} value
2136
+ * @return {!proto.fonoster.applications.v1beta2.UpdateApplicationRequest} returns this
2137
+ */
2138
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.setAppEndpoint = function(value) {
2139
+ return jspb.Message.setProto3StringField(this, 4, value);
2140
+ };
2141
+
2142
+
2143
+ /**
2144
+ * optional ProductContainer text_to_speech = 5;
2145
+ * @return {?proto.fonoster.applications.v1beta2.ProductContainer}
2146
+ */
2147
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.getTextToSpeech = function() {
2148
+ return /** @type{?proto.fonoster.applications.v1beta2.ProductContainer} */ (
2149
+ jspb.Message.getWrapperField(this, proto.fonoster.applications.v1beta2.ProductContainer, 5));
2150
+ };
2151
+
2152
+
2153
+ /**
2154
+ * @param {?proto.fonoster.applications.v1beta2.ProductContainer|undefined} value
2155
+ * @return {!proto.fonoster.applications.v1beta2.UpdateApplicationRequest} returns this
2156
+ */
2157
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.setTextToSpeech = function(value) {
2158
+ return jspb.Message.setWrapperField(this, 5, value);
2159
+ };
2160
+
2161
+
2162
+ /**
2163
+ * Clears the message field making it undefined.
2164
+ * @return {!proto.fonoster.applications.v1beta2.UpdateApplicationRequest} returns this
2165
+ */
2166
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.clearTextToSpeech = function() {
2167
+ return this.setTextToSpeech(undefined);
2168
+ };
2169
+
2170
+
2171
+ /**
2172
+ * Returns whether this field is set.
2173
+ * @return {boolean}
2174
+ */
2175
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.hasTextToSpeech = function() {
2176
+ return jspb.Message.getField(this, 5) != null;
2177
+ };
2178
+
2179
+
2180
+ /**
2181
+ * optional ProductContainer speech_to_text = 6;
2182
+ * @return {?proto.fonoster.applications.v1beta2.ProductContainer}
2183
+ */
2184
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.getSpeechToText = function() {
2185
+ return /** @type{?proto.fonoster.applications.v1beta2.ProductContainer} */ (
2186
+ jspb.Message.getWrapperField(this, proto.fonoster.applications.v1beta2.ProductContainer, 6));
2187
+ };
2188
+
2189
+
2190
+ /**
2191
+ * @param {?proto.fonoster.applications.v1beta2.ProductContainer|undefined} value
2192
+ * @return {!proto.fonoster.applications.v1beta2.UpdateApplicationRequest} returns this
2193
+ */
2194
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.setSpeechToText = function(value) {
2195
+ return jspb.Message.setWrapperField(this, 6, value);
2196
+ };
2197
+
2198
+
2199
+ /**
2200
+ * Clears the message field making it undefined.
2201
+ * @return {!proto.fonoster.applications.v1beta2.UpdateApplicationRequest} returns this
2202
+ */
2203
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.clearSpeechToText = function() {
2204
+ return this.setSpeechToText(undefined);
2205
+ };
2206
+
2207
+
2208
+ /**
2209
+ * Returns whether this field is set.
2210
+ * @return {boolean}
2211
+ */
2212
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.hasSpeechToText = function() {
2213
+ return jspb.Message.getField(this, 6) != null;
2214
+ };
2215
+
2216
+
2217
+ /**
2218
+ * optional ProductContainer intelligence = 7;
2219
+ * @return {?proto.fonoster.applications.v1beta2.ProductContainer}
2220
+ */
2221
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.getIntelligence = function() {
2222
+ return /** @type{?proto.fonoster.applications.v1beta2.ProductContainer} */ (
2223
+ jspb.Message.getWrapperField(this, proto.fonoster.applications.v1beta2.ProductContainer, 7));
2224
+ };
2225
+
2226
+
2227
+ /**
2228
+ * @param {?proto.fonoster.applications.v1beta2.ProductContainer|undefined} value
2229
+ * @return {!proto.fonoster.applications.v1beta2.UpdateApplicationRequest} returns this
2230
+ */
2231
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.setIntelligence = function(value) {
2232
+ return jspb.Message.setWrapperField(this, 7, value);
2233
+ };
2234
+
2235
+
2236
+ /**
2237
+ * Clears the message field making it undefined.
2238
+ * @return {!proto.fonoster.applications.v1beta2.UpdateApplicationRequest} returns this
2239
+ */
2240
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.clearIntelligence = function() {
2241
+ return this.setIntelligence(undefined);
2242
+ };
2243
+
2244
+
2245
+ /**
2246
+ * Returns whether this field is set.
2247
+ * @return {boolean}
2248
+ */
2249
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.hasIntelligence = function() {
2250
+ return jspb.Message.getField(this, 7) != null;
2251
+ };
2252
+
2253
+
2254
+
2255
+
2256
+
2257
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2258
+ /**
2259
+ * Creates an object representation of this proto.
2260
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2261
+ * Optional fields that are not set will be set to undefined.
2262
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2263
+ * For the list of reserved names please see:
2264
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2265
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2266
+ * JSPB instance for transitional soy proto support:
2267
+ * http://goto/soy-param-migration
2268
+ * @return {!Object}
2269
+ */
2270
+ proto.fonoster.applications.v1beta2.UpdateApplicationResponse.prototype.toObject = function(opt_includeInstance) {
2271
+ return proto.fonoster.applications.v1beta2.UpdateApplicationResponse.toObject(opt_includeInstance, this);
2272
+ };
2273
+
2274
+
2275
+ /**
2276
+ * Static version of the {@see toObject} method.
2277
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2278
+ * the JSPB instance for transitional soy proto support:
2279
+ * http://goto/soy-param-migration
2280
+ * @param {!proto.fonoster.applications.v1beta2.UpdateApplicationResponse} msg The msg instance to transform.
2281
+ * @return {!Object}
2282
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2283
+ */
2284
+ proto.fonoster.applications.v1beta2.UpdateApplicationResponse.toObject = function(includeInstance, msg) {
2285
+ var f, obj = {
2286
+ ref: jspb.Message.getFieldWithDefault(msg, 1, "")
2287
+ };
2288
+
2289
+ if (includeInstance) {
2290
+ obj.$jspbMessageInstance = msg;
2291
+ }
2292
+ return obj;
2293
+ };
2294
+ }
2295
+
2296
+
2297
+ /**
2298
+ * Deserializes binary data (in protobuf wire format).
2299
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2300
+ * @return {!proto.fonoster.applications.v1beta2.UpdateApplicationResponse}
2301
+ */
2302
+ proto.fonoster.applications.v1beta2.UpdateApplicationResponse.deserializeBinary = function(bytes) {
2303
+ var reader = new jspb.BinaryReader(bytes);
2304
+ var msg = new proto.fonoster.applications.v1beta2.UpdateApplicationResponse;
2305
+ return proto.fonoster.applications.v1beta2.UpdateApplicationResponse.deserializeBinaryFromReader(msg, reader);
2306
+ };
2307
+
2308
+
2309
+ /**
2310
+ * Deserializes binary data (in protobuf wire format) from the
2311
+ * given reader into the given message object.
2312
+ * @param {!proto.fonoster.applications.v1beta2.UpdateApplicationResponse} msg The message object to deserialize into.
2313
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2314
+ * @return {!proto.fonoster.applications.v1beta2.UpdateApplicationResponse}
2315
+ */
2316
+ proto.fonoster.applications.v1beta2.UpdateApplicationResponse.deserializeBinaryFromReader = function(msg, reader) {
2317
+ while (reader.nextField()) {
2318
+ if (reader.isEndGroup()) {
2319
+ break;
2320
+ }
2321
+ var field = reader.getFieldNumber();
2322
+ switch (field) {
2323
+ case 1:
2324
+ var value = /** @type {string} */ (reader.readString());
2325
+ msg.setRef(value);
2326
+ break;
2327
+ default:
2328
+ reader.skipField();
2329
+ break;
2330
+ }
2331
+ }
2332
+ return msg;
2333
+ };
2334
+
2335
+
2336
+ /**
2337
+ * Serializes the message to binary data (in protobuf wire format).
2338
+ * @return {!Uint8Array}
2339
+ */
2340
+ proto.fonoster.applications.v1beta2.UpdateApplicationResponse.prototype.serializeBinary = function() {
2341
+ var writer = new jspb.BinaryWriter();
2342
+ proto.fonoster.applications.v1beta2.UpdateApplicationResponse.serializeBinaryToWriter(this, writer);
2343
+ return writer.getResultBuffer();
2344
+ };
2345
+
2346
+
2347
+ /**
2348
+ * Serializes the given message to binary data (in protobuf wire
2349
+ * format), writing to the given BinaryWriter.
2350
+ * @param {!proto.fonoster.applications.v1beta2.UpdateApplicationResponse} message
2351
+ * @param {!jspb.BinaryWriter} writer
2352
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2353
+ */
2354
+ proto.fonoster.applications.v1beta2.UpdateApplicationResponse.serializeBinaryToWriter = function(message, writer) {
2355
+ var f = undefined;
2356
+ f = message.getRef();
2357
+ if (f.length > 0) {
2358
+ writer.writeString(
2359
+ 1,
2360
+ f
2361
+ );
2362
+ }
2363
+ };
2364
+
2365
+
2366
+ /**
2367
+ * optional string ref = 1;
2368
+ * @return {string}
2369
+ */
2370
+ proto.fonoster.applications.v1beta2.UpdateApplicationResponse.prototype.getRef = function() {
2371
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2372
+ };
2373
+
2374
+
2375
+ /**
2376
+ * @param {string} value
2377
+ * @return {!proto.fonoster.applications.v1beta2.UpdateApplicationResponse} returns this
2378
+ */
2379
+ proto.fonoster.applications.v1beta2.UpdateApplicationResponse.prototype.setRef = function(value) {
2380
+ return jspb.Message.setProto3StringField(this, 1, value);
2381
+ };
2382
+
2383
+
2384
+
2385
+
2386
+
2387
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2388
+ /**
2389
+ * Creates an object representation of this proto.
2390
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2391
+ * Optional fields that are not set will be set to undefined.
2392
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2393
+ * For the list of reserved names please see:
2394
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2395
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2396
+ * JSPB instance for transitional soy proto support:
2397
+ * http://goto/soy-param-migration
2398
+ * @return {!Object}
2399
+ */
2400
+ proto.fonoster.applications.v1beta2.DeleteApplicationRequest.prototype.toObject = function(opt_includeInstance) {
2401
+ return proto.fonoster.applications.v1beta2.DeleteApplicationRequest.toObject(opt_includeInstance, this);
2402
+ };
2403
+
2404
+
2405
+ /**
2406
+ * Static version of the {@see toObject} method.
2407
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2408
+ * the JSPB instance for transitional soy proto support:
2409
+ * http://goto/soy-param-migration
2410
+ * @param {!proto.fonoster.applications.v1beta2.DeleteApplicationRequest} msg The msg instance to transform.
2411
+ * @return {!Object}
2412
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2413
+ */
2414
+ proto.fonoster.applications.v1beta2.DeleteApplicationRequest.toObject = function(includeInstance, msg) {
2415
+ var f, obj = {
2416
+ ref: jspb.Message.getFieldWithDefault(msg, 1, "")
2417
+ };
2418
+
2419
+ if (includeInstance) {
2420
+ obj.$jspbMessageInstance = msg;
2421
+ }
2422
+ return obj;
2423
+ };
2424
+ }
2425
+
2426
+
2427
+ /**
2428
+ * Deserializes binary data (in protobuf wire format).
2429
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2430
+ * @return {!proto.fonoster.applications.v1beta2.DeleteApplicationRequest}
2431
+ */
2432
+ proto.fonoster.applications.v1beta2.DeleteApplicationRequest.deserializeBinary = function(bytes) {
2433
+ var reader = new jspb.BinaryReader(bytes);
2434
+ var msg = new proto.fonoster.applications.v1beta2.DeleteApplicationRequest;
2435
+ return proto.fonoster.applications.v1beta2.DeleteApplicationRequest.deserializeBinaryFromReader(msg, reader);
2436
+ };
2437
+
2438
+
2439
+ /**
2440
+ * Deserializes binary data (in protobuf wire format) from the
2441
+ * given reader into the given message object.
2442
+ * @param {!proto.fonoster.applications.v1beta2.DeleteApplicationRequest} msg The message object to deserialize into.
2443
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2444
+ * @return {!proto.fonoster.applications.v1beta2.DeleteApplicationRequest}
2445
+ */
2446
+ proto.fonoster.applications.v1beta2.DeleteApplicationRequest.deserializeBinaryFromReader = function(msg, reader) {
2447
+ while (reader.nextField()) {
2448
+ if (reader.isEndGroup()) {
2449
+ break;
2450
+ }
2451
+ var field = reader.getFieldNumber();
2452
+ switch (field) {
2453
+ case 1:
2454
+ var value = /** @type {string} */ (reader.readString());
2455
+ msg.setRef(value);
2456
+ break;
2457
+ default:
2458
+ reader.skipField();
2459
+ break;
2460
+ }
2461
+ }
2462
+ return msg;
2463
+ };
2464
+
2465
+
2466
+ /**
2467
+ * Serializes the message to binary data (in protobuf wire format).
2468
+ * @return {!Uint8Array}
2469
+ */
2470
+ proto.fonoster.applications.v1beta2.DeleteApplicationRequest.prototype.serializeBinary = function() {
2471
+ var writer = new jspb.BinaryWriter();
2472
+ proto.fonoster.applications.v1beta2.DeleteApplicationRequest.serializeBinaryToWriter(this, writer);
2473
+ return writer.getResultBuffer();
2474
+ };
2475
+
2476
+
2477
+ /**
2478
+ * Serializes the given message to binary data (in protobuf wire
2479
+ * format), writing to the given BinaryWriter.
2480
+ * @param {!proto.fonoster.applications.v1beta2.DeleteApplicationRequest} message
2481
+ * @param {!jspb.BinaryWriter} writer
2482
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2483
+ */
2484
+ proto.fonoster.applications.v1beta2.DeleteApplicationRequest.serializeBinaryToWriter = function(message, writer) {
2485
+ var f = undefined;
2486
+ f = message.getRef();
2487
+ if (f.length > 0) {
2488
+ writer.writeString(
2489
+ 1,
2490
+ f
2491
+ );
2492
+ }
2493
+ };
2494
+
2495
+
2496
+ /**
2497
+ * optional string ref = 1;
2498
+ * @return {string}
2499
+ */
2500
+ proto.fonoster.applications.v1beta2.DeleteApplicationRequest.prototype.getRef = function() {
2501
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2502
+ };
2503
+
2504
+
2505
+ /**
2506
+ * @param {string} value
2507
+ * @return {!proto.fonoster.applications.v1beta2.DeleteApplicationRequest} returns this
2508
+ */
2509
+ proto.fonoster.applications.v1beta2.DeleteApplicationRequest.prototype.setRef = function(value) {
2510
+ return jspb.Message.setProto3StringField(this, 1, value);
2511
+ };
2512
+
2513
+
2514
+
2515
+
2516
+
2517
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2518
+ /**
2519
+ * Creates an object representation of this proto.
2520
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2521
+ * Optional fields that are not set will be set to undefined.
2522
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2523
+ * For the list of reserved names please see:
2524
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2525
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2526
+ * JSPB instance for transitional soy proto support:
2527
+ * http://goto/soy-param-migration
2528
+ * @return {!Object}
2529
+ */
2530
+ proto.fonoster.applications.v1beta2.DeleteApplicationResponse.prototype.toObject = function(opt_includeInstance) {
2531
+ return proto.fonoster.applications.v1beta2.DeleteApplicationResponse.toObject(opt_includeInstance, this);
2532
+ };
2533
+
2534
+
2535
+ /**
2536
+ * Static version of the {@see toObject} method.
2537
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2538
+ * the JSPB instance for transitional soy proto support:
2539
+ * http://goto/soy-param-migration
2540
+ * @param {!proto.fonoster.applications.v1beta2.DeleteApplicationResponse} msg The msg instance to transform.
2541
+ * @return {!Object}
2542
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2543
+ */
2544
+ proto.fonoster.applications.v1beta2.DeleteApplicationResponse.toObject = function(includeInstance, msg) {
2545
+ var f, obj = {
2546
+ ref: jspb.Message.getFieldWithDefault(msg, 1, "")
2547
+ };
2548
+
2549
+ if (includeInstance) {
2550
+ obj.$jspbMessageInstance = msg;
2551
+ }
2552
+ return obj;
2553
+ };
2554
+ }
2555
+
2556
+
2557
+ /**
2558
+ * Deserializes binary data (in protobuf wire format).
2559
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2560
+ * @return {!proto.fonoster.applications.v1beta2.DeleteApplicationResponse}
2561
+ */
2562
+ proto.fonoster.applications.v1beta2.DeleteApplicationResponse.deserializeBinary = function(bytes) {
2563
+ var reader = new jspb.BinaryReader(bytes);
2564
+ var msg = new proto.fonoster.applications.v1beta2.DeleteApplicationResponse;
2565
+ return proto.fonoster.applications.v1beta2.DeleteApplicationResponse.deserializeBinaryFromReader(msg, reader);
2566
+ };
2567
+
2568
+
2569
+ /**
2570
+ * Deserializes binary data (in protobuf wire format) from the
2571
+ * given reader into the given message object.
2572
+ * @param {!proto.fonoster.applications.v1beta2.DeleteApplicationResponse} msg The message object to deserialize into.
2573
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2574
+ * @return {!proto.fonoster.applications.v1beta2.DeleteApplicationResponse}
2575
+ */
2576
+ proto.fonoster.applications.v1beta2.DeleteApplicationResponse.deserializeBinaryFromReader = function(msg, reader) {
2577
+ while (reader.nextField()) {
2578
+ if (reader.isEndGroup()) {
2579
+ break;
2580
+ }
2581
+ var field = reader.getFieldNumber();
2582
+ switch (field) {
2583
+ case 1:
2584
+ var value = /** @type {string} */ (reader.readString());
2585
+ msg.setRef(value);
2586
+ break;
2587
+ default:
2588
+ reader.skipField();
2589
+ break;
2590
+ }
2591
+ }
2592
+ return msg;
2593
+ };
2594
+
2595
+
2596
+ /**
2597
+ * Serializes the message to binary data (in protobuf wire format).
2598
+ * @return {!Uint8Array}
2599
+ */
2600
+ proto.fonoster.applications.v1beta2.DeleteApplicationResponse.prototype.serializeBinary = function() {
2601
+ var writer = new jspb.BinaryWriter();
2602
+ proto.fonoster.applications.v1beta2.DeleteApplicationResponse.serializeBinaryToWriter(this, writer);
2603
+ return writer.getResultBuffer();
2604
+ };
2605
+
2606
+
2607
+ /**
2608
+ * Serializes the given message to binary data (in protobuf wire
2609
+ * format), writing to the given BinaryWriter.
2610
+ * @param {!proto.fonoster.applications.v1beta2.DeleteApplicationResponse} message
2611
+ * @param {!jspb.BinaryWriter} writer
2612
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2613
+ */
2614
+ proto.fonoster.applications.v1beta2.DeleteApplicationResponse.serializeBinaryToWriter = function(message, writer) {
2615
+ var f = undefined;
2616
+ f = message.getRef();
2617
+ if (f.length > 0) {
2618
+ writer.writeString(
2619
+ 1,
2620
+ f
2621
+ );
2622
+ }
2623
+ };
2624
+
2625
+
2626
+ /**
2627
+ * optional string ref = 1;
2628
+ * @return {string}
2629
+ */
2630
+ proto.fonoster.applications.v1beta2.DeleteApplicationResponse.prototype.getRef = function() {
2631
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2632
+ };
2633
+
2634
+
2635
+ /**
2636
+ * @param {string} value
2637
+ * @return {!proto.fonoster.applications.v1beta2.DeleteApplicationResponse} returns this
2638
+ */
2639
+ proto.fonoster.applications.v1beta2.DeleteApplicationResponse.prototype.setRef = function(value) {
2640
+ return jspb.Message.setProto3StringField(this, 1, value);
2641
+ };
2642
+
2643
+
2644
+ /**
2645
+ * @enum {number}
2646
+ */
2647
+ proto.fonoster.applications.v1beta2.ApplicationType = {
2648
+ PROGRAMMABLE_VOICE: 0
2649
+ };
2650
+
2651
+ goog.object.extend(exports, proto.fonoster.applications.v1beta2);