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