@fonoster/sdk 0.27.0 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +6 -5
  2. package/dist/node/Applications.d.ts +21 -85
  3. package/dist/node/Applications.js +55 -73
  4. package/dist/node/CallRecords.d.ts +92 -0
  5. package/dist/node/CallRecords.js +124 -0
  6. package/dist/node/Domains.js +4 -2
  7. package/dist/node/Providers.d.ts +49 -0
  8. package/dist/node/Providers.js +107 -0
  9. package/dist/node/Regions.d.ts +91 -0
  10. package/dist/node/Regions.js +124 -0
  11. package/dist/node/Users.d.ts +4 -2
  12. package/dist/node/Users.js +4 -2
  13. package/dist/node/Webhooks.d.ts +56 -0
  14. package/dist/node/Webhooks.js +139 -0
  15. package/dist/node/Workspaces.d.ts +22 -3
  16. package/dist/node/Workspaces.js +29 -2
  17. package/dist/node/client/AbstractClient.d.ts +83 -3
  18. package/dist/node/client/AbstractClient.js +97 -1
  19. package/dist/node/client/Client.d.ts +7 -0
  20. package/dist/node/client/Client.js +21 -0
  21. package/dist/node/client/jsonToObject.js +17 -0
  22. package/dist/node/client/objectToJson.js +35 -0
  23. package/dist/node/client/types/ApplicationsClient.d.ts +2 -1
  24. package/dist/node/client/types/CapabilitiesClient.d.ts +24 -0
  25. package/dist/node/client/types/CapabilitiesClient.js +2 -0
  26. package/dist/node/client/types/FonosterClient.d.ts +8 -0
  27. package/dist/node/client/types/IdentityClient.d.ts +3 -1
  28. package/dist/node/client/types/ProvidersClient.d.ts +28 -0
  29. package/dist/node/client/types/ProvidersClient.js +2 -0
  30. package/dist/node/client/types/WebhooksClient.d.ts +31 -0
  31. package/dist/node/client/types/WebhooksClient.js +2 -0
  32. package/dist/node/client/types/index.d.ts +3 -0
  33. package/dist/node/client/types/index.js +3 -0
  34. package/dist/node/generated/node/applications_grpc_pb.js +34 -0
  35. package/dist/node/generated/node/applications_pb.js +2657 -206
  36. package/dist/node/generated/node/capabilities_grpc_pb.js +66 -0
  37. package/dist/node/generated/node/capabilities_pb.js +2085 -0
  38. package/dist/node/generated/node/identity_grpc_pb.js +34 -0
  39. package/dist/node/generated/node/identity_pb.js +609 -5
  40. package/dist/node/generated/node/providers_grpc_pb.js +200 -0
  41. package/dist/node/generated/node/providers_pb.js +3034 -0
  42. package/dist/node/generated/node/webhooks_grpc_pb.js +302 -0
  43. package/dist/node/generated/node/webhooks_pb.js +3314 -0
  44. package/dist/node/generated/web/ApplicationsServiceClientPb.ts +43 -0
  45. package/dist/node/generated/web/CapabilitiesServiceClientPb.ts +87 -0
  46. package/dist/node/generated/web/IdentityServiceClientPb.ts +43 -0
  47. package/dist/node/generated/web/ProvidersServiceClientPb.ts +258 -0
  48. package/dist/node/generated/web/WebhooksServiceClientPb.ts +387 -0
  49. package/dist/node/generated/web/applications_pb.d.ts +301 -1
  50. package/dist/node/generated/web/applications_pb.js +2657 -206
  51. package/dist/node/generated/web/capabilities_pb.d.ts +249 -0
  52. package/dist/node/generated/web/capabilities_pb.js +2085 -0
  53. package/dist/node/generated/web/identity_pb.d.ts +76 -0
  54. package/dist/node/generated/web/identity_pb.js +609 -5
  55. package/dist/node/generated/web/providers_pb.d.ts +364 -0
  56. package/dist/node/generated/web/providers_pb.js +3034 -0
  57. package/dist/node/generated/web/webhooks_pb.d.ts +398 -0
  58. package/dist/node/generated/web/webhooks_pb.js +3314 -0
  59. package/dist/node/node.d.ts +5 -0
  60. package/dist/node/node.js +4 -0
  61. package/dist/node/tsconfig.tsbuildinfo +1 -1
  62. package/dist/node/utils.d.ts +1 -13
  63. package/dist/node/utils.js +1 -38
  64. package/dist/web/fonoster.min.js +1 -1
  65. package/dist/web/index.esm.js +1 -1
  66. package/package.json +5 -5
@@ -0,0 +1,2085 @@
1
+ // source: capabilities.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 =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
25
+ goog.object.extend(proto, google_protobuf_empty_pb);
26
+ goog.exportSymbol('proto.fonoster.capabilities.v1beta2.AuthCapabilities', null, global);
27
+ goog.exportSymbol('proto.fonoster.capabilities.v1beta2.BillingCapabilities', null, global);
28
+ goog.exportSymbol('proto.fonoster.capabilities.v1beta2.ConnectionCapabilities', null, global);
29
+ goog.exportSymbol('proto.fonoster.capabilities.v1beta2.CostsCapabilities', null, global);
30
+ goog.exportSymbol('proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse', null, global);
31
+ goog.exportSymbol('proto.fonoster.capabilities.v1beta2.GitHubCapability', null, global);
32
+ goog.exportSymbol('proto.fonoster.capabilities.v1beta2.PortRange', null, global);
33
+ goog.exportSymbol('proto.fonoster.capabilities.v1beta2.RegionsCapabilities', null, global);
34
+ goog.exportSymbol('proto.fonoster.capabilities.v1beta2.SipEndpoint', null, global);
35
+ /**
36
+ * Generated by JsPbCodeGenerator.
37
+ * @param {Array=} opt_data Optional initial data array, typically from a
38
+ * server response, or constructed directly in Javascript. The array is used
39
+ * in place and becomes part of the constructed object. It is not cloned.
40
+ * If no data is provided, the constructed object will be empty, but still
41
+ * valid.
42
+ * @extends {jspb.Message}
43
+ * @constructor
44
+ */
45
+ proto.fonoster.capabilities.v1beta2.GitHubCapability = function(opt_data) {
46
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
47
+ };
48
+ goog.inherits(proto.fonoster.capabilities.v1beta2.GitHubCapability, jspb.Message);
49
+ if (goog.DEBUG && !COMPILED) {
50
+ /**
51
+ * @public
52
+ * @override
53
+ */
54
+ proto.fonoster.capabilities.v1beta2.GitHubCapability.displayName = 'proto.fonoster.capabilities.v1beta2.GitHubCapability';
55
+ }
56
+ /**
57
+ * Generated by JsPbCodeGenerator.
58
+ * @param {Array=} opt_data Optional initial data array, typically from a
59
+ * server response, or constructed directly in Javascript. The array is used
60
+ * in place and becomes part of the constructed object. It is not cloned.
61
+ * If no data is provided, the constructed object will be empty, but still
62
+ * valid.
63
+ * @extends {jspb.Message}
64
+ * @constructor
65
+ */
66
+ proto.fonoster.capabilities.v1beta2.AuthCapabilities = function(opt_data) {
67
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.fonoster.capabilities.v1beta2.AuthCapabilities.repeatedFields_, null);
68
+ };
69
+ goog.inherits(proto.fonoster.capabilities.v1beta2.AuthCapabilities, jspb.Message);
70
+ if (goog.DEBUG && !COMPILED) {
71
+ /**
72
+ * @public
73
+ * @override
74
+ */
75
+ proto.fonoster.capabilities.v1beta2.AuthCapabilities.displayName = 'proto.fonoster.capabilities.v1beta2.AuthCapabilities';
76
+ }
77
+ /**
78
+ * Generated by JsPbCodeGenerator.
79
+ * @param {Array=} opt_data Optional initial data array, typically from a
80
+ * server response, or constructed directly in Javascript. The array is used
81
+ * in place and becomes part of the constructed object. It is not cloned.
82
+ * If no data is provided, the constructed object will be empty, but still
83
+ * valid.
84
+ * @extends {jspb.Message}
85
+ * @constructor
86
+ */
87
+ proto.fonoster.capabilities.v1beta2.BillingCapabilities = function(opt_data) {
88
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
89
+ };
90
+ goog.inherits(proto.fonoster.capabilities.v1beta2.BillingCapabilities, jspb.Message);
91
+ if (goog.DEBUG && !COMPILED) {
92
+ /**
93
+ * @public
94
+ * @override
95
+ */
96
+ proto.fonoster.capabilities.v1beta2.BillingCapabilities.displayName = 'proto.fonoster.capabilities.v1beta2.BillingCapabilities';
97
+ }
98
+ /**
99
+ * Generated by JsPbCodeGenerator.
100
+ * @param {Array=} opt_data Optional initial data array, typically from a
101
+ * server response, or constructed directly in Javascript. The array is used
102
+ * in place and becomes part of the constructed object. It is not cloned.
103
+ * If no data is provided, the constructed object will be empty, but still
104
+ * valid.
105
+ * @extends {jspb.Message}
106
+ * @constructor
107
+ */
108
+ proto.fonoster.capabilities.v1beta2.CostsCapabilities = function(opt_data) {
109
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
110
+ };
111
+ goog.inherits(proto.fonoster.capabilities.v1beta2.CostsCapabilities, jspb.Message);
112
+ if (goog.DEBUG && !COMPILED) {
113
+ /**
114
+ * @public
115
+ * @override
116
+ */
117
+ proto.fonoster.capabilities.v1beta2.CostsCapabilities.displayName = 'proto.fonoster.capabilities.v1beta2.CostsCapabilities';
118
+ }
119
+ /**
120
+ * Generated by JsPbCodeGenerator.
121
+ * @param {Array=} opt_data Optional initial data array, typically from a
122
+ * server response, or constructed directly in Javascript. The array is used
123
+ * in place and becomes part of the constructed object. It is not cloned.
124
+ * If no data is provided, the constructed object will be empty, but still
125
+ * valid.
126
+ * @extends {jspb.Message}
127
+ * @constructor
128
+ */
129
+ proto.fonoster.capabilities.v1beta2.RegionsCapabilities = function(opt_data) {
130
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
131
+ };
132
+ goog.inherits(proto.fonoster.capabilities.v1beta2.RegionsCapabilities, jspb.Message);
133
+ if (goog.DEBUG && !COMPILED) {
134
+ /**
135
+ * @public
136
+ * @override
137
+ */
138
+ proto.fonoster.capabilities.v1beta2.RegionsCapabilities.displayName = 'proto.fonoster.capabilities.v1beta2.RegionsCapabilities';
139
+ }
140
+ /**
141
+ * Generated by JsPbCodeGenerator.
142
+ * @param {Array=} opt_data Optional initial data array, typically from a
143
+ * server response, or constructed directly in Javascript. The array is used
144
+ * in place and becomes part of the constructed object. It is not cloned.
145
+ * If no data is provided, the constructed object will be empty, but still
146
+ * valid.
147
+ * @extends {jspb.Message}
148
+ * @constructor
149
+ */
150
+ proto.fonoster.capabilities.v1beta2.SipEndpoint = function(opt_data) {
151
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
152
+ };
153
+ goog.inherits(proto.fonoster.capabilities.v1beta2.SipEndpoint, jspb.Message);
154
+ if (goog.DEBUG && !COMPILED) {
155
+ /**
156
+ * @public
157
+ * @override
158
+ */
159
+ proto.fonoster.capabilities.v1beta2.SipEndpoint.displayName = 'proto.fonoster.capabilities.v1beta2.SipEndpoint';
160
+ }
161
+ /**
162
+ * Generated by JsPbCodeGenerator.
163
+ * @param {Array=} opt_data Optional initial data array, typically from a
164
+ * server response, or constructed directly in Javascript. The array is used
165
+ * in place and becomes part of the constructed object. It is not cloned.
166
+ * If no data is provided, the constructed object will be empty, but still
167
+ * valid.
168
+ * @extends {jspb.Message}
169
+ * @constructor
170
+ */
171
+ proto.fonoster.capabilities.v1beta2.PortRange = function(opt_data) {
172
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
173
+ };
174
+ goog.inherits(proto.fonoster.capabilities.v1beta2.PortRange, jspb.Message);
175
+ if (goog.DEBUG && !COMPILED) {
176
+ /**
177
+ * @public
178
+ * @override
179
+ */
180
+ proto.fonoster.capabilities.v1beta2.PortRange.displayName = 'proto.fonoster.capabilities.v1beta2.PortRange';
181
+ }
182
+ /**
183
+ * Generated by JsPbCodeGenerator.
184
+ * @param {Array=} opt_data Optional initial data array, typically from a
185
+ * server response, or constructed directly in Javascript. The array is used
186
+ * in place and becomes part of the constructed object. It is not cloned.
187
+ * If no data is provided, the constructed object will be empty, but still
188
+ * valid.
189
+ * @extends {jspb.Message}
190
+ * @constructor
191
+ */
192
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities = function(opt_data) {
193
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.repeatedFields_, null);
194
+ };
195
+ goog.inherits(proto.fonoster.capabilities.v1beta2.ConnectionCapabilities, jspb.Message);
196
+ if (goog.DEBUG && !COMPILED) {
197
+ /**
198
+ * @public
199
+ * @override
200
+ */
201
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.displayName = 'proto.fonoster.capabilities.v1beta2.ConnectionCapabilities';
202
+ }
203
+ /**
204
+ * Generated by JsPbCodeGenerator.
205
+ * @param {Array=} opt_data Optional initial data array, typically from a
206
+ * server response, or constructed directly in Javascript. The array is used
207
+ * in place and becomes part of the constructed object. It is not cloned.
208
+ * If no data is provided, the constructed object will be empty, but still
209
+ * valid.
210
+ * @extends {jspb.Message}
211
+ * @constructor
212
+ */
213
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse = function(opt_data) {
214
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
215
+ };
216
+ goog.inherits(proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse, jspb.Message);
217
+ if (goog.DEBUG && !COMPILED) {
218
+ /**
219
+ * @public
220
+ * @override
221
+ */
222
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.displayName = 'proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse';
223
+ }
224
+
225
+
226
+
227
+ if (jspb.Message.GENERATE_TO_OBJECT) {
228
+ /**
229
+ * Creates an object representation of this proto.
230
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
231
+ * Optional fields that are not set will be set to undefined.
232
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
233
+ * For the list of reserved names please see:
234
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
235
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
236
+ * JSPB instance for transitional soy proto support:
237
+ * http://goto/soy-param-migration
238
+ * @return {!Object}
239
+ */
240
+ proto.fonoster.capabilities.v1beta2.GitHubCapability.prototype.toObject = function(opt_includeInstance) {
241
+ return proto.fonoster.capabilities.v1beta2.GitHubCapability.toObject(opt_includeInstance, this);
242
+ };
243
+
244
+
245
+ /**
246
+ * Static version of the {@see toObject} method.
247
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
248
+ * the JSPB instance for transitional soy proto support:
249
+ * http://goto/soy-param-migration
250
+ * @param {!proto.fonoster.capabilities.v1beta2.GitHubCapability} msg The msg instance to transform.
251
+ * @return {!Object}
252
+ * @suppress {unusedLocalVariables} f is only used for nested messages
253
+ */
254
+ proto.fonoster.capabilities.v1beta2.GitHubCapability.toObject = function(includeInstance, msg) {
255
+ var f, obj = {
256
+ clientId: jspb.Message.getFieldWithDefault(msg, 1, ""),
257
+ authorizeUrl: jspb.Message.getFieldWithDefault(msg, 2, "")
258
+ };
259
+
260
+ if (includeInstance) {
261
+ obj.$jspbMessageInstance = msg;
262
+ }
263
+ return obj;
264
+ };
265
+ }
266
+
267
+
268
+ /**
269
+ * Deserializes binary data (in protobuf wire format).
270
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
271
+ * @return {!proto.fonoster.capabilities.v1beta2.GitHubCapability}
272
+ */
273
+ proto.fonoster.capabilities.v1beta2.GitHubCapability.deserializeBinary = function(bytes) {
274
+ var reader = new jspb.BinaryReader(bytes);
275
+ var msg = new proto.fonoster.capabilities.v1beta2.GitHubCapability;
276
+ return proto.fonoster.capabilities.v1beta2.GitHubCapability.deserializeBinaryFromReader(msg, reader);
277
+ };
278
+
279
+
280
+ /**
281
+ * Deserializes binary data (in protobuf wire format) from the
282
+ * given reader into the given message object.
283
+ * @param {!proto.fonoster.capabilities.v1beta2.GitHubCapability} msg The message object to deserialize into.
284
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
285
+ * @return {!proto.fonoster.capabilities.v1beta2.GitHubCapability}
286
+ */
287
+ proto.fonoster.capabilities.v1beta2.GitHubCapability.deserializeBinaryFromReader = function(msg, reader) {
288
+ while (reader.nextField()) {
289
+ if (reader.isEndGroup()) {
290
+ break;
291
+ }
292
+ var field = reader.getFieldNumber();
293
+ switch (field) {
294
+ case 1:
295
+ var value = /** @type {string} */ (reader.readString());
296
+ msg.setClientId(value);
297
+ break;
298
+ case 2:
299
+ var value = /** @type {string} */ (reader.readString());
300
+ msg.setAuthorizeUrl(value);
301
+ break;
302
+ default:
303
+ reader.skipField();
304
+ break;
305
+ }
306
+ }
307
+ return msg;
308
+ };
309
+
310
+
311
+ /**
312
+ * Serializes the message to binary data (in protobuf wire format).
313
+ * @return {!Uint8Array}
314
+ */
315
+ proto.fonoster.capabilities.v1beta2.GitHubCapability.prototype.serializeBinary = function() {
316
+ var writer = new jspb.BinaryWriter();
317
+ proto.fonoster.capabilities.v1beta2.GitHubCapability.serializeBinaryToWriter(this, writer);
318
+ return writer.getResultBuffer();
319
+ };
320
+
321
+
322
+ /**
323
+ * Serializes the given message to binary data (in protobuf wire
324
+ * format), writing to the given BinaryWriter.
325
+ * @param {!proto.fonoster.capabilities.v1beta2.GitHubCapability} message
326
+ * @param {!jspb.BinaryWriter} writer
327
+ * @suppress {unusedLocalVariables} f is only used for nested messages
328
+ */
329
+ proto.fonoster.capabilities.v1beta2.GitHubCapability.serializeBinaryToWriter = function(message, writer) {
330
+ var f = undefined;
331
+ f = message.getClientId();
332
+ if (f.length > 0) {
333
+ writer.writeString(
334
+ 1,
335
+ f
336
+ );
337
+ }
338
+ f = message.getAuthorizeUrl();
339
+ if (f.length > 0) {
340
+ writer.writeString(
341
+ 2,
342
+ f
343
+ );
344
+ }
345
+ };
346
+
347
+
348
+ /**
349
+ * optional string client_id = 1;
350
+ * @return {string}
351
+ */
352
+ proto.fonoster.capabilities.v1beta2.GitHubCapability.prototype.getClientId = function() {
353
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
354
+ };
355
+
356
+
357
+ /**
358
+ * @param {string} value
359
+ * @return {!proto.fonoster.capabilities.v1beta2.GitHubCapability} returns this
360
+ */
361
+ proto.fonoster.capabilities.v1beta2.GitHubCapability.prototype.setClientId = function(value) {
362
+ return jspb.Message.setProto3StringField(this, 1, value);
363
+ };
364
+
365
+
366
+ /**
367
+ * optional string authorize_url = 2;
368
+ * @return {string}
369
+ */
370
+ proto.fonoster.capabilities.v1beta2.GitHubCapability.prototype.getAuthorizeUrl = function() {
371
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
372
+ };
373
+
374
+
375
+ /**
376
+ * @param {string} value
377
+ * @return {!proto.fonoster.capabilities.v1beta2.GitHubCapability} returns this
378
+ */
379
+ proto.fonoster.capabilities.v1beta2.GitHubCapability.prototype.setAuthorizeUrl = function(value) {
380
+ return jspb.Message.setProto3StringField(this, 2, value);
381
+ };
382
+
383
+
384
+
385
+ /**
386
+ * List of repeated fields within this message type.
387
+ * @private {!Array<number>}
388
+ * @const
389
+ */
390
+ proto.fonoster.capabilities.v1beta2.AuthCapabilities.repeatedFields_ = [1];
391
+
392
+
393
+
394
+ if (jspb.Message.GENERATE_TO_OBJECT) {
395
+ /**
396
+ * Creates an object representation of this proto.
397
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
398
+ * Optional fields that are not set will be set to undefined.
399
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
400
+ * For the list of reserved names please see:
401
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
402
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
403
+ * JSPB instance for transitional soy proto support:
404
+ * http://goto/soy-param-migration
405
+ * @return {!Object}
406
+ */
407
+ proto.fonoster.capabilities.v1beta2.AuthCapabilities.prototype.toObject = function(opt_includeInstance) {
408
+ return proto.fonoster.capabilities.v1beta2.AuthCapabilities.toObject(opt_includeInstance, this);
409
+ };
410
+
411
+
412
+ /**
413
+ * Static version of the {@see toObject} method.
414
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
415
+ * the JSPB instance for transitional soy proto support:
416
+ * http://goto/soy-param-migration
417
+ * @param {!proto.fonoster.capabilities.v1beta2.AuthCapabilities} msg The msg instance to transform.
418
+ * @return {!Object}
419
+ * @suppress {unusedLocalVariables} f is only used for nested messages
420
+ */
421
+ proto.fonoster.capabilities.v1beta2.AuthCapabilities.toObject = function(includeInstance, msg) {
422
+ var f, obj = {
423
+ methodsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
424
+ signup: jspb.Message.getFieldWithDefault(msg, 2, ""),
425
+ github: (f = msg.getGithub()) && proto.fonoster.capabilities.v1beta2.GitHubCapability.toObject(includeInstance, f)
426
+ };
427
+
428
+ if (includeInstance) {
429
+ obj.$jspbMessageInstance = msg;
430
+ }
431
+ return obj;
432
+ };
433
+ }
434
+
435
+
436
+ /**
437
+ * Deserializes binary data (in protobuf wire format).
438
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
439
+ * @return {!proto.fonoster.capabilities.v1beta2.AuthCapabilities}
440
+ */
441
+ proto.fonoster.capabilities.v1beta2.AuthCapabilities.deserializeBinary = function(bytes) {
442
+ var reader = new jspb.BinaryReader(bytes);
443
+ var msg = new proto.fonoster.capabilities.v1beta2.AuthCapabilities;
444
+ return proto.fonoster.capabilities.v1beta2.AuthCapabilities.deserializeBinaryFromReader(msg, reader);
445
+ };
446
+
447
+
448
+ /**
449
+ * Deserializes binary data (in protobuf wire format) from the
450
+ * given reader into the given message object.
451
+ * @param {!proto.fonoster.capabilities.v1beta2.AuthCapabilities} msg The message object to deserialize into.
452
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
453
+ * @return {!proto.fonoster.capabilities.v1beta2.AuthCapabilities}
454
+ */
455
+ proto.fonoster.capabilities.v1beta2.AuthCapabilities.deserializeBinaryFromReader = function(msg, reader) {
456
+ while (reader.nextField()) {
457
+ if (reader.isEndGroup()) {
458
+ break;
459
+ }
460
+ var field = reader.getFieldNumber();
461
+ switch (field) {
462
+ case 1:
463
+ var value = /** @type {string} */ (reader.readString());
464
+ msg.addMethods(value);
465
+ break;
466
+ case 2:
467
+ var value = /** @type {string} */ (reader.readString());
468
+ msg.setSignup(value);
469
+ break;
470
+ case 3:
471
+ var value = new proto.fonoster.capabilities.v1beta2.GitHubCapability;
472
+ reader.readMessage(value,proto.fonoster.capabilities.v1beta2.GitHubCapability.deserializeBinaryFromReader);
473
+ msg.setGithub(value);
474
+ break;
475
+ default:
476
+ reader.skipField();
477
+ break;
478
+ }
479
+ }
480
+ return msg;
481
+ };
482
+
483
+
484
+ /**
485
+ * Serializes the message to binary data (in protobuf wire format).
486
+ * @return {!Uint8Array}
487
+ */
488
+ proto.fonoster.capabilities.v1beta2.AuthCapabilities.prototype.serializeBinary = function() {
489
+ var writer = new jspb.BinaryWriter();
490
+ proto.fonoster.capabilities.v1beta2.AuthCapabilities.serializeBinaryToWriter(this, writer);
491
+ return writer.getResultBuffer();
492
+ };
493
+
494
+
495
+ /**
496
+ * Serializes the given message to binary data (in protobuf wire
497
+ * format), writing to the given BinaryWriter.
498
+ * @param {!proto.fonoster.capabilities.v1beta2.AuthCapabilities} message
499
+ * @param {!jspb.BinaryWriter} writer
500
+ * @suppress {unusedLocalVariables} f is only used for nested messages
501
+ */
502
+ proto.fonoster.capabilities.v1beta2.AuthCapabilities.serializeBinaryToWriter = function(message, writer) {
503
+ var f = undefined;
504
+ f = message.getMethodsList();
505
+ if (f.length > 0) {
506
+ writer.writeRepeatedString(
507
+ 1,
508
+ f
509
+ );
510
+ }
511
+ f = message.getSignup();
512
+ if (f.length > 0) {
513
+ writer.writeString(
514
+ 2,
515
+ f
516
+ );
517
+ }
518
+ f = message.getGithub();
519
+ if (f != null) {
520
+ writer.writeMessage(
521
+ 3,
522
+ f,
523
+ proto.fonoster.capabilities.v1beta2.GitHubCapability.serializeBinaryToWriter
524
+ );
525
+ }
526
+ };
527
+
528
+
529
+ /**
530
+ * repeated string methods = 1;
531
+ * @return {!Array<string>}
532
+ */
533
+ proto.fonoster.capabilities.v1beta2.AuthCapabilities.prototype.getMethodsList = function() {
534
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
535
+ };
536
+
537
+
538
+ /**
539
+ * @param {!Array<string>} value
540
+ * @return {!proto.fonoster.capabilities.v1beta2.AuthCapabilities} returns this
541
+ */
542
+ proto.fonoster.capabilities.v1beta2.AuthCapabilities.prototype.setMethodsList = function(value) {
543
+ return jspb.Message.setField(this, 1, value || []);
544
+ };
545
+
546
+
547
+ /**
548
+ * @param {string} value
549
+ * @param {number=} opt_index
550
+ * @return {!proto.fonoster.capabilities.v1beta2.AuthCapabilities} returns this
551
+ */
552
+ proto.fonoster.capabilities.v1beta2.AuthCapabilities.prototype.addMethods = function(value, opt_index) {
553
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
554
+ };
555
+
556
+
557
+ /**
558
+ * Clears the list making it empty but non-null.
559
+ * @return {!proto.fonoster.capabilities.v1beta2.AuthCapabilities} returns this
560
+ */
561
+ proto.fonoster.capabilities.v1beta2.AuthCapabilities.prototype.clearMethodsList = function() {
562
+ return this.setMethodsList([]);
563
+ };
564
+
565
+
566
+ /**
567
+ * optional string signup = 2;
568
+ * @return {string}
569
+ */
570
+ proto.fonoster.capabilities.v1beta2.AuthCapabilities.prototype.getSignup = function() {
571
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
572
+ };
573
+
574
+
575
+ /**
576
+ * @param {string} value
577
+ * @return {!proto.fonoster.capabilities.v1beta2.AuthCapabilities} returns this
578
+ */
579
+ proto.fonoster.capabilities.v1beta2.AuthCapabilities.prototype.setSignup = function(value) {
580
+ return jspb.Message.setProto3StringField(this, 2, value);
581
+ };
582
+
583
+
584
+ /**
585
+ * optional GitHubCapability github = 3;
586
+ * @return {?proto.fonoster.capabilities.v1beta2.GitHubCapability}
587
+ */
588
+ proto.fonoster.capabilities.v1beta2.AuthCapabilities.prototype.getGithub = function() {
589
+ return /** @type{?proto.fonoster.capabilities.v1beta2.GitHubCapability} */ (
590
+ jspb.Message.getWrapperField(this, proto.fonoster.capabilities.v1beta2.GitHubCapability, 3));
591
+ };
592
+
593
+
594
+ /**
595
+ * @param {?proto.fonoster.capabilities.v1beta2.GitHubCapability|undefined} value
596
+ * @return {!proto.fonoster.capabilities.v1beta2.AuthCapabilities} returns this
597
+ */
598
+ proto.fonoster.capabilities.v1beta2.AuthCapabilities.prototype.setGithub = function(value) {
599
+ return jspb.Message.setWrapperField(this, 3, value);
600
+ };
601
+
602
+
603
+ /**
604
+ * Clears the message field making it undefined.
605
+ * @return {!proto.fonoster.capabilities.v1beta2.AuthCapabilities} returns this
606
+ */
607
+ proto.fonoster.capabilities.v1beta2.AuthCapabilities.prototype.clearGithub = function() {
608
+ return this.setGithub(undefined);
609
+ };
610
+
611
+
612
+ /**
613
+ * Returns whether this field is set.
614
+ * @return {boolean}
615
+ */
616
+ proto.fonoster.capabilities.v1beta2.AuthCapabilities.prototype.hasGithub = function() {
617
+ return jspb.Message.getField(this, 3) != null;
618
+ };
619
+
620
+
621
+
622
+
623
+
624
+ if (jspb.Message.GENERATE_TO_OBJECT) {
625
+ /**
626
+ * Creates an object representation of this proto.
627
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
628
+ * Optional fields that are not set will be set to undefined.
629
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
630
+ * For the list of reserved names please see:
631
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
632
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
633
+ * JSPB instance for transitional soy proto support:
634
+ * http://goto/soy-param-migration
635
+ * @return {!Object}
636
+ */
637
+ proto.fonoster.capabilities.v1beta2.BillingCapabilities.prototype.toObject = function(opt_includeInstance) {
638
+ return proto.fonoster.capabilities.v1beta2.BillingCapabilities.toObject(opt_includeInstance, this);
639
+ };
640
+
641
+
642
+ /**
643
+ * Static version of the {@see toObject} method.
644
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
645
+ * the JSPB instance for transitional soy proto support:
646
+ * http://goto/soy-param-migration
647
+ * @param {!proto.fonoster.capabilities.v1beta2.BillingCapabilities} msg The msg instance to transform.
648
+ * @return {!Object}
649
+ * @suppress {unusedLocalVariables} f is only used for nested messages
650
+ */
651
+ proto.fonoster.capabilities.v1beta2.BillingCapabilities.toObject = function(includeInstance, msg) {
652
+ var f, obj = {
653
+ enabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
654
+ };
655
+
656
+ if (includeInstance) {
657
+ obj.$jspbMessageInstance = msg;
658
+ }
659
+ return obj;
660
+ };
661
+ }
662
+
663
+
664
+ /**
665
+ * Deserializes binary data (in protobuf wire format).
666
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
667
+ * @return {!proto.fonoster.capabilities.v1beta2.BillingCapabilities}
668
+ */
669
+ proto.fonoster.capabilities.v1beta2.BillingCapabilities.deserializeBinary = function(bytes) {
670
+ var reader = new jspb.BinaryReader(bytes);
671
+ var msg = new proto.fonoster.capabilities.v1beta2.BillingCapabilities;
672
+ return proto.fonoster.capabilities.v1beta2.BillingCapabilities.deserializeBinaryFromReader(msg, reader);
673
+ };
674
+
675
+
676
+ /**
677
+ * Deserializes binary data (in protobuf wire format) from the
678
+ * given reader into the given message object.
679
+ * @param {!proto.fonoster.capabilities.v1beta2.BillingCapabilities} msg The message object to deserialize into.
680
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
681
+ * @return {!proto.fonoster.capabilities.v1beta2.BillingCapabilities}
682
+ */
683
+ proto.fonoster.capabilities.v1beta2.BillingCapabilities.deserializeBinaryFromReader = function(msg, reader) {
684
+ while (reader.nextField()) {
685
+ if (reader.isEndGroup()) {
686
+ break;
687
+ }
688
+ var field = reader.getFieldNumber();
689
+ switch (field) {
690
+ case 1:
691
+ var value = /** @type {boolean} */ (reader.readBool());
692
+ msg.setEnabled(value);
693
+ break;
694
+ default:
695
+ reader.skipField();
696
+ break;
697
+ }
698
+ }
699
+ return msg;
700
+ };
701
+
702
+
703
+ /**
704
+ * Serializes the message to binary data (in protobuf wire format).
705
+ * @return {!Uint8Array}
706
+ */
707
+ proto.fonoster.capabilities.v1beta2.BillingCapabilities.prototype.serializeBinary = function() {
708
+ var writer = new jspb.BinaryWriter();
709
+ proto.fonoster.capabilities.v1beta2.BillingCapabilities.serializeBinaryToWriter(this, writer);
710
+ return writer.getResultBuffer();
711
+ };
712
+
713
+
714
+ /**
715
+ * Serializes the given message to binary data (in protobuf wire
716
+ * format), writing to the given BinaryWriter.
717
+ * @param {!proto.fonoster.capabilities.v1beta2.BillingCapabilities} message
718
+ * @param {!jspb.BinaryWriter} writer
719
+ * @suppress {unusedLocalVariables} f is only used for nested messages
720
+ */
721
+ proto.fonoster.capabilities.v1beta2.BillingCapabilities.serializeBinaryToWriter = function(message, writer) {
722
+ var f = undefined;
723
+ f = message.getEnabled();
724
+ if (f) {
725
+ writer.writeBool(
726
+ 1,
727
+ f
728
+ );
729
+ }
730
+ };
731
+
732
+
733
+ /**
734
+ * optional bool enabled = 1;
735
+ * @return {boolean}
736
+ */
737
+ proto.fonoster.capabilities.v1beta2.BillingCapabilities.prototype.getEnabled = function() {
738
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
739
+ };
740
+
741
+
742
+ /**
743
+ * @param {boolean} value
744
+ * @return {!proto.fonoster.capabilities.v1beta2.BillingCapabilities} returns this
745
+ */
746
+ proto.fonoster.capabilities.v1beta2.BillingCapabilities.prototype.setEnabled = function(value) {
747
+ return jspb.Message.setProto3BooleanField(this, 1, value);
748
+ };
749
+
750
+
751
+
752
+
753
+
754
+ if (jspb.Message.GENERATE_TO_OBJECT) {
755
+ /**
756
+ * Creates an object representation of this proto.
757
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
758
+ * Optional fields that are not set will be set to undefined.
759
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
760
+ * For the list of reserved names please see:
761
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
762
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
763
+ * JSPB instance for transitional soy proto support:
764
+ * http://goto/soy-param-migration
765
+ * @return {!Object}
766
+ */
767
+ proto.fonoster.capabilities.v1beta2.CostsCapabilities.prototype.toObject = function(opt_includeInstance) {
768
+ return proto.fonoster.capabilities.v1beta2.CostsCapabilities.toObject(opt_includeInstance, this);
769
+ };
770
+
771
+
772
+ /**
773
+ * Static version of the {@see toObject} method.
774
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
775
+ * the JSPB instance for transitional soy proto support:
776
+ * http://goto/soy-param-migration
777
+ * @param {!proto.fonoster.capabilities.v1beta2.CostsCapabilities} msg The msg instance to transform.
778
+ * @return {!Object}
779
+ * @suppress {unusedLocalVariables} f is only used for nested messages
780
+ */
781
+ proto.fonoster.capabilities.v1beta2.CostsCapabilities.toObject = function(includeInstance, msg) {
782
+ var f, obj = {
783
+ display: jspb.Message.getFieldWithDefault(msg, 1, "")
784
+ };
785
+
786
+ if (includeInstance) {
787
+ obj.$jspbMessageInstance = msg;
788
+ }
789
+ return obj;
790
+ };
791
+ }
792
+
793
+
794
+ /**
795
+ * Deserializes binary data (in protobuf wire format).
796
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
797
+ * @return {!proto.fonoster.capabilities.v1beta2.CostsCapabilities}
798
+ */
799
+ proto.fonoster.capabilities.v1beta2.CostsCapabilities.deserializeBinary = function(bytes) {
800
+ var reader = new jspb.BinaryReader(bytes);
801
+ var msg = new proto.fonoster.capabilities.v1beta2.CostsCapabilities;
802
+ return proto.fonoster.capabilities.v1beta2.CostsCapabilities.deserializeBinaryFromReader(msg, reader);
803
+ };
804
+
805
+
806
+ /**
807
+ * Deserializes binary data (in protobuf wire format) from the
808
+ * given reader into the given message object.
809
+ * @param {!proto.fonoster.capabilities.v1beta2.CostsCapabilities} msg The message object to deserialize into.
810
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
811
+ * @return {!proto.fonoster.capabilities.v1beta2.CostsCapabilities}
812
+ */
813
+ proto.fonoster.capabilities.v1beta2.CostsCapabilities.deserializeBinaryFromReader = function(msg, reader) {
814
+ while (reader.nextField()) {
815
+ if (reader.isEndGroup()) {
816
+ break;
817
+ }
818
+ var field = reader.getFieldNumber();
819
+ switch (field) {
820
+ case 1:
821
+ var value = /** @type {string} */ (reader.readString());
822
+ msg.setDisplay(value);
823
+ break;
824
+ default:
825
+ reader.skipField();
826
+ break;
827
+ }
828
+ }
829
+ return msg;
830
+ };
831
+
832
+
833
+ /**
834
+ * Serializes the message to binary data (in protobuf wire format).
835
+ * @return {!Uint8Array}
836
+ */
837
+ proto.fonoster.capabilities.v1beta2.CostsCapabilities.prototype.serializeBinary = function() {
838
+ var writer = new jspb.BinaryWriter();
839
+ proto.fonoster.capabilities.v1beta2.CostsCapabilities.serializeBinaryToWriter(this, writer);
840
+ return writer.getResultBuffer();
841
+ };
842
+
843
+
844
+ /**
845
+ * Serializes the given message to binary data (in protobuf wire
846
+ * format), writing to the given BinaryWriter.
847
+ * @param {!proto.fonoster.capabilities.v1beta2.CostsCapabilities} message
848
+ * @param {!jspb.BinaryWriter} writer
849
+ * @suppress {unusedLocalVariables} f is only used for nested messages
850
+ */
851
+ proto.fonoster.capabilities.v1beta2.CostsCapabilities.serializeBinaryToWriter = function(message, writer) {
852
+ var f = undefined;
853
+ f = message.getDisplay();
854
+ if (f.length > 0) {
855
+ writer.writeString(
856
+ 1,
857
+ f
858
+ );
859
+ }
860
+ };
861
+
862
+
863
+ /**
864
+ * optional string display = 1;
865
+ * @return {string}
866
+ */
867
+ proto.fonoster.capabilities.v1beta2.CostsCapabilities.prototype.getDisplay = function() {
868
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
869
+ };
870
+
871
+
872
+ /**
873
+ * @param {string} value
874
+ * @return {!proto.fonoster.capabilities.v1beta2.CostsCapabilities} returns this
875
+ */
876
+ proto.fonoster.capabilities.v1beta2.CostsCapabilities.prototype.setDisplay = function(value) {
877
+ return jspb.Message.setProto3StringField(this, 1, value);
878
+ };
879
+
880
+
881
+
882
+
883
+
884
+ if (jspb.Message.GENERATE_TO_OBJECT) {
885
+ /**
886
+ * Creates an object representation of this proto.
887
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
888
+ * Optional fields that are not set will be set to undefined.
889
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
890
+ * For the list of reserved names please see:
891
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
892
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
893
+ * JSPB instance for transitional soy proto support:
894
+ * http://goto/soy-param-migration
895
+ * @return {!Object}
896
+ */
897
+ proto.fonoster.capabilities.v1beta2.RegionsCapabilities.prototype.toObject = function(opt_includeInstance) {
898
+ return proto.fonoster.capabilities.v1beta2.RegionsCapabilities.toObject(opt_includeInstance, this);
899
+ };
900
+
901
+
902
+ /**
903
+ * Static version of the {@see toObject} method.
904
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
905
+ * the JSPB instance for transitional soy proto support:
906
+ * http://goto/soy-param-migration
907
+ * @param {!proto.fonoster.capabilities.v1beta2.RegionsCapabilities} msg The msg instance to transform.
908
+ * @return {!Object}
909
+ * @suppress {unusedLocalVariables} f is only used for nested messages
910
+ */
911
+ proto.fonoster.capabilities.v1beta2.RegionsCapabilities.toObject = function(includeInstance, msg) {
912
+ var f, obj = {
913
+ pb_private: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
914
+ };
915
+
916
+ if (includeInstance) {
917
+ obj.$jspbMessageInstance = msg;
918
+ }
919
+ return obj;
920
+ };
921
+ }
922
+
923
+
924
+ /**
925
+ * Deserializes binary data (in protobuf wire format).
926
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
927
+ * @return {!proto.fonoster.capabilities.v1beta2.RegionsCapabilities}
928
+ */
929
+ proto.fonoster.capabilities.v1beta2.RegionsCapabilities.deserializeBinary = function(bytes) {
930
+ var reader = new jspb.BinaryReader(bytes);
931
+ var msg = new proto.fonoster.capabilities.v1beta2.RegionsCapabilities;
932
+ return proto.fonoster.capabilities.v1beta2.RegionsCapabilities.deserializeBinaryFromReader(msg, reader);
933
+ };
934
+
935
+
936
+ /**
937
+ * Deserializes binary data (in protobuf wire format) from the
938
+ * given reader into the given message object.
939
+ * @param {!proto.fonoster.capabilities.v1beta2.RegionsCapabilities} msg The message object to deserialize into.
940
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
941
+ * @return {!proto.fonoster.capabilities.v1beta2.RegionsCapabilities}
942
+ */
943
+ proto.fonoster.capabilities.v1beta2.RegionsCapabilities.deserializeBinaryFromReader = function(msg, reader) {
944
+ while (reader.nextField()) {
945
+ if (reader.isEndGroup()) {
946
+ break;
947
+ }
948
+ var field = reader.getFieldNumber();
949
+ switch (field) {
950
+ case 1:
951
+ var value = /** @type {boolean} */ (reader.readBool());
952
+ msg.setPrivate(value);
953
+ break;
954
+ default:
955
+ reader.skipField();
956
+ break;
957
+ }
958
+ }
959
+ return msg;
960
+ };
961
+
962
+
963
+ /**
964
+ * Serializes the message to binary data (in protobuf wire format).
965
+ * @return {!Uint8Array}
966
+ */
967
+ proto.fonoster.capabilities.v1beta2.RegionsCapabilities.prototype.serializeBinary = function() {
968
+ var writer = new jspb.BinaryWriter();
969
+ proto.fonoster.capabilities.v1beta2.RegionsCapabilities.serializeBinaryToWriter(this, writer);
970
+ return writer.getResultBuffer();
971
+ };
972
+
973
+
974
+ /**
975
+ * Serializes the given message to binary data (in protobuf wire
976
+ * format), writing to the given BinaryWriter.
977
+ * @param {!proto.fonoster.capabilities.v1beta2.RegionsCapabilities} message
978
+ * @param {!jspb.BinaryWriter} writer
979
+ * @suppress {unusedLocalVariables} f is only used for nested messages
980
+ */
981
+ proto.fonoster.capabilities.v1beta2.RegionsCapabilities.serializeBinaryToWriter = function(message, writer) {
982
+ var f = undefined;
983
+ f = message.getPrivate();
984
+ if (f) {
985
+ writer.writeBool(
986
+ 1,
987
+ f
988
+ );
989
+ }
990
+ };
991
+
992
+
993
+ /**
994
+ * optional bool private = 1;
995
+ * @return {boolean}
996
+ */
997
+ proto.fonoster.capabilities.v1beta2.RegionsCapabilities.prototype.getPrivate = function() {
998
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
999
+ };
1000
+
1001
+
1002
+ /**
1003
+ * @param {boolean} value
1004
+ * @return {!proto.fonoster.capabilities.v1beta2.RegionsCapabilities} returns this
1005
+ */
1006
+ proto.fonoster.capabilities.v1beta2.RegionsCapabilities.prototype.setPrivate = function(value) {
1007
+ return jspb.Message.setProto3BooleanField(this, 1, value);
1008
+ };
1009
+
1010
+
1011
+
1012
+
1013
+
1014
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1015
+ /**
1016
+ * Creates an object representation of this proto.
1017
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1018
+ * Optional fields that are not set will be set to undefined.
1019
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1020
+ * For the list of reserved names please see:
1021
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1022
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1023
+ * JSPB instance for transitional soy proto support:
1024
+ * http://goto/soy-param-migration
1025
+ * @return {!Object}
1026
+ */
1027
+ proto.fonoster.capabilities.v1beta2.SipEndpoint.prototype.toObject = function(opt_includeInstance) {
1028
+ return proto.fonoster.capabilities.v1beta2.SipEndpoint.toObject(opt_includeInstance, this);
1029
+ };
1030
+
1031
+
1032
+ /**
1033
+ * Static version of the {@see toObject} method.
1034
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1035
+ * the JSPB instance for transitional soy proto support:
1036
+ * http://goto/soy-param-migration
1037
+ * @param {!proto.fonoster.capabilities.v1beta2.SipEndpoint} msg The msg instance to transform.
1038
+ * @return {!Object}
1039
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1040
+ */
1041
+ proto.fonoster.capabilities.v1beta2.SipEndpoint.toObject = function(includeInstance, msg) {
1042
+ var f, obj = {
1043
+ host: jspb.Message.getFieldWithDefault(msg, 1, ""),
1044
+ port: jspb.Message.getFieldWithDefault(msg, 2, 0),
1045
+ transport: jspb.Message.getFieldWithDefault(msg, 3, "")
1046
+ };
1047
+
1048
+ if (includeInstance) {
1049
+ obj.$jspbMessageInstance = msg;
1050
+ }
1051
+ return obj;
1052
+ };
1053
+ }
1054
+
1055
+
1056
+ /**
1057
+ * Deserializes binary data (in protobuf wire format).
1058
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1059
+ * @return {!proto.fonoster.capabilities.v1beta2.SipEndpoint}
1060
+ */
1061
+ proto.fonoster.capabilities.v1beta2.SipEndpoint.deserializeBinary = function(bytes) {
1062
+ var reader = new jspb.BinaryReader(bytes);
1063
+ var msg = new proto.fonoster.capabilities.v1beta2.SipEndpoint;
1064
+ return proto.fonoster.capabilities.v1beta2.SipEndpoint.deserializeBinaryFromReader(msg, reader);
1065
+ };
1066
+
1067
+
1068
+ /**
1069
+ * Deserializes binary data (in protobuf wire format) from the
1070
+ * given reader into the given message object.
1071
+ * @param {!proto.fonoster.capabilities.v1beta2.SipEndpoint} msg The message object to deserialize into.
1072
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1073
+ * @return {!proto.fonoster.capabilities.v1beta2.SipEndpoint}
1074
+ */
1075
+ proto.fonoster.capabilities.v1beta2.SipEndpoint.deserializeBinaryFromReader = function(msg, reader) {
1076
+ while (reader.nextField()) {
1077
+ if (reader.isEndGroup()) {
1078
+ break;
1079
+ }
1080
+ var field = reader.getFieldNumber();
1081
+ switch (field) {
1082
+ case 1:
1083
+ var value = /** @type {string} */ (reader.readString());
1084
+ msg.setHost(value);
1085
+ break;
1086
+ case 2:
1087
+ var value = /** @type {number} */ (reader.readInt32());
1088
+ msg.setPort(value);
1089
+ break;
1090
+ case 3:
1091
+ var value = /** @type {string} */ (reader.readString());
1092
+ msg.setTransport(value);
1093
+ break;
1094
+ default:
1095
+ reader.skipField();
1096
+ break;
1097
+ }
1098
+ }
1099
+ return msg;
1100
+ };
1101
+
1102
+
1103
+ /**
1104
+ * Serializes the message to binary data (in protobuf wire format).
1105
+ * @return {!Uint8Array}
1106
+ */
1107
+ proto.fonoster.capabilities.v1beta2.SipEndpoint.prototype.serializeBinary = function() {
1108
+ var writer = new jspb.BinaryWriter();
1109
+ proto.fonoster.capabilities.v1beta2.SipEndpoint.serializeBinaryToWriter(this, writer);
1110
+ return writer.getResultBuffer();
1111
+ };
1112
+
1113
+
1114
+ /**
1115
+ * Serializes the given message to binary data (in protobuf wire
1116
+ * format), writing to the given BinaryWriter.
1117
+ * @param {!proto.fonoster.capabilities.v1beta2.SipEndpoint} message
1118
+ * @param {!jspb.BinaryWriter} writer
1119
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1120
+ */
1121
+ proto.fonoster.capabilities.v1beta2.SipEndpoint.serializeBinaryToWriter = function(message, writer) {
1122
+ var f = undefined;
1123
+ f = message.getHost();
1124
+ if (f.length > 0) {
1125
+ writer.writeString(
1126
+ 1,
1127
+ f
1128
+ );
1129
+ }
1130
+ f = message.getPort();
1131
+ if (f !== 0) {
1132
+ writer.writeInt32(
1133
+ 2,
1134
+ f
1135
+ );
1136
+ }
1137
+ f = message.getTransport();
1138
+ if (f.length > 0) {
1139
+ writer.writeString(
1140
+ 3,
1141
+ f
1142
+ );
1143
+ }
1144
+ };
1145
+
1146
+
1147
+ /**
1148
+ * optional string host = 1;
1149
+ * @return {string}
1150
+ */
1151
+ proto.fonoster.capabilities.v1beta2.SipEndpoint.prototype.getHost = function() {
1152
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1153
+ };
1154
+
1155
+
1156
+ /**
1157
+ * @param {string} value
1158
+ * @return {!proto.fonoster.capabilities.v1beta2.SipEndpoint} returns this
1159
+ */
1160
+ proto.fonoster.capabilities.v1beta2.SipEndpoint.prototype.setHost = function(value) {
1161
+ return jspb.Message.setProto3StringField(this, 1, value);
1162
+ };
1163
+
1164
+
1165
+ /**
1166
+ * optional int32 port = 2;
1167
+ * @return {number}
1168
+ */
1169
+ proto.fonoster.capabilities.v1beta2.SipEndpoint.prototype.getPort = function() {
1170
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1171
+ };
1172
+
1173
+
1174
+ /**
1175
+ * @param {number} value
1176
+ * @return {!proto.fonoster.capabilities.v1beta2.SipEndpoint} returns this
1177
+ */
1178
+ proto.fonoster.capabilities.v1beta2.SipEndpoint.prototype.setPort = function(value) {
1179
+ return jspb.Message.setProto3IntField(this, 2, value);
1180
+ };
1181
+
1182
+
1183
+ /**
1184
+ * optional string transport = 3;
1185
+ * @return {string}
1186
+ */
1187
+ proto.fonoster.capabilities.v1beta2.SipEndpoint.prototype.getTransport = function() {
1188
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1189
+ };
1190
+
1191
+
1192
+ /**
1193
+ * @param {string} value
1194
+ * @return {!proto.fonoster.capabilities.v1beta2.SipEndpoint} returns this
1195
+ */
1196
+ proto.fonoster.capabilities.v1beta2.SipEndpoint.prototype.setTransport = function(value) {
1197
+ return jspb.Message.setProto3StringField(this, 3, value);
1198
+ };
1199
+
1200
+
1201
+
1202
+
1203
+
1204
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1205
+ /**
1206
+ * Creates an object representation of this proto.
1207
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1208
+ * Optional fields that are not set will be set to undefined.
1209
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1210
+ * For the list of reserved names please see:
1211
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1212
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1213
+ * JSPB instance for transitional soy proto support:
1214
+ * http://goto/soy-param-migration
1215
+ * @return {!Object}
1216
+ */
1217
+ proto.fonoster.capabilities.v1beta2.PortRange.prototype.toObject = function(opt_includeInstance) {
1218
+ return proto.fonoster.capabilities.v1beta2.PortRange.toObject(opt_includeInstance, this);
1219
+ };
1220
+
1221
+
1222
+ /**
1223
+ * Static version of the {@see toObject} method.
1224
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1225
+ * the JSPB instance for transitional soy proto support:
1226
+ * http://goto/soy-param-migration
1227
+ * @param {!proto.fonoster.capabilities.v1beta2.PortRange} msg The msg instance to transform.
1228
+ * @return {!Object}
1229
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1230
+ */
1231
+ proto.fonoster.capabilities.v1beta2.PortRange.toObject = function(includeInstance, msg) {
1232
+ var f, obj = {
1233
+ min: jspb.Message.getFieldWithDefault(msg, 1, 0),
1234
+ max: jspb.Message.getFieldWithDefault(msg, 2, 0)
1235
+ };
1236
+
1237
+ if (includeInstance) {
1238
+ obj.$jspbMessageInstance = msg;
1239
+ }
1240
+ return obj;
1241
+ };
1242
+ }
1243
+
1244
+
1245
+ /**
1246
+ * Deserializes binary data (in protobuf wire format).
1247
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1248
+ * @return {!proto.fonoster.capabilities.v1beta2.PortRange}
1249
+ */
1250
+ proto.fonoster.capabilities.v1beta2.PortRange.deserializeBinary = function(bytes) {
1251
+ var reader = new jspb.BinaryReader(bytes);
1252
+ var msg = new proto.fonoster.capabilities.v1beta2.PortRange;
1253
+ return proto.fonoster.capabilities.v1beta2.PortRange.deserializeBinaryFromReader(msg, reader);
1254
+ };
1255
+
1256
+
1257
+ /**
1258
+ * Deserializes binary data (in protobuf wire format) from the
1259
+ * given reader into the given message object.
1260
+ * @param {!proto.fonoster.capabilities.v1beta2.PortRange} msg The message object to deserialize into.
1261
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1262
+ * @return {!proto.fonoster.capabilities.v1beta2.PortRange}
1263
+ */
1264
+ proto.fonoster.capabilities.v1beta2.PortRange.deserializeBinaryFromReader = function(msg, reader) {
1265
+ while (reader.nextField()) {
1266
+ if (reader.isEndGroup()) {
1267
+ break;
1268
+ }
1269
+ var field = reader.getFieldNumber();
1270
+ switch (field) {
1271
+ case 1:
1272
+ var value = /** @type {number} */ (reader.readInt32());
1273
+ msg.setMin(value);
1274
+ break;
1275
+ case 2:
1276
+ var value = /** @type {number} */ (reader.readInt32());
1277
+ msg.setMax(value);
1278
+ break;
1279
+ default:
1280
+ reader.skipField();
1281
+ break;
1282
+ }
1283
+ }
1284
+ return msg;
1285
+ };
1286
+
1287
+
1288
+ /**
1289
+ * Serializes the message to binary data (in protobuf wire format).
1290
+ * @return {!Uint8Array}
1291
+ */
1292
+ proto.fonoster.capabilities.v1beta2.PortRange.prototype.serializeBinary = function() {
1293
+ var writer = new jspb.BinaryWriter();
1294
+ proto.fonoster.capabilities.v1beta2.PortRange.serializeBinaryToWriter(this, writer);
1295
+ return writer.getResultBuffer();
1296
+ };
1297
+
1298
+
1299
+ /**
1300
+ * Serializes the given message to binary data (in protobuf wire
1301
+ * format), writing to the given BinaryWriter.
1302
+ * @param {!proto.fonoster.capabilities.v1beta2.PortRange} message
1303
+ * @param {!jspb.BinaryWriter} writer
1304
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1305
+ */
1306
+ proto.fonoster.capabilities.v1beta2.PortRange.serializeBinaryToWriter = function(message, writer) {
1307
+ var f = undefined;
1308
+ f = message.getMin();
1309
+ if (f !== 0) {
1310
+ writer.writeInt32(
1311
+ 1,
1312
+ f
1313
+ );
1314
+ }
1315
+ f = message.getMax();
1316
+ if (f !== 0) {
1317
+ writer.writeInt32(
1318
+ 2,
1319
+ f
1320
+ );
1321
+ }
1322
+ };
1323
+
1324
+
1325
+ /**
1326
+ * optional int32 min = 1;
1327
+ * @return {number}
1328
+ */
1329
+ proto.fonoster.capabilities.v1beta2.PortRange.prototype.getMin = function() {
1330
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1331
+ };
1332
+
1333
+
1334
+ /**
1335
+ * @param {number} value
1336
+ * @return {!proto.fonoster.capabilities.v1beta2.PortRange} returns this
1337
+ */
1338
+ proto.fonoster.capabilities.v1beta2.PortRange.prototype.setMin = function(value) {
1339
+ return jspb.Message.setProto3IntField(this, 1, value);
1340
+ };
1341
+
1342
+
1343
+ /**
1344
+ * optional int32 max = 2;
1345
+ * @return {number}
1346
+ */
1347
+ proto.fonoster.capabilities.v1beta2.PortRange.prototype.getMax = function() {
1348
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1349
+ };
1350
+
1351
+
1352
+ /**
1353
+ * @param {number} value
1354
+ * @return {!proto.fonoster.capabilities.v1beta2.PortRange} returns this
1355
+ */
1356
+ proto.fonoster.capabilities.v1beta2.PortRange.prototype.setMax = function(value) {
1357
+ return jspb.Message.setProto3IntField(this, 2, value);
1358
+ };
1359
+
1360
+
1361
+
1362
+ /**
1363
+ * List of repeated fields within this message type.
1364
+ * @private {!Array<number>}
1365
+ * @const
1366
+ */
1367
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.repeatedFields_ = [1,2,3];
1368
+
1369
+
1370
+
1371
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1372
+ /**
1373
+ * Creates an object representation of this proto.
1374
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1375
+ * Optional fields that are not set will be set to undefined.
1376
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1377
+ * For the list of reserved names please see:
1378
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1379
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1380
+ * JSPB instance for transitional soy proto support:
1381
+ * http://goto/soy-param-migration
1382
+ * @return {!Object}
1383
+ */
1384
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.prototype.toObject = function(opt_includeInstance) {
1385
+ return proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.toObject(opt_includeInstance, this);
1386
+ };
1387
+
1388
+
1389
+ /**
1390
+ * Static version of the {@see toObject} method.
1391
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1392
+ * the JSPB instance for transitional soy proto support:
1393
+ * http://goto/soy-param-migration
1394
+ * @param {!proto.fonoster.capabilities.v1beta2.ConnectionCapabilities} msg The msg instance to transform.
1395
+ * @return {!Object}
1396
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1397
+ */
1398
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.toObject = function(includeInstance, msg) {
1399
+ var f, obj = {
1400
+ sipList: jspb.Message.toObjectList(msg.getSipList(),
1401
+ proto.fonoster.capabilities.v1beta2.SipEndpoint.toObject, includeInstance),
1402
+ signalingAddressesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
1403
+ mediaAddressesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
1404
+ rtpPorts: (f = msg.getRtpPorts()) && proto.fonoster.capabilities.v1beta2.PortRange.toObject(includeInstance, f)
1405
+ };
1406
+
1407
+ if (includeInstance) {
1408
+ obj.$jspbMessageInstance = msg;
1409
+ }
1410
+ return obj;
1411
+ };
1412
+ }
1413
+
1414
+
1415
+ /**
1416
+ * Deserializes binary data (in protobuf wire format).
1417
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1418
+ * @return {!proto.fonoster.capabilities.v1beta2.ConnectionCapabilities}
1419
+ */
1420
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.deserializeBinary = function(bytes) {
1421
+ var reader = new jspb.BinaryReader(bytes);
1422
+ var msg = new proto.fonoster.capabilities.v1beta2.ConnectionCapabilities;
1423
+ return proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.deserializeBinaryFromReader(msg, reader);
1424
+ };
1425
+
1426
+
1427
+ /**
1428
+ * Deserializes binary data (in protobuf wire format) from the
1429
+ * given reader into the given message object.
1430
+ * @param {!proto.fonoster.capabilities.v1beta2.ConnectionCapabilities} msg The message object to deserialize into.
1431
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1432
+ * @return {!proto.fonoster.capabilities.v1beta2.ConnectionCapabilities}
1433
+ */
1434
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.deserializeBinaryFromReader = function(msg, reader) {
1435
+ while (reader.nextField()) {
1436
+ if (reader.isEndGroup()) {
1437
+ break;
1438
+ }
1439
+ var field = reader.getFieldNumber();
1440
+ switch (field) {
1441
+ case 1:
1442
+ var value = new proto.fonoster.capabilities.v1beta2.SipEndpoint;
1443
+ reader.readMessage(value,proto.fonoster.capabilities.v1beta2.SipEndpoint.deserializeBinaryFromReader);
1444
+ msg.addSip(value);
1445
+ break;
1446
+ case 2:
1447
+ var value = /** @type {string} */ (reader.readString());
1448
+ msg.addSignalingAddresses(value);
1449
+ break;
1450
+ case 3:
1451
+ var value = /** @type {string} */ (reader.readString());
1452
+ msg.addMediaAddresses(value);
1453
+ break;
1454
+ case 4:
1455
+ var value = new proto.fonoster.capabilities.v1beta2.PortRange;
1456
+ reader.readMessage(value,proto.fonoster.capabilities.v1beta2.PortRange.deserializeBinaryFromReader);
1457
+ msg.setRtpPorts(value);
1458
+ break;
1459
+ default:
1460
+ reader.skipField();
1461
+ break;
1462
+ }
1463
+ }
1464
+ return msg;
1465
+ };
1466
+
1467
+
1468
+ /**
1469
+ * Serializes the message to binary data (in protobuf wire format).
1470
+ * @return {!Uint8Array}
1471
+ */
1472
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.prototype.serializeBinary = function() {
1473
+ var writer = new jspb.BinaryWriter();
1474
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.serializeBinaryToWriter(this, writer);
1475
+ return writer.getResultBuffer();
1476
+ };
1477
+
1478
+
1479
+ /**
1480
+ * Serializes the given message to binary data (in protobuf wire
1481
+ * format), writing to the given BinaryWriter.
1482
+ * @param {!proto.fonoster.capabilities.v1beta2.ConnectionCapabilities} message
1483
+ * @param {!jspb.BinaryWriter} writer
1484
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1485
+ */
1486
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.serializeBinaryToWriter = function(message, writer) {
1487
+ var f = undefined;
1488
+ f = message.getSipList();
1489
+ if (f.length > 0) {
1490
+ writer.writeRepeatedMessage(
1491
+ 1,
1492
+ f,
1493
+ proto.fonoster.capabilities.v1beta2.SipEndpoint.serializeBinaryToWriter
1494
+ );
1495
+ }
1496
+ f = message.getSignalingAddressesList();
1497
+ if (f.length > 0) {
1498
+ writer.writeRepeatedString(
1499
+ 2,
1500
+ f
1501
+ );
1502
+ }
1503
+ f = message.getMediaAddressesList();
1504
+ if (f.length > 0) {
1505
+ writer.writeRepeatedString(
1506
+ 3,
1507
+ f
1508
+ );
1509
+ }
1510
+ f = message.getRtpPorts();
1511
+ if (f != null) {
1512
+ writer.writeMessage(
1513
+ 4,
1514
+ f,
1515
+ proto.fonoster.capabilities.v1beta2.PortRange.serializeBinaryToWriter
1516
+ );
1517
+ }
1518
+ };
1519
+
1520
+
1521
+ /**
1522
+ * repeated SipEndpoint sip = 1;
1523
+ * @return {!Array<!proto.fonoster.capabilities.v1beta2.SipEndpoint>}
1524
+ */
1525
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.prototype.getSipList = function() {
1526
+ return /** @type{!Array<!proto.fonoster.capabilities.v1beta2.SipEndpoint>} */ (
1527
+ jspb.Message.getRepeatedWrapperField(this, proto.fonoster.capabilities.v1beta2.SipEndpoint, 1));
1528
+ };
1529
+
1530
+
1531
+ /**
1532
+ * @param {!Array<!proto.fonoster.capabilities.v1beta2.SipEndpoint>} value
1533
+ * @return {!proto.fonoster.capabilities.v1beta2.ConnectionCapabilities} returns this
1534
+ */
1535
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.prototype.setSipList = function(value) {
1536
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1537
+ };
1538
+
1539
+
1540
+ /**
1541
+ * @param {!proto.fonoster.capabilities.v1beta2.SipEndpoint=} opt_value
1542
+ * @param {number=} opt_index
1543
+ * @return {!proto.fonoster.capabilities.v1beta2.SipEndpoint}
1544
+ */
1545
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.prototype.addSip = function(opt_value, opt_index) {
1546
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.fonoster.capabilities.v1beta2.SipEndpoint, opt_index);
1547
+ };
1548
+
1549
+
1550
+ /**
1551
+ * Clears the list making it empty but non-null.
1552
+ * @return {!proto.fonoster.capabilities.v1beta2.ConnectionCapabilities} returns this
1553
+ */
1554
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.prototype.clearSipList = function() {
1555
+ return this.setSipList([]);
1556
+ };
1557
+
1558
+
1559
+ /**
1560
+ * repeated string signaling_addresses = 2;
1561
+ * @return {!Array<string>}
1562
+ */
1563
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.prototype.getSignalingAddressesList = function() {
1564
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
1565
+ };
1566
+
1567
+
1568
+ /**
1569
+ * @param {!Array<string>} value
1570
+ * @return {!proto.fonoster.capabilities.v1beta2.ConnectionCapabilities} returns this
1571
+ */
1572
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.prototype.setSignalingAddressesList = function(value) {
1573
+ return jspb.Message.setField(this, 2, value || []);
1574
+ };
1575
+
1576
+
1577
+ /**
1578
+ * @param {string} value
1579
+ * @param {number=} opt_index
1580
+ * @return {!proto.fonoster.capabilities.v1beta2.ConnectionCapabilities} returns this
1581
+ */
1582
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.prototype.addSignalingAddresses = function(value, opt_index) {
1583
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
1584
+ };
1585
+
1586
+
1587
+ /**
1588
+ * Clears the list making it empty but non-null.
1589
+ * @return {!proto.fonoster.capabilities.v1beta2.ConnectionCapabilities} returns this
1590
+ */
1591
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.prototype.clearSignalingAddressesList = function() {
1592
+ return this.setSignalingAddressesList([]);
1593
+ };
1594
+
1595
+
1596
+ /**
1597
+ * repeated string media_addresses = 3;
1598
+ * @return {!Array<string>}
1599
+ */
1600
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.prototype.getMediaAddressesList = function() {
1601
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
1602
+ };
1603
+
1604
+
1605
+ /**
1606
+ * @param {!Array<string>} value
1607
+ * @return {!proto.fonoster.capabilities.v1beta2.ConnectionCapabilities} returns this
1608
+ */
1609
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.prototype.setMediaAddressesList = function(value) {
1610
+ return jspb.Message.setField(this, 3, value || []);
1611
+ };
1612
+
1613
+
1614
+ /**
1615
+ * @param {string} value
1616
+ * @param {number=} opt_index
1617
+ * @return {!proto.fonoster.capabilities.v1beta2.ConnectionCapabilities} returns this
1618
+ */
1619
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.prototype.addMediaAddresses = function(value, opt_index) {
1620
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
1621
+ };
1622
+
1623
+
1624
+ /**
1625
+ * Clears the list making it empty but non-null.
1626
+ * @return {!proto.fonoster.capabilities.v1beta2.ConnectionCapabilities} returns this
1627
+ */
1628
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.prototype.clearMediaAddressesList = function() {
1629
+ return this.setMediaAddressesList([]);
1630
+ };
1631
+
1632
+
1633
+ /**
1634
+ * optional PortRange rtp_ports = 4;
1635
+ * @return {?proto.fonoster.capabilities.v1beta2.PortRange}
1636
+ */
1637
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.prototype.getRtpPorts = function() {
1638
+ return /** @type{?proto.fonoster.capabilities.v1beta2.PortRange} */ (
1639
+ jspb.Message.getWrapperField(this, proto.fonoster.capabilities.v1beta2.PortRange, 4));
1640
+ };
1641
+
1642
+
1643
+ /**
1644
+ * @param {?proto.fonoster.capabilities.v1beta2.PortRange|undefined} value
1645
+ * @return {!proto.fonoster.capabilities.v1beta2.ConnectionCapabilities} returns this
1646
+ */
1647
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.prototype.setRtpPorts = function(value) {
1648
+ return jspb.Message.setWrapperField(this, 4, value);
1649
+ };
1650
+
1651
+
1652
+ /**
1653
+ * Clears the message field making it undefined.
1654
+ * @return {!proto.fonoster.capabilities.v1beta2.ConnectionCapabilities} returns this
1655
+ */
1656
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.prototype.clearRtpPorts = function() {
1657
+ return this.setRtpPorts(undefined);
1658
+ };
1659
+
1660
+
1661
+ /**
1662
+ * Returns whether this field is set.
1663
+ * @return {boolean}
1664
+ */
1665
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.prototype.hasRtpPorts = function() {
1666
+ return jspb.Message.getField(this, 4) != null;
1667
+ };
1668
+
1669
+
1670
+
1671
+
1672
+
1673
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1674
+ /**
1675
+ * Creates an object representation of this proto.
1676
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1677
+ * Optional fields that are not set will be set to undefined.
1678
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1679
+ * For the list of reserved names please see:
1680
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1681
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1682
+ * JSPB instance for transitional soy proto support:
1683
+ * http://goto/soy-param-migration
1684
+ * @return {!Object}
1685
+ */
1686
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.toObject = function(opt_includeInstance) {
1687
+ return proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.toObject(opt_includeInstance, this);
1688
+ };
1689
+
1690
+
1691
+ /**
1692
+ * Static version of the {@see toObject} method.
1693
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1694
+ * the JSPB instance for transitional soy proto support:
1695
+ * http://goto/soy-param-migration
1696
+ * @param {!proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse} msg The msg instance to transform.
1697
+ * @return {!Object}
1698
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1699
+ */
1700
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.toObject = function(includeInstance, msg) {
1701
+ var f, obj = {
1702
+ auth: (f = msg.getAuth()) && proto.fonoster.capabilities.v1beta2.AuthCapabilities.toObject(includeInstance, f),
1703
+ billing: (f = msg.getBilling()) && proto.fonoster.capabilities.v1beta2.BillingCapabilities.toObject(includeInstance, f),
1704
+ costs: (f = msg.getCosts()) && proto.fonoster.capabilities.v1beta2.CostsCapabilities.toObject(includeInstance, f),
1705
+ domain: jspb.Message.getFieldWithDefault(msg, 4, ""),
1706
+ appUrl: jspb.Message.getFieldWithDefault(msg, 5, ""),
1707
+ regions: (f = msg.getRegions()) && proto.fonoster.capabilities.v1beta2.RegionsCapabilities.toObject(includeInstance, f),
1708
+ connection: (f = msg.getConnection()) && proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.toObject(includeInstance, f)
1709
+ };
1710
+
1711
+ if (includeInstance) {
1712
+ obj.$jspbMessageInstance = msg;
1713
+ }
1714
+ return obj;
1715
+ };
1716
+ }
1717
+
1718
+
1719
+ /**
1720
+ * Deserializes binary data (in protobuf wire format).
1721
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1722
+ * @return {!proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse}
1723
+ */
1724
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.deserializeBinary = function(bytes) {
1725
+ var reader = new jspb.BinaryReader(bytes);
1726
+ var msg = new proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse;
1727
+ return proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.deserializeBinaryFromReader(msg, reader);
1728
+ };
1729
+
1730
+
1731
+ /**
1732
+ * Deserializes binary data (in protobuf wire format) from the
1733
+ * given reader into the given message object.
1734
+ * @param {!proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse} msg The message object to deserialize into.
1735
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1736
+ * @return {!proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse}
1737
+ */
1738
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.deserializeBinaryFromReader = function(msg, reader) {
1739
+ while (reader.nextField()) {
1740
+ if (reader.isEndGroup()) {
1741
+ break;
1742
+ }
1743
+ var field = reader.getFieldNumber();
1744
+ switch (field) {
1745
+ case 1:
1746
+ var value = new proto.fonoster.capabilities.v1beta2.AuthCapabilities;
1747
+ reader.readMessage(value,proto.fonoster.capabilities.v1beta2.AuthCapabilities.deserializeBinaryFromReader);
1748
+ msg.setAuth(value);
1749
+ break;
1750
+ case 2:
1751
+ var value = new proto.fonoster.capabilities.v1beta2.BillingCapabilities;
1752
+ reader.readMessage(value,proto.fonoster.capabilities.v1beta2.BillingCapabilities.deserializeBinaryFromReader);
1753
+ msg.setBilling(value);
1754
+ break;
1755
+ case 3:
1756
+ var value = new proto.fonoster.capabilities.v1beta2.CostsCapabilities;
1757
+ reader.readMessage(value,proto.fonoster.capabilities.v1beta2.CostsCapabilities.deserializeBinaryFromReader);
1758
+ msg.setCosts(value);
1759
+ break;
1760
+ case 4:
1761
+ var value = /** @type {string} */ (reader.readString());
1762
+ msg.setDomain(value);
1763
+ break;
1764
+ case 5:
1765
+ var value = /** @type {string} */ (reader.readString());
1766
+ msg.setAppUrl(value);
1767
+ break;
1768
+ case 6:
1769
+ var value = new proto.fonoster.capabilities.v1beta2.RegionsCapabilities;
1770
+ reader.readMessage(value,proto.fonoster.capabilities.v1beta2.RegionsCapabilities.deserializeBinaryFromReader);
1771
+ msg.setRegions(value);
1772
+ break;
1773
+ case 7:
1774
+ var value = new proto.fonoster.capabilities.v1beta2.ConnectionCapabilities;
1775
+ reader.readMessage(value,proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.deserializeBinaryFromReader);
1776
+ msg.setConnection(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.capabilities.v1beta2.GetCapabilitiesResponse.prototype.serializeBinary = function() {
1792
+ var writer = new jspb.BinaryWriter();
1793
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.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.capabilities.v1beta2.GetCapabilitiesResponse} message
1802
+ * @param {!jspb.BinaryWriter} writer
1803
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1804
+ */
1805
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.serializeBinaryToWriter = function(message, writer) {
1806
+ var f = undefined;
1807
+ f = message.getAuth();
1808
+ if (f != null) {
1809
+ writer.writeMessage(
1810
+ 1,
1811
+ f,
1812
+ proto.fonoster.capabilities.v1beta2.AuthCapabilities.serializeBinaryToWriter
1813
+ );
1814
+ }
1815
+ f = message.getBilling();
1816
+ if (f != null) {
1817
+ writer.writeMessage(
1818
+ 2,
1819
+ f,
1820
+ proto.fonoster.capabilities.v1beta2.BillingCapabilities.serializeBinaryToWriter
1821
+ );
1822
+ }
1823
+ f = message.getCosts();
1824
+ if (f != null) {
1825
+ writer.writeMessage(
1826
+ 3,
1827
+ f,
1828
+ proto.fonoster.capabilities.v1beta2.CostsCapabilities.serializeBinaryToWriter
1829
+ );
1830
+ }
1831
+ f = message.getDomain();
1832
+ if (f.length > 0) {
1833
+ writer.writeString(
1834
+ 4,
1835
+ f
1836
+ );
1837
+ }
1838
+ f = message.getAppUrl();
1839
+ if (f.length > 0) {
1840
+ writer.writeString(
1841
+ 5,
1842
+ f
1843
+ );
1844
+ }
1845
+ f = message.getRegions();
1846
+ if (f != null) {
1847
+ writer.writeMessage(
1848
+ 6,
1849
+ f,
1850
+ proto.fonoster.capabilities.v1beta2.RegionsCapabilities.serializeBinaryToWriter
1851
+ );
1852
+ }
1853
+ f = message.getConnection();
1854
+ if (f != null) {
1855
+ writer.writeMessage(
1856
+ 7,
1857
+ f,
1858
+ proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.serializeBinaryToWriter
1859
+ );
1860
+ }
1861
+ };
1862
+
1863
+
1864
+ /**
1865
+ * optional AuthCapabilities auth = 1;
1866
+ * @return {?proto.fonoster.capabilities.v1beta2.AuthCapabilities}
1867
+ */
1868
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.getAuth = function() {
1869
+ return /** @type{?proto.fonoster.capabilities.v1beta2.AuthCapabilities} */ (
1870
+ jspb.Message.getWrapperField(this, proto.fonoster.capabilities.v1beta2.AuthCapabilities, 1));
1871
+ };
1872
+
1873
+
1874
+ /**
1875
+ * @param {?proto.fonoster.capabilities.v1beta2.AuthCapabilities|undefined} value
1876
+ * @return {!proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse} returns this
1877
+ */
1878
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.setAuth = function(value) {
1879
+ return jspb.Message.setWrapperField(this, 1, value);
1880
+ };
1881
+
1882
+
1883
+ /**
1884
+ * Clears the message field making it undefined.
1885
+ * @return {!proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse} returns this
1886
+ */
1887
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.clearAuth = function() {
1888
+ return this.setAuth(undefined);
1889
+ };
1890
+
1891
+
1892
+ /**
1893
+ * Returns whether this field is set.
1894
+ * @return {boolean}
1895
+ */
1896
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.hasAuth = function() {
1897
+ return jspb.Message.getField(this, 1) != null;
1898
+ };
1899
+
1900
+
1901
+ /**
1902
+ * optional BillingCapabilities billing = 2;
1903
+ * @return {?proto.fonoster.capabilities.v1beta2.BillingCapabilities}
1904
+ */
1905
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.getBilling = function() {
1906
+ return /** @type{?proto.fonoster.capabilities.v1beta2.BillingCapabilities} */ (
1907
+ jspb.Message.getWrapperField(this, proto.fonoster.capabilities.v1beta2.BillingCapabilities, 2));
1908
+ };
1909
+
1910
+
1911
+ /**
1912
+ * @param {?proto.fonoster.capabilities.v1beta2.BillingCapabilities|undefined} value
1913
+ * @return {!proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse} returns this
1914
+ */
1915
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.setBilling = function(value) {
1916
+ return jspb.Message.setWrapperField(this, 2, value);
1917
+ };
1918
+
1919
+
1920
+ /**
1921
+ * Clears the message field making it undefined.
1922
+ * @return {!proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse} returns this
1923
+ */
1924
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.clearBilling = function() {
1925
+ return this.setBilling(undefined);
1926
+ };
1927
+
1928
+
1929
+ /**
1930
+ * Returns whether this field is set.
1931
+ * @return {boolean}
1932
+ */
1933
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.hasBilling = function() {
1934
+ return jspb.Message.getField(this, 2) != null;
1935
+ };
1936
+
1937
+
1938
+ /**
1939
+ * optional CostsCapabilities costs = 3;
1940
+ * @return {?proto.fonoster.capabilities.v1beta2.CostsCapabilities}
1941
+ */
1942
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.getCosts = function() {
1943
+ return /** @type{?proto.fonoster.capabilities.v1beta2.CostsCapabilities} */ (
1944
+ jspb.Message.getWrapperField(this, proto.fonoster.capabilities.v1beta2.CostsCapabilities, 3));
1945
+ };
1946
+
1947
+
1948
+ /**
1949
+ * @param {?proto.fonoster.capabilities.v1beta2.CostsCapabilities|undefined} value
1950
+ * @return {!proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse} returns this
1951
+ */
1952
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.setCosts = function(value) {
1953
+ return jspb.Message.setWrapperField(this, 3, value);
1954
+ };
1955
+
1956
+
1957
+ /**
1958
+ * Clears the message field making it undefined.
1959
+ * @return {!proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse} returns this
1960
+ */
1961
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.clearCosts = function() {
1962
+ return this.setCosts(undefined);
1963
+ };
1964
+
1965
+
1966
+ /**
1967
+ * Returns whether this field is set.
1968
+ * @return {boolean}
1969
+ */
1970
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.hasCosts = function() {
1971
+ return jspb.Message.getField(this, 3) != null;
1972
+ };
1973
+
1974
+
1975
+ /**
1976
+ * optional string domain = 4;
1977
+ * @return {string}
1978
+ */
1979
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.getDomain = function() {
1980
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1981
+ };
1982
+
1983
+
1984
+ /**
1985
+ * @param {string} value
1986
+ * @return {!proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse} returns this
1987
+ */
1988
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.setDomain = function(value) {
1989
+ return jspb.Message.setProto3StringField(this, 4, value);
1990
+ };
1991
+
1992
+
1993
+ /**
1994
+ * optional string app_url = 5;
1995
+ * @return {string}
1996
+ */
1997
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.getAppUrl = function() {
1998
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1999
+ };
2000
+
2001
+
2002
+ /**
2003
+ * @param {string} value
2004
+ * @return {!proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse} returns this
2005
+ */
2006
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.setAppUrl = function(value) {
2007
+ return jspb.Message.setProto3StringField(this, 5, value);
2008
+ };
2009
+
2010
+
2011
+ /**
2012
+ * optional RegionsCapabilities regions = 6;
2013
+ * @return {?proto.fonoster.capabilities.v1beta2.RegionsCapabilities}
2014
+ */
2015
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.getRegions = function() {
2016
+ return /** @type{?proto.fonoster.capabilities.v1beta2.RegionsCapabilities} */ (
2017
+ jspb.Message.getWrapperField(this, proto.fonoster.capabilities.v1beta2.RegionsCapabilities, 6));
2018
+ };
2019
+
2020
+
2021
+ /**
2022
+ * @param {?proto.fonoster.capabilities.v1beta2.RegionsCapabilities|undefined} value
2023
+ * @return {!proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse} returns this
2024
+ */
2025
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.setRegions = function(value) {
2026
+ return jspb.Message.setWrapperField(this, 6, value);
2027
+ };
2028
+
2029
+
2030
+ /**
2031
+ * Clears the message field making it undefined.
2032
+ * @return {!proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse} returns this
2033
+ */
2034
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.clearRegions = function() {
2035
+ return this.setRegions(undefined);
2036
+ };
2037
+
2038
+
2039
+ /**
2040
+ * Returns whether this field is set.
2041
+ * @return {boolean}
2042
+ */
2043
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.hasRegions = function() {
2044
+ return jspb.Message.getField(this, 6) != null;
2045
+ };
2046
+
2047
+
2048
+ /**
2049
+ * optional ConnectionCapabilities connection = 7;
2050
+ * @return {?proto.fonoster.capabilities.v1beta2.ConnectionCapabilities}
2051
+ */
2052
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.getConnection = function() {
2053
+ return /** @type{?proto.fonoster.capabilities.v1beta2.ConnectionCapabilities} */ (
2054
+ jspb.Message.getWrapperField(this, proto.fonoster.capabilities.v1beta2.ConnectionCapabilities, 7));
2055
+ };
2056
+
2057
+
2058
+ /**
2059
+ * @param {?proto.fonoster.capabilities.v1beta2.ConnectionCapabilities|undefined} value
2060
+ * @return {!proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse} returns this
2061
+ */
2062
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.setConnection = function(value) {
2063
+ return jspb.Message.setWrapperField(this, 7, value);
2064
+ };
2065
+
2066
+
2067
+ /**
2068
+ * Clears the message field making it undefined.
2069
+ * @return {!proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse} returns this
2070
+ */
2071
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.clearConnection = function() {
2072
+ return this.setConnection(undefined);
2073
+ };
2074
+
2075
+
2076
+ /**
2077
+ * Returns whether this field is set.
2078
+ * @return {boolean}
2079
+ */
2080
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.hasConnection = function() {
2081
+ return jspb.Message.getField(this, 7) != null;
2082
+ };
2083
+
2084
+
2085
+ goog.object.extend(exports, proto.fonoster.capabilities.v1beta2);