@sniipwebmaster/realtime-message-client-grpcweb 21.18.3
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.
- package/dependancies/google/api/annotations_pb.js +42 -0
- package/dependancies/google/api/http_pb.js +911 -0
- package/dependancies/grpcweb/README.txt +11 -0
- package/dependancies/grpcweb/google-protobuf/google/protobuf/README +5 -0
- package/dependancies/grpcweb/google-protobuf/google/protobuf/empty_pb.js +131 -0
- package/dependancies/protoc-gen-openapiv2/options/annotations_pb.js +42 -0
- package/dependancies/protoc-gen-openapiv2/options/http_pb.js +911 -0
- package/dependancies/service_grpc_web_pb.js +315 -0
- package/dependancies/service_pb.js +1063 -0
- package/index.js +4 -0
- package/package.json +11 -0
|
@@ -0,0 +1,1063 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview
|
|
3
|
+
* @enhanceable
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
7
|
+
|
|
8
|
+
var jspb = require('google-protobuf');
|
|
9
|
+
var goog = jspb;
|
|
10
|
+
var global = Function('return this')();
|
|
11
|
+
|
|
12
|
+
var google_api_annotations_pb = require('./google/api/annotations_pb.js');
|
|
13
|
+
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
14
|
+
var protoc$gen$openapiv2_options_annotations_pb = require('./protoc-gen-openapiv2/options/annotations_pb.js');
|
|
15
|
+
goog.exportSymbol('proto.realtimemessageapi.BillPaid', null, global);
|
|
16
|
+
goog.exportSymbol('proto.realtimemessageapi.EmptyRequest', null, global);
|
|
17
|
+
goog.exportSymbol('proto.realtimemessageapi.Event', null, global);
|
|
18
|
+
goog.exportSymbol('proto.realtimemessageapi.EventType', null, global);
|
|
19
|
+
goog.exportSymbol('proto.realtimemessageapi.PostRequest', null, global);
|
|
20
|
+
goog.exportSymbol('proto.realtimemessageapi.ResponseCode', null, global);
|
|
21
|
+
goog.exportSymbol('proto.realtimemessageapi.SubscribeType', null, global);
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Generated by JsPbCodeGenerator.
|
|
25
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
26
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
27
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
28
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
29
|
+
* valid.
|
|
30
|
+
* @extends {jspb.Message}
|
|
31
|
+
* @constructor
|
|
32
|
+
*/
|
|
33
|
+
proto.realtimemessageapi.ResponseCode = function(opt_data) {
|
|
34
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
35
|
+
};
|
|
36
|
+
goog.inherits(proto.realtimemessageapi.ResponseCode, jspb.Message);
|
|
37
|
+
if (goog.DEBUG && !COMPILED) {
|
|
38
|
+
proto.realtimemessageapi.ResponseCode.displayName = 'proto.realtimemessageapi.ResponseCode';
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
43
|
+
/**
|
|
44
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
45
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
46
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
47
|
+
* For the list of reserved names please see:
|
|
48
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
49
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
50
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
51
|
+
* @return {!Object}
|
|
52
|
+
*/
|
|
53
|
+
proto.realtimemessageapi.ResponseCode.prototype.toObject = function(opt_includeInstance) {
|
|
54
|
+
return proto.realtimemessageapi.ResponseCode.toObject(opt_includeInstance, this);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Static version of the {@see toObject} method.
|
|
60
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
61
|
+
* instance for transitional soy proto support:
|
|
62
|
+
* http://goto/soy-param-migration
|
|
63
|
+
* @param {!proto.realtimemessageapi.ResponseCode} msg The msg instance to transform.
|
|
64
|
+
* @return {!Object}
|
|
65
|
+
*/
|
|
66
|
+
proto.realtimemessageapi.ResponseCode.toObject = function(includeInstance, msg) {
|
|
67
|
+
var f, obj = {
|
|
68
|
+
message: msg.getMessage(),
|
|
69
|
+
code: msg.getCode()
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
if (includeInstance) {
|
|
73
|
+
obj.$jspbMessageInstance = msg;
|
|
74
|
+
}
|
|
75
|
+
return obj;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Deserializes binary data (in protobuf wire format).
|
|
82
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
83
|
+
* @return {!proto.realtimemessageapi.ResponseCode}
|
|
84
|
+
*/
|
|
85
|
+
proto.realtimemessageapi.ResponseCode.deserializeBinary = function(bytes) {
|
|
86
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
87
|
+
var msg = new proto.realtimemessageapi.ResponseCode;
|
|
88
|
+
return proto.realtimemessageapi.ResponseCode.deserializeBinaryFromReader(msg, reader);
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
94
|
+
* given reader into the given message object.
|
|
95
|
+
* @param {!proto.realtimemessageapi.ResponseCode} msg The message object to deserialize into.
|
|
96
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
97
|
+
* @return {!proto.realtimemessageapi.ResponseCode}
|
|
98
|
+
*/
|
|
99
|
+
proto.realtimemessageapi.ResponseCode.deserializeBinaryFromReader = function(msg, reader) {
|
|
100
|
+
while (reader.nextField()) {
|
|
101
|
+
if (reader.isEndGroup()) {
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
var field = reader.getFieldNumber();
|
|
105
|
+
switch (field) {
|
|
106
|
+
case 1:
|
|
107
|
+
var value = /** @type {string} */ (reader.readString());
|
|
108
|
+
msg.setMessage(value);
|
|
109
|
+
break;
|
|
110
|
+
case 2:
|
|
111
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
112
|
+
msg.setCode(value);
|
|
113
|
+
break;
|
|
114
|
+
default:
|
|
115
|
+
reader.skipField();
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return msg;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Class method variant: serializes the given message to binary data
|
|
125
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
126
|
+
* @param {!proto.realtimemessageapi.ResponseCode} message
|
|
127
|
+
* @param {!jspb.BinaryWriter} writer
|
|
128
|
+
*/
|
|
129
|
+
proto.realtimemessageapi.ResponseCode.serializeBinaryToWriter = function(message, writer) {
|
|
130
|
+
message.serializeBinaryToWriter(writer);
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
136
|
+
* @return {!Uint8Array}
|
|
137
|
+
*/
|
|
138
|
+
proto.realtimemessageapi.ResponseCode.prototype.serializeBinary = function() {
|
|
139
|
+
var writer = new jspb.BinaryWriter();
|
|
140
|
+
this.serializeBinaryToWriter(writer);
|
|
141
|
+
return writer.getResultBuffer();
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
147
|
+
* writing to the given BinaryWriter.
|
|
148
|
+
* @param {!jspb.BinaryWriter} writer
|
|
149
|
+
*/
|
|
150
|
+
proto.realtimemessageapi.ResponseCode.prototype.serializeBinaryToWriter = function (writer) {
|
|
151
|
+
var f = undefined;
|
|
152
|
+
f = this.getMessage();
|
|
153
|
+
if (f.length > 0) {
|
|
154
|
+
writer.writeString(
|
|
155
|
+
1,
|
|
156
|
+
f
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
f = this.getCode();
|
|
160
|
+
if (f !== 0) {
|
|
161
|
+
writer.writeInt32(
|
|
162
|
+
2,
|
|
163
|
+
f
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
171
|
+
* @return {!proto.realtimemessageapi.ResponseCode} The clone.
|
|
172
|
+
*/
|
|
173
|
+
proto.realtimemessageapi.ResponseCode.prototype.cloneMessage = function() {
|
|
174
|
+
return /** @type {!proto.realtimemessageapi.ResponseCode} */ (jspb.Message.cloneMessage(this));
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* optional string message = 1;
|
|
180
|
+
* @return {string}
|
|
181
|
+
*/
|
|
182
|
+
proto.realtimemessageapi.ResponseCode.prototype.getMessage = function() {
|
|
183
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
/** @param {string} value */
|
|
188
|
+
proto.realtimemessageapi.ResponseCode.prototype.setMessage = function(value) {
|
|
189
|
+
jspb.Message.setField(this, 1, value);
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* optional int32 code = 2;
|
|
195
|
+
* @return {number}
|
|
196
|
+
*/
|
|
197
|
+
proto.realtimemessageapi.ResponseCode.prototype.getCode = function() {
|
|
198
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
/** @param {number} value */
|
|
203
|
+
proto.realtimemessageapi.ResponseCode.prototype.setCode = function(value) {
|
|
204
|
+
jspb.Message.setField(this, 2, value);
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Generated by JsPbCodeGenerator.
|
|
211
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
212
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
213
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
214
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
215
|
+
* valid.
|
|
216
|
+
* @extends {jspb.Message}
|
|
217
|
+
* @constructor
|
|
218
|
+
*/
|
|
219
|
+
proto.realtimemessageapi.PostRequest = function(opt_data) {
|
|
220
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
221
|
+
};
|
|
222
|
+
goog.inherits(proto.realtimemessageapi.PostRequest, jspb.Message);
|
|
223
|
+
if (goog.DEBUG && !COMPILED) {
|
|
224
|
+
proto.realtimemessageapi.PostRequest.displayName = 'proto.realtimemessageapi.PostRequest';
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
229
|
+
/**
|
|
230
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
231
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
232
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
233
|
+
* For the list of reserved names please see:
|
|
234
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
235
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
236
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
237
|
+
* @return {!Object}
|
|
238
|
+
*/
|
|
239
|
+
proto.realtimemessageapi.PostRequest.prototype.toObject = function(opt_includeInstance) {
|
|
240
|
+
return proto.realtimemessageapi.PostRequest.toObject(opt_includeInstance, this);
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Static version of the {@see toObject} method.
|
|
246
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
247
|
+
* instance for transitional soy proto support:
|
|
248
|
+
* http://goto/soy-param-migration
|
|
249
|
+
* @param {!proto.realtimemessageapi.PostRequest} msg The msg instance to transform.
|
|
250
|
+
* @return {!Object}
|
|
251
|
+
*/
|
|
252
|
+
proto.realtimemessageapi.PostRequest.toObject = function(includeInstance, msg) {
|
|
253
|
+
var f, obj = {
|
|
254
|
+
value: msg.getValue()
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
if (includeInstance) {
|
|
258
|
+
obj.$jspbMessageInstance = msg;
|
|
259
|
+
}
|
|
260
|
+
return obj;
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Deserializes binary data (in protobuf wire format).
|
|
267
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
268
|
+
* @return {!proto.realtimemessageapi.PostRequest}
|
|
269
|
+
*/
|
|
270
|
+
proto.realtimemessageapi.PostRequest.deserializeBinary = function(bytes) {
|
|
271
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
272
|
+
var msg = new proto.realtimemessageapi.PostRequest;
|
|
273
|
+
return proto.realtimemessageapi.PostRequest.deserializeBinaryFromReader(msg, reader);
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
279
|
+
* given reader into the given message object.
|
|
280
|
+
* @param {!proto.realtimemessageapi.PostRequest} msg The message object to deserialize into.
|
|
281
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
282
|
+
* @return {!proto.realtimemessageapi.PostRequest}
|
|
283
|
+
*/
|
|
284
|
+
proto.realtimemessageapi.PostRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
285
|
+
while (reader.nextField()) {
|
|
286
|
+
if (reader.isEndGroup()) {
|
|
287
|
+
break;
|
|
288
|
+
}
|
|
289
|
+
var field = reader.getFieldNumber();
|
|
290
|
+
switch (field) {
|
|
291
|
+
case 1:
|
|
292
|
+
var value = /** @type {string} */ (reader.readString());
|
|
293
|
+
msg.setValue(value);
|
|
294
|
+
break;
|
|
295
|
+
default:
|
|
296
|
+
reader.skipField();
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
return msg;
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Class method variant: serializes the given message to binary data
|
|
306
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
307
|
+
* @param {!proto.realtimemessageapi.PostRequest} message
|
|
308
|
+
* @param {!jspb.BinaryWriter} writer
|
|
309
|
+
*/
|
|
310
|
+
proto.realtimemessageapi.PostRequest.serializeBinaryToWriter = function(message, writer) {
|
|
311
|
+
message.serializeBinaryToWriter(writer);
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
317
|
+
* @return {!Uint8Array}
|
|
318
|
+
*/
|
|
319
|
+
proto.realtimemessageapi.PostRequest.prototype.serializeBinary = function() {
|
|
320
|
+
var writer = new jspb.BinaryWriter();
|
|
321
|
+
this.serializeBinaryToWriter(writer);
|
|
322
|
+
return writer.getResultBuffer();
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
328
|
+
* writing to the given BinaryWriter.
|
|
329
|
+
* @param {!jspb.BinaryWriter} writer
|
|
330
|
+
*/
|
|
331
|
+
proto.realtimemessageapi.PostRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
332
|
+
var f = undefined;
|
|
333
|
+
f = this.getValue();
|
|
334
|
+
if (f.length > 0) {
|
|
335
|
+
writer.writeString(
|
|
336
|
+
1,
|
|
337
|
+
f
|
|
338
|
+
);
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
345
|
+
* @return {!proto.realtimemessageapi.PostRequest} The clone.
|
|
346
|
+
*/
|
|
347
|
+
proto.realtimemessageapi.PostRequest.prototype.cloneMessage = function() {
|
|
348
|
+
return /** @type {!proto.realtimemessageapi.PostRequest} */ (jspb.Message.cloneMessage(this));
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* optional string value = 1;
|
|
354
|
+
* @return {string}
|
|
355
|
+
*/
|
|
356
|
+
proto.realtimemessageapi.PostRequest.prototype.getValue = function() {
|
|
357
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
/** @param {string} value */
|
|
362
|
+
proto.realtimemessageapi.PostRequest.prototype.setValue = function(value) {
|
|
363
|
+
jspb.Message.setField(this, 1, value);
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Generated by JsPbCodeGenerator.
|
|
370
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
371
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
372
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
373
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
374
|
+
* valid.
|
|
375
|
+
* @extends {jspb.Message}
|
|
376
|
+
* @constructor
|
|
377
|
+
*/
|
|
378
|
+
proto.realtimemessageapi.BillPaid = function(opt_data) {
|
|
379
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
380
|
+
};
|
|
381
|
+
goog.inherits(proto.realtimemessageapi.BillPaid, jspb.Message);
|
|
382
|
+
if (goog.DEBUG && !COMPILED) {
|
|
383
|
+
proto.realtimemessageapi.BillPaid.displayName = 'proto.realtimemessageapi.BillPaid';
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
388
|
+
/**
|
|
389
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
390
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
391
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
392
|
+
* For the list of reserved names please see:
|
|
393
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
394
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
395
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
396
|
+
* @return {!Object}
|
|
397
|
+
*/
|
|
398
|
+
proto.realtimemessageapi.BillPaid.prototype.toObject = function(opt_includeInstance) {
|
|
399
|
+
return proto.realtimemessageapi.BillPaid.toObject(opt_includeInstance, this);
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Static version of the {@see toObject} method.
|
|
405
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
406
|
+
* instance for transitional soy proto support:
|
|
407
|
+
* http://goto/soy-param-migration
|
|
408
|
+
* @param {!proto.realtimemessageapi.BillPaid} msg The msg instance to transform.
|
|
409
|
+
* @return {!Object}
|
|
410
|
+
*/
|
|
411
|
+
proto.realtimemessageapi.BillPaid.toObject = function(includeInstance, msg) {
|
|
412
|
+
var f, obj = {
|
|
413
|
+
userid: msg.getUserid()
|
|
414
|
+
};
|
|
415
|
+
|
|
416
|
+
if (includeInstance) {
|
|
417
|
+
obj.$jspbMessageInstance = msg;
|
|
418
|
+
}
|
|
419
|
+
return obj;
|
|
420
|
+
};
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Deserializes binary data (in protobuf wire format).
|
|
426
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
427
|
+
* @return {!proto.realtimemessageapi.BillPaid}
|
|
428
|
+
*/
|
|
429
|
+
proto.realtimemessageapi.BillPaid.deserializeBinary = function(bytes) {
|
|
430
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
431
|
+
var msg = new proto.realtimemessageapi.BillPaid;
|
|
432
|
+
return proto.realtimemessageapi.BillPaid.deserializeBinaryFromReader(msg, reader);
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
438
|
+
* given reader into the given message object.
|
|
439
|
+
* @param {!proto.realtimemessageapi.BillPaid} msg The message object to deserialize into.
|
|
440
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
441
|
+
* @return {!proto.realtimemessageapi.BillPaid}
|
|
442
|
+
*/
|
|
443
|
+
proto.realtimemessageapi.BillPaid.deserializeBinaryFromReader = function(msg, reader) {
|
|
444
|
+
while (reader.nextField()) {
|
|
445
|
+
if (reader.isEndGroup()) {
|
|
446
|
+
break;
|
|
447
|
+
}
|
|
448
|
+
var field = reader.getFieldNumber();
|
|
449
|
+
switch (field) {
|
|
450
|
+
case 1:
|
|
451
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
452
|
+
msg.setUserid(value);
|
|
453
|
+
break;
|
|
454
|
+
default:
|
|
455
|
+
reader.skipField();
|
|
456
|
+
break;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
return msg;
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* Class method variant: serializes the given message to binary data
|
|
465
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
466
|
+
* @param {!proto.realtimemessageapi.BillPaid} message
|
|
467
|
+
* @param {!jspb.BinaryWriter} writer
|
|
468
|
+
*/
|
|
469
|
+
proto.realtimemessageapi.BillPaid.serializeBinaryToWriter = function(message, writer) {
|
|
470
|
+
message.serializeBinaryToWriter(writer);
|
|
471
|
+
};
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
476
|
+
* @return {!Uint8Array}
|
|
477
|
+
*/
|
|
478
|
+
proto.realtimemessageapi.BillPaid.prototype.serializeBinary = function() {
|
|
479
|
+
var writer = new jspb.BinaryWriter();
|
|
480
|
+
this.serializeBinaryToWriter(writer);
|
|
481
|
+
return writer.getResultBuffer();
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
487
|
+
* writing to the given BinaryWriter.
|
|
488
|
+
* @param {!jspb.BinaryWriter} writer
|
|
489
|
+
*/
|
|
490
|
+
proto.realtimemessageapi.BillPaid.prototype.serializeBinaryToWriter = function (writer) {
|
|
491
|
+
var f = undefined;
|
|
492
|
+
f = this.getUserid();
|
|
493
|
+
if (f !== 0) {
|
|
494
|
+
writer.writeInt64(
|
|
495
|
+
1,
|
|
496
|
+
f
|
|
497
|
+
);
|
|
498
|
+
}
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
504
|
+
* @return {!proto.realtimemessageapi.BillPaid} The clone.
|
|
505
|
+
*/
|
|
506
|
+
proto.realtimemessageapi.BillPaid.prototype.cloneMessage = function() {
|
|
507
|
+
return /** @type {!proto.realtimemessageapi.BillPaid} */ (jspb.Message.cloneMessage(this));
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* optional int64 UserId = 1;
|
|
513
|
+
* @return {number}
|
|
514
|
+
*/
|
|
515
|
+
proto.realtimemessageapi.BillPaid.prototype.getUserid = function() {
|
|
516
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
/** @param {number} value */
|
|
521
|
+
proto.realtimemessageapi.BillPaid.prototype.setUserid = function(value) {
|
|
522
|
+
jspb.Message.setField(this, 1, value);
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Generated by JsPbCodeGenerator.
|
|
529
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
530
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
531
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
532
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
533
|
+
* valid.
|
|
534
|
+
* @extends {jspb.Message}
|
|
535
|
+
* @constructor
|
|
536
|
+
*/
|
|
537
|
+
proto.realtimemessageapi.EmptyRequest = function(opt_data) {
|
|
538
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
539
|
+
};
|
|
540
|
+
goog.inherits(proto.realtimemessageapi.EmptyRequest, jspb.Message);
|
|
541
|
+
if (goog.DEBUG && !COMPILED) {
|
|
542
|
+
proto.realtimemessageapi.EmptyRequest.displayName = 'proto.realtimemessageapi.EmptyRequest';
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
547
|
+
/**
|
|
548
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
549
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
550
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
551
|
+
* For the list of reserved names please see:
|
|
552
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
553
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
554
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
555
|
+
* @return {!Object}
|
|
556
|
+
*/
|
|
557
|
+
proto.realtimemessageapi.EmptyRequest.prototype.toObject = function(opt_includeInstance) {
|
|
558
|
+
return proto.realtimemessageapi.EmptyRequest.toObject(opt_includeInstance, this);
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* Static version of the {@see toObject} method.
|
|
564
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
565
|
+
* instance for transitional soy proto support:
|
|
566
|
+
* http://goto/soy-param-migration
|
|
567
|
+
* @param {!proto.realtimemessageapi.EmptyRequest} msg The msg instance to transform.
|
|
568
|
+
* @return {!Object}
|
|
569
|
+
*/
|
|
570
|
+
proto.realtimemessageapi.EmptyRequest.toObject = function(includeInstance, msg) {
|
|
571
|
+
var f, obj = {
|
|
572
|
+
|
|
573
|
+
};
|
|
574
|
+
|
|
575
|
+
if (includeInstance) {
|
|
576
|
+
obj.$jspbMessageInstance = msg;
|
|
577
|
+
}
|
|
578
|
+
return obj;
|
|
579
|
+
};
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* Deserializes binary data (in protobuf wire format).
|
|
585
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
586
|
+
* @return {!proto.realtimemessageapi.EmptyRequest}
|
|
587
|
+
*/
|
|
588
|
+
proto.realtimemessageapi.EmptyRequest.deserializeBinary = function(bytes) {
|
|
589
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
590
|
+
var msg = new proto.realtimemessageapi.EmptyRequest;
|
|
591
|
+
return proto.realtimemessageapi.EmptyRequest.deserializeBinaryFromReader(msg, reader);
|
|
592
|
+
};
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
597
|
+
* given reader into the given message object.
|
|
598
|
+
* @param {!proto.realtimemessageapi.EmptyRequest} msg The message object to deserialize into.
|
|
599
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
600
|
+
* @return {!proto.realtimemessageapi.EmptyRequest}
|
|
601
|
+
*/
|
|
602
|
+
proto.realtimemessageapi.EmptyRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
603
|
+
while (reader.nextField()) {
|
|
604
|
+
if (reader.isEndGroup()) {
|
|
605
|
+
break;
|
|
606
|
+
}
|
|
607
|
+
var field = reader.getFieldNumber();
|
|
608
|
+
switch (field) {
|
|
609
|
+
default:
|
|
610
|
+
reader.skipField();
|
|
611
|
+
break;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
return msg;
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* Class method variant: serializes the given message to binary data
|
|
620
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
621
|
+
* @param {!proto.realtimemessageapi.EmptyRequest} message
|
|
622
|
+
* @param {!jspb.BinaryWriter} writer
|
|
623
|
+
*/
|
|
624
|
+
proto.realtimemessageapi.EmptyRequest.serializeBinaryToWriter = function(message, writer) {
|
|
625
|
+
message.serializeBinaryToWriter(writer);
|
|
626
|
+
};
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
631
|
+
* @return {!Uint8Array}
|
|
632
|
+
*/
|
|
633
|
+
proto.realtimemessageapi.EmptyRequest.prototype.serializeBinary = function() {
|
|
634
|
+
var writer = new jspb.BinaryWriter();
|
|
635
|
+
this.serializeBinaryToWriter(writer);
|
|
636
|
+
return writer.getResultBuffer();
|
|
637
|
+
};
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
642
|
+
* writing to the given BinaryWriter.
|
|
643
|
+
* @param {!jspb.BinaryWriter} writer
|
|
644
|
+
*/
|
|
645
|
+
proto.realtimemessageapi.EmptyRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
646
|
+
var f = undefined;
|
|
647
|
+
};
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
652
|
+
* @return {!proto.realtimemessageapi.EmptyRequest} The clone.
|
|
653
|
+
*/
|
|
654
|
+
proto.realtimemessageapi.EmptyRequest.prototype.cloneMessage = function() {
|
|
655
|
+
return /** @type {!proto.realtimemessageapi.EmptyRequest} */ (jspb.Message.cloneMessage(this));
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Generated by JsPbCodeGenerator.
|
|
662
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
663
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
664
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
665
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
666
|
+
* valid.
|
|
667
|
+
* @extends {jspb.Message}
|
|
668
|
+
* @constructor
|
|
669
|
+
*/
|
|
670
|
+
proto.realtimemessageapi.SubscribeType = function(opt_data) {
|
|
671
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
672
|
+
};
|
|
673
|
+
goog.inherits(proto.realtimemessageapi.SubscribeType, jspb.Message);
|
|
674
|
+
if (goog.DEBUG && !COMPILED) {
|
|
675
|
+
proto.realtimemessageapi.SubscribeType.displayName = 'proto.realtimemessageapi.SubscribeType';
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
680
|
+
/**
|
|
681
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
682
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
683
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
684
|
+
* For the list of reserved names please see:
|
|
685
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
686
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
687
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
688
|
+
* @return {!Object}
|
|
689
|
+
*/
|
|
690
|
+
proto.realtimemessageapi.SubscribeType.prototype.toObject = function(opt_includeInstance) {
|
|
691
|
+
return proto.realtimemessageapi.SubscribeType.toObject(opt_includeInstance, this);
|
|
692
|
+
};
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* Static version of the {@see toObject} method.
|
|
697
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
698
|
+
* instance for transitional soy proto support:
|
|
699
|
+
* http://goto/soy-param-migration
|
|
700
|
+
* @param {!proto.realtimemessageapi.SubscribeType} msg The msg instance to transform.
|
|
701
|
+
* @return {!Object}
|
|
702
|
+
*/
|
|
703
|
+
proto.realtimemessageapi.SubscribeType.toObject = function(includeInstance, msg) {
|
|
704
|
+
var f, obj = {
|
|
705
|
+
eventtype: msg.getEventtype()
|
|
706
|
+
};
|
|
707
|
+
|
|
708
|
+
if (includeInstance) {
|
|
709
|
+
obj.$jspbMessageInstance = msg;
|
|
710
|
+
}
|
|
711
|
+
return obj;
|
|
712
|
+
};
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
* Deserializes binary data (in protobuf wire format).
|
|
718
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
719
|
+
* @return {!proto.realtimemessageapi.SubscribeType}
|
|
720
|
+
*/
|
|
721
|
+
proto.realtimemessageapi.SubscribeType.deserializeBinary = function(bytes) {
|
|
722
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
723
|
+
var msg = new proto.realtimemessageapi.SubscribeType;
|
|
724
|
+
return proto.realtimemessageapi.SubscribeType.deserializeBinaryFromReader(msg, reader);
|
|
725
|
+
};
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
730
|
+
* given reader into the given message object.
|
|
731
|
+
* @param {!proto.realtimemessageapi.SubscribeType} msg The message object to deserialize into.
|
|
732
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
733
|
+
* @return {!proto.realtimemessageapi.SubscribeType}
|
|
734
|
+
*/
|
|
735
|
+
proto.realtimemessageapi.SubscribeType.deserializeBinaryFromReader = function(msg, reader) {
|
|
736
|
+
while (reader.nextField()) {
|
|
737
|
+
if (reader.isEndGroup()) {
|
|
738
|
+
break;
|
|
739
|
+
}
|
|
740
|
+
var field = reader.getFieldNumber();
|
|
741
|
+
switch (field) {
|
|
742
|
+
case 1:
|
|
743
|
+
var value = /** @type {!proto.realtimemessageapi.EventType} */ (reader.readEnum());
|
|
744
|
+
msg.setEventtype(value);
|
|
745
|
+
break;
|
|
746
|
+
default:
|
|
747
|
+
reader.skipField();
|
|
748
|
+
break;
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
return msg;
|
|
752
|
+
};
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* Class method variant: serializes the given message to binary data
|
|
757
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
758
|
+
* @param {!proto.realtimemessageapi.SubscribeType} message
|
|
759
|
+
* @param {!jspb.BinaryWriter} writer
|
|
760
|
+
*/
|
|
761
|
+
proto.realtimemessageapi.SubscribeType.serializeBinaryToWriter = function(message, writer) {
|
|
762
|
+
message.serializeBinaryToWriter(writer);
|
|
763
|
+
};
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
768
|
+
* @return {!Uint8Array}
|
|
769
|
+
*/
|
|
770
|
+
proto.realtimemessageapi.SubscribeType.prototype.serializeBinary = function() {
|
|
771
|
+
var writer = new jspb.BinaryWriter();
|
|
772
|
+
this.serializeBinaryToWriter(writer);
|
|
773
|
+
return writer.getResultBuffer();
|
|
774
|
+
};
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
779
|
+
* writing to the given BinaryWriter.
|
|
780
|
+
* @param {!jspb.BinaryWriter} writer
|
|
781
|
+
*/
|
|
782
|
+
proto.realtimemessageapi.SubscribeType.prototype.serializeBinaryToWriter = function (writer) {
|
|
783
|
+
var f = undefined;
|
|
784
|
+
f = this.getEventtype();
|
|
785
|
+
if (f !== 0.0) {
|
|
786
|
+
writer.writeEnum(
|
|
787
|
+
1,
|
|
788
|
+
f
|
|
789
|
+
);
|
|
790
|
+
}
|
|
791
|
+
};
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
/**
|
|
795
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
796
|
+
* @return {!proto.realtimemessageapi.SubscribeType} The clone.
|
|
797
|
+
*/
|
|
798
|
+
proto.realtimemessageapi.SubscribeType.prototype.cloneMessage = function() {
|
|
799
|
+
return /** @type {!proto.realtimemessageapi.SubscribeType} */ (jspb.Message.cloneMessage(this));
|
|
800
|
+
};
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* optional EventType eventType = 1;
|
|
805
|
+
* @return {!proto.realtimemessageapi.EventType}
|
|
806
|
+
*/
|
|
807
|
+
proto.realtimemessageapi.SubscribeType.prototype.getEventtype = function() {
|
|
808
|
+
return /** @type {!proto.realtimemessageapi.EventType} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
809
|
+
};
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
/** @param {!proto.realtimemessageapi.EventType} value */
|
|
813
|
+
proto.realtimemessageapi.SubscribeType.prototype.setEventtype = function(value) {
|
|
814
|
+
jspb.Message.setField(this, 1, value);
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* Generated by JsPbCodeGenerator.
|
|
821
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
822
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
823
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
824
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
825
|
+
* valid.
|
|
826
|
+
* @extends {jspb.Message}
|
|
827
|
+
* @constructor
|
|
828
|
+
*/
|
|
829
|
+
proto.realtimemessageapi.Event = function(opt_data) {
|
|
830
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
831
|
+
};
|
|
832
|
+
goog.inherits(proto.realtimemessageapi.Event, jspb.Message);
|
|
833
|
+
if (goog.DEBUG && !COMPILED) {
|
|
834
|
+
proto.realtimemessageapi.Event.displayName = 'proto.realtimemessageapi.Event';
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
839
|
+
/**
|
|
840
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
841
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
842
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
843
|
+
* For the list of reserved names please see:
|
|
844
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
845
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
846
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
847
|
+
* @return {!Object}
|
|
848
|
+
*/
|
|
849
|
+
proto.realtimemessageapi.Event.prototype.toObject = function(opt_includeInstance) {
|
|
850
|
+
return proto.realtimemessageapi.Event.toObject(opt_includeInstance, this);
|
|
851
|
+
};
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* Static version of the {@see toObject} method.
|
|
856
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
857
|
+
* instance for transitional soy proto support:
|
|
858
|
+
* http://goto/soy-param-migration
|
|
859
|
+
* @param {!proto.realtimemessageapi.Event} msg The msg instance to transform.
|
|
860
|
+
* @return {!Object}
|
|
861
|
+
*/
|
|
862
|
+
proto.realtimemessageapi.Event.toObject = function(includeInstance, msg) {
|
|
863
|
+
var f, obj = {
|
|
864
|
+
eventtype: msg.getEventtype(),
|
|
865
|
+
event: msg.getEvent_asB64(),
|
|
866
|
+
userid: msg.getUserid()
|
|
867
|
+
};
|
|
868
|
+
|
|
869
|
+
if (includeInstance) {
|
|
870
|
+
obj.$jspbMessageInstance = msg;
|
|
871
|
+
}
|
|
872
|
+
return obj;
|
|
873
|
+
};
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
/**
|
|
878
|
+
* Deserializes binary data (in protobuf wire format).
|
|
879
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
880
|
+
* @return {!proto.realtimemessageapi.Event}
|
|
881
|
+
*/
|
|
882
|
+
proto.realtimemessageapi.Event.deserializeBinary = function(bytes) {
|
|
883
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
884
|
+
var msg = new proto.realtimemessageapi.Event;
|
|
885
|
+
return proto.realtimemessageapi.Event.deserializeBinaryFromReader(msg, reader);
|
|
886
|
+
};
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
/**
|
|
890
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
891
|
+
* given reader into the given message object.
|
|
892
|
+
* @param {!proto.realtimemessageapi.Event} msg The message object to deserialize into.
|
|
893
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
894
|
+
* @return {!proto.realtimemessageapi.Event}
|
|
895
|
+
*/
|
|
896
|
+
proto.realtimemessageapi.Event.deserializeBinaryFromReader = function(msg, reader) {
|
|
897
|
+
while (reader.nextField()) {
|
|
898
|
+
if (reader.isEndGroup()) {
|
|
899
|
+
break;
|
|
900
|
+
}
|
|
901
|
+
var field = reader.getFieldNumber();
|
|
902
|
+
switch (field) {
|
|
903
|
+
case 1:
|
|
904
|
+
var value = /** @type {string} */ (reader.readString());
|
|
905
|
+
msg.setEventtype(value);
|
|
906
|
+
break;
|
|
907
|
+
case 2:
|
|
908
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
909
|
+
msg.setEvent(value);
|
|
910
|
+
break;
|
|
911
|
+
case 3:
|
|
912
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
913
|
+
msg.setUserid(value);
|
|
914
|
+
break;
|
|
915
|
+
default:
|
|
916
|
+
reader.skipField();
|
|
917
|
+
break;
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
return msg;
|
|
921
|
+
};
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* Class method variant: serializes the given message to binary data
|
|
926
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
927
|
+
* @param {!proto.realtimemessageapi.Event} message
|
|
928
|
+
* @param {!jspb.BinaryWriter} writer
|
|
929
|
+
*/
|
|
930
|
+
proto.realtimemessageapi.Event.serializeBinaryToWriter = function(message, writer) {
|
|
931
|
+
message.serializeBinaryToWriter(writer);
|
|
932
|
+
};
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
937
|
+
* @return {!Uint8Array}
|
|
938
|
+
*/
|
|
939
|
+
proto.realtimemessageapi.Event.prototype.serializeBinary = function() {
|
|
940
|
+
var writer = new jspb.BinaryWriter();
|
|
941
|
+
this.serializeBinaryToWriter(writer);
|
|
942
|
+
return writer.getResultBuffer();
|
|
943
|
+
};
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
948
|
+
* writing to the given BinaryWriter.
|
|
949
|
+
* @param {!jspb.BinaryWriter} writer
|
|
950
|
+
*/
|
|
951
|
+
proto.realtimemessageapi.Event.prototype.serializeBinaryToWriter = function (writer) {
|
|
952
|
+
var f = undefined;
|
|
953
|
+
f = this.getEventtype();
|
|
954
|
+
if (f.length > 0) {
|
|
955
|
+
writer.writeString(
|
|
956
|
+
1,
|
|
957
|
+
f
|
|
958
|
+
);
|
|
959
|
+
}
|
|
960
|
+
f = this.getEvent_asU8();
|
|
961
|
+
if (f.length > 0) {
|
|
962
|
+
writer.writeBytes(
|
|
963
|
+
2,
|
|
964
|
+
f
|
|
965
|
+
);
|
|
966
|
+
}
|
|
967
|
+
f = this.getUserid();
|
|
968
|
+
if (f !== 0) {
|
|
969
|
+
writer.writeInt64(
|
|
970
|
+
3,
|
|
971
|
+
f
|
|
972
|
+
);
|
|
973
|
+
}
|
|
974
|
+
};
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
979
|
+
* @return {!proto.realtimemessageapi.Event} The clone.
|
|
980
|
+
*/
|
|
981
|
+
proto.realtimemessageapi.Event.prototype.cloneMessage = function() {
|
|
982
|
+
return /** @type {!proto.realtimemessageapi.Event} */ (jspb.Message.cloneMessage(this));
|
|
983
|
+
};
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
/**
|
|
987
|
+
* optional string eventType = 1;
|
|
988
|
+
* @return {string}
|
|
989
|
+
*/
|
|
990
|
+
proto.realtimemessageapi.Event.prototype.getEventtype = function() {
|
|
991
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
|
|
992
|
+
};
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
/** @param {string} value */
|
|
996
|
+
proto.realtimemessageapi.Event.prototype.setEventtype = function(value) {
|
|
997
|
+
jspb.Message.setField(this, 1, value);
|
|
998
|
+
};
|
|
999
|
+
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* optional bytes event = 2;
|
|
1003
|
+
* @return {!(string|Uint8Array)}
|
|
1004
|
+
*/
|
|
1005
|
+
proto.realtimemessageapi.Event.prototype.getEvent = function() {
|
|
1006
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldProto3(this, 2, ""));
|
|
1007
|
+
};
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* optional bytes event = 2;
|
|
1012
|
+
* This is a type-conversion wrapper around `getEvent()`
|
|
1013
|
+
* @return {string}
|
|
1014
|
+
*/
|
|
1015
|
+
proto.realtimemessageapi.Event.prototype.getEvent_asB64 = function() {
|
|
1016
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
1017
|
+
this.getEvent()));
|
|
1018
|
+
};
|
|
1019
|
+
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* optional bytes event = 2;
|
|
1023
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
1024
|
+
* @see http://caniuse.com/Uint8Array
|
|
1025
|
+
* This is a type-conversion wrapper around `getEvent()`
|
|
1026
|
+
* @return {!Uint8Array}
|
|
1027
|
+
*/
|
|
1028
|
+
proto.realtimemessageapi.Event.prototype.getEvent_asU8 = function() {
|
|
1029
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
1030
|
+
this.getEvent()));
|
|
1031
|
+
};
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
/** @param {!(string|Uint8Array)} value */
|
|
1035
|
+
proto.realtimemessageapi.Event.prototype.setEvent = function(value) {
|
|
1036
|
+
jspb.Message.setField(this, 2, value);
|
|
1037
|
+
};
|
|
1038
|
+
|
|
1039
|
+
|
|
1040
|
+
/**
|
|
1041
|
+
* optional int64 userId = 3;
|
|
1042
|
+
* @return {number}
|
|
1043
|
+
*/
|
|
1044
|
+
proto.realtimemessageapi.Event.prototype.getUserid = function() {
|
|
1045
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 3, 0));
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1048
|
+
|
|
1049
|
+
/** @param {number} value */
|
|
1050
|
+
proto.realtimemessageapi.Event.prototype.setUserid = function(value) {
|
|
1051
|
+
jspb.Message.setField(this, 3, value);
|
|
1052
|
+
};
|
|
1053
|
+
|
|
1054
|
+
|
|
1055
|
+
/**
|
|
1056
|
+
* @enum {number}
|
|
1057
|
+
*/
|
|
1058
|
+
proto.realtimemessageapi.EventType = {
|
|
1059
|
+
BILL_PAID: 0,
|
|
1060
|
+
WEB: 1
|
|
1061
|
+
};
|
|
1062
|
+
|
|
1063
|
+
goog.object.extend(exports, proto.realtimemessageapi);
|