@sniipwebmaster/email-import-service-client-grpcweb 22.2.2572 → 22.2.2580
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.ResponseCode>}
|
|
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.ResponseCode,
|
|
88
|
+
/**
|
|
89
|
+
* @param {!proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest} request
|
|
90
|
+
* @return {!Uint8Array}
|
|
91
|
+
*/
|
|
92
|
+
function(request) {
|
|
93
|
+
return request.serializeBinary();
|
|
94
|
+
},
|
|
95
|
+
proto.sniipemailimportapi.ResponseCode.deserializeBinary
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @const
|
|
101
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
102
|
+
* !proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest,
|
|
103
|
+
* !proto.sniipemailimportapi.ResponseCode>}
|
|
104
|
+
*/
|
|
105
|
+
const methodInfo_SniipEmailImportAPIService_AddOrUpdateEmailMessages = new grpc.web.AbstractClientBase.MethodInfo(
|
|
106
|
+
proto.sniipemailimportapi.ResponseCode,
|
|
107
|
+
/**
|
|
108
|
+
* @param {!proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest} request
|
|
109
|
+
* @return {!Uint8Array}
|
|
110
|
+
*/
|
|
111
|
+
function(request) {
|
|
112
|
+
return request.serializeBinary();
|
|
113
|
+
},
|
|
114
|
+
proto.sniipemailimportapi.ResponseCode.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.ResponseCode)}
|
|
124
|
+
* callback The callback function(error, response)
|
|
125
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniipemailimportapi.ResponseCode>|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.ResponseCode>}
|
|
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,14 @@ 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);
|
|
19
22
|
goog.exportSymbol('proto.sniipemailimportapi.EmailProviders', null, global);
|
|
20
23
|
goog.exportSymbol('proto.sniipemailimportapi.GetConnectedEmailsResponse', null, global);
|
|
21
24
|
goog.exportSymbol('proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest', null, global);
|
|
@@ -37,6 +40,182 @@ goog.exportSymbol('proto.sniipemailimportapi.TokenRefreshRequest', null, global)
|
|
|
37
40
|
goog.exportSymbol('proto.sniipemailimportapi.TokenRefreshResponse', null, global);
|
|
38
41
|
goog.exportSymbol('proto.sniipemailimportapi.UpdateAutomaticSyncRequest', null, global);
|
|
39
42
|
|
|
43
|
+
/**
|
|
44
|
+
* Generated by JsPbCodeGenerator.
|
|
45
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
46
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
47
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
48
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
49
|
+
* valid.
|
|
50
|
+
* @extends {jspb.Message}
|
|
51
|
+
* @constructor
|
|
52
|
+
*/
|
|
53
|
+
proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest = function(opt_data) {
|
|
54
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
55
|
+
};
|
|
56
|
+
goog.inherits(proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest, jspb.Message);
|
|
57
|
+
if (goog.DEBUG && !COMPILED) {
|
|
58
|
+
proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.displayName = 'proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest';
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
63
|
+
/**
|
|
64
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
65
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
66
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
67
|
+
* For the list of reserved names please see:
|
|
68
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
69
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
70
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
71
|
+
* @return {!Object}
|
|
72
|
+
*/
|
|
73
|
+
proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.prototype.toObject = function(opt_includeInstance) {
|
|
74
|
+
return proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.toObject(opt_includeInstance, this);
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Static version of the {@see toObject} method.
|
|
80
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
81
|
+
* instance for transitional soy proto support:
|
|
82
|
+
* http://goto/soy-param-migration
|
|
83
|
+
* @param {!proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest} msg The msg instance to transform.
|
|
84
|
+
* @return {!Object}
|
|
85
|
+
*/
|
|
86
|
+
proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.toObject = function(includeInstance, msg) {
|
|
87
|
+
var f, obj = {
|
|
88
|
+
data: (f = msg.getData()) && proto.sniipemailimportapi.EmailMessagesRequest.toObject(includeInstance, f)
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
if (includeInstance) {
|
|
92
|
+
obj.$jspbMessageInstance = msg;
|
|
93
|
+
}
|
|
94
|
+
return obj;
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Deserializes binary data (in protobuf wire format).
|
|
101
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
102
|
+
* @return {!proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest}
|
|
103
|
+
*/
|
|
104
|
+
proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.deserializeBinary = function(bytes) {
|
|
105
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
106
|
+
var msg = new proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest;
|
|
107
|
+
return proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.deserializeBinaryFromReader(msg, reader);
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
113
|
+
* given reader into the given message object.
|
|
114
|
+
* @param {!proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest} msg The message object to deserialize into.
|
|
115
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
116
|
+
* @return {!proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest}
|
|
117
|
+
*/
|
|
118
|
+
proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
119
|
+
while (reader.nextField()) {
|
|
120
|
+
if (reader.isEndGroup()) {
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
var field = reader.getFieldNumber();
|
|
124
|
+
switch (field) {
|
|
125
|
+
case 1:
|
|
126
|
+
var value = new proto.sniipemailimportapi.EmailMessagesRequest;
|
|
127
|
+
reader.readMessage(value,proto.sniipemailimportapi.EmailMessagesRequest.deserializeBinaryFromReader);
|
|
128
|
+
msg.setData(value);
|
|
129
|
+
break;
|
|
130
|
+
default:
|
|
131
|
+
reader.skipField();
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return msg;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Class method variant: serializes the given message to binary data
|
|
141
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
142
|
+
* @param {!proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest} message
|
|
143
|
+
* @param {!jspb.BinaryWriter} writer
|
|
144
|
+
*/
|
|
145
|
+
proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
146
|
+
message.serializeBinaryToWriter(writer);
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
152
|
+
* @return {!Uint8Array}
|
|
153
|
+
*/
|
|
154
|
+
proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.prototype.serializeBinary = function() {
|
|
155
|
+
var writer = new jspb.BinaryWriter();
|
|
156
|
+
this.serializeBinaryToWriter(writer);
|
|
157
|
+
return writer.getResultBuffer();
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
163
|
+
* writing to the given BinaryWriter.
|
|
164
|
+
* @param {!jspb.BinaryWriter} writer
|
|
165
|
+
*/
|
|
166
|
+
proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
167
|
+
var f = undefined;
|
|
168
|
+
f = this.getData();
|
|
169
|
+
if (f != null) {
|
|
170
|
+
writer.writeMessage(
|
|
171
|
+
1,
|
|
172
|
+
f,
|
|
173
|
+
proto.sniipemailimportapi.EmailMessagesRequest.serializeBinaryToWriter
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
181
|
+
* @return {!proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest} The clone.
|
|
182
|
+
*/
|
|
183
|
+
proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.prototype.cloneMessage = function() {
|
|
184
|
+
return /** @type {!proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest} */ (jspb.Message.cloneMessage(this));
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* optional EmailMessagesRequest data = 1;
|
|
190
|
+
* @return {proto.sniipemailimportapi.EmailMessagesRequest}
|
|
191
|
+
*/
|
|
192
|
+
proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.prototype.getData = function() {
|
|
193
|
+
return /** @type{proto.sniipemailimportapi.EmailMessagesRequest} */ (
|
|
194
|
+
jspb.Message.getWrapperField(this, proto.sniipemailimportapi.EmailMessagesRequest, 1));
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
/** @param {proto.sniipemailimportapi.EmailMessagesRequest|undefined} value */
|
|
199
|
+
proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.prototype.setData = function(value) {
|
|
200
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.prototype.clearData = function() {
|
|
205
|
+
this.setData(undefined);
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Returns whether this field is set.
|
|
211
|
+
* @return{!boolean}
|
|
212
|
+
*/
|
|
213
|
+
proto.sniipemailimportapi.AddOrUpdateEmailMessagesRequest.prototype.hasData = function() {
|
|
214
|
+
return jspb.Message.getField(this, 1) != null;
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
40
219
|
/**
|
|
41
220
|
* Generated by JsPbCodeGenerator.
|
|
42
221
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1183,6 +1362,594 @@ proto.sniipemailimportapi.DisableTokenRequest.prototype.setTokenid = function(va
|
|
|
1183
1362
|
|
|
1184
1363
|
|
|
1185
1364
|
|
|
1365
|
+
/**
|
|
1366
|
+
* Generated by JsPbCodeGenerator.
|
|
1367
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1368
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1369
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1370
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1371
|
+
* valid.
|
|
1372
|
+
* @extends {jspb.Message}
|
|
1373
|
+
* @constructor
|
|
1374
|
+
*/
|
|
1375
|
+
proto.sniipemailimportapi.EmailMessage = function(opt_data) {
|
|
1376
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1377
|
+
};
|
|
1378
|
+
goog.inherits(proto.sniipemailimportapi.EmailMessage, jspb.Message);
|
|
1379
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1380
|
+
proto.sniipemailimportapi.EmailMessage.displayName = 'proto.sniipemailimportapi.EmailMessage';
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
|
|
1384
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1385
|
+
/**
|
|
1386
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
1387
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1388
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1389
|
+
* For the list of reserved names please see:
|
|
1390
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
1391
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
1392
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1393
|
+
* @return {!Object}
|
|
1394
|
+
*/
|
|
1395
|
+
proto.sniipemailimportapi.EmailMessage.prototype.toObject = function(opt_includeInstance) {
|
|
1396
|
+
return proto.sniipemailimportapi.EmailMessage.toObject(opt_includeInstance, this);
|
|
1397
|
+
};
|
|
1398
|
+
|
|
1399
|
+
|
|
1400
|
+
/**
|
|
1401
|
+
* Static version of the {@see toObject} method.
|
|
1402
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
1403
|
+
* instance for transitional soy proto support:
|
|
1404
|
+
* http://goto/soy-param-migration
|
|
1405
|
+
* @param {!proto.sniipemailimportapi.EmailMessage} msg The msg instance to transform.
|
|
1406
|
+
* @return {!Object}
|
|
1407
|
+
*/
|
|
1408
|
+
proto.sniipemailimportapi.EmailMessage.toObject = function(includeInstance, msg) {
|
|
1409
|
+
var f, obj = {
|
|
1410
|
+
emailmessageid: msg.getEmailmessageid(),
|
|
1411
|
+
emailsyncrequestid: msg.getEmailsyncrequestid(),
|
|
1412
|
+
externalemailmessageid: msg.getExternalemailmessageid(),
|
|
1413
|
+
provider: msg.getProvider(),
|
|
1414
|
+
hasattachment: msg.getHasattachment(),
|
|
1415
|
+
haslinkintext: msg.getHaslinkintext(),
|
|
1416
|
+
haskeywordsintext: msg.getHaskeywordsintext(),
|
|
1417
|
+
haskeywordsinattachment: msg.getHaskeywordsinattachment(),
|
|
1418
|
+
importedbillid: msg.getImportedbillid(),
|
|
1419
|
+
importfailurereason: msg.getImportfailurereason()
|
|
1420
|
+
};
|
|
1421
|
+
|
|
1422
|
+
if (includeInstance) {
|
|
1423
|
+
obj.$jspbMessageInstance = msg;
|
|
1424
|
+
}
|
|
1425
|
+
return obj;
|
|
1426
|
+
};
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1432
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1433
|
+
* @return {!proto.sniipemailimportapi.EmailMessage}
|
|
1434
|
+
*/
|
|
1435
|
+
proto.sniipemailimportapi.EmailMessage.deserializeBinary = function(bytes) {
|
|
1436
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1437
|
+
var msg = new proto.sniipemailimportapi.EmailMessage;
|
|
1438
|
+
return proto.sniipemailimportapi.EmailMessage.deserializeBinaryFromReader(msg, reader);
|
|
1439
|
+
};
|
|
1440
|
+
|
|
1441
|
+
|
|
1442
|
+
/**
|
|
1443
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1444
|
+
* given reader into the given message object.
|
|
1445
|
+
* @param {!proto.sniipemailimportapi.EmailMessage} msg The message object to deserialize into.
|
|
1446
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1447
|
+
* @return {!proto.sniipemailimportapi.EmailMessage}
|
|
1448
|
+
*/
|
|
1449
|
+
proto.sniipemailimportapi.EmailMessage.deserializeBinaryFromReader = function(msg, reader) {
|
|
1450
|
+
while (reader.nextField()) {
|
|
1451
|
+
if (reader.isEndGroup()) {
|
|
1452
|
+
break;
|
|
1453
|
+
}
|
|
1454
|
+
var field = reader.getFieldNumber();
|
|
1455
|
+
switch (field) {
|
|
1456
|
+
case 1:
|
|
1457
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
1458
|
+
msg.setEmailmessageid(value);
|
|
1459
|
+
break;
|
|
1460
|
+
case 2:
|
|
1461
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
1462
|
+
msg.setEmailsyncrequestid(value);
|
|
1463
|
+
break;
|
|
1464
|
+
case 3:
|
|
1465
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1466
|
+
msg.setExternalemailmessageid(value);
|
|
1467
|
+
break;
|
|
1468
|
+
case 4:
|
|
1469
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1470
|
+
msg.setProvider(value);
|
|
1471
|
+
break;
|
|
1472
|
+
case 5:
|
|
1473
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1474
|
+
msg.setHasattachment(value);
|
|
1475
|
+
break;
|
|
1476
|
+
case 6:
|
|
1477
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1478
|
+
msg.setHaslinkintext(value);
|
|
1479
|
+
break;
|
|
1480
|
+
case 7:
|
|
1481
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1482
|
+
msg.setHaskeywordsintext(value);
|
|
1483
|
+
break;
|
|
1484
|
+
case 8:
|
|
1485
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1486
|
+
msg.setHaskeywordsinattachment(value);
|
|
1487
|
+
break;
|
|
1488
|
+
case 9:
|
|
1489
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
1490
|
+
msg.setImportedbillid(value);
|
|
1491
|
+
break;
|
|
1492
|
+
case 10:
|
|
1493
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1494
|
+
msg.setImportfailurereason(value);
|
|
1495
|
+
break;
|
|
1496
|
+
default:
|
|
1497
|
+
reader.skipField();
|
|
1498
|
+
break;
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
return msg;
|
|
1502
|
+
};
|
|
1503
|
+
|
|
1504
|
+
|
|
1505
|
+
/**
|
|
1506
|
+
* Class method variant: serializes the given message to binary data
|
|
1507
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
1508
|
+
* @param {!proto.sniipemailimportapi.EmailMessage} message
|
|
1509
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1510
|
+
*/
|
|
1511
|
+
proto.sniipemailimportapi.EmailMessage.serializeBinaryToWriter = function(message, writer) {
|
|
1512
|
+
message.serializeBinaryToWriter(writer);
|
|
1513
|
+
};
|
|
1514
|
+
|
|
1515
|
+
|
|
1516
|
+
/**
|
|
1517
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1518
|
+
* @return {!Uint8Array}
|
|
1519
|
+
*/
|
|
1520
|
+
proto.sniipemailimportapi.EmailMessage.prototype.serializeBinary = function() {
|
|
1521
|
+
var writer = new jspb.BinaryWriter();
|
|
1522
|
+
this.serializeBinaryToWriter(writer);
|
|
1523
|
+
return writer.getResultBuffer();
|
|
1524
|
+
};
|
|
1525
|
+
|
|
1526
|
+
|
|
1527
|
+
/**
|
|
1528
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
1529
|
+
* writing to the given BinaryWriter.
|
|
1530
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1531
|
+
*/
|
|
1532
|
+
proto.sniipemailimportapi.EmailMessage.prototype.serializeBinaryToWriter = function (writer) {
|
|
1533
|
+
var f = undefined;
|
|
1534
|
+
f = this.getEmailmessageid();
|
|
1535
|
+
if (f !== 0) {
|
|
1536
|
+
writer.writeInt64(
|
|
1537
|
+
1,
|
|
1538
|
+
f
|
|
1539
|
+
);
|
|
1540
|
+
}
|
|
1541
|
+
f = this.getEmailsyncrequestid();
|
|
1542
|
+
if (f !== 0) {
|
|
1543
|
+
writer.writeInt64(
|
|
1544
|
+
2,
|
|
1545
|
+
f
|
|
1546
|
+
);
|
|
1547
|
+
}
|
|
1548
|
+
f = this.getExternalemailmessageid();
|
|
1549
|
+
if (f.length > 0) {
|
|
1550
|
+
writer.writeString(
|
|
1551
|
+
3,
|
|
1552
|
+
f
|
|
1553
|
+
);
|
|
1554
|
+
}
|
|
1555
|
+
f = this.getProvider();
|
|
1556
|
+
if (f.length > 0) {
|
|
1557
|
+
writer.writeString(
|
|
1558
|
+
4,
|
|
1559
|
+
f
|
|
1560
|
+
);
|
|
1561
|
+
}
|
|
1562
|
+
f = this.getHasattachment();
|
|
1563
|
+
if (f) {
|
|
1564
|
+
writer.writeBool(
|
|
1565
|
+
5,
|
|
1566
|
+
f
|
|
1567
|
+
);
|
|
1568
|
+
}
|
|
1569
|
+
f = this.getHaslinkintext();
|
|
1570
|
+
if (f) {
|
|
1571
|
+
writer.writeBool(
|
|
1572
|
+
6,
|
|
1573
|
+
f
|
|
1574
|
+
);
|
|
1575
|
+
}
|
|
1576
|
+
f = this.getHaskeywordsintext();
|
|
1577
|
+
if (f) {
|
|
1578
|
+
writer.writeBool(
|
|
1579
|
+
7,
|
|
1580
|
+
f
|
|
1581
|
+
);
|
|
1582
|
+
}
|
|
1583
|
+
f = this.getHaskeywordsinattachment();
|
|
1584
|
+
if (f) {
|
|
1585
|
+
writer.writeBool(
|
|
1586
|
+
8,
|
|
1587
|
+
f
|
|
1588
|
+
);
|
|
1589
|
+
}
|
|
1590
|
+
f = this.getImportedbillid();
|
|
1591
|
+
if (f !== 0) {
|
|
1592
|
+
writer.writeInt64(
|
|
1593
|
+
9,
|
|
1594
|
+
f
|
|
1595
|
+
);
|
|
1596
|
+
}
|
|
1597
|
+
f = this.getImportfailurereason();
|
|
1598
|
+
if (f.length > 0) {
|
|
1599
|
+
writer.writeString(
|
|
1600
|
+
10,
|
|
1601
|
+
f
|
|
1602
|
+
);
|
|
1603
|
+
}
|
|
1604
|
+
};
|
|
1605
|
+
|
|
1606
|
+
|
|
1607
|
+
/**
|
|
1608
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
1609
|
+
* @return {!proto.sniipemailimportapi.EmailMessage} The clone.
|
|
1610
|
+
*/
|
|
1611
|
+
proto.sniipemailimportapi.EmailMessage.prototype.cloneMessage = function() {
|
|
1612
|
+
return /** @type {!proto.sniipemailimportapi.EmailMessage} */ (jspb.Message.cloneMessage(this));
|
|
1613
|
+
};
|
|
1614
|
+
|
|
1615
|
+
|
|
1616
|
+
/**
|
|
1617
|
+
* optional int64 emailMessageId = 1;
|
|
1618
|
+
* @return {number}
|
|
1619
|
+
*/
|
|
1620
|
+
proto.sniipemailimportapi.EmailMessage.prototype.getEmailmessageid = function() {
|
|
1621
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
1622
|
+
};
|
|
1623
|
+
|
|
1624
|
+
|
|
1625
|
+
/** @param {number} value */
|
|
1626
|
+
proto.sniipemailimportapi.EmailMessage.prototype.setEmailmessageid = function(value) {
|
|
1627
|
+
jspb.Message.setField(this, 1, value);
|
|
1628
|
+
};
|
|
1629
|
+
|
|
1630
|
+
|
|
1631
|
+
/**
|
|
1632
|
+
* optional int64 emailSyncRequestId = 2;
|
|
1633
|
+
* @return {number}
|
|
1634
|
+
*/
|
|
1635
|
+
proto.sniipemailimportapi.EmailMessage.prototype.getEmailsyncrequestid = function() {
|
|
1636
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
|
|
1637
|
+
};
|
|
1638
|
+
|
|
1639
|
+
|
|
1640
|
+
/** @param {number} value */
|
|
1641
|
+
proto.sniipemailimportapi.EmailMessage.prototype.setEmailsyncrequestid = function(value) {
|
|
1642
|
+
jspb.Message.setField(this, 2, value);
|
|
1643
|
+
};
|
|
1644
|
+
|
|
1645
|
+
|
|
1646
|
+
/**
|
|
1647
|
+
* optional string externalEmailMessageId = 3;
|
|
1648
|
+
* @return {string}
|
|
1649
|
+
*/
|
|
1650
|
+
proto.sniipemailimportapi.EmailMessage.prototype.getExternalemailmessageid = function() {
|
|
1651
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
|
|
1652
|
+
};
|
|
1653
|
+
|
|
1654
|
+
|
|
1655
|
+
/** @param {string} value */
|
|
1656
|
+
proto.sniipemailimportapi.EmailMessage.prototype.setExternalemailmessageid = function(value) {
|
|
1657
|
+
jspb.Message.setField(this, 3, value);
|
|
1658
|
+
};
|
|
1659
|
+
|
|
1660
|
+
|
|
1661
|
+
/**
|
|
1662
|
+
* optional string provider = 4;
|
|
1663
|
+
* @return {string}
|
|
1664
|
+
*/
|
|
1665
|
+
proto.sniipemailimportapi.EmailMessage.prototype.getProvider = function() {
|
|
1666
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 4, ""));
|
|
1667
|
+
};
|
|
1668
|
+
|
|
1669
|
+
|
|
1670
|
+
/** @param {string} value */
|
|
1671
|
+
proto.sniipemailimportapi.EmailMessage.prototype.setProvider = function(value) {
|
|
1672
|
+
jspb.Message.setField(this, 4, value);
|
|
1673
|
+
};
|
|
1674
|
+
|
|
1675
|
+
|
|
1676
|
+
/**
|
|
1677
|
+
* optional bool hasAttachment = 5;
|
|
1678
|
+
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
|
1679
|
+
* You should avoid comparisons like {@code val === true/false} in those cases.
|
|
1680
|
+
* @return {boolean}
|
|
1681
|
+
*/
|
|
1682
|
+
proto.sniipemailimportapi.EmailMessage.prototype.getHasattachment = function() {
|
|
1683
|
+
return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 5, false));
|
|
1684
|
+
};
|
|
1685
|
+
|
|
1686
|
+
|
|
1687
|
+
/** @param {boolean} value */
|
|
1688
|
+
proto.sniipemailimportapi.EmailMessage.prototype.setHasattachment = function(value) {
|
|
1689
|
+
jspb.Message.setField(this, 5, value);
|
|
1690
|
+
};
|
|
1691
|
+
|
|
1692
|
+
|
|
1693
|
+
/**
|
|
1694
|
+
* optional bool hasLinkInText = 6;
|
|
1695
|
+
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
|
1696
|
+
* You should avoid comparisons like {@code val === true/false} in those cases.
|
|
1697
|
+
* @return {boolean}
|
|
1698
|
+
*/
|
|
1699
|
+
proto.sniipemailimportapi.EmailMessage.prototype.getHaslinkintext = function() {
|
|
1700
|
+
return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 6, false));
|
|
1701
|
+
};
|
|
1702
|
+
|
|
1703
|
+
|
|
1704
|
+
/** @param {boolean} value */
|
|
1705
|
+
proto.sniipemailimportapi.EmailMessage.prototype.setHaslinkintext = function(value) {
|
|
1706
|
+
jspb.Message.setField(this, 6, value);
|
|
1707
|
+
};
|
|
1708
|
+
|
|
1709
|
+
|
|
1710
|
+
/**
|
|
1711
|
+
* optional bool hasKeyWordsInText = 7;
|
|
1712
|
+
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
|
1713
|
+
* You should avoid comparisons like {@code val === true/false} in those cases.
|
|
1714
|
+
* @return {boolean}
|
|
1715
|
+
*/
|
|
1716
|
+
proto.sniipemailimportapi.EmailMessage.prototype.getHaskeywordsintext = function() {
|
|
1717
|
+
return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 7, false));
|
|
1718
|
+
};
|
|
1719
|
+
|
|
1720
|
+
|
|
1721
|
+
/** @param {boolean} value */
|
|
1722
|
+
proto.sniipemailimportapi.EmailMessage.prototype.setHaskeywordsintext = function(value) {
|
|
1723
|
+
jspb.Message.setField(this, 7, value);
|
|
1724
|
+
};
|
|
1725
|
+
|
|
1726
|
+
|
|
1727
|
+
/**
|
|
1728
|
+
* optional bool hasKeyWordsInAttachment = 8;
|
|
1729
|
+
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
|
1730
|
+
* You should avoid comparisons like {@code val === true/false} in those cases.
|
|
1731
|
+
* @return {boolean}
|
|
1732
|
+
*/
|
|
1733
|
+
proto.sniipemailimportapi.EmailMessage.prototype.getHaskeywordsinattachment = function() {
|
|
1734
|
+
return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 8, false));
|
|
1735
|
+
};
|
|
1736
|
+
|
|
1737
|
+
|
|
1738
|
+
/** @param {boolean} value */
|
|
1739
|
+
proto.sniipemailimportapi.EmailMessage.prototype.setHaskeywordsinattachment = function(value) {
|
|
1740
|
+
jspb.Message.setField(this, 8, value);
|
|
1741
|
+
};
|
|
1742
|
+
|
|
1743
|
+
|
|
1744
|
+
/**
|
|
1745
|
+
* optional int64 importedBillId = 9;
|
|
1746
|
+
* @return {number}
|
|
1747
|
+
*/
|
|
1748
|
+
proto.sniipemailimportapi.EmailMessage.prototype.getImportedbillid = function() {
|
|
1749
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 9, 0));
|
|
1750
|
+
};
|
|
1751
|
+
|
|
1752
|
+
|
|
1753
|
+
/** @param {number} value */
|
|
1754
|
+
proto.sniipemailimportapi.EmailMessage.prototype.setImportedbillid = function(value) {
|
|
1755
|
+
jspb.Message.setField(this, 9, value);
|
|
1756
|
+
};
|
|
1757
|
+
|
|
1758
|
+
|
|
1759
|
+
/**
|
|
1760
|
+
* optional string importFailureReason = 10;
|
|
1761
|
+
* @return {string}
|
|
1762
|
+
*/
|
|
1763
|
+
proto.sniipemailimportapi.EmailMessage.prototype.getImportfailurereason = function() {
|
|
1764
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 10, ""));
|
|
1765
|
+
};
|
|
1766
|
+
|
|
1767
|
+
|
|
1768
|
+
/** @param {string} value */
|
|
1769
|
+
proto.sniipemailimportapi.EmailMessage.prototype.setImportfailurereason = function(value) {
|
|
1770
|
+
jspb.Message.setField(this, 10, value);
|
|
1771
|
+
};
|
|
1772
|
+
|
|
1773
|
+
|
|
1774
|
+
|
|
1775
|
+
/**
|
|
1776
|
+
* Generated by JsPbCodeGenerator.
|
|
1777
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1778
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1779
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1780
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1781
|
+
* valid.
|
|
1782
|
+
* @extends {jspb.Message}
|
|
1783
|
+
* @constructor
|
|
1784
|
+
*/
|
|
1785
|
+
proto.sniipemailimportapi.EmailMessagesRequest = function(opt_data) {
|
|
1786
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.sniipemailimportapi.EmailMessagesRequest.repeatedFields_, null);
|
|
1787
|
+
};
|
|
1788
|
+
goog.inherits(proto.sniipemailimportapi.EmailMessagesRequest, jspb.Message);
|
|
1789
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1790
|
+
proto.sniipemailimportapi.EmailMessagesRequest.displayName = 'proto.sniipemailimportapi.EmailMessagesRequest';
|
|
1791
|
+
}
|
|
1792
|
+
/**
|
|
1793
|
+
* List of repeated fields within this message type.
|
|
1794
|
+
* @private {!Array<number>}
|
|
1795
|
+
* @const
|
|
1796
|
+
*/
|
|
1797
|
+
proto.sniipemailimportapi.EmailMessagesRequest.repeatedFields_ = [1];
|
|
1798
|
+
|
|
1799
|
+
|
|
1800
|
+
|
|
1801
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1802
|
+
/**
|
|
1803
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
1804
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1805
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1806
|
+
* For the list of reserved names please see:
|
|
1807
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
1808
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
1809
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1810
|
+
* @return {!Object}
|
|
1811
|
+
*/
|
|
1812
|
+
proto.sniipemailimportapi.EmailMessagesRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1813
|
+
return proto.sniipemailimportapi.EmailMessagesRequest.toObject(opt_includeInstance, this);
|
|
1814
|
+
};
|
|
1815
|
+
|
|
1816
|
+
|
|
1817
|
+
/**
|
|
1818
|
+
* Static version of the {@see toObject} method.
|
|
1819
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
1820
|
+
* instance for transitional soy proto support:
|
|
1821
|
+
* http://goto/soy-param-migration
|
|
1822
|
+
* @param {!proto.sniipemailimportapi.EmailMessagesRequest} msg The msg instance to transform.
|
|
1823
|
+
* @return {!Object}
|
|
1824
|
+
*/
|
|
1825
|
+
proto.sniipemailimportapi.EmailMessagesRequest.toObject = function(includeInstance, msg) {
|
|
1826
|
+
var f, obj = {
|
|
1827
|
+
emailmessagesList: jspb.Message.toObjectList(msg.getEmailmessagesList(),
|
|
1828
|
+
proto.sniipemailimportapi.EmailMessage.toObject, includeInstance)
|
|
1829
|
+
};
|
|
1830
|
+
|
|
1831
|
+
if (includeInstance) {
|
|
1832
|
+
obj.$jspbMessageInstance = msg;
|
|
1833
|
+
}
|
|
1834
|
+
return obj;
|
|
1835
|
+
};
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
|
|
1839
|
+
/**
|
|
1840
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1841
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1842
|
+
* @return {!proto.sniipemailimportapi.EmailMessagesRequest}
|
|
1843
|
+
*/
|
|
1844
|
+
proto.sniipemailimportapi.EmailMessagesRequest.deserializeBinary = function(bytes) {
|
|
1845
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1846
|
+
var msg = new proto.sniipemailimportapi.EmailMessagesRequest;
|
|
1847
|
+
return proto.sniipemailimportapi.EmailMessagesRequest.deserializeBinaryFromReader(msg, reader);
|
|
1848
|
+
};
|
|
1849
|
+
|
|
1850
|
+
|
|
1851
|
+
/**
|
|
1852
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1853
|
+
* given reader into the given message object.
|
|
1854
|
+
* @param {!proto.sniipemailimportapi.EmailMessagesRequest} msg The message object to deserialize into.
|
|
1855
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1856
|
+
* @return {!proto.sniipemailimportapi.EmailMessagesRequest}
|
|
1857
|
+
*/
|
|
1858
|
+
proto.sniipemailimportapi.EmailMessagesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1859
|
+
while (reader.nextField()) {
|
|
1860
|
+
if (reader.isEndGroup()) {
|
|
1861
|
+
break;
|
|
1862
|
+
}
|
|
1863
|
+
var field = reader.getFieldNumber();
|
|
1864
|
+
switch (field) {
|
|
1865
|
+
case 1:
|
|
1866
|
+
var value = new proto.sniipemailimportapi.EmailMessage;
|
|
1867
|
+
reader.readMessage(value,proto.sniipemailimportapi.EmailMessage.deserializeBinaryFromReader);
|
|
1868
|
+
msg.getEmailmessagesList().push(value);
|
|
1869
|
+
msg.setEmailmessagesList(msg.getEmailmessagesList());
|
|
1870
|
+
break;
|
|
1871
|
+
default:
|
|
1872
|
+
reader.skipField();
|
|
1873
|
+
break;
|
|
1874
|
+
}
|
|
1875
|
+
}
|
|
1876
|
+
return msg;
|
|
1877
|
+
};
|
|
1878
|
+
|
|
1879
|
+
|
|
1880
|
+
/**
|
|
1881
|
+
* Class method variant: serializes the given message to binary data
|
|
1882
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
1883
|
+
* @param {!proto.sniipemailimportapi.EmailMessagesRequest} message
|
|
1884
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1885
|
+
*/
|
|
1886
|
+
proto.sniipemailimportapi.EmailMessagesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1887
|
+
message.serializeBinaryToWriter(writer);
|
|
1888
|
+
};
|
|
1889
|
+
|
|
1890
|
+
|
|
1891
|
+
/**
|
|
1892
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1893
|
+
* @return {!Uint8Array}
|
|
1894
|
+
*/
|
|
1895
|
+
proto.sniipemailimportapi.EmailMessagesRequest.prototype.serializeBinary = function() {
|
|
1896
|
+
var writer = new jspb.BinaryWriter();
|
|
1897
|
+
this.serializeBinaryToWriter(writer);
|
|
1898
|
+
return writer.getResultBuffer();
|
|
1899
|
+
};
|
|
1900
|
+
|
|
1901
|
+
|
|
1902
|
+
/**
|
|
1903
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
1904
|
+
* writing to the given BinaryWriter.
|
|
1905
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1906
|
+
*/
|
|
1907
|
+
proto.sniipemailimportapi.EmailMessagesRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
1908
|
+
var f = undefined;
|
|
1909
|
+
f = this.getEmailmessagesList();
|
|
1910
|
+
if (f.length > 0) {
|
|
1911
|
+
writer.writeRepeatedMessage(
|
|
1912
|
+
1,
|
|
1913
|
+
f,
|
|
1914
|
+
proto.sniipemailimportapi.EmailMessage.serializeBinaryToWriter
|
|
1915
|
+
);
|
|
1916
|
+
}
|
|
1917
|
+
};
|
|
1918
|
+
|
|
1919
|
+
|
|
1920
|
+
/**
|
|
1921
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
1922
|
+
* @return {!proto.sniipemailimportapi.EmailMessagesRequest} The clone.
|
|
1923
|
+
*/
|
|
1924
|
+
proto.sniipemailimportapi.EmailMessagesRequest.prototype.cloneMessage = function() {
|
|
1925
|
+
return /** @type {!proto.sniipemailimportapi.EmailMessagesRequest} */ (jspb.Message.cloneMessage(this));
|
|
1926
|
+
};
|
|
1927
|
+
|
|
1928
|
+
|
|
1929
|
+
/**
|
|
1930
|
+
* repeated EmailMessage emailMessages = 1;
|
|
1931
|
+
* If you change this array by adding, removing or replacing elements, or if you
|
|
1932
|
+
* replace the array itself, then you must call the setter to update it.
|
|
1933
|
+
* @return {!Array.<!proto.sniipemailimportapi.EmailMessage>}
|
|
1934
|
+
*/
|
|
1935
|
+
proto.sniipemailimportapi.EmailMessagesRequest.prototype.getEmailmessagesList = function() {
|
|
1936
|
+
return /** @type{!Array.<!proto.sniipemailimportapi.EmailMessage>} */ (
|
|
1937
|
+
jspb.Message.getRepeatedWrapperField(this, proto.sniipemailimportapi.EmailMessage, 1));
|
|
1938
|
+
};
|
|
1939
|
+
|
|
1940
|
+
|
|
1941
|
+
/** @param {Array.<!proto.sniipemailimportapi.EmailMessage>} value */
|
|
1942
|
+
proto.sniipemailimportapi.EmailMessagesRequest.prototype.setEmailmessagesList = function(value) {
|
|
1943
|
+
jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
1944
|
+
};
|
|
1945
|
+
|
|
1946
|
+
|
|
1947
|
+
proto.sniipemailimportapi.EmailMessagesRequest.prototype.clearEmailmessagesList = function() {
|
|
1948
|
+
this.setEmailmessagesList([]);
|
|
1949
|
+
};
|
|
1950
|
+
|
|
1951
|
+
|
|
1952
|
+
|
|
1186
1953
|
/**
|
|
1187
1954
|
* Generated by JsPbCodeGenerator.
|
|
1188
1955
|
* @param {Array=} opt_data Optional initial data array, typically from a
|