protobuf-platform 1.2.457 → 1.2.460
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.
|
@@ -30,6 +30,7 @@ service Notification {
|
|
|
30
30
|
rpc getMailTemplateTranslation(GetMailTemplateTranslationRequest) returns (MailTemplateTranslationResponse);
|
|
31
31
|
//Users
|
|
32
32
|
rpc sendNotificationToUsers(SendNotificationRequest) returns (NotificationStatusResponse);
|
|
33
|
+
rpc sendSms(SendSmsRequest) returns (SmsSendResponse);
|
|
33
34
|
rpc getNotificationForParticularUser(PaginationRequest) returns (UserNotificationItemsResponse);
|
|
34
35
|
rpc getNotificationsCountForUser(NotificationSearchRequest) returns (UserNotificationsCountResponse);
|
|
35
36
|
rpc markUserNotification(NotificationSearchRequest) returns (UserNotificationsCountResponse);
|
|
@@ -108,6 +109,26 @@ message SendNotificationRequest {
|
|
|
108
109
|
int32 notification_id = 1;
|
|
109
110
|
repeated int32 user_ids = 2;
|
|
110
111
|
}
|
|
112
|
+
message SendSmsRequest {
|
|
113
|
+
string phone = 1;
|
|
114
|
+
string message = 2;
|
|
115
|
+
optional string sender = 3;
|
|
116
|
+
optional int32 user_id = 4;
|
|
117
|
+
optional string correlation_id = 5;
|
|
118
|
+
optional string idempotency_key = 6;
|
|
119
|
+
optional string metadata_json = 7;
|
|
120
|
+
}
|
|
121
|
+
message SmsSendResponse {
|
|
122
|
+
bool ok = 1;
|
|
123
|
+
string status = 2;
|
|
124
|
+
optional string provider = 3;
|
|
125
|
+
optional string provider_message_id = 4;
|
|
126
|
+
optional string audit_id = 5;
|
|
127
|
+
optional string error_code = 6;
|
|
128
|
+
optional string reason = 7;
|
|
129
|
+
optional bool retryable = 8;
|
|
130
|
+
optional bool permanent = 9;
|
|
131
|
+
}
|
|
111
132
|
message NotificationStatusResponse {
|
|
112
133
|
string status = 1;
|
|
113
134
|
}
|
|
@@ -334,6 +334,28 @@ function deserialize_notification_SendNotificationRequest(buffer_arg) {
|
|
|
334
334
|
return notification_pb.SendNotificationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
335
335
|
}
|
|
336
336
|
|
|
337
|
+
function serialize_notification_SendSmsRequest(arg) {
|
|
338
|
+
if (!(arg instanceof notification_pb.SendSmsRequest)) {
|
|
339
|
+
throw new Error('Expected argument of type notification.SendSmsRequest');
|
|
340
|
+
}
|
|
341
|
+
return Buffer.from(arg.serializeBinary());
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
function deserialize_notification_SendSmsRequest(buffer_arg) {
|
|
345
|
+
return notification_pb.SendSmsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
function serialize_notification_SmsSendResponse(arg) {
|
|
349
|
+
if (!(arg instanceof notification_pb.SmsSendResponse)) {
|
|
350
|
+
throw new Error('Expected argument of type notification.SmsSendResponse');
|
|
351
|
+
}
|
|
352
|
+
return Buffer.from(arg.serializeBinary());
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
function deserialize_notification_SmsSendResponse(buffer_arg) {
|
|
356
|
+
return notification_pb.SmsSendResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
357
|
+
}
|
|
358
|
+
|
|
337
359
|
function serialize_notification_UserNotificationItemsResponse(arg) {
|
|
338
360
|
if (!(arg instanceof notification_pb.UserNotificationItemsResponse)) {
|
|
339
361
|
throw new Error('Expected argument of type notification.UserNotificationItemsResponse');
|
|
@@ -625,6 +647,17 @@ sendNotificationToUsers: {
|
|
|
625
647
|
responseSerialize: serialize_notification_NotificationStatusResponse,
|
|
626
648
|
responseDeserialize: deserialize_notification_NotificationStatusResponse,
|
|
627
649
|
},
|
|
650
|
+
sendSms: {
|
|
651
|
+
path: '/notification.Notification/sendSms',
|
|
652
|
+
requestStream: false,
|
|
653
|
+
responseStream: false,
|
|
654
|
+
requestType: notification_pb.SendSmsRequest,
|
|
655
|
+
responseType: notification_pb.SmsSendResponse,
|
|
656
|
+
requestSerialize: serialize_notification_SendSmsRequest,
|
|
657
|
+
requestDeserialize: deserialize_notification_SendSmsRequest,
|
|
658
|
+
responseSerialize: serialize_notification_SmsSendResponse,
|
|
659
|
+
responseDeserialize: deserialize_notification_SmsSendResponse,
|
|
660
|
+
},
|
|
628
661
|
getNotificationForParticularUser: {
|
|
629
662
|
path: '/notification.Notification/getNotificationForParticularUser',
|
|
630
663
|
requestStream: false,
|
|
@@ -59,6 +59,8 @@ goog.exportSymbol('proto.notification.PingRequest', null, global);
|
|
|
59
59
|
goog.exportSymbol('proto.notification.PongResponse', null, global);
|
|
60
60
|
goog.exportSymbol('proto.notification.ReadAllUserNotificationsRequest', null, global);
|
|
61
61
|
goog.exportSymbol('proto.notification.SendNotificationRequest', null, global);
|
|
62
|
+
goog.exportSymbol('proto.notification.SendSmsRequest', null, global);
|
|
63
|
+
goog.exportSymbol('proto.notification.SmsSendResponse', null, global);
|
|
62
64
|
goog.exportSymbol('proto.notification.UserNotificationItem', null, global);
|
|
63
65
|
goog.exportSymbol('proto.notification.UserNotificationItemsResponse', null, global);
|
|
64
66
|
goog.exportSymbol('proto.notification.UserNotificationsCountResponse', null, global);
|
|
@@ -315,6 +317,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
315
317
|
*/
|
|
316
318
|
proto.notification.SendNotificationRequest.displayName = 'proto.notification.SendNotificationRequest';
|
|
317
319
|
}
|
|
320
|
+
/**
|
|
321
|
+
* Generated by JsPbCodeGenerator.
|
|
322
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
323
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
324
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
325
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
326
|
+
* valid.
|
|
327
|
+
* @extends {jspb.Message}
|
|
328
|
+
* @constructor
|
|
329
|
+
*/
|
|
330
|
+
proto.notification.SendSmsRequest = function(opt_data) {
|
|
331
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
332
|
+
};
|
|
333
|
+
goog.inherits(proto.notification.SendSmsRequest, jspb.Message);
|
|
334
|
+
if (goog.DEBUG && !COMPILED) {
|
|
335
|
+
/**
|
|
336
|
+
* @public
|
|
337
|
+
* @override
|
|
338
|
+
*/
|
|
339
|
+
proto.notification.SendSmsRequest.displayName = 'proto.notification.SendSmsRequest';
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* Generated by JsPbCodeGenerator.
|
|
343
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
344
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
345
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
346
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
347
|
+
* valid.
|
|
348
|
+
* @extends {jspb.Message}
|
|
349
|
+
* @constructor
|
|
350
|
+
*/
|
|
351
|
+
proto.notification.SmsSendResponse = function(opt_data) {
|
|
352
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
353
|
+
};
|
|
354
|
+
goog.inherits(proto.notification.SmsSendResponse, jspb.Message);
|
|
355
|
+
if (goog.DEBUG && !COMPILED) {
|
|
356
|
+
/**
|
|
357
|
+
* @public
|
|
358
|
+
* @override
|
|
359
|
+
*/
|
|
360
|
+
proto.notification.SmsSendResponse.displayName = 'proto.notification.SmsSendResponse';
|
|
361
|
+
}
|
|
318
362
|
/**
|
|
319
363
|
* Generated by JsPbCodeGenerator.
|
|
320
364
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4327,6 +4371,902 @@ proto.notification.SendNotificationRequest.prototype.clearUserIdsList = function
|
|
|
4327
4371
|
|
|
4328
4372
|
|
|
4329
4373
|
|
|
4374
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4375
|
+
/**
|
|
4376
|
+
* Creates an object representation of this proto.
|
|
4377
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4378
|
+
* Optional fields that are not set will be set to undefined.
|
|
4379
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4380
|
+
* For the list of reserved names please see:
|
|
4381
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4382
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4383
|
+
* JSPB instance for transitional soy proto support:
|
|
4384
|
+
* http://goto/soy-param-migration
|
|
4385
|
+
* @return {!Object}
|
|
4386
|
+
*/
|
|
4387
|
+
proto.notification.SendSmsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4388
|
+
return proto.notification.SendSmsRequest.toObject(opt_includeInstance, this);
|
|
4389
|
+
};
|
|
4390
|
+
|
|
4391
|
+
|
|
4392
|
+
/**
|
|
4393
|
+
* Static version of the {@see toObject} method.
|
|
4394
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4395
|
+
* the JSPB instance for transitional soy proto support:
|
|
4396
|
+
* http://goto/soy-param-migration
|
|
4397
|
+
* @param {!proto.notification.SendSmsRequest} msg The msg instance to transform.
|
|
4398
|
+
* @return {!Object}
|
|
4399
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4400
|
+
*/
|
|
4401
|
+
proto.notification.SendSmsRequest.toObject = function(includeInstance, msg) {
|
|
4402
|
+
var f, obj = {
|
|
4403
|
+
phone: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4404
|
+
message: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4405
|
+
sender: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
4406
|
+
userId: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
4407
|
+
correlationId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
4408
|
+
idempotencyKey: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
4409
|
+
metadataJson: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
4410
|
+
};
|
|
4411
|
+
|
|
4412
|
+
if (includeInstance) {
|
|
4413
|
+
obj.$jspbMessageInstance = msg;
|
|
4414
|
+
}
|
|
4415
|
+
return obj;
|
|
4416
|
+
};
|
|
4417
|
+
}
|
|
4418
|
+
|
|
4419
|
+
|
|
4420
|
+
/**
|
|
4421
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4422
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4423
|
+
* @return {!proto.notification.SendSmsRequest}
|
|
4424
|
+
*/
|
|
4425
|
+
proto.notification.SendSmsRequest.deserializeBinary = function(bytes) {
|
|
4426
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4427
|
+
var msg = new proto.notification.SendSmsRequest;
|
|
4428
|
+
return proto.notification.SendSmsRequest.deserializeBinaryFromReader(msg, reader);
|
|
4429
|
+
};
|
|
4430
|
+
|
|
4431
|
+
|
|
4432
|
+
/**
|
|
4433
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4434
|
+
* given reader into the given message object.
|
|
4435
|
+
* @param {!proto.notification.SendSmsRequest} msg The message object to deserialize into.
|
|
4436
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4437
|
+
* @return {!proto.notification.SendSmsRequest}
|
|
4438
|
+
*/
|
|
4439
|
+
proto.notification.SendSmsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4440
|
+
while (reader.nextField()) {
|
|
4441
|
+
if (reader.isEndGroup()) {
|
|
4442
|
+
break;
|
|
4443
|
+
}
|
|
4444
|
+
var field = reader.getFieldNumber();
|
|
4445
|
+
switch (field) {
|
|
4446
|
+
case 1:
|
|
4447
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4448
|
+
msg.setPhone(value);
|
|
4449
|
+
break;
|
|
4450
|
+
case 2:
|
|
4451
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4452
|
+
msg.setMessage(value);
|
|
4453
|
+
break;
|
|
4454
|
+
case 3:
|
|
4455
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4456
|
+
msg.setSender(value);
|
|
4457
|
+
break;
|
|
4458
|
+
case 4:
|
|
4459
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
4460
|
+
msg.setUserId(value);
|
|
4461
|
+
break;
|
|
4462
|
+
case 5:
|
|
4463
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4464
|
+
msg.setCorrelationId(value);
|
|
4465
|
+
break;
|
|
4466
|
+
case 6:
|
|
4467
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4468
|
+
msg.setIdempotencyKey(value);
|
|
4469
|
+
break;
|
|
4470
|
+
case 7:
|
|
4471
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4472
|
+
msg.setMetadataJson(value);
|
|
4473
|
+
break;
|
|
4474
|
+
default:
|
|
4475
|
+
reader.skipField();
|
|
4476
|
+
break;
|
|
4477
|
+
}
|
|
4478
|
+
}
|
|
4479
|
+
return msg;
|
|
4480
|
+
};
|
|
4481
|
+
|
|
4482
|
+
|
|
4483
|
+
/**
|
|
4484
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4485
|
+
* @return {!Uint8Array}
|
|
4486
|
+
*/
|
|
4487
|
+
proto.notification.SendSmsRequest.prototype.serializeBinary = function() {
|
|
4488
|
+
var writer = new jspb.BinaryWriter();
|
|
4489
|
+
proto.notification.SendSmsRequest.serializeBinaryToWriter(this, writer);
|
|
4490
|
+
return writer.getResultBuffer();
|
|
4491
|
+
};
|
|
4492
|
+
|
|
4493
|
+
|
|
4494
|
+
/**
|
|
4495
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4496
|
+
* format), writing to the given BinaryWriter.
|
|
4497
|
+
* @param {!proto.notification.SendSmsRequest} message
|
|
4498
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4499
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4500
|
+
*/
|
|
4501
|
+
proto.notification.SendSmsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4502
|
+
var f = undefined;
|
|
4503
|
+
f = message.getPhone();
|
|
4504
|
+
if (f.length > 0) {
|
|
4505
|
+
writer.writeString(
|
|
4506
|
+
1,
|
|
4507
|
+
f
|
|
4508
|
+
);
|
|
4509
|
+
}
|
|
4510
|
+
f = message.getMessage();
|
|
4511
|
+
if (f.length > 0) {
|
|
4512
|
+
writer.writeString(
|
|
4513
|
+
2,
|
|
4514
|
+
f
|
|
4515
|
+
);
|
|
4516
|
+
}
|
|
4517
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
4518
|
+
if (f != null) {
|
|
4519
|
+
writer.writeString(
|
|
4520
|
+
3,
|
|
4521
|
+
f
|
|
4522
|
+
);
|
|
4523
|
+
}
|
|
4524
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
|
4525
|
+
if (f != null) {
|
|
4526
|
+
writer.writeInt32(
|
|
4527
|
+
4,
|
|
4528
|
+
f
|
|
4529
|
+
);
|
|
4530
|
+
}
|
|
4531
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
4532
|
+
if (f != null) {
|
|
4533
|
+
writer.writeString(
|
|
4534
|
+
5,
|
|
4535
|
+
f
|
|
4536
|
+
);
|
|
4537
|
+
}
|
|
4538
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
4539
|
+
if (f != null) {
|
|
4540
|
+
writer.writeString(
|
|
4541
|
+
6,
|
|
4542
|
+
f
|
|
4543
|
+
);
|
|
4544
|
+
}
|
|
4545
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
4546
|
+
if (f != null) {
|
|
4547
|
+
writer.writeString(
|
|
4548
|
+
7,
|
|
4549
|
+
f
|
|
4550
|
+
);
|
|
4551
|
+
}
|
|
4552
|
+
};
|
|
4553
|
+
|
|
4554
|
+
|
|
4555
|
+
/**
|
|
4556
|
+
* optional string phone = 1;
|
|
4557
|
+
* @return {string}
|
|
4558
|
+
*/
|
|
4559
|
+
proto.notification.SendSmsRequest.prototype.getPhone = function() {
|
|
4560
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4561
|
+
};
|
|
4562
|
+
|
|
4563
|
+
|
|
4564
|
+
/**
|
|
4565
|
+
* @param {string} value
|
|
4566
|
+
* @return {!proto.notification.SendSmsRequest} returns this
|
|
4567
|
+
*/
|
|
4568
|
+
proto.notification.SendSmsRequest.prototype.setPhone = function(value) {
|
|
4569
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4570
|
+
};
|
|
4571
|
+
|
|
4572
|
+
|
|
4573
|
+
/**
|
|
4574
|
+
* optional string message = 2;
|
|
4575
|
+
* @return {string}
|
|
4576
|
+
*/
|
|
4577
|
+
proto.notification.SendSmsRequest.prototype.getMessage = function() {
|
|
4578
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4579
|
+
};
|
|
4580
|
+
|
|
4581
|
+
|
|
4582
|
+
/**
|
|
4583
|
+
* @param {string} value
|
|
4584
|
+
* @return {!proto.notification.SendSmsRequest} returns this
|
|
4585
|
+
*/
|
|
4586
|
+
proto.notification.SendSmsRequest.prototype.setMessage = function(value) {
|
|
4587
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4588
|
+
};
|
|
4589
|
+
|
|
4590
|
+
|
|
4591
|
+
/**
|
|
4592
|
+
* optional string sender = 3;
|
|
4593
|
+
* @return {string}
|
|
4594
|
+
*/
|
|
4595
|
+
proto.notification.SendSmsRequest.prototype.getSender = function() {
|
|
4596
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
4597
|
+
};
|
|
4598
|
+
|
|
4599
|
+
|
|
4600
|
+
/**
|
|
4601
|
+
* @param {string} value
|
|
4602
|
+
* @return {!proto.notification.SendSmsRequest} returns this
|
|
4603
|
+
*/
|
|
4604
|
+
proto.notification.SendSmsRequest.prototype.setSender = function(value) {
|
|
4605
|
+
return jspb.Message.setField(this, 3, value);
|
|
4606
|
+
};
|
|
4607
|
+
|
|
4608
|
+
|
|
4609
|
+
/**
|
|
4610
|
+
* Clears the field making it undefined.
|
|
4611
|
+
* @return {!proto.notification.SendSmsRequest} returns this
|
|
4612
|
+
*/
|
|
4613
|
+
proto.notification.SendSmsRequest.prototype.clearSender = function() {
|
|
4614
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
4615
|
+
};
|
|
4616
|
+
|
|
4617
|
+
|
|
4618
|
+
/**
|
|
4619
|
+
* Returns whether this field is set.
|
|
4620
|
+
* @return {boolean}
|
|
4621
|
+
*/
|
|
4622
|
+
proto.notification.SendSmsRequest.prototype.hasSender = function() {
|
|
4623
|
+
return jspb.Message.getField(this, 3) != null;
|
|
4624
|
+
};
|
|
4625
|
+
|
|
4626
|
+
|
|
4627
|
+
/**
|
|
4628
|
+
* optional int32 user_id = 4;
|
|
4629
|
+
* @return {number}
|
|
4630
|
+
*/
|
|
4631
|
+
proto.notification.SendSmsRequest.prototype.getUserId = function() {
|
|
4632
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
4633
|
+
};
|
|
4634
|
+
|
|
4635
|
+
|
|
4636
|
+
/**
|
|
4637
|
+
* @param {number} value
|
|
4638
|
+
* @return {!proto.notification.SendSmsRequest} returns this
|
|
4639
|
+
*/
|
|
4640
|
+
proto.notification.SendSmsRequest.prototype.setUserId = function(value) {
|
|
4641
|
+
return jspb.Message.setField(this, 4, value);
|
|
4642
|
+
};
|
|
4643
|
+
|
|
4644
|
+
|
|
4645
|
+
/**
|
|
4646
|
+
* Clears the field making it undefined.
|
|
4647
|
+
* @return {!proto.notification.SendSmsRequest} returns this
|
|
4648
|
+
*/
|
|
4649
|
+
proto.notification.SendSmsRequest.prototype.clearUserId = function() {
|
|
4650
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
4651
|
+
};
|
|
4652
|
+
|
|
4653
|
+
|
|
4654
|
+
/**
|
|
4655
|
+
* Returns whether this field is set.
|
|
4656
|
+
* @return {boolean}
|
|
4657
|
+
*/
|
|
4658
|
+
proto.notification.SendSmsRequest.prototype.hasUserId = function() {
|
|
4659
|
+
return jspb.Message.getField(this, 4) != null;
|
|
4660
|
+
};
|
|
4661
|
+
|
|
4662
|
+
|
|
4663
|
+
/**
|
|
4664
|
+
* optional string correlation_id = 5;
|
|
4665
|
+
* @return {string}
|
|
4666
|
+
*/
|
|
4667
|
+
proto.notification.SendSmsRequest.prototype.getCorrelationId = function() {
|
|
4668
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
4669
|
+
};
|
|
4670
|
+
|
|
4671
|
+
|
|
4672
|
+
/**
|
|
4673
|
+
* @param {string} value
|
|
4674
|
+
* @return {!proto.notification.SendSmsRequest} returns this
|
|
4675
|
+
*/
|
|
4676
|
+
proto.notification.SendSmsRequest.prototype.setCorrelationId = function(value) {
|
|
4677
|
+
return jspb.Message.setField(this, 5, value);
|
|
4678
|
+
};
|
|
4679
|
+
|
|
4680
|
+
|
|
4681
|
+
/**
|
|
4682
|
+
* Clears the field making it undefined.
|
|
4683
|
+
* @return {!proto.notification.SendSmsRequest} returns this
|
|
4684
|
+
*/
|
|
4685
|
+
proto.notification.SendSmsRequest.prototype.clearCorrelationId = function() {
|
|
4686
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
4687
|
+
};
|
|
4688
|
+
|
|
4689
|
+
|
|
4690
|
+
/**
|
|
4691
|
+
* Returns whether this field is set.
|
|
4692
|
+
* @return {boolean}
|
|
4693
|
+
*/
|
|
4694
|
+
proto.notification.SendSmsRequest.prototype.hasCorrelationId = function() {
|
|
4695
|
+
return jspb.Message.getField(this, 5) != null;
|
|
4696
|
+
};
|
|
4697
|
+
|
|
4698
|
+
|
|
4699
|
+
/**
|
|
4700
|
+
* optional string idempotency_key = 6;
|
|
4701
|
+
* @return {string}
|
|
4702
|
+
*/
|
|
4703
|
+
proto.notification.SendSmsRequest.prototype.getIdempotencyKey = function() {
|
|
4704
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
4705
|
+
};
|
|
4706
|
+
|
|
4707
|
+
|
|
4708
|
+
/**
|
|
4709
|
+
* @param {string} value
|
|
4710
|
+
* @return {!proto.notification.SendSmsRequest} returns this
|
|
4711
|
+
*/
|
|
4712
|
+
proto.notification.SendSmsRequest.prototype.setIdempotencyKey = function(value) {
|
|
4713
|
+
return jspb.Message.setField(this, 6, value);
|
|
4714
|
+
};
|
|
4715
|
+
|
|
4716
|
+
|
|
4717
|
+
/**
|
|
4718
|
+
* Clears the field making it undefined.
|
|
4719
|
+
* @return {!proto.notification.SendSmsRequest} returns this
|
|
4720
|
+
*/
|
|
4721
|
+
proto.notification.SendSmsRequest.prototype.clearIdempotencyKey = function() {
|
|
4722
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
4723
|
+
};
|
|
4724
|
+
|
|
4725
|
+
|
|
4726
|
+
/**
|
|
4727
|
+
* Returns whether this field is set.
|
|
4728
|
+
* @return {boolean}
|
|
4729
|
+
*/
|
|
4730
|
+
proto.notification.SendSmsRequest.prototype.hasIdempotencyKey = function() {
|
|
4731
|
+
return jspb.Message.getField(this, 6) != null;
|
|
4732
|
+
};
|
|
4733
|
+
|
|
4734
|
+
|
|
4735
|
+
/**
|
|
4736
|
+
* optional string metadata_json = 7;
|
|
4737
|
+
* @return {string}
|
|
4738
|
+
*/
|
|
4739
|
+
proto.notification.SendSmsRequest.prototype.getMetadataJson = function() {
|
|
4740
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
4741
|
+
};
|
|
4742
|
+
|
|
4743
|
+
|
|
4744
|
+
/**
|
|
4745
|
+
* @param {string} value
|
|
4746
|
+
* @return {!proto.notification.SendSmsRequest} returns this
|
|
4747
|
+
*/
|
|
4748
|
+
proto.notification.SendSmsRequest.prototype.setMetadataJson = function(value) {
|
|
4749
|
+
return jspb.Message.setField(this, 7, value);
|
|
4750
|
+
};
|
|
4751
|
+
|
|
4752
|
+
|
|
4753
|
+
/**
|
|
4754
|
+
* Clears the field making it undefined.
|
|
4755
|
+
* @return {!proto.notification.SendSmsRequest} returns this
|
|
4756
|
+
*/
|
|
4757
|
+
proto.notification.SendSmsRequest.prototype.clearMetadataJson = function() {
|
|
4758
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
4759
|
+
};
|
|
4760
|
+
|
|
4761
|
+
|
|
4762
|
+
/**
|
|
4763
|
+
* Returns whether this field is set.
|
|
4764
|
+
* @return {boolean}
|
|
4765
|
+
*/
|
|
4766
|
+
proto.notification.SendSmsRequest.prototype.hasMetadataJson = function() {
|
|
4767
|
+
return jspb.Message.getField(this, 7) != null;
|
|
4768
|
+
};
|
|
4769
|
+
|
|
4770
|
+
|
|
4771
|
+
|
|
4772
|
+
|
|
4773
|
+
|
|
4774
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4775
|
+
/**
|
|
4776
|
+
* Creates an object representation of this proto.
|
|
4777
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4778
|
+
* Optional fields that are not set will be set to undefined.
|
|
4779
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4780
|
+
* For the list of reserved names please see:
|
|
4781
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4782
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4783
|
+
* JSPB instance for transitional soy proto support:
|
|
4784
|
+
* http://goto/soy-param-migration
|
|
4785
|
+
* @return {!Object}
|
|
4786
|
+
*/
|
|
4787
|
+
proto.notification.SmsSendResponse.prototype.toObject = function(opt_includeInstance) {
|
|
4788
|
+
return proto.notification.SmsSendResponse.toObject(opt_includeInstance, this);
|
|
4789
|
+
};
|
|
4790
|
+
|
|
4791
|
+
|
|
4792
|
+
/**
|
|
4793
|
+
* Static version of the {@see toObject} method.
|
|
4794
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4795
|
+
* the JSPB instance for transitional soy proto support:
|
|
4796
|
+
* http://goto/soy-param-migration
|
|
4797
|
+
* @param {!proto.notification.SmsSendResponse} msg The msg instance to transform.
|
|
4798
|
+
* @return {!Object}
|
|
4799
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4800
|
+
*/
|
|
4801
|
+
proto.notification.SmsSendResponse.toObject = function(includeInstance, msg) {
|
|
4802
|
+
var f, obj = {
|
|
4803
|
+
ok: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
4804
|
+
status: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4805
|
+
provider: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
4806
|
+
providerMessageId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
4807
|
+
auditId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
4808
|
+
errorCode: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
4809
|
+
reason: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
4810
|
+
retryable: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
|
|
4811
|
+
permanent: jspb.Message.getBooleanFieldWithDefault(msg, 9, false)
|
|
4812
|
+
};
|
|
4813
|
+
|
|
4814
|
+
if (includeInstance) {
|
|
4815
|
+
obj.$jspbMessageInstance = msg;
|
|
4816
|
+
}
|
|
4817
|
+
return obj;
|
|
4818
|
+
};
|
|
4819
|
+
}
|
|
4820
|
+
|
|
4821
|
+
|
|
4822
|
+
/**
|
|
4823
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4824
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4825
|
+
* @return {!proto.notification.SmsSendResponse}
|
|
4826
|
+
*/
|
|
4827
|
+
proto.notification.SmsSendResponse.deserializeBinary = function(bytes) {
|
|
4828
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4829
|
+
var msg = new proto.notification.SmsSendResponse;
|
|
4830
|
+
return proto.notification.SmsSendResponse.deserializeBinaryFromReader(msg, reader);
|
|
4831
|
+
};
|
|
4832
|
+
|
|
4833
|
+
|
|
4834
|
+
/**
|
|
4835
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4836
|
+
* given reader into the given message object.
|
|
4837
|
+
* @param {!proto.notification.SmsSendResponse} msg The message object to deserialize into.
|
|
4838
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4839
|
+
* @return {!proto.notification.SmsSendResponse}
|
|
4840
|
+
*/
|
|
4841
|
+
proto.notification.SmsSendResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4842
|
+
while (reader.nextField()) {
|
|
4843
|
+
if (reader.isEndGroup()) {
|
|
4844
|
+
break;
|
|
4845
|
+
}
|
|
4846
|
+
var field = reader.getFieldNumber();
|
|
4847
|
+
switch (field) {
|
|
4848
|
+
case 1:
|
|
4849
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
4850
|
+
msg.setOk(value);
|
|
4851
|
+
break;
|
|
4852
|
+
case 2:
|
|
4853
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4854
|
+
msg.setStatus(value);
|
|
4855
|
+
break;
|
|
4856
|
+
case 3:
|
|
4857
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4858
|
+
msg.setProvider(value);
|
|
4859
|
+
break;
|
|
4860
|
+
case 4:
|
|
4861
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4862
|
+
msg.setProviderMessageId(value);
|
|
4863
|
+
break;
|
|
4864
|
+
case 5:
|
|
4865
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4866
|
+
msg.setAuditId(value);
|
|
4867
|
+
break;
|
|
4868
|
+
case 6:
|
|
4869
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4870
|
+
msg.setErrorCode(value);
|
|
4871
|
+
break;
|
|
4872
|
+
case 7:
|
|
4873
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4874
|
+
msg.setReason(value);
|
|
4875
|
+
break;
|
|
4876
|
+
case 8:
|
|
4877
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
4878
|
+
msg.setRetryable(value);
|
|
4879
|
+
break;
|
|
4880
|
+
case 9:
|
|
4881
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
4882
|
+
msg.setPermanent(value);
|
|
4883
|
+
break;
|
|
4884
|
+
default:
|
|
4885
|
+
reader.skipField();
|
|
4886
|
+
break;
|
|
4887
|
+
}
|
|
4888
|
+
}
|
|
4889
|
+
return msg;
|
|
4890
|
+
};
|
|
4891
|
+
|
|
4892
|
+
|
|
4893
|
+
/**
|
|
4894
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4895
|
+
* @return {!Uint8Array}
|
|
4896
|
+
*/
|
|
4897
|
+
proto.notification.SmsSendResponse.prototype.serializeBinary = function() {
|
|
4898
|
+
var writer = new jspb.BinaryWriter();
|
|
4899
|
+
proto.notification.SmsSendResponse.serializeBinaryToWriter(this, writer);
|
|
4900
|
+
return writer.getResultBuffer();
|
|
4901
|
+
};
|
|
4902
|
+
|
|
4903
|
+
|
|
4904
|
+
/**
|
|
4905
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4906
|
+
* format), writing to the given BinaryWriter.
|
|
4907
|
+
* @param {!proto.notification.SmsSendResponse} message
|
|
4908
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4909
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4910
|
+
*/
|
|
4911
|
+
proto.notification.SmsSendResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4912
|
+
var f = undefined;
|
|
4913
|
+
f = message.getOk();
|
|
4914
|
+
if (f) {
|
|
4915
|
+
writer.writeBool(
|
|
4916
|
+
1,
|
|
4917
|
+
f
|
|
4918
|
+
);
|
|
4919
|
+
}
|
|
4920
|
+
f = message.getStatus();
|
|
4921
|
+
if (f.length > 0) {
|
|
4922
|
+
writer.writeString(
|
|
4923
|
+
2,
|
|
4924
|
+
f
|
|
4925
|
+
);
|
|
4926
|
+
}
|
|
4927
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
4928
|
+
if (f != null) {
|
|
4929
|
+
writer.writeString(
|
|
4930
|
+
3,
|
|
4931
|
+
f
|
|
4932
|
+
);
|
|
4933
|
+
}
|
|
4934
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
4935
|
+
if (f != null) {
|
|
4936
|
+
writer.writeString(
|
|
4937
|
+
4,
|
|
4938
|
+
f
|
|
4939
|
+
);
|
|
4940
|
+
}
|
|
4941
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
4942
|
+
if (f != null) {
|
|
4943
|
+
writer.writeString(
|
|
4944
|
+
5,
|
|
4945
|
+
f
|
|
4946
|
+
);
|
|
4947
|
+
}
|
|
4948
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
4949
|
+
if (f != null) {
|
|
4950
|
+
writer.writeString(
|
|
4951
|
+
6,
|
|
4952
|
+
f
|
|
4953
|
+
);
|
|
4954
|
+
}
|
|
4955
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
4956
|
+
if (f != null) {
|
|
4957
|
+
writer.writeString(
|
|
4958
|
+
7,
|
|
4959
|
+
f
|
|
4960
|
+
);
|
|
4961
|
+
}
|
|
4962
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 8));
|
|
4963
|
+
if (f != null) {
|
|
4964
|
+
writer.writeBool(
|
|
4965
|
+
8,
|
|
4966
|
+
f
|
|
4967
|
+
);
|
|
4968
|
+
}
|
|
4969
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 9));
|
|
4970
|
+
if (f != null) {
|
|
4971
|
+
writer.writeBool(
|
|
4972
|
+
9,
|
|
4973
|
+
f
|
|
4974
|
+
);
|
|
4975
|
+
}
|
|
4976
|
+
};
|
|
4977
|
+
|
|
4978
|
+
|
|
4979
|
+
/**
|
|
4980
|
+
* optional bool ok = 1;
|
|
4981
|
+
* @return {boolean}
|
|
4982
|
+
*/
|
|
4983
|
+
proto.notification.SmsSendResponse.prototype.getOk = function() {
|
|
4984
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
4985
|
+
};
|
|
4986
|
+
|
|
4987
|
+
|
|
4988
|
+
/**
|
|
4989
|
+
* @param {boolean} value
|
|
4990
|
+
* @return {!proto.notification.SmsSendResponse} returns this
|
|
4991
|
+
*/
|
|
4992
|
+
proto.notification.SmsSendResponse.prototype.setOk = function(value) {
|
|
4993
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
4994
|
+
};
|
|
4995
|
+
|
|
4996
|
+
|
|
4997
|
+
/**
|
|
4998
|
+
* optional string status = 2;
|
|
4999
|
+
* @return {string}
|
|
5000
|
+
*/
|
|
5001
|
+
proto.notification.SmsSendResponse.prototype.getStatus = function() {
|
|
5002
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
5003
|
+
};
|
|
5004
|
+
|
|
5005
|
+
|
|
5006
|
+
/**
|
|
5007
|
+
* @param {string} value
|
|
5008
|
+
* @return {!proto.notification.SmsSendResponse} returns this
|
|
5009
|
+
*/
|
|
5010
|
+
proto.notification.SmsSendResponse.prototype.setStatus = function(value) {
|
|
5011
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
5012
|
+
};
|
|
5013
|
+
|
|
5014
|
+
|
|
5015
|
+
/**
|
|
5016
|
+
* optional string provider = 3;
|
|
5017
|
+
* @return {string}
|
|
5018
|
+
*/
|
|
5019
|
+
proto.notification.SmsSendResponse.prototype.getProvider = function() {
|
|
5020
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
5021
|
+
};
|
|
5022
|
+
|
|
5023
|
+
|
|
5024
|
+
/**
|
|
5025
|
+
* @param {string} value
|
|
5026
|
+
* @return {!proto.notification.SmsSendResponse} returns this
|
|
5027
|
+
*/
|
|
5028
|
+
proto.notification.SmsSendResponse.prototype.setProvider = function(value) {
|
|
5029
|
+
return jspb.Message.setField(this, 3, value);
|
|
5030
|
+
};
|
|
5031
|
+
|
|
5032
|
+
|
|
5033
|
+
/**
|
|
5034
|
+
* Clears the field making it undefined.
|
|
5035
|
+
* @return {!proto.notification.SmsSendResponse} returns this
|
|
5036
|
+
*/
|
|
5037
|
+
proto.notification.SmsSendResponse.prototype.clearProvider = function() {
|
|
5038
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
5039
|
+
};
|
|
5040
|
+
|
|
5041
|
+
|
|
5042
|
+
/**
|
|
5043
|
+
* Returns whether this field is set.
|
|
5044
|
+
* @return {boolean}
|
|
5045
|
+
*/
|
|
5046
|
+
proto.notification.SmsSendResponse.prototype.hasProvider = function() {
|
|
5047
|
+
return jspb.Message.getField(this, 3) != null;
|
|
5048
|
+
};
|
|
5049
|
+
|
|
5050
|
+
|
|
5051
|
+
/**
|
|
5052
|
+
* optional string provider_message_id = 4;
|
|
5053
|
+
* @return {string}
|
|
5054
|
+
*/
|
|
5055
|
+
proto.notification.SmsSendResponse.prototype.getProviderMessageId = function() {
|
|
5056
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
5057
|
+
};
|
|
5058
|
+
|
|
5059
|
+
|
|
5060
|
+
/**
|
|
5061
|
+
* @param {string} value
|
|
5062
|
+
* @return {!proto.notification.SmsSendResponse} returns this
|
|
5063
|
+
*/
|
|
5064
|
+
proto.notification.SmsSendResponse.prototype.setProviderMessageId = function(value) {
|
|
5065
|
+
return jspb.Message.setField(this, 4, value);
|
|
5066
|
+
};
|
|
5067
|
+
|
|
5068
|
+
|
|
5069
|
+
/**
|
|
5070
|
+
* Clears the field making it undefined.
|
|
5071
|
+
* @return {!proto.notification.SmsSendResponse} returns this
|
|
5072
|
+
*/
|
|
5073
|
+
proto.notification.SmsSendResponse.prototype.clearProviderMessageId = function() {
|
|
5074
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
5075
|
+
};
|
|
5076
|
+
|
|
5077
|
+
|
|
5078
|
+
/**
|
|
5079
|
+
* Returns whether this field is set.
|
|
5080
|
+
* @return {boolean}
|
|
5081
|
+
*/
|
|
5082
|
+
proto.notification.SmsSendResponse.prototype.hasProviderMessageId = function() {
|
|
5083
|
+
return jspb.Message.getField(this, 4) != null;
|
|
5084
|
+
};
|
|
5085
|
+
|
|
5086
|
+
|
|
5087
|
+
/**
|
|
5088
|
+
* optional string audit_id = 5;
|
|
5089
|
+
* @return {string}
|
|
5090
|
+
*/
|
|
5091
|
+
proto.notification.SmsSendResponse.prototype.getAuditId = function() {
|
|
5092
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
5093
|
+
};
|
|
5094
|
+
|
|
5095
|
+
|
|
5096
|
+
/**
|
|
5097
|
+
* @param {string} value
|
|
5098
|
+
* @return {!proto.notification.SmsSendResponse} returns this
|
|
5099
|
+
*/
|
|
5100
|
+
proto.notification.SmsSendResponse.prototype.setAuditId = function(value) {
|
|
5101
|
+
return jspb.Message.setField(this, 5, value);
|
|
5102
|
+
};
|
|
5103
|
+
|
|
5104
|
+
|
|
5105
|
+
/**
|
|
5106
|
+
* Clears the field making it undefined.
|
|
5107
|
+
* @return {!proto.notification.SmsSendResponse} returns this
|
|
5108
|
+
*/
|
|
5109
|
+
proto.notification.SmsSendResponse.prototype.clearAuditId = function() {
|
|
5110
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
5111
|
+
};
|
|
5112
|
+
|
|
5113
|
+
|
|
5114
|
+
/**
|
|
5115
|
+
* Returns whether this field is set.
|
|
5116
|
+
* @return {boolean}
|
|
5117
|
+
*/
|
|
5118
|
+
proto.notification.SmsSendResponse.prototype.hasAuditId = function() {
|
|
5119
|
+
return jspb.Message.getField(this, 5) != null;
|
|
5120
|
+
};
|
|
5121
|
+
|
|
5122
|
+
|
|
5123
|
+
/**
|
|
5124
|
+
* optional string error_code = 6;
|
|
5125
|
+
* @return {string}
|
|
5126
|
+
*/
|
|
5127
|
+
proto.notification.SmsSendResponse.prototype.getErrorCode = function() {
|
|
5128
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
5129
|
+
};
|
|
5130
|
+
|
|
5131
|
+
|
|
5132
|
+
/**
|
|
5133
|
+
* @param {string} value
|
|
5134
|
+
* @return {!proto.notification.SmsSendResponse} returns this
|
|
5135
|
+
*/
|
|
5136
|
+
proto.notification.SmsSendResponse.prototype.setErrorCode = function(value) {
|
|
5137
|
+
return jspb.Message.setField(this, 6, value);
|
|
5138
|
+
};
|
|
5139
|
+
|
|
5140
|
+
|
|
5141
|
+
/**
|
|
5142
|
+
* Clears the field making it undefined.
|
|
5143
|
+
* @return {!proto.notification.SmsSendResponse} returns this
|
|
5144
|
+
*/
|
|
5145
|
+
proto.notification.SmsSendResponse.prototype.clearErrorCode = function() {
|
|
5146
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
5147
|
+
};
|
|
5148
|
+
|
|
5149
|
+
|
|
5150
|
+
/**
|
|
5151
|
+
* Returns whether this field is set.
|
|
5152
|
+
* @return {boolean}
|
|
5153
|
+
*/
|
|
5154
|
+
proto.notification.SmsSendResponse.prototype.hasErrorCode = function() {
|
|
5155
|
+
return jspb.Message.getField(this, 6) != null;
|
|
5156
|
+
};
|
|
5157
|
+
|
|
5158
|
+
|
|
5159
|
+
/**
|
|
5160
|
+
* optional string reason = 7;
|
|
5161
|
+
* @return {string}
|
|
5162
|
+
*/
|
|
5163
|
+
proto.notification.SmsSendResponse.prototype.getReason = function() {
|
|
5164
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
5165
|
+
};
|
|
5166
|
+
|
|
5167
|
+
|
|
5168
|
+
/**
|
|
5169
|
+
* @param {string} value
|
|
5170
|
+
* @return {!proto.notification.SmsSendResponse} returns this
|
|
5171
|
+
*/
|
|
5172
|
+
proto.notification.SmsSendResponse.prototype.setReason = function(value) {
|
|
5173
|
+
return jspb.Message.setField(this, 7, value);
|
|
5174
|
+
};
|
|
5175
|
+
|
|
5176
|
+
|
|
5177
|
+
/**
|
|
5178
|
+
* Clears the field making it undefined.
|
|
5179
|
+
* @return {!proto.notification.SmsSendResponse} returns this
|
|
5180
|
+
*/
|
|
5181
|
+
proto.notification.SmsSendResponse.prototype.clearReason = function() {
|
|
5182
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
5183
|
+
};
|
|
5184
|
+
|
|
5185
|
+
|
|
5186
|
+
/**
|
|
5187
|
+
* Returns whether this field is set.
|
|
5188
|
+
* @return {boolean}
|
|
5189
|
+
*/
|
|
5190
|
+
proto.notification.SmsSendResponse.prototype.hasReason = function() {
|
|
5191
|
+
return jspb.Message.getField(this, 7) != null;
|
|
5192
|
+
};
|
|
5193
|
+
|
|
5194
|
+
|
|
5195
|
+
/**
|
|
5196
|
+
* optional bool retryable = 8;
|
|
5197
|
+
* @return {boolean}
|
|
5198
|
+
*/
|
|
5199
|
+
proto.notification.SmsSendResponse.prototype.getRetryable = function() {
|
|
5200
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
|
|
5201
|
+
};
|
|
5202
|
+
|
|
5203
|
+
|
|
5204
|
+
/**
|
|
5205
|
+
* @param {boolean} value
|
|
5206
|
+
* @return {!proto.notification.SmsSendResponse} returns this
|
|
5207
|
+
*/
|
|
5208
|
+
proto.notification.SmsSendResponse.prototype.setRetryable = function(value) {
|
|
5209
|
+
return jspb.Message.setField(this, 8, value);
|
|
5210
|
+
};
|
|
5211
|
+
|
|
5212
|
+
|
|
5213
|
+
/**
|
|
5214
|
+
* Clears the field making it undefined.
|
|
5215
|
+
* @return {!proto.notification.SmsSendResponse} returns this
|
|
5216
|
+
*/
|
|
5217
|
+
proto.notification.SmsSendResponse.prototype.clearRetryable = function() {
|
|
5218
|
+
return jspb.Message.setField(this, 8, undefined);
|
|
5219
|
+
};
|
|
5220
|
+
|
|
5221
|
+
|
|
5222
|
+
/**
|
|
5223
|
+
* Returns whether this field is set.
|
|
5224
|
+
* @return {boolean}
|
|
5225
|
+
*/
|
|
5226
|
+
proto.notification.SmsSendResponse.prototype.hasRetryable = function() {
|
|
5227
|
+
return jspb.Message.getField(this, 8) != null;
|
|
5228
|
+
};
|
|
5229
|
+
|
|
5230
|
+
|
|
5231
|
+
/**
|
|
5232
|
+
* optional bool permanent = 9;
|
|
5233
|
+
* @return {boolean}
|
|
5234
|
+
*/
|
|
5235
|
+
proto.notification.SmsSendResponse.prototype.getPermanent = function() {
|
|
5236
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
|
|
5237
|
+
};
|
|
5238
|
+
|
|
5239
|
+
|
|
5240
|
+
/**
|
|
5241
|
+
* @param {boolean} value
|
|
5242
|
+
* @return {!proto.notification.SmsSendResponse} returns this
|
|
5243
|
+
*/
|
|
5244
|
+
proto.notification.SmsSendResponse.prototype.setPermanent = function(value) {
|
|
5245
|
+
return jspb.Message.setField(this, 9, value);
|
|
5246
|
+
};
|
|
5247
|
+
|
|
5248
|
+
|
|
5249
|
+
/**
|
|
5250
|
+
* Clears the field making it undefined.
|
|
5251
|
+
* @return {!proto.notification.SmsSendResponse} returns this
|
|
5252
|
+
*/
|
|
5253
|
+
proto.notification.SmsSendResponse.prototype.clearPermanent = function() {
|
|
5254
|
+
return jspb.Message.setField(this, 9, undefined);
|
|
5255
|
+
};
|
|
5256
|
+
|
|
5257
|
+
|
|
5258
|
+
/**
|
|
5259
|
+
* Returns whether this field is set.
|
|
5260
|
+
* @return {boolean}
|
|
5261
|
+
*/
|
|
5262
|
+
proto.notification.SmsSendResponse.prototype.hasPermanent = function() {
|
|
5263
|
+
return jspb.Message.getField(this, 9) != null;
|
|
5264
|
+
};
|
|
5265
|
+
|
|
5266
|
+
|
|
5267
|
+
|
|
5268
|
+
|
|
5269
|
+
|
|
4330
5270
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4331
5271
|
/**
|
|
4332
5272
|
* Creates an object representation of this proto.
|