@lansweeper/asserver-grpc 0.0.5 → 2.2.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.
@@ -0,0 +1,785 @@
1
+ // source: shared/stream.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
6
+ * field starts with 'MSG_' and isn't a translatable message.
7
+ * @public
8
+ */
9
+ // GENERATED CODE -- DO NOT EDIT!
10
+
11
+ var jspb = require('google-protobuf');
12
+ var goog = jspb;
13
+ var global = Function('return this')();
14
+
15
+ goog.exportSymbol('proto.lansweeper.stream.v1.Action', null, global);
16
+ goog.exportSymbol('proto.lansweeper.stream.v1.Headers', null, global);
17
+ goog.exportSymbol('proto.lansweeper.stream.v1.NullableStringList', null, global);
18
+ goog.exportSymbol('proto.lansweeper.stream.v1.NullableStringList.KindCase', null, global);
19
+ goog.exportSymbol('proto.lansweeper.stream.v1.StringList', null, global);
20
+ goog.exportSymbol('proto.lansweeper.stream.v1.SyncType', null, global);
21
+ /**
22
+ * Generated by JsPbCodeGenerator.
23
+ * @param {Array=} opt_data Optional initial data array, typically from a
24
+ * server response, or constructed directly in Javascript. The array is used
25
+ * in place and becomes part of the constructed object. It is not cloned.
26
+ * If no data is provided, the constructed object will be empty, but still
27
+ * valid.
28
+ * @extends {jspb.Message}
29
+ * @constructor
30
+ */
31
+ proto.lansweeper.stream.v1.StringList = function(opt_data) {
32
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.stream.v1.StringList.repeatedFields_, null);
33
+ };
34
+ goog.inherits(proto.lansweeper.stream.v1.StringList, jspb.Message);
35
+ if (goog.DEBUG && !COMPILED) {
36
+ /**
37
+ * @public
38
+ * @override
39
+ */
40
+ proto.lansweeper.stream.v1.StringList.displayName = 'proto.lansweeper.stream.v1.StringList';
41
+ }
42
+ /**
43
+ * Generated by JsPbCodeGenerator.
44
+ * @param {Array=} opt_data Optional initial data array, typically from a
45
+ * server response, or constructed directly in Javascript. The array is used
46
+ * in place and becomes part of the constructed object. It is not cloned.
47
+ * If no data is provided, the constructed object will be empty, but still
48
+ * valid.
49
+ * @extends {jspb.Message}
50
+ * @constructor
51
+ */
52
+ proto.lansweeper.stream.v1.NullableStringList = function(opt_data) {
53
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lansweeper.stream.v1.NullableStringList.oneofGroups_);
54
+ };
55
+ goog.inherits(proto.lansweeper.stream.v1.NullableStringList, jspb.Message);
56
+ if (goog.DEBUG && !COMPILED) {
57
+ /**
58
+ * @public
59
+ * @override
60
+ */
61
+ proto.lansweeper.stream.v1.NullableStringList.displayName = 'proto.lansweeper.stream.v1.NullableStringList';
62
+ }
63
+ /**
64
+ * Generated by JsPbCodeGenerator.
65
+ * @param {Array=} opt_data Optional initial data array, typically from a
66
+ * server response, or constructed directly in Javascript. The array is used
67
+ * in place and becomes part of the constructed object. It is not cloned.
68
+ * If no data is provided, the constructed object will be empty, but still
69
+ * valid.
70
+ * @extends {jspb.Message}
71
+ * @constructor
72
+ */
73
+ proto.lansweeper.stream.v1.Headers = function(opt_data) {
74
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
75
+ };
76
+ goog.inherits(proto.lansweeper.stream.v1.Headers, jspb.Message);
77
+ if (goog.DEBUG && !COMPILED) {
78
+ /**
79
+ * @public
80
+ * @override
81
+ */
82
+ proto.lansweeper.stream.v1.Headers.displayName = 'proto.lansweeper.stream.v1.Headers';
83
+ }
84
+
85
+ /**
86
+ * List of repeated fields within this message type.
87
+ * @private {!Array<number>}
88
+ * @const
89
+ */
90
+ proto.lansweeper.stream.v1.StringList.repeatedFields_ = [1];
91
+
92
+
93
+
94
+ if (jspb.Message.GENERATE_TO_OBJECT) {
95
+ /**
96
+ * Creates an object representation of this proto.
97
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
98
+ * Optional fields that are not set will be set to undefined.
99
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
100
+ * For the list of reserved names please see:
101
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
102
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
103
+ * JSPB instance for transitional soy proto support:
104
+ * http://goto/soy-param-migration
105
+ * @return {!Object}
106
+ */
107
+ proto.lansweeper.stream.v1.StringList.prototype.toObject = function(opt_includeInstance) {
108
+ return proto.lansweeper.stream.v1.StringList.toObject(opt_includeInstance, this);
109
+ };
110
+
111
+
112
+ /**
113
+ * Static version of the {@see toObject} method.
114
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
115
+ * the JSPB instance for transitional soy proto support:
116
+ * http://goto/soy-param-migration
117
+ * @param {!proto.lansweeper.stream.v1.StringList} msg The msg instance to transform.
118
+ * @return {!Object}
119
+ * @suppress {unusedLocalVariables} f is only used for nested messages
120
+ */
121
+ proto.lansweeper.stream.v1.StringList.toObject = function(includeInstance, msg) {
122
+ var f, obj = {
123
+ itemsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
124
+ };
125
+
126
+ if (includeInstance) {
127
+ obj.$jspbMessageInstance = msg;
128
+ }
129
+ return obj;
130
+ };
131
+ }
132
+
133
+
134
+ /**
135
+ * Deserializes binary data (in protobuf wire format).
136
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
137
+ * @return {!proto.lansweeper.stream.v1.StringList}
138
+ */
139
+ proto.lansweeper.stream.v1.StringList.deserializeBinary = function(bytes) {
140
+ var reader = new jspb.BinaryReader(bytes);
141
+ var msg = new proto.lansweeper.stream.v1.StringList;
142
+ return proto.lansweeper.stream.v1.StringList.deserializeBinaryFromReader(msg, reader);
143
+ };
144
+
145
+
146
+ /**
147
+ * Deserializes binary data (in protobuf wire format) from the
148
+ * given reader into the given message object.
149
+ * @param {!proto.lansweeper.stream.v1.StringList} msg The message object to deserialize into.
150
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
151
+ * @return {!proto.lansweeper.stream.v1.StringList}
152
+ */
153
+ proto.lansweeper.stream.v1.StringList.deserializeBinaryFromReader = function(msg, reader) {
154
+ while (reader.nextField()) {
155
+ if (reader.isEndGroup()) {
156
+ break;
157
+ }
158
+ var field = reader.getFieldNumber();
159
+ switch (field) {
160
+ case 1:
161
+ var value = /** @type {string} */ (reader.readString());
162
+ msg.addItems(value);
163
+ break;
164
+ default:
165
+ reader.skipField();
166
+ break;
167
+ }
168
+ }
169
+ return msg;
170
+ };
171
+
172
+
173
+ /**
174
+ * Serializes the message to binary data (in protobuf wire format).
175
+ * @return {!Uint8Array}
176
+ */
177
+ proto.lansweeper.stream.v1.StringList.prototype.serializeBinary = function() {
178
+ var writer = new jspb.BinaryWriter();
179
+ proto.lansweeper.stream.v1.StringList.serializeBinaryToWriter(this, writer);
180
+ return writer.getResultBuffer();
181
+ };
182
+
183
+
184
+ /**
185
+ * Serializes the given message to binary data (in protobuf wire
186
+ * format), writing to the given BinaryWriter.
187
+ * @param {!proto.lansweeper.stream.v1.StringList} message
188
+ * @param {!jspb.BinaryWriter} writer
189
+ * @suppress {unusedLocalVariables} f is only used for nested messages
190
+ */
191
+ proto.lansweeper.stream.v1.StringList.serializeBinaryToWriter = function(message, writer) {
192
+ var f = undefined;
193
+ f = message.getItemsList();
194
+ if (f.length > 0) {
195
+ writer.writeRepeatedString(
196
+ 1,
197
+ f
198
+ );
199
+ }
200
+ };
201
+
202
+
203
+ /**
204
+ * repeated string items = 1;
205
+ * @return {!Array<string>}
206
+ */
207
+ proto.lansweeper.stream.v1.StringList.prototype.getItemsList = function() {
208
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
209
+ };
210
+
211
+
212
+ /**
213
+ * @param {!Array<string>} value
214
+ * @return {!proto.lansweeper.stream.v1.StringList} returns this
215
+ */
216
+ proto.lansweeper.stream.v1.StringList.prototype.setItemsList = function(value) {
217
+ return jspb.Message.setField(this, 1, value || []);
218
+ };
219
+
220
+
221
+ /**
222
+ * @param {string} value
223
+ * @param {number=} opt_index
224
+ * @return {!proto.lansweeper.stream.v1.StringList} returns this
225
+ */
226
+ proto.lansweeper.stream.v1.StringList.prototype.addItems = function(value, opt_index) {
227
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
228
+ };
229
+
230
+
231
+ /**
232
+ * Clears the list making it empty but non-null.
233
+ * @return {!proto.lansweeper.stream.v1.StringList} returns this
234
+ */
235
+ proto.lansweeper.stream.v1.StringList.prototype.clearItemsList = function() {
236
+ return this.setItemsList([]);
237
+ };
238
+
239
+
240
+
241
+ /**
242
+ * Oneof group definitions for this message. Each group defines the field
243
+ * numbers belonging to that group. When of these fields' value is set, all
244
+ * other fields in the group are cleared. During deserialization, if multiple
245
+ * fields are encountered for a group, only the last value seen will be kept.
246
+ * @private {!Array<!Array<number>>}
247
+ * @const
248
+ */
249
+ proto.lansweeper.stream.v1.NullableStringList.oneofGroups_ = [[1]];
250
+
251
+ /**
252
+ * @enum {number}
253
+ */
254
+ proto.lansweeper.stream.v1.NullableStringList.KindCase = {
255
+ KIND_NOT_SET: 0,
256
+ DATA: 1
257
+ };
258
+
259
+ /**
260
+ * @return {proto.lansweeper.stream.v1.NullableStringList.KindCase}
261
+ */
262
+ proto.lansweeper.stream.v1.NullableStringList.prototype.getKindCase = function() {
263
+ return /** @type {proto.lansweeper.stream.v1.NullableStringList.KindCase} */(jspb.Message.computeOneofCase(this, proto.lansweeper.stream.v1.NullableStringList.oneofGroups_[0]));
264
+ };
265
+
266
+
267
+
268
+ if (jspb.Message.GENERATE_TO_OBJECT) {
269
+ /**
270
+ * Creates an object representation of this proto.
271
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
272
+ * Optional fields that are not set will be set to undefined.
273
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
274
+ * For the list of reserved names please see:
275
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
276
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
277
+ * JSPB instance for transitional soy proto support:
278
+ * http://goto/soy-param-migration
279
+ * @return {!Object}
280
+ */
281
+ proto.lansweeper.stream.v1.NullableStringList.prototype.toObject = function(opt_includeInstance) {
282
+ return proto.lansweeper.stream.v1.NullableStringList.toObject(opt_includeInstance, this);
283
+ };
284
+
285
+
286
+ /**
287
+ * Static version of the {@see toObject} method.
288
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
289
+ * the JSPB instance for transitional soy proto support:
290
+ * http://goto/soy-param-migration
291
+ * @param {!proto.lansweeper.stream.v1.NullableStringList} msg The msg instance to transform.
292
+ * @return {!Object}
293
+ * @suppress {unusedLocalVariables} f is only used for nested messages
294
+ */
295
+ proto.lansweeper.stream.v1.NullableStringList.toObject = function(includeInstance, msg) {
296
+ var f, obj = {
297
+ data: (f = msg.getData()) && proto.lansweeper.stream.v1.StringList.toObject(includeInstance, f)
298
+ };
299
+
300
+ if (includeInstance) {
301
+ obj.$jspbMessageInstance = msg;
302
+ }
303
+ return obj;
304
+ };
305
+ }
306
+
307
+
308
+ /**
309
+ * Deserializes binary data (in protobuf wire format).
310
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
311
+ * @return {!proto.lansweeper.stream.v1.NullableStringList}
312
+ */
313
+ proto.lansweeper.stream.v1.NullableStringList.deserializeBinary = function(bytes) {
314
+ var reader = new jspb.BinaryReader(bytes);
315
+ var msg = new proto.lansweeper.stream.v1.NullableStringList;
316
+ return proto.lansweeper.stream.v1.NullableStringList.deserializeBinaryFromReader(msg, reader);
317
+ };
318
+
319
+
320
+ /**
321
+ * Deserializes binary data (in protobuf wire format) from the
322
+ * given reader into the given message object.
323
+ * @param {!proto.lansweeper.stream.v1.NullableStringList} msg The message object to deserialize into.
324
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
325
+ * @return {!proto.lansweeper.stream.v1.NullableStringList}
326
+ */
327
+ proto.lansweeper.stream.v1.NullableStringList.deserializeBinaryFromReader = function(msg, reader) {
328
+ while (reader.nextField()) {
329
+ if (reader.isEndGroup()) {
330
+ break;
331
+ }
332
+ var field = reader.getFieldNumber();
333
+ switch (field) {
334
+ case 1:
335
+ var value = new proto.lansweeper.stream.v1.StringList;
336
+ reader.readMessage(value,proto.lansweeper.stream.v1.StringList.deserializeBinaryFromReader);
337
+ msg.setData(value);
338
+ break;
339
+ default:
340
+ reader.skipField();
341
+ break;
342
+ }
343
+ }
344
+ return msg;
345
+ };
346
+
347
+
348
+ /**
349
+ * Serializes the message to binary data (in protobuf wire format).
350
+ * @return {!Uint8Array}
351
+ */
352
+ proto.lansweeper.stream.v1.NullableStringList.prototype.serializeBinary = function() {
353
+ var writer = new jspb.BinaryWriter();
354
+ proto.lansweeper.stream.v1.NullableStringList.serializeBinaryToWriter(this, writer);
355
+ return writer.getResultBuffer();
356
+ };
357
+
358
+
359
+ /**
360
+ * Serializes the given message to binary data (in protobuf wire
361
+ * format), writing to the given BinaryWriter.
362
+ * @param {!proto.lansweeper.stream.v1.NullableStringList} message
363
+ * @param {!jspb.BinaryWriter} writer
364
+ * @suppress {unusedLocalVariables} f is only used for nested messages
365
+ */
366
+ proto.lansweeper.stream.v1.NullableStringList.serializeBinaryToWriter = function(message, writer) {
367
+ var f = undefined;
368
+ f = message.getData();
369
+ if (f != null) {
370
+ writer.writeMessage(
371
+ 1,
372
+ f,
373
+ proto.lansweeper.stream.v1.StringList.serializeBinaryToWriter
374
+ );
375
+ }
376
+ };
377
+
378
+
379
+ /**
380
+ * optional StringList data = 1;
381
+ * @return {?proto.lansweeper.stream.v1.StringList}
382
+ */
383
+ proto.lansweeper.stream.v1.NullableStringList.prototype.getData = function() {
384
+ return /** @type{?proto.lansweeper.stream.v1.StringList} */ (
385
+ jspb.Message.getWrapperField(this, proto.lansweeper.stream.v1.StringList, 1));
386
+ };
387
+
388
+
389
+ /**
390
+ * @param {?proto.lansweeper.stream.v1.StringList|undefined} value
391
+ * @return {!proto.lansweeper.stream.v1.NullableStringList} returns this
392
+ */
393
+ proto.lansweeper.stream.v1.NullableStringList.prototype.setData = function(value) {
394
+ return jspb.Message.setOneofWrapperField(this, 1, proto.lansweeper.stream.v1.NullableStringList.oneofGroups_[0], value);
395
+ };
396
+
397
+
398
+ /**
399
+ * Clears the message field making it undefined.
400
+ * @return {!proto.lansweeper.stream.v1.NullableStringList} returns this
401
+ */
402
+ proto.lansweeper.stream.v1.NullableStringList.prototype.clearData = function() {
403
+ return this.setData(undefined);
404
+ };
405
+
406
+
407
+ /**
408
+ * Returns whether this field is set.
409
+ * @return {boolean}
410
+ */
411
+ proto.lansweeper.stream.v1.NullableStringList.prototype.hasData = function() {
412
+ return jspb.Message.getField(this, 1) != null;
413
+ };
414
+
415
+
416
+
417
+
418
+
419
+ if (jspb.Message.GENERATE_TO_OBJECT) {
420
+ /**
421
+ * Creates an object representation of this proto.
422
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
423
+ * Optional fields that are not set will be set to undefined.
424
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
425
+ * For the list of reserved names please see:
426
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
427
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
428
+ * JSPB instance for transitional soy proto support:
429
+ * http://goto/soy-param-migration
430
+ * @return {!Object}
431
+ */
432
+ proto.lansweeper.stream.v1.Headers.prototype.toObject = function(opt_includeInstance) {
433
+ return proto.lansweeper.stream.v1.Headers.toObject(opt_includeInstance, this);
434
+ };
435
+
436
+
437
+ /**
438
+ * Static version of the {@see toObject} method.
439
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
440
+ * the JSPB instance for transitional soy proto support:
441
+ * http://goto/soy-param-migration
442
+ * @param {!proto.lansweeper.stream.v1.Headers} msg The msg instance to transform.
443
+ * @return {!Object}
444
+ * @suppress {unusedLocalVariables} f is only used for nested messages
445
+ */
446
+ proto.lansweeper.stream.v1.Headers.toObject = function(includeInstance, msg) {
447
+ var f, obj = {
448
+ entityName: jspb.Message.getFieldWithDefault(msg, 1, ""),
449
+ entityId: jspb.Message.getFieldWithDefault(msg, 2, ""),
450
+ entityKey: jspb.Message.getFieldWithDefault(msg, 3, ""),
451
+ syncType: jspb.Message.getFieldWithDefault(msg, 4, 0),
452
+ action: jspb.Message.getFieldWithDefault(msg, 5, 0),
453
+ propertiesChanged: (f = msg.getPropertiesChanged()) && proto.lansweeper.stream.v1.NullableStringList.toObject(includeInstance, f),
454
+ policies: (f = msg.getPolicies()) && proto.lansweeper.stream.v1.NullableStringList.toObject(includeInstance, f)
455
+ };
456
+
457
+ if (includeInstance) {
458
+ obj.$jspbMessageInstance = msg;
459
+ }
460
+ return obj;
461
+ };
462
+ }
463
+
464
+
465
+ /**
466
+ * Deserializes binary data (in protobuf wire format).
467
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
468
+ * @return {!proto.lansweeper.stream.v1.Headers}
469
+ */
470
+ proto.lansweeper.stream.v1.Headers.deserializeBinary = function(bytes) {
471
+ var reader = new jspb.BinaryReader(bytes);
472
+ var msg = new proto.lansweeper.stream.v1.Headers;
473
+ return proto.lansweeper.stream.v1.Headers.deserializeBinaryFromReader(msg, reader);
474
+ };
475
+
476
+
477
+ /**
478
+ * Deserializes binary data (in protobuf wire format) from the
479
+ * given reader into the given message object.
480
+ * @param {!proto.lansweeper.stream.v1.Headers} msg The message object to deserialize into.
481
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
482
+ * @return {!proto.lansweeper.stream.v1.Headers}
483
+ */
484
+ proto.lansweeper.stream.v1.Headers.deserializeBinaryFromReader = function(msg, reader) {
485
+ while (reader.nextField()) {
486
+ if (reader.isEndGroup()) {
487
+ break;
488
+ }
489
+ var field = reader.getFieldNumber();
490
+ switch (field) {
491
+ case 1:
492
+ var value = /** @type {string} */ (reader.readString());
493
+ msg.setEntityName(value);
494
+ break;
495
+ case 2:
496
+ var value = /** @type {string} */ (reader.readString());
497
+ msg.setEntityId(value);
498
+ break;
499
+ case 3:
500
+ var value = /** @type {string} */ (reader.readString());
501
+ msg.setEntityKey(value);
502
+ break;
503
+ case 4:
504
+ var value = /** @type {!proto.lansweeper.stream.v1.SyncType} */ (reader.readEnum());
505
+ msg.setSyncType(value);
506
+ break;
507
+ case 5:
508
+ var value = /** @type {!proto.lansweeper.stream.v1.Action} */ (reader.readEnum());
509
+ msg.setAction(value);
510
+ break;
511
+ case 6:
512
+ var value = new proto.lansweeper.stream.v1.NullableStringList;
513
+ reader.readMessage(value,proto.lansweeper.stream.v1.NullableStringList.deserializeBinaryFromReader);
514
+ msg.setPropertiesChanged(value);
515
+ break;
516
+ case 7:
517
+ var value = new proto.lansweeper.stream.v1.NullableStringList;
518
+ reader.readMessage(value,proto.lansweeper.stream.v1.NullableStringList.deserializeBinaryFromReader);
519
+ msg.setPolicies(value);
520
+ break;
521
+ default:
522
+ reader.skipField();
523
+ break;
524
+ }
525
+ }
526
+ return msg;
527
+ };
528
+
529
+
530
+ /**
531
+ * Serializes the message to binary data (in protobuf wire format).
532
+ * @return {!Uint8Array}
533
+ */
534
+ proto.lansweeper.stream.v1.Headers.prototype.serializeBinary = function() {
535
+ var writer = new jspb.BinaryWriter();
536
+ proto.lansweeper.stream.v1.Headers.serializeBinaryToWriter(this, writer);
537
+ return writer.getResultBuffer();
538
+ };
539
+
540
+
541
+ /**
542
+ * Serializes the given message to binary data (in protobuf wire
543
+ * format), writing to the given BinaryWriter.
544
+ * @param {!proto.lansweeper.stream.v1.Headers} message
545
+ * @param {!jspb.BinaryWriter} writer
546
+ * @suppress {unusedLocalVariables} f is only used for nested messages
547
+ */
548
+ proto.lansweeper.stream.v1.Headers.serializeBinaryToWriter = function(message, writer) {
549
+ var f = undefined;
550
+ f = message.getEntityName();
551
+ if (f.length > 0) {
552
+ writer.writeString(
553
+ 1,
554
+ f
555
+ );
556
+ }
557
+ f = message.getEntityId();
558
+ if (f.length > 0) {
559
+ writer.writeString(
560
+ 2,
561
+ f
562
+ );
563
+ }
564
+ f = message.getEntityKey();
565
+ if (f.length > 0) {
566
+ writer.writeString(
567
+ 3,
568
+ f
569
+ );
570
+ }
571
+ f = message.getSyncType();
572
+ if (f !== 0.0) {
573
+ writer.writeEnum(
574
+ 4,
575
+ f
576
+ );
577
+ }
578
+ f = message.getAction();
579
+ if (f !== 0.0) {
580
+ writer.writeEnum(
581
+ 5,
582
+ f
583
+ );
584
+ }
585
+ f = message.getPropertiesChanged();
586
+ if (f != null) {
587
+ writer.writeMessage(
588
+ 6,
589
+ f,
590
+ proto.lansweeper.stream.v1.NullableStringList.serializeBinaryToWriter
591
+ );
592
+ }
593
+ f = message.getPolicies();
594
+ if (f != null) {
595
+ writer.writeMessage(
596
+ 7,
597
+ f,
598
+ proto.lansweeper.stream.v1.NullableStringList.serializeBinaryToWriter
599
+ );
600
+ }
601
+ };
602
+
603
+
604
+ /**
605
+ * optional string entity_name = 1;
606
+ * @return {string}
607
+ */
608
+ proto.lansweeper.stream.v1.Headers.prototype.getEntityName = function() {
609
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
610
+ };
611
+
612
+
613
+ /**
614
+ * @param {string} value
615
+ * @return {!proto.lansweeper.stream.v1.Headers} returns this
616
+ */
617
+ proto.lansweeper.stream.v1.Headers.prototype.setEntityName = function(value) {
618
+ return jspb.Message.setProto3StringField(this, 1, value);
619
+ };
620
+
621
+
622
+ /**
623
+ * optional string entity_id = 2;
624
+ * @return {string}
625
+ */
626
+ proto.lansweeper.stream.v1.Headers.prototype.getEntityId = function() {
627
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
628
+ };
629
+
630
+
631
+ /**
632
+ * @param {string} value
633
+ * @return {!proto.lansweeper.stream.v1.Headers} returns this
634
+ */
635
+ proto.lansweeper.stream.v1.Headers.prototype.setEntityId = function(value) {
636
+ return jspb.Message.setProto3StringField(this, 2, value);
637
+ };
638
+
639
+
640
+ /**
641
+ * optional string entity_key = 3;
642
+ * @return {string}
643
+ */
644
+ proto.lansweeper.stream.v1.Headers.prototype.getEntityKey = function() {
645
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
646
+ };
647
+
648
+
649
+ /**
650
+ * @param {string} value
651
+ * @return {!proto.lansweeper.stream.v1.Headers} returns this
652
+ */
653
+ proto.lansweeper.stream.v1.Headers.prototype.setEntityKey = function(value) {
654
+ return jspb.Message.setProto3StringField(this, 3, value);
655
+ };
656
+
657
+
658
+ /**
659
+ * optional SyncType sync_type = 4;
660
+ * @return {!proto.lansweeper.stream.v1.SyncType}
661
+ */
662
+ proto.lansweeper.stream.v1.Headers.prototype.getSyncType = function() {
663
+ return /** @type {!proto.lansweeper.stream.v1.SyncType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
664
+ };
665
+
666
+
667
+ /**
668
+ * @param {!proto.lansweeper.stream.v1.SyncType} value
669
+ * @return {!proto.lansweeper.stream.v1.Headers} returns this
670
+ */
671
+ proto.lansweeper.stream.v1.Headers.prototype.setSyncType = function(value) {
672
+ return jspb.Message.setProto3EnumField(this, 4, value);
673
+ };
674
+
675
+
676
+ /**
677
+ * optional Action action = 5;
678
+ * @return {!proto.lansweeper.stream.v1.Action}
679
+ */
680
+ proto.lansweeper.stream.v1.Headers.prototype.getAction = function() {
681
+ return /** @type {!proto.lansweeper.stream.v1.Action} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
682
+ };
683
+
684
+
685
+ /**
686
+ * @param {!proto.lansweeper.stream.v1.Action} value
687
+ * @return {!proto.lansweeper.stream.v1.Headers} returns this
688
+ */
689
+ proto.lansweeper.stream.v1.Headers.prototype.setAction = function(value) {
690
+ return jspb.Message.setProto3EnumField(this, 5, value);
691
+ };
692
+
693
+
694
+ /**
695
+ * optional NullableStringList properties_changed = 6;
696
+ * @return {?proto.lansweeper.stream.v1.NullableStringList}
697
+ */
698
+ proto.lansweeper.stream.v1.Headers.prototype.getPropertiesChanged = function() {
699
+ return /** @type{?proto.lansweeper.stream.v1.NullableStringList} */ (
700
+ jspb.Message.getWrapperField(this, proto.lansweeper.stream.v1.NullableStringList, 6));
701
+ };
702
+
703
+
704
+ /**
705
+ * @param {?proto.lansweeper.stream.v1.NullableStringList|undefined} value
706
+ * @return {!proto.lansweeper.stream.v1.Headers} returns this
707
+ */
708
+ proto.lansweeper.stream.v1.Headers.prototype.setPropertiesChanged = function(value) {
709
+ return jspb.Message.setWrapperField(this, 6, value);
710
+ };
711
+
712
+
713
+ /**
714
+ * Clears the message field making it undefined.
715
+ * @return {!proto.lansweeper.stream.v1.Headers} returns this
716
+ */
717
+ proto.lansweeper.stream.v1.Headers.prototype.clearPropertiesChanged = function() {
718
+ return this.setPropertiesChanged(undefined);
719
+ };
720
+
721
+
722
+ /**
723
+ * Returns whether this field is set.
724
+ * @return {boolean}
725
+ */
726
+ proto.lansweeper.stream.v1.Headers.prototype.hasPropertiesChanged = function() {
727
+ return jspb.Message.getField(this, 6) != null;
728
+ };
729
+
730
+
731
+ /**
732
+ * optional NullableStringList policies = 7;
733
+ * @return {?proto.lansweeper.stream.v1.NullableStringList}
734
+ */
735
+ proto.lansweeper.stream.v1.Headers.prototype.getPolicies = function() {
736
+ return /** @type{?proto.lansweeper.stream.v1.NullableStringList} */ (
737
+ jspb.Message.getWrapperField(this, proto.lansweeper.stream.v1.NullableStringList, 7));
738
+ };
739
+
740
+
741
+ /**
742
+ * @param {?proto.lansweeper.stream.v1.NullableStringList|undefined} value
743
+ * @return {!proto.lansweeper.stream.v1.Headers} returns this
744
+ */
745
+ proto.lansweeper.stream.v1.Headers.prototype.setPolicies = function(value) {
746
+ return jspb.Message.setWrapperField(this, 7, value);
747
+ };
748
+
749
+
750
+ /**
751
+ * Clears the message field making it undefined.
752
+ * @return {!proto.lansweeper.stream.v1.Headers} returns this
753
+ */
754
+ proto.lansweeper.stream.v1.Headers.prototype.clearPolicies = function() {
755
+ return this.setPolicies(undefined);
756
+ };
757
+
758
+
759
+ /**
760
+ * Returns whether this field is set.
761
+ * @return {boolean}
762
+ */
763
+ proto.lansweeper.stream.v1.Headers.prototype.hasPolicies = function() {
764
+ return jspb.Message.getField(this, 7) != null;
765
+ };
766
+
767
+
768
+ /**
769
+ * @enum {number}
770
+ */
771
+ proto.lansweeper.stream.v1.SyncType = {
772
+ FULLLSYNC: 0,
773
+ REGULARSYNC: 1
774
+ };
775
+
776
+ /**
777
+ * @enum {number}
778
+ */
779
+ proto.lansweeper.stream.v1.Action = {
780
+ INSERT: 0,
781
+ UPDATE: 1,
782
+ DELETE: 3
783
+ };
784
+
785
+ goog.object.extend(exports, proto.lansweeper.stream.v1);