@fonoster/sdk 0.14.4 → 0.15.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.
@@ -23,6 +23,8 @@ var global =
23
23
 
24
24
  var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
25
25
  goog.object.extend(proto, google_protobuf_struct_pb);
26
+ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
27
+ goog.object.extend(proto, google_protobuf_empty_pb);
26
28
  goog.exportSymbol('proto.fonoster.applications.v1beta2.Application', null, global);
27
29
  goog.exportSymbol('proto.fonoster.applications.v1beta2.ApplicationType', null, global);
28
30
  goog.exportSymbol('proto.fonoster.applications.v1beta2.CreateApplicationRequest', null, global);
@@ -39,6 +41,7 @@ goog.exportSymbol('proto.fonoster.applications.v1beta2.GetApplicationRequest', n
39
41
  goog.exportSymbol('proto.fonoster.applications.v1beta2.ListApplicationsRequest', null, global);
40
42
  goog.exportSymbol('proto.fonoster.applications.v1beta2.ListApplicationsResponse', null, global);
41
43
  goog.exportSymbol('proto.fonoster.applications.v1beta2.ProductContainer', null, global);
44
+ goog.exportSymbol('proto.fonoster.applications.v1beta2.TestTokenResponse', null, global);
42
45
  goog.exportSymbol('proto.fonoster.applications.v1beta2.UpdateApplicationRequest', null, global);
43
46
  goog.exportSymbol('proto.fonoster.applications.v1beta2.UpdateApplicationResponse', null, global);
44
47
  /**
@@ -377,6 +380,27 @@ if (goog.DEBUG && !COMPILED) {
377
380
  */
378
381
  proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.displayName = 'proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport';
379
382
  }
383
+ /**
384
+ * Generated by JsPbCodeGenerator.
385
+ * @param {Array=} opt_data Optional initial data array, typically from a
386
+ * server response, or constructed directly in Javascript. The array is used
387
+ * in place and becomes part of the constructed object. It is not cloned.
388
+ * If no data is provided, the constructed object will be empty, but still
389
+ * valid.
390
+ * @extends {jspb.Message}
391
+ * @constructor
392
+ */
393
+ proto.fonoster.applications.v1beta2.TestTokenResponse = function(opt_data) {
394
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
395
+ };
396
+ goog.inherits(proto.fonoster.applications.v1beta2.TestTokenResponse, jspb.Message);
397
+ if (goog.DEBUG && !COMPILED) {
398
+ /**
399
+ * @public
400
+ * @override
401
+ */
402
+ proto.fonoster.applications.v1beta2.TestTokenResponse.displayName = 'proto.fonoster.applications.v1beta2.TestTokenResponse';
403
+ }
380
404
 
381
405
 
382
406
 
@@ -3959,6 +3983,286 @@ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.prototype.clear
3959
3983
  };
3960
3984
 
3961
3985
 
3986
+
3987
+
3988
+
3989
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3990
+ /**
3991
+ * Creates an object representation of this proto.
3992
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3993
+ * Optional fields that are not set will be set to undefined.
3994
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3995
+ * For the list of reserved names please see:
3996
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3997
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3998
+ * JSPB instance for transitional soy proto support:
3999
+ * http://goto/soy-param-migration
4000
+ * @return {!Object}
4001
+ */
4002
+ proto.fonoster.applications.v1beta2.TestTokenResponse.prototype.toObject = function(opt_includeInstance) {
4003
+ return proto.fonoster.applications.v1beta2.TestTokenResponse.toObject(opt_includeInstance, this);
4004
+ };
4005
+
4006
+
4007
+ /**
4008
+ * Static version of the {@see toObject} method.
4009
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4010
+ * the JSPB instance for transitional soy proto support:
4011
+ * http://goto/soy-param-migration
4012
+ * @param {!proto.fonoster.applications.v1beta2.TestTokenResponse} msg The msg instance to transform.
4013
+ * @return {!Object}
4014
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4015
+ */
4016
+ proto.fonoster.applications.v1beta2.TestTokenResponse.toObject = function(includeInstance, msg) {
4017
+ var f, obj = {
4018
+ token: jspb.Message.getFieldWithDefault(msg, 1, ""),
4019
+ domain: jspb.Message.getFieldWithDefault(msg, 2, ""),
4020
+ displayName: jspb.Message.getFieldWithDefault(msg, 3, ""),
4021
+ signalingServer: jspb.Message.getFieldWithDefault(msg, 4, ""),
4022
+ targetAor: jspb.Message.getFieldWithDefault(msg, 5, ""),
4023
+ username: jspb.Message.getFieldWithDefault(msg, 6, "")
4024
+ };
4025
+
4026
+ if (includeInstance) {
4027
+ obj.$jspbMessageInstance = msg;
4028
+ }
4029
+ return obj;
4030
+ };
4031
+ }
4032
+
4033
+
4034
+ /**
4035
+ * Deserializes binary data (in protobuf wire format).
4036
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4037
+ * @return {!proto.fonoster.applications.v1beta2.TestTokenResponse}
4038
+ */
4039
+ proto.fonoster.applications.v1beta2.TestTokenResponse.deserializeBinary = function(bytes) {
4040
+ var reader = new jspb.BinaryReader(bytes);
4041
+ var msg = new proto.fonoster.applications.v1beta2.TestTokenResponse;
4042
+ return proto.fonoster.applications.v1beta2.TestTokenResponse.deserializeBinaryFromReader(msg, reader);
4043
+ };
4044
+
4045
+
4046
+ /**
4047
+ * Deserializes binary data (in protobuf wire format) from the
4048
+ * given reader into the given message object.
4049
+ * @param {!proto.fonoster.applications.v1beta2.TestTokenResponse} msg The message object to deserialize into.
4050
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4051
+ * @return {!proto.fonoster.applications.v1beta2.TestTokenResponse}
4052
+ */
4053
+ proto.fonoster.applications.v1beta2.TestTokenResponse.deserializeBinaryFromReader = function(msg, reader) {
4054
+ while (reader.nextField()) {
4055
+ if (reader.isEndGroup()) {
4056
+ break;
4057
+ }
4058
+ var field = reader.getFieldNumber();
4059
+ switch (field) {
4060
+ case 1:
4061
+ var value = /** @type {string} */ (reader.readString());
4062
+ msg.setToken(value);
4063
+ break;
4064
+ case 2:
4065
+ var value = /** @type {string} */ (reader.readString());
4066
+ msg.setDomain(value);
4067
+ break;
4068
+ case 3:
4069
+ var value = /** @type {string} */ (reader.readString());
4070
+ msg.setDisplayName(value);
4071
+ break;
4072
+ case 4:
4073
+ var value = /** @type {string} */ (reader.readString());
4074
+ msg.setSignalingServer(value);
4075
+ break;
4076
+ case 5:
4077
+ var value = /** @type {string} */ (reader.readString());
4078
+ msg.setTargetAor(value);
4079
+ break;
4080
+ case 6:
4081
+ var value = /** @type {string} */ (reader.readString());
4082
+ msg.setUsername(value);
4083
+ break;
4084
+ default:
4085
+ reader.skipField();
4086
+ break;
4087
+ }
4088
+ }
4089
+ return msg;
4090
+ };
4091
+
4092
+
4093
+ /**
4094
+ * Serializes the message to binary data (in protobuf wire format).
4095
+ * @return {!Uint8Array}
4096
+ */
4097
+ proto.fonoster.applications.v1beta2.TestTokenResponse.prototype.serializeBinary = function() {
4098
+ var writer = new jspb.BinaryWriter();
4099
+ proto.fonoster.applications.v1beta2.TestTokenResponse.serializeBinaryToWriter(this, writer);
4100
+ return writer.getResultBuffer();
4101
+ };
4102
+
4103
+
4104
+ /**
4105
+ * Serializes the given message to binary data (in protobuf wire
4106
+ * format), writing to the given BinaryWriter.
4107
+ * @param {!proto.fonoster.applications.v1beta2.TestTokenResponse} message
4108
+ * @param {!jspb.BinaryWriter} writer
4109
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4110
+ */
4111
+ proto.fonoster.applications.v1beta2.TestTokenResponse.serializeBinaryToWriter = function(message, writer) {
4112
+ var f = undefined;
4113
+ f = message.getToken();
4114
+ if (f.length > 0) {
4115
+ writer.writeString(
4116
+ 1,
4117
+ f
4118
+ );
4119
+ }
4120
+ f = message.getDomain();
4121
+ if (f.length > 0) {
4122
+ writer.writeString(
4123
+ 2,
4124
+ f
4125
+ );
4126
+ }
4127
+ f = message.getDisplayName();
4128
+ if (f.length > 0) {
4129
+ writer.writeString(
4130
+ 3,
4131
+ f
4132
+ );
4133
+ }
4134
+ f = message.getSignalingServer();
4135
+ if (f.length > 0) {
4136
+ writer.writeString(
4137
+ 4,
4138
+ f
4139
+ );
4140
+ }
4141
+ f = message.getTargetAor();
4142
+ if (f.length > 0) {
4143
+ writer.writeString(
4144
+ 5,
4145
+ f
4146
+ );
4147
+ }
4148
+ f = message.getUsername();
4149
+ if (f.length > 0) {
4150
+ writer.writeString(
4151
+ 6,
4152
+ f
4153
+ );
4154
+ }
4155
+ };
4156
+
4157
+
4158
+ /**
4159
+ * optional string token = 1;
4160
+ * @return {string}
4161
+ */
4162
+ proto.fonoster.applications.v1beta2.TestTokenResponse.prototype.getToken = function() {
4163
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4164
+ };
4165
+
4166
+
4167
+ /**
4168
+ * @param {string} value
4169
+ * @return {!proto.fonoster.applications.v1beta2.TestTokenResponse} returns this
4170
+ */
4171
+ proto.fonoster.applications.v1beta2.TestTokenResponse.prototype.setToken = function(value) {
4172
+ return jspb.Message.setProto3StringField(this, 1, value);
4173
+ };
4174
+
4175
+
4176
+ /**
4177
+ * optional string domain = 2;
4178
+ * @return {string}
4179
+ */
4180
+ proto.fonoster.applications.v1beta2.TestTokenResponse.prototype.getDomain = function() {
4181
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4182
+ };
4183
+
4184
+
4185
+ /**
4186
+ * @param {string} value
4187
+ * @return {!proto.fonoster.applications.v1beta2.TestTokenResponse} returns this
4188
+ */
4189
+ proto.fonoster.applications.v1beta2.TestTokenResponse.prototype.setDomain = function(value) {
4190
+ return jspb.Message.setProto3StringField(this, 2, value);
4191
+ };
4192
+
4193
+
4194
+ /**
4195
+ * optional string display_name = 3;
4196
+ * @return {string}
4197
+ */
4198
+ proto.fonoster.applications.v1beta2.TestTokenResponse.prototype.getDisplayName = function() {
4199
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4200
+ };
4201
+
4202
+
4203
+ /**
4204
+ * @param {string} value
4205
+ * @return {!proto.fonoster.applications.v1beta2.TestTokenResponse} returns this
4206
+ */
4207
+ proto.fonoster.applications.v1beta2.TestTokenResponse.prototype.setDisplayName = function(value) {
4208
+ return jspb.Message.setProto3StringField(this, 3, value);
4209
+ };
4210
+
4211
+
4212
+ /**
4213
+ * optional string signaling_server = 4;
4214
+ * @return {string}
4215
+ */
4216
+ proto.fonoster.applications.v1beta2.TestTokenResponse.prototype.getSignalingServer = function() {
4217
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4218
+ };
4219
+
4220
+
4221
+ /**
4222
+ * @param {string} value
4223
+ * @return {!proto.fonoster.applications.v1beta2.TestTokenResponse} returns this
4224
+ */
4225
+ proto.fonoster.applications.v1beta2.TestTokenResponse.prototype.setSignalingServer = function(value) {
4226
+ return jspb.Message.setProto3StringField(this, 4, value);
4227
+ };
4228
+
4229
+
4230
+ /**
4231
+ * optional string target_aor = 5;
4232
+ * @return {string}
4233
+ */
4234
+ proto.fonoster.applications.v1beta2.TestTokenResponse.prototype.getTargetAor = function() {
4235
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
4236
+ };
4237
+
4238
+
4239
+ /**
4240
+ * @param {string} value
4241
+ * @return {!proto.fonoster.applications.v1beta2.TestTokenResponse} returns this
4242
+ */
4243
+ proto.fonoster.applications.v1beta2.TestTokenResponse.prototype.setTargetAor = function(value) {
4244
+ return jspb.Message.setProto3StringField(this, 5, value);
4245
+ };
4246
+
4247
+
4248
+ /**
4249
+ * optional string username = 6;
4250
+ * @return {string}
4251
+ */
4252
+ proto.fonoster.applications.v1beta2.TestTokenResponse.prototype.getUsername = function() {
4253
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
4254
+ };
4255
+
4256
+
4257
+ /**
4258
+ * @param {string} value
4259
+ * @return {!proto.fonoster.applications.v1beta2.TestTokenResponse} returns this
4260
+ */
4261
+ proto.fonoster.applications.v1beta2.TestTokenResponse.prototype.setUsername = function(value) {
4262
+ return jspb.Message.setProto3StringField(this, 6, value);
4263
+ };
4264
+
4265
+
3962
4266
  /**
3963
4267
  * @enum {number}
3964
4268
  */