@sniipwebmaster/email-import-service-client-grpcweb 22.2.2572 → 22.3.2591

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.
@@ -74,6 +74,86 @@ proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient =
74
74
  };
75
75
 
76
76
 
77
+ /**
78
+ * @const
79
+ * @type {!grpc.web.MethodDescriptor<
80
+ * !proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest,
81
+ * !proto.sniipemailimportapi.EmailMessagesResponse>}
82
+ */
83
+ const methodDescriptor_SniipEmailImportAPIService_AddOrUpdateEmailMessages = new grpc.web.MethodDescriptor(
84
+ '/sniipemailimportapi.SniipEmailImportAPIService/AddOrUpdateEmailMessages',
85
+ grpc.web.MethodType.UNARY,
86
+ proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest,
87
+ proto.sniipemailimportapi.EmailMessagesResponse,
88
+ /**
89
+ * @param {!proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest} request
90
+ * @return {!Uint8Array}
91
+ */
92
+ function(request) {
93
+ return request.serializeBinary();
94
+ },
95
+ proto.sniipemailimportapi.EmailMessagesResponse.deserializeBinary
96
+ );
97
+
98
+
99
+ /**
100
+ * @const
101
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
102
+ * !proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest,
103
+ * !proto.sniipemailimportapi.EmailMessagesResponse>}
104
+ */
105
+ const methodInfo_SniipEmailImportAPIService_AddOrUpdateEmailMessages = new grpc.web.AbstractClientBase.MethodInfo(
106
+ proto.sniipemailimportapi.EmailMessagesResponse,
107
+ /**
108
+ * @param {!proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest} request
109
+ * @return {!Uint8Array}
110
+ */
111
+ function(request) {
112
+ return request.serializeBinary();
113
+ },
114
+ proto.sniipemailimportapi.EmailMessagesResponse.deserializeBinary
115
+ );
116
+
117
+
118
+ /**
119
+ * @param {!proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest} request The
120
+ * request proto
121
+ * @param {?Object<string, string>} metadata User defined
122
+ * call metadata
123
+ * @param {function(?grpc.web.Error, ?proto.sniipemailimportapi.EmailMessagesResponse)}
124
+ * callback The callback function(error, response)
125
+ * @return {!grpc.web.ClientReadableStream<!proto.sniipemailimportapi.EmailMessagesResponse>|undefined}
126
+ * The XHR Node Readable Stream
127
+ */
128
+ proto.sniipemailimportapi.SniipEmailImportAPIServiceClient.prototype.addOrUpdateEmailMessages =
129
+ function(request, metadata, callback) {
130
+ return this.client_.rpcCall(this.hostname_ +
131
+ '/sniipemailimportapi.SniipEmailImportAPIService/AddOrUpdateEmailMessages',
132
+ request,
133
+ metadata || {},
134
+ methodDescriptor_SniipEmailImportAPIService_AddOrUpdateEmailMessages,
135
+ callback);
136
+ };
137
+
138
+
139
+ /**
140
+ * @param {!proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest} request The
141
+ * request proto
142
+ * @param {?Object<string, string>} metadata User defined
143
+ * call metadata
144
+ * @return {!Promise<!proto.sniipemailimportapi.EmailMessagesResponse>}
145
+ * Promise that resolves to the response
146
+ */
147
+ proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient.prototype.addOrUpdateEmailMessages =
148
+ function(request, metadata) {
149
+ return this.client_.unaryCall(this.hostname_ +
150
+ '/sniipemailimportapi.SniipEmailImportAPIService/AddOrUpdateEmailMessages',
151
+ request,
152
+ metadata || {},
153
+ methodDescriptor_SniipEmailImportAPIService_AddOrUpdateEmailMessages);
154
+ };
155
+
156
+
77
157
  /**
78
158
  * @const
79
159
  * @type {!grpc.web.MethodDescriptor<
@@ -11,11 +11,15 @@ var global = Function('return this')();
11
11
 
12
12
  var google_api_annotations_pb = require('./google/api/annotations_pb.js');
13
13
  var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
14
+ goog.exportSymbol('proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest', null, global);
14
15
  goog.exportSymbol('proto.sniipemailimportapi.AuthRequest', null, global);
15
16
  goog.exportSymbol('proto.sniipemailimportapi.AuthResponse', null, global);
16
17
  goog.exportSymbol('proto.sniipemailimportapi.AutomaticSyncRequest', null, global);
17
18
  goog.exportSymbol('proto.sniipemailimportapi.ConnectedEmail', null, global);
18
19
  goog.exportSymbol('proto.sniipemailimportapi.DisableTokenRequest', null, global);
20
+ goog.exportSymbol('proto.sniipemailimportapi.EmailMessage', null, global);
21
+ goog.exportSymbol('proto.sniipemailimportapi.EmailMessagesRequest', null, global);
22
+ goog.exportSymbol('proto.sniipemailimportapi.EmailMessagesResponse', null, global);
19
23
  goog.exportSymbol('proto.sniipemailimportapi.EmailProviders', null, global);
20
24
  goog.exportSymbol('proto.sniipemailimportapi.GetConnectedEmailsResponse', null, global);
21
25
  goog.exportSymbol('proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest', null, global);
@@ -37,6 +41,182 @@ goog.exportSymbol('proto.sniipemailimportapi.TokenRefreshRequest', null, global)
37
41
  goog.exportSymbol('proto.sniipemailimportapi.TokenRefreshResponse', null, global);
38
42
  goog.exportSymbol('proto.sniipemailimportapi.UpdateAutomaticSyncRequest', null, global);
39
43
 
44
+ /**
45
+ * Generated by JsPbCodeGenerator.
46
+ * @param {Array=} opt_data Optional initial data array, typically from a
47
+ * server response, or constructed directly in Javascript. The array is used
48
+ * in place and becomes part of the constructed object. It is not cloned.
49
+ * If no data is provided, the constructed object will be empty, but still
50
+ * valid.
51
+ * @extends {jspb.Message}
52
+ * @constructor
53
+ */
54
+ proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest = function(opt_data) {
55
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
56
+ };
57
+ goog.inherits(proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest, jspb.Message);
58
+ if (goog.DEBUG && !COMPILED) {
59
+ proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.displayName = 'proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest';
60
+ }
61
+
62
+
63
+ if (jspb.Message.GENERATE_TO_OBJECT) {
64
+ /**
65
+ * Creates an object representation of this proto suitable for use in Soy templates.
66
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
67
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
68
+ * For the list of reserved names please see:
69
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
70
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
71
+ * for transitional soy proto support: http://goto/soy-param-migration
72
+ * @return {!Object}
73
+ */
74
+ proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.prototype.toObject = function(opt_includeInstance) {
75
+ return proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.toObject(opt_includeInstance, this);
76
+ };
77
+
78
+
79
+ /**
80
+ * Static version of the {@see toObject} method.
81
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
82
+ * instance for transitional soy proto support:
83
+ * http://goto/soy-param-migration
84
+ * @param {!proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest} msg The msg instance to transform.
85
+ * @return {!Object}
86
+ */
87
+ proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.toObject = function(includeInstance, msg) {
88
+ var f, obj = {
89
+ data: (f = msg.getData()) && proto.sniipemailimportapi.EmailMessagesRequest.toObject(includeInstance, f)
90
+ };
91
+
92
+ if (includeInstance) {
93
+ obj.$jspbMessageInstance = msg;
94
+ }
95
+ return obj;
96
+ };
97
+ }
98
+
99
+
100
+ /**
101
+ * Deserializes binary data (in protobuf wire format).
102
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
103
+ * @return {!proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest}
104
+ */
105
+ proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.deserializeBinary = function(bytes) {
106
+ var reader = new jspb.BinaryReader(bytes);
107
+ var msg = new proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest;
108
+ return proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.deserializeBinaryFromReader(msg, reader);
109
+ };
110
+
111
+
112
+ /**
113
+ * Deserializes binary data (in protobuf wire format) from the
114
+ * given reader into the given message object.
115
+ * @param {!proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest} msg The message object to deserialize into.
116
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
117
+ * @return {!proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest}
118
+ */
119
+ proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.deserializeBinaryFromReader = function(msg, reader) {
120
+ while (reader.nextField()) {
121
+ if (reader.isEndGroup()) {
122
+ break;
123
+ }
124
+ var field = reader.getFieldNumber();
125
+ switch (field) {
126
+ case 1:
127
+ var value = new proto.sniipemailimportapi.EmailMessagesRequest;
128
+ reader.readMessage(value,proto.sniipemailimportapi.EmailMessagesRequest.deserializeBinaryFromReader);
129
+ msg.setData(value);
130
+ break;
131
+ default:
132
+ reader.skipField();
133
+ break;
134
+ }
135
+ }
136
+ return msg;
137
+ };
138
+
139
+
140
+ /**
141
+ * Class method variant: serializes the given message to binary data
142
+ * (in protobuf wire format), writing to the given BinaryWriter.
143
+ * @param {!proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest} message
144
+ * @param {!jspb.BinaryWriter} writer
145
+ */
146
+ proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.serializeBinaryToWriter = function(message, writer) {
147
+ message.serializeBinaryToWriter(writer);
148
+ };
149
+
150
+
151
+ /**
152
+ * Serializes the message to binary data (in protobuf wire format).
153
+ * @return {!Uint8Array}
154
+ */
155
+ proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.prototype.serializeBinary = function() {
156
+ var writer = new jspb.BinaryWriter();
157
+ this.serializeBinaryToWriter(writer);
158
+ return writer.getResultBuffer();
159
+ };
160
+
161
+
162
+ /**
163
+ * Serializes the message to binary data (in protobuf wire format),
164
+ * writing to the given BinaryWriter.
165
+ * @param {!jspb.BinaryWriter} writer
166
+ */
167
+ proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.prototype.serializeBinaryToWriter = function (writer) {
168
+ var f = undefined;
169
+ f = this.getData();
170
+ if (f != null) {
171
+ writer.writeMessage(
172
+ 1,
173
+ f,
174
+ proto.sniipemailimportapi.EmailMessagesRequest.serializeBinaryToWriter
175
+ );
176
+ }
177
+ };
178
+
179
+
180
+ /**
181
+ * Creates a deep clone of this proto. No data is shared with the original.
182
+ * @return {!proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest} The clone.
183
+ */
184
+ proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.prototype.cloneMessage = function() {
185
+ return /** @type {!proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest} */ (jspb.Message.cloneMessage(this));
186
+ };
187
+
188
+
189
+ /**
190
+ * optional EmailMessagesRequest data = 1;
191
+ * @return {proto.sniipemailimportapi.EmailMessagesRequest}
192
+ */
193
+ proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.prototype.getData = function() {
194
+ return /** @type{proto.sniipemailimportapi.EmailMessagesRequest} */ (
195
+ jspb.Message.getWrapperField(this, proto.sniipemailimportapi.EmailMessagesRequest, 1));
196
+ };
197
+
198
+
199
+ /** @param {proto.sniipemailimportapi.EmailMessagesRequest|undefined} value */
200
+ proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.prototype.setData = function(value) {
201
+ jspb.Message.setWrapperField(this, 1, value);
202
+ };
203
+
204
+
205
+ proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.prototype.clearData = function() {
206
+ this.setData(undefined);
207
+ };
208
+
209
+
210
+ /**
211
+ * Returns whether this field is set.
212
+ * @return{!boolean}
213
+ */
214
+ proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.prototype.hasData = function() {
215
+ return jspb.Message.getField(this, 1) != null;
216
+ };
217
+
218
+
219
+
40
220
  /**
41
221
  * Generated by JsPbCodeGenerator.
42
222
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1183,6 +1363,816 @@ proto.sniipemailimportapi.DisableTokenRequest.prototype.setTokenid = function(va
1183
1363
 
1184
1364
 
1185
1365
 
1366
+ /**
1367
+ * Generated by JsPbCodeGenerator.
1368
+ * @param {Array=} opt_data Optional initial data array, typically from a
1369
+ * server response, or constructed directly in Javascript. The array is used
1370
+ * in place and becomes part of the constructed object. It is not cloned.
1371
+ * If no data is provided, the constructed object will be empty, but still
1372
+ * valid.
1373
+ * @extends {jspb.Message}
1374
+ * @constructor
1375
+ */
1376
+ proto.sniipemailimportapi.EmailMessage = function(opt_data) {
1377
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1378
+ };
1379
+ goog.inherits(proto.sniipemailimportapi.EmailMessage, jspb.Message);
1380
+ if (goog.DEBUG && !COMPILED) {
1381
+ proto.sniipemailimportapi.EmailMessage.displayName = 'proto.sniipemailimportapi.EmailMessage';
1382
+ }
1383
+
1384
+
1385
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1386
+ /**
1387
+ * Creates an object representation of this proto suitable for use in Soy templates.
1388
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1389
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1390
+ * For the list of reserved names please see:
1391
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1392
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1393
+ * for transitional soy proto support: http://goto/soy-param-migration
1394
+ * @return {!Object}
1395
+ */
1396
+ proto.sniipemailimportapi.EmailMessage.prototype.toObject = function(opt_includeInstance) {
1397
+ return proto.sniipemailimportapi.EmailMessage.toObject(opt_includeInstance, this);
1398
+ };
1399
+
1400
+
1401
+ /**
1402
+ * Static version of the {@see toObject} method.
1403
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
1404
+ * instance for transitional soy proto support:
1405
+ * http://goto/soy-param-migration
1406
+ * @param {!proto.sniipemailimportapi.EmailMessage} msg The msg instance to transform.
1407
+ * @return {!Object}
1408
+ */
1409
+ proto.sniipemailimportapi.EmailMessage.toObject = function(includeInstance, msg) {
1410
+ var f, obj = {
1411
+ emailmessageid: msg.getEmailmessageid(),
1412
+ emailsyncrequestid: msg.getEmailsyncrequestid(),
1413
+ externalemailmessageid: msg.getExternalemailmessageid(),
1414
+ provider: msg.getProvider(),
1415
+ hasattachment: msg.getHasattachment(),
1416
+ haslinkintext: msg.getHaslinkintext(),
1417
+ haskeywordsintext: msg.getHaskeywordsintext(),
1418
+ haskeywordsinattachment: msg.getHaskeywordsinattachment(),
1419
+ importedbillid: msg.getImportedbillid(),
1420
+ importfailurereason: msg.getImportfailurereason()
1421
+ };
1422
+
1423
+ if (includeInstance) {
1424
+ obj.$jspbMessageInstance = msg;
1425
+ }
1426
+ return obj;
1427
+ };
1428
+ }
1429
+
1430
+
1431
+ /**
1432
+ * Deserializes binary data (in protobuf wire format).
1433
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1434
+ * @return {!proto.sniipemailimportapi.EmailMessage}
1435
+ */
1436
+ proto.sniipemailimportapi.EmailMessage.deserializeBinary = function(bytes) {
1437
+ var reader = new jspb.BinaryReader(bytes);
1438
+ var msg = new proto.sniipemailimportapi.EmailMessage;
1439
+ return proto.sniipemailimportapi.EmailMessage.deserializeBinaryFromReader(msg, reader);
1440
+ };
1441
+
1442
+
1443
+ /**
1444
+ * Deserializes binary data (in protobuf wire format) from the
1445
+ * given reader into the given message object.
1446
+ * @param {!proto.sniipemailimportapi.EmailMessage} msg The message object to deserialize into.
1447
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1448
+ * @return {!proto.sniipemailimportapi.EmailMessage}
1449
+ */
1450
+ proto.sniipemailimportapi.EmailMessage.deserializeBinaryFromReader = function(msg, reader) {
1451
+ while (reader.nextField()) {
1452
+ if (reader.isEndGroup()) {
1453
+ break;
1454
+ }
1455
+ var field = reader.getFieldNumber();
1456
+ switch (field) {
1457
+ case 1:
1458
+ var value = /** @type {number} */ (reader.readInt64());
1459
+ msg.setEmailmessageid(value);
1460
+ break;
1461
+ case 2:
1462
+ var value = /** @type {number} */ (reader.readInt64());
1463
+ msg.setEmailsyncrequestid(value);
1464
+ break;
1465
+ case 3:
1466
+ var value = /** @type {string} */ (reader.readString());
1467
+ msg.setExternalemailmessageid(value);
1468
+ break;
1469
+ case 4:
1470
+ var value = /** @type {string} */ (reader.readString());
1471
+ msg.setProvider(value);
1472
+ break;
1473
+ case 5:
1474
+ var value = /** @type {boolean} */ (reader.readBool());
1475
+ msg.setHasattachment(value);
1476
+ break;
1477
+ case 6:
1478
+ var value = /** @type {boolean} */ (reader.readBool());
1479
+ msg.setHaslinkintext(value);
1480
+ break;
1481
+ case 7:
1482
+ var value = /** @type {boolean} */ (reader.readBool());
1483
+ msg.setHaskeywordsintext(value);
1484
+ break;
1485
+ case 8:
1486
+ var value = /** @type {boolean} */ (reader.readBool());
1487
+ msg.setHaskeywordsinattachment(value);
1488
+ break;
1489
+ case 9:
1490
+ var value = /** @type {number} */ (reader.readInt64());
1491
+ msg.setImportedbillid(value);
1492
+ break;
1493
+ case 10:
1494
+ var value = /** @type {string} */ (reader.readString());
1495
+ msg.setImportfailurereason(value);
1496
+ break;
1497
+ default:
1498
+ reader.skipField();
1499
+ break;
1500
+ }
1501
+ }
1502
+ return msg;
1503
+ };
1504
+
1505
+
1506
+ /**
1507
+ * Class method variant: serializes the given message to binary data
1508
+ * (in protobuf wire format), writing to the given BinaryWriter.
1509
+ * @param {!proto.sniipemailimportapi.EmailMessage} message
1510
+ * @param {!jspb.BinaryWriter} writer
1511
+ */
1512
+ proto.sniipemailimportapi.EmailMessage.serializeBinaryToWriter = function(message, writer) {
1513
+ message.serializeBinaryToWriter(writer);
1514
+ };
1515
+
1516
+
1517
+ /**
1518
+ * Serializes the message to binary data (in protobuf wire format).
1519
+ * @return {!Uint8Array}
1520
+ */
1521
+ proto.sniipemailimportapi.EmailMessage.prototype.serializeBinary = function() {
1522
+ var writer = new jspb.BinaryWriter();
1523
+ this.serializeBinaryToWriter(writer);
1524
+ return writer.getResultBuffer();
1525
+ };
1526
+
1527
+
1528
+ /**
1529
+ * Serializes the message to binary data (in protobuf wire format),
1530
+ * writing to the given BinaryWriter.
1531
+ * @param {!jspb.BinaryWriter} writer
1532
+ */
1533
+ proto.sniipemailimportapi.EmailMessage.prototype.serializeBinaryToWriter = function (writer) {
1534
+ var f = undefined;
1535
+ f = this.getEmailmessageid();
1536
+ if (f !== 0) {
1537
+ writer.writeInt64(
1538
+ 1,
1539
+ f
1540
+ );
1541
+ }
1542
+ f = this.getEmailsyncrequestid();
1543
+ if (f !== 0) {
1544
+ writer.writeInt64(
1545
+ 2,
1546
+ f
1547
+ );
1548
+ }
1549
+ f = this.getExternalemailmessageid();
1550
+ if (f.length > 0) {
1551
+ writer.writeString(
1552
+ 3,
1553
+ f
1554
+ );
1555
+ }
1556
+ f = this.getProvider();
1557
+ if (f.length > 0) {
1558
+ writer.writeString(
1559
+ 4,
1560
+ f
1561
+ );
1562
+ }
1563
+ f = this.getHasattachment();
1564
+ if (f) {
1565
+ writer.writeBool(
1566
+ 5,
1567
+ f
1568
+ );
1569
+ }
1570
+ f = this.getHaslinkintext();
1571
+ if (f) {
1572
+ writer.writeBool(
1573
+ 6,
1574
+ f
1575
+ );
1576
+ }
1577
+ f = this.getHaskeywordsintext();
1578
+ if (f) {
1579
+ writer.writeBool(
1580
+ 7,
1581
+ f
1582
+ );
1583
+ }
1584
+ f = this.getHaskeywordsinattachment();
1585
+ if (f) {
1586
+ writer.writeBool(
1587
+ 8,
1588
+ f
1589
+ );
1590
+ }
1591
+ f = this.getImportedbillid();
1592
+ if (f !== 0) {
1593
+ writer.writeInt64(
1594
+ 9,
1595
+ f
1596
+ );
1597
+ }
1598
+ f = this.getImportfailurereason();
1599
+ if (f.length > 0) {
1600
+ writer.writeString(
1601
+ 10,
1602
+ f
1603
+ );
1604
+ }
1605
+ };
1606
+
1607
+
1608
+ /**
1609
+ * Creates a deep clone of this proto. No data is shared with the original.
1610
+ * @return {!proto.sniipemailimportapi.EmailMessage} The clone.
1611
+ */
1612
+ proto.sniipemailimportapi.EmailMessage.prototype.cloneMessage = function() {
1613
+ return /** @type {!proto.sniipemailimportapi.EmailMessage} */ (jspb.Message.cloneMessage(this));
1614
+ };
1615
+
1616
+
1617
+ /**
1618
+ * optional int64 emailMessageId = 1;
1619
+ * @return {number}
1620
+ */
1621
+ proto.sniipemailimportapi.EmailMessage.prototype.getEmailmessageid = function() {
1622
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
1623
+ };
1624
+
1625
+
1626
+ /** @param {number} value */
1627
+ proto.sniipemailimportapi.EmailMessage.prototype.setEmailmessageid = function(value) {
1628
+ jspb.Message.setField(this, 1, value);
1629
+ };
1630
+
1631
+
1632
+ /**
1633
+ * optional int64 emailSyncRequestId = 2;
1634
+ * @return {number}
1635
+ */
1636
+ proto.sniipemailimportapi.EmailMessage.prototype.getEmailsyncrequestid = function() {
1637
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
1638
+ };
1639
+
1640
+
1641
+ /** @param {number} value */
1642
+ proto.sniipemailimportapi.EmailMessage.prototype.setEmailsyncrequestid = function(value) {
1643
+ jspb.Message.setField(this, 2, value);
1644
+ };
1645
+
1646
+
1647
+ /**
1648
+ * optional string externalEmailMessageId = 3;
1649
+ * @return {string}
1650
+ */
1651
+ proto.sniipemailimportapi.EmailMessage.prototype.getExternalemailmessageid = function() {
1652
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
1653
+ };
1654
+
1655
+
1656
+ /** @param {string} value */
1657
+ proto.sniipemailimportapi.EmailMessage.prototype.setExternalemailmessageid = function(value) {
1658
+ jspb.Message.setField(this, 3, value);
1659
+ };
1660
+
1661
+
1662
+ /**
1663
+ * optional string provider = 4;
1664
+ * @return {string}
1665
+ */
1666
+ proto.sniipemailimportapi.EmailMessage.prototype.getProvider = function() {
1667
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 4, ""));
1668
+ };
1669
+
1670
+
1671
+ /** @param {string} value */
1672
+ proto.sniipemailimportapi.EmailMessage.prototype.setProvider = function(value) {
1673
+ jspb.Message.setField(this, 4, value);
1674
+ };
1675
+
1676
+
1677
+ /**
1678
+ * optional bool hasAttachment = 5;
1679
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
1680
+ * You should avoid comparisons like {@code val === true/false} in those cases.
1681
+ * @return {boolean}
1682
+ */
1683
+ proto.sniipemailimportapi.EmailMessage.prototype.getHasattachment = function() {
1684
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 5, false));
1685
+ };
1686
+
1687
+
1688
+ /** @param {boolean} value */
1689
+ proto.sniipemailimportapi.EmailMessage.prototype.setHasattachment = function(value) {
1690
+ jspb.Message.setField(this, 5, value);
1691
+ };
1692
+
1693
+
1694
+ /**
1695
+ * optional bool hasLinkInText = 6;
1696
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
1697
+ * You should avoid comparisons like {@code val === true/false} in those cases.
1698
+ * @return {boolean}
1699
+ */
1700
+ proto.sniipemailimportapi.EmailMessage.prototype.getHaslinkintext = function() {
1701
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 6, false));
1702
+ };
1703
+
1704
+
1705
+ /** @param {boolean} value */
1706
+ proto.sniipemailimportapi.EmailMessage.prototype.setHaslinkintext = function(value) {
1707
+ jspb.Message.setField(this, 6, value);
1708
+ };
1709
+
1710
+
1711
+ /**
1712
+ * optional bool hasKeyWordsInText = 7;
1713
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
1714
+ * You should avoid comparisons like {@code val === true/false} in those cases.
1715
+ * @return {boolean}
1716
+ */
1717
+ proto.sniipemailimportapi.EmailMessage.prototype.getHaskeywordsintext = function() {
1718
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 7, false));
1719
+ };
1720
+
1721
+
1722
+ /** @param {boolean} value */
1723
+ proto.sniipemailimportapi.EmailMessage.prototype.setHaskeywordsintext = function(value) {
1724
+ jspb.Message.setField(this, 7, value);
1725
+ };
1726
+
1727
+
1728
+ /**
1729
+ * optional bool hasKeyWordsInAttachment = 8;
1730
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
1731
+ * You should avoid comparisons like {@code val === true/false} in those cases.
1732
+ * @return {boolean}
1733
+ */
1734
+ proto.sniipemailimportapi.EmailMessage.prototype.getHaskeywordsinattachment = function() {
1735
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 8, false));
1736
+ };
1737
+
1738
+
1739
+ /** @param {boolean} value */
1740
+ proto.sniipemailimportapi.EmailMessage.prototype.setHaskeywordsinattachment = function(value) {
1741
+ jspb.Message.setField(this, 8, value);
1742
+ };
1743
+
1744
+
1745
+ /**
1746
+ * optional int64 importedBillId = 9;
1747
+ * @return {number}
1748
+ */
1749
+ proto.sniipemailimportapi.EmailMessage.prototype.getImportedbillid = function() {
1750
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 9, 0));
1751
+ };
1752
+
1753
+
1754
+ /** @param {number} value */
1755
+ proto.sniipemailimportapi.EmailMessage.prototype.setImportedbillid = function(value) {
1756
+ jspb.Message.setField(this, 9, value);
1757
+ };
1758
+
1759
+
1760
+ /**
1761
+ * optional string importFailureReason = 10;
1762
+ * @return {string}
1763
+ */
1764
+ proto.sniipemailimportapi.EmailMessage.prototype.getImportfailurereason = function() {
1765
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 10, ""));
1766
+ };
1767
+
1768
+
1769
+ /** @param {string} value */
1770
+ proto.sniipemailimportapi.EmailMessage.prototype.setImportfailurereason = function(value) {
1771
+ jspb.Message.setField(this, 10, value);
1772
+ };
1773
+
1774
+
1775
+
1776
+ /**
1777
+ * Generated by JsPbCodeGenerator.
1778
+ * @param {Array=} opt_data Optional initial data array, typically from a
1779
+ * server response, or constructed directly in Javascript. The array is used
1780
+ * in place and becomes part of the constructed object. It is not cloned.
1781
+ * If no data is provided, the constructed object will be empty, but still
1782
+ * valid.
1783
+ * @extends {jspb.Message}
1784
+ * @constructor
1785
+ */
1786
+ proto.sniipemailimportapi.EmailMessagesRequest = function(opt_data) {
1787
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.sniipemailimportapi.EmailMessagesRequest.repeatedFields_, null);
1788
+ };
1789
+ goog.inherits(proto.sniipemailimportapi.EmailMessagesRequest, jspb.Message);
1790
+ if (goog.DEBUG && !COMPILED) {
1791
+ proto.sniipemailimportapi.EmailMessagesRequest.displayName = 'proto.sniipemailimportapi.EmailMessagesRequest';
1792
+ }
1793
+ /**
1794
+ * List of repeated fields within this message type.
1795
+ * @private {!Array<number>}
1796
+ * @const
1797
+ */
1798
+ proto.sniipemailimportapi.EmailMessagesRequest.repeatedFields_ = [1];
1799
+
1800
+
1801
+
1802
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1803
+ /**
1804
+ * Creates an object representation of this proto suitable for use in Soy templates.
1805
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1806
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1807
+ * For the list of reserved names please see:
1808
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1809
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1810
+ * for transitional soy proto support: http://goto/soy-param-migration
1811
+ * @return {!Object}
1812
+ */
1813
+ proto.sniipemailimportapi.EmailMessagesRequest.prototype.toObject = function(opt_includeInstance) {
1814
+ return proto.sniipemailimportapi.EmailMessagesRequest.toObject(opt_includeInstance, this);
1815
+ };
1816
+
1817
+
1818
+ /**
1819
+ * Static version of the {@see toObject} method.
1820
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
1821
+ * instance for transitional soy proto support:
1822
+ * http://goto/soy-param-migration
1823
+ * @param {!proto.sniipemailimportapi.EmailMessagesRequest} msg The msg instance to transform.
1824
+ * @return {!Object}
1825
+ */
1826
+ proto.sniipemailimportapi.EmailMessagesRequest.toObject = function(includeInstance, msg) {
1827
+ var f, obj = {
1828
+ emailmessagesList: jspb.Message.toObjectList(msg.getEmailmessagesList(),
1829
+ proto.sniipemailimportapi.EmailMessage.toObject, includeInstance)
1830
+ };
1831
+
1832
+ if (includeInstance) {
1833
+ obj.$jspbMessageInstance = msg;
1834
+ }
1835
+ return obj;
1836
+ };
1837
+ }
1838
+
1839
+
1840
+ /**
1841
+ * Deserializes binary data (in protobuf wire format).
1842
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1843
+ * @return {!proto.sniipemailimportapi.EmailMessagesRequest}
1844
+ */
1845
+ proto.sniipemailimportapi.EmailMessagesRequest.deserializeBinary = function(bytes) {
1846
+ var reader = new jspb.BinaryReader(bytes);
1847
+ var msg = new proto.sniipemailimportapi.EmailMessagesRequest;
1848
+ return proto.sniipemailimportapi.EmailMessagesRequest.deserializeBinaryFromReader(msg, reader);
1849
+ };
1850
+
1851
+
1852
+ /**
1853
+ * Deserializes binary data (in protobuf wire format) from the
1854
+ * given reader into the given message object.
1855
+ * @param {!proto.sniipemailimportapi.EmailMessagesRequest} msg The message object to deserialize into.
1856
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1857
+ * @return {!proto.sniipemailimportapi.EmailMessagesRequest}
1858
+ */
1859
+ proto.sniipemailimportapi.EmailMessagesRequest.deserializeBinaryFromReader = function(msg, reader) {
1860
+ while (reader.nextField()) {
1861
+ if (reader.isEndGroup()) {
1862
+ break;
1863
+ }
1864
+ var field = reader.getFieldNumber();
1865
+ switch (field) {
1866
+ case 1:
1867
+ var value = new proto.sniipemailimportapi.EmailMessage;
1868
+ reader.readMessage(value,proto.sniipemailimportapi.EmailMessage.deserializeBinaryFromReader);
1869
+ msg.getEmailmessagesList().push(value);
1870
+ msg.setEmailmessagesList(msg.getEmailmessagesList());
1871
+ break;
1872
+ default:
1873
+ reader.skipField();
1874
+ break;
1875
+ }
1876
+ }
1877
+ return msg;
1878
+ };
1879
+
1880
+
1881
+ /**
1882
+ * Class method variant: serializes the given message to binary data
1883
+ * (in protobuf wire format), writing to the given BinaryWriter.
1884
+ * @param {!proto.sniipemailimportapi.EmailMessagesRequest} message
1885
+ * @param {!jspb.BinaryWriter} writer
1886
+ */
1887
+ proto.sniipemailimportapi.EmailMessagesRequest.serializeBinaryToWriter = function(message, writer) {
1888
+ message.serializeBinaryToWriter(writer);
1889
+ };
1890
+
1891
+
1892
+ /**
1893
+ * Serializes the message to binary data (in protobuf wire format).
1894
+ * @return {!Uint8Array}
1895
+ */
1896
+ proto.sniipemailimportapi.EmailMessagesRequest.prototype.serializeBinary = function() {
1897
+ var writer = new jspb.BinaryWriter();
1898
+ this.serializeBinaryToWriter(writer);
1899
+ return writer.getResultBuffer();
1900
+ };
1901
+
1902
+
1903
+ /**
1904
+ * Serializes the message to binary data (in protobuf wire format),
1905
+ * writing to the given BinaryWriter.
1906
+ * @param {!jspb.BinaryWriter} writer
1907
+ */
1908
+ proto.sniipemailimportapi.EmailMessagesRequest.prototype.serializeBinaryToWriter = function (writer) {
1909
+ var f = undefined;
1910
+ f = this.getEmailmessagesList();
1911
+ if (f.length > 0) {
1912
+ writer.writeRepeatedMessage(
1913
+ 1,
1914
+ f,
1915
+ proto.sniipemailimportapi.EmailMessage.serializeBinaryToWriter
1916
+ );
1917
+ }
1918
+ };
1919
+
1920
+
1921
+ /**
1922
+ * Creates a deep clone of this proto. No data is shared with the original.
1923
+ * @return {!proto.sniipemailimportapi.EmailMessagesRequest} The clone.
1924
+ */
1925
+ proto.sniipemailimportapi.EmailMessagesRequest.prototype.cloneMessage = function() {
1926
+ return /** @type {!proto.sniipemailimportapi.EmailMessagesRequest} */ (jspb.Message.cloneMessage(this));
1927
+ };
1928
+
1929
+
1930
+ /**
1931
+ * repeated EmailMessage emailMessages = 1;
1932
+ * If you change this array by adding, removing or replacing elements, or if you
1933
+ * replace the array itself, then you must call the setter to update it.
1934
+ * @return {!Array.<!proto.sniipemailimportapi.EmailMessage>}
1935
+ */
1936
+ proto.sniipemailimportapi.EmailMessagesRequest.prototype.getEmailmessagesList = function() {
1937
+ return /** @type{!Array.<!proto.sniipemailimportapi.EmailMessage>} */ (
1938
+ jspb.Message.getRepeatedWrapperField(this, proto.sniipemailimportapi.EmailMessage, 1));
1939
+ };
1940
+
1941
+
1942
+ /** @param {Array.<!proto.sniipemailimportapi.EmailMessage>} value */
1943
+ proto.sniipemailimportapi.EmailMessagesRequest.prototype.setEmailmessagesList = function(value) {
1944
+ jspb.Message.setRepeatedWrapperField(this, 1, value);
1945
+ };
1946
+
1947
+
1948
+ proto.sniipemailimportapi.EmailMessagesRequest.prototype.clearEmailmessagesList = function() {
1949
+ this.setEmailmessagesList([]);
1950
+ };
1951
+
1952
+
1953
+
1954
+ /**
1955
+ * Generated by JsPbCodeGenerator.
1956
+ * @param {Array=} opt_data Optional initial data array, typically from a
1957
+ * server response, or constructed directly in Javascript. The array is used
1958
+ * in place and becomes part of the constructed object. It is not cloned.
1959
+ * If no data is provided, the constructed object will be empty, but still
1960
+ * valid.
1961
+ * @extends {jspb.Message}
1962
+ * @constructor
1963
+ */
1964
+ proto.sniipemailimportapi.EmailMessagesResponse = function(opt_data) {
1965
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.sniipemailimportapi.EmailMessagesResponse.repeatedFields_, null);
1966
+ };
1967
+ goog.inherits(proto.sniipemailimportapi.EmailMessagesResponse, jspb.Message);
1968
+ if (goog.DEBUG && !COMPILED) {
1969
+ proto.sniipemailimportapi.EmailMessagesResponse.displayName = 'proto.sniipemailimportapi.EmailMessagesResponse';
1970
+ }
1971
+ /**
1972
+ * List of repeated fields within this message type.
1973
+ * @private {!Array<number>}
1974
+ * @const
1975
+ */
1976
+ proto.sniipemailimportapi.EmailMessagesResponse.repeatedFields_ = [2];
1977
+
1978
+
1979
+
1980
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1981
+ /**
1982
+ * Creates an object representation of this proto suitable for use in Soy templates.
1983
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1984
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1985
+ * For the list of reserved names please see:
1986
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1987
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1988
+ * for transitional soy proto support: http://goto/soy-param-migration
1989
+ * @return {!Object}
1990
+ */
1991
+ proto.sniipemailimportapi.EmailMessagesResponse.prototype.toObject = function(opt_includeInstance) {
1992
+ return proto.sniipemailimportapi.EmailMessagesResponse.toObject(opt_includeInstance, this);
1993
+ };
1994
+
1995
+
1996
+ /**
1997
+ * Static version of the {@see toObject} method.
1998
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
1999
+ * instance for transitional soy proto support:
2000
+ * http://goto/soy-param-migration
2001
+ * @param {!proto.sniipemailimportapi.EmailMessagesResponse} msg The msg instance to transform.
2002
+ * @return {!Object}
2003
+ */
2004
+ proto.sniipemailimportapi.EmailMessagesResponse.toObject = function(includeInstance, msg) {
2005
+ var f, obj = {
2006
+ responsecode: (f = msg.getResponsecode()) && proto.sniipemailimportapi.ResponseCode.toObject(includeInstance, f),
2007
+ emailmessagesList: jspb.Message.toObjectList(msg.getEmailmessagesList(),
2008
+ proto.sniipemailimportapi.EmailMessage.toObject, includeInstance)
2009
+ };
2010
+
2011
+ if (includeInstance) {
2012
+ obj.$jspbMessageInstance = msg;
2013
+ }
2014
+ return obj;
2015
+ };
2016
+ }
2017
+
2018
+
2019
+ /**
2020
+ * Deserializes binary data (in protobuf wire format).
2021
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2022
+ * @return {!proto.sniipemailimportapi.EmailMessagesResponse}
2023
+ */
2024
+ proto.sniipemailimportapi.EmailMessagesResponse.deserializeBinary = function(bytes) {
2025
+ var reader = new jspb.BinaryReader(bytes);
2026
+ var msg = new proto.sniipemailimportapi.EmailMessagesResponse;
2027
+ return proto.sniipemailimportapi.EmailMessagesResponse.deserializeBinaryFromReader(msg, reader);
2028
+ };
2029
+
2030
+
2031
+ /**
2032
+ * Deserializes binary data (in protobuf wire format) from the
2033
+ * given reader into the given message object.
2034
+ * @param {!proto.sniipemailimportapi.EmailMessagesResponse} msg The message object to deserialize into.
2035
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2036
+ * @return {!proto.sniipemailimportapi.EmailMessagesResponse}
2037
+ */
2038
+ proto.sniipemailimportapi.EmailMessagesResponse.deserializeBinaryFromReader = function(msg, reader) {
2039
+ while (reader.nextField()) {
2040
+ if (reader.isEndGroup()) {
2041
+ break;
2042
+ }
2043
+ var field = reader.getFieldNumber();
2044
+ switch (field) {
2045
+ case 1:
2046
+ var value = new proto.sniipemailimportapi.ResponseCode;
2047
+ reader.readMessage(value,proto.sniipemailimportapi.ResponseCode.deserializeBinaryFromReader);
2048
+ msg.setResponsecode(value);
2049
+ break;
2050
+ case 2:
2051
+ var value = new proto.sniipemailimportapi.EmailMessage;
2052
+ reader.readMessage(value,proto.sniipemailimportapi.EmailMessage.deserializeBinaryFromReader);
2053
+ msg.getEmailmessagesList().push(value);
2054
+ msg.setEmailmessagesList(msg.getEmailmessagesList());
2055
+ break;
2056
+ default:
2057
+ reader.skipField();
2058
+ break;
2059
+ }
2060
+ }
2061
+ return msg;
2062
+ };
2063
+
2064
+
2065
+ /**
2066
+ * Class method variant: serializes the given message to binary data
2067
+ * (in protobuf wire format), writing to the given BinaryWriter.
2068
+ * @param {!proto.sniipemailimportapi.EmailMessagesResponse} message
2069
+ * @param {!jspb.BinaryWriter} writer
2070
+ */
2071
+ proto.sniipemailimportapi.EmailMessagesResponse.serializeBinaryToWriter = function(message, writer) {
2072
+ message.serializeBinaryToWriter(writer);
2073
+ };
2074
+
2075
+
2076
+ /**
2077
+ * Serializes the message to binary data (in protobuf wire format).
2078
+ * @return {!Uint8Array}
2079
+ */
2080
+ proto.sniipemailimportapi.EmailMessagesResponse.prototype.serializeBinary = function() {
2081
+ var writer = new jspb.BinaryWriter();
2082
+ this.serializeBinaryToWriter(writer);
2083
+ return writer.getResultBuffer();
2084
+ };
2085
+
2086
+
2087
+ /**
2088
+ * Serializes the message to binary data (in protobuf wire format),
2089
+ * writing to the given BinaryWriter.
2090
+ * @param {!jspb.BinaryWriter} writer
2091
+ */
2092
+ proto.sniipemailimportapi.EmailMessagesResponse.prototype.serializeBinaryToWriter = function (writer) {
2093
+ var f = undefined;
2094
+ f = this.getResponsecode();
2095
+ if (f != null) {
2096
+ writer.writeMessage(
2097
+ 1,
2098
+ f,
2099
+ proto.sniipemailimportapi.ResponseCode.serializeBinaryToWriter
2100
+ );
2101
+ }
2102
+ f = this.getEmailmessagesList();
2103
+ if (f.length > 0) {
2104
+ writer.writeRepeatedMessage(
2105
+ 2,
2106
+ f,
2107
+ proto.sniipemailimportapi.EmailMessage.serializeBinaryToWriter
2108
+ );
2109
+ }
2110
+ };
2111
+
2112
+
2113
+ /**
2114
+ * Creates a deep clone of this proto. No data is shared with the original.
2115
+ * @return {!proto.sniipemailimportapi.EmailMessagesResponse} The clone.
2116
+ */
2117
+ proto.sniipemailimportapi.EmailMessagesResponse.prototype.cloneMessage = function() {
2118
+ return /** @type {!proto.sniipemailimportapi.EmailMessagesResponse} */ (jspb.Message.cloneMessage(this));
2119
+ };
2120
+
2121
+
2122
+ /**
2123
+ * optional ResponseCode responseCode = 1;
2124
+ * @return {proto.sniipemailimportapi.ResponseCode}
2125
+ */
2126
+ proto.sniipemailimportapi.EmailMessagesResponse.prototype.getResponsecode = function() {
2127
+ return /** @type{proto.sniipemailimportapi.ResponseCode} */ (
2128
+ jspb.Message.getWrapperField(this, proto.sniipemailimportapi.ResponseCode, 1));
2129
+ };
2130
+
2131
+
2132
+ /** @param {proto.sniipemailimportapi.ResponseCode|undefined} value */
2133
+ proto.sniipemailimportapi.EmailMessagesResponse.prototype.setResponsecode = function(value) {
2134
+ jspb.Message.setWrapperField(this, 1, value);
2135
+ };
2136
+
2137
+
2138
+ proto.sniipemailimportapi.EmailMessagesResponse.prototype.clearResponsecode = function() {
2139
+ this.setResponsecode(undefined);
2140
+ };
2141
+
2142
+
2143
+ /**
2144
+ * Returns whether this field is set.
2145
+ * @return{!boolean}
2146
+ */
2147
+ proto.sniipemailimportapi.EmailMessagesResponse.prototype.hasResponsecode = function() {
2148
+ return jspb.Message.getField(this, 1) != null;
2149
+ };
2150
+
2151
+
2152
+ /**
2153
+ * repeated EmailMessage emailMessages = 2;
2154
+ * If you change this array by adding, removing or replacing elements, or if you
2155
+ * replace the array itself, then you must call the setter to update it.
2156
+ * @return {!Array.<!proto.sniipemailimportapi.EmailMessage>}
2157
+ */
2158
+ proto.sniipemailimportapi.EmailMessagesResponse.prototype.getEmailmessagesList = function() {
2159
+ return /** @type{!Array.<!proto.sniipemailimportapi.EmailMessage>} */ (
2160
+ jspb.Message.getRepeatedWrapperField(this, proto.sniipemailimportapi.EmailMessage, 2));
2161
+ };
2162
+
2163
+
2164
+ /** @param {Array.<!proto.sniipemailimportapi.EmailMessage>} value */
2165
+ proto.sniipemailimportapi.EmailMessagesResponse.prototype.setEmailmessagesList = function(value) {
2166
+ jspb.Message.setRepeatedWrapperField(this, 2, value);
2167
+ };
2168
+
2169
+
2170
+ proto.sniipemailimportapi.EmailMessagesResponse.prototype.clearEmailmessagesList = function() {
2171
+ this.setEmailmessagesList([]);
2172
+ };
2173
+
2174
+
2175
+
1186
2176
  /**
1187
2177
  * Generated by JsPbCodeGenerator.
1188
2178
  * @param {Array=} opt_data Optional initial data array, typically from a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/email-import-service-client-grpcweb",
3
- "version": "22.2.2572",
3
+ "version": "22.3.2591",
4
4
  "description": "email-import-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",