@lansweeper/data-platform-outbound-grpc 0.1.125 → 0.1.127

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.
@@ -98,6 +98,9 @@ goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.Driver', null, global);
98
98
  goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.Driver.DriverCase', null, global);
99
99
  goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.Entity', null, global);
100
100
  goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.Entity.EntityCase', null, global);
101
+ goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.EntityFilter', null, global);
102
+ goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.EntityFilter.EntryState', null, global);
103
+ goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.EntityFilter.VirtualState', null, global);
101
104
  goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.EntityPath', null, global);
102
105
  goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.GetEntityRequest', null, global);
103
106
  goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.GetEntityResponse', null, global);
@@ -236,6 +239,27 @@ goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.WindowsSqlServer.SqlAuthe
236
239
  goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.WindowsSqlServerChangeEvent', null, global);
237
240
  goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.WindowsSqlServerChangeEvent.EventType', null, global);
238
241
  goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.WindowsSystemDriver', null, global);
242
+ /**
243
+ * Generated by JsPbCodeGenerator.
244
+ * @param {Array=} opt_data Optional initial data array, typically from a
245
+ * server response, or constructed directly in Javascript. The array is used
246
+ * in place and becomes part of the constructed object. It is not cloned.
247
+ * If no data is provided, the constructed object will be empty, but still
248
+ * valid.
249
+ * @extends {jspb.Message}
250
+ * @constructor
251
+ */
252
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter = function(opt_data) {
253
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
254
+ };
255
+ goog.inherits(proto.com.lansweeper.dp.outbound.v1.EntityFilter, jspb.Message);
256
+ if (goog.DEBUG && !COMPILED) {
257
+ /**
258
+ * @public
259
+ * @override
260
+ */
261
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.displayName = 'proto.com.lansweeper.dp.outbound.v1.EntityFilter';
262
+ }
239
263
  /**
240
264
  * Generated by JsPbCodeGenerator.
241
265
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4229,6 +4253,296 @@ if (goog.DEBUG && !COMPILED) {
4229
4253
 
4230
4254
 
4231
4255
 
4256
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4257
+ /**
4258
+ * Creates an object representation of this proto.
4259
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4260
+ * Optional fields that are not set will be set to undefined.
4261
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4262
+ * For the list of reserved names please see:
4263
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4264
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4265
+ * JSPB instance for transitional soy proto support:
4266
+ * http://goto/soy-param-migration
4267
+ * @return {!Object}
4268
+ */
4269
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.prototype.toObject = function(opt_includeInstance) {
4270
+ return proto.com.lansweeper.dp.outbound.v1.EntityFilter.toObject(opt_includeInstance, this);
4271
+ };
4272
+
4273
+
4274
+ /**
4275
+ * Static version of the {@see toObject} method.
4276
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4277
+ * the JSPB instance for transitional soy proto support:
4278
+ * http://goto/soy-param-migration
4279
+ * @param {!proto.com.lansweeper.dp.outbound.v1.EntityFilter} msg The msg instance to transform.
4280
+ * @return {!Object}
4281
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4282
+ */
4283
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.toObject = function(includeInstance, msg) {
4284
+ var f, obj = {
4285
+ siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
4286
+ fullEntity: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
4287
+ entryState: jspb.Message.getFieldWithDefault(msg, 3, 0),
4288
+ virtualState: jspb.Message.getFieldWithDefault(msg, 4, 0)
4289
+ };
4290
+
4291
+ if (includeInstance) {
4292
+ obj.$jspbMessageInstance = msg;
4293
+ }
4294
+ return obj;
4295
+ };
4296
+ }
4297
+
4298
+
4299
+ /**
4300
+ * Deserializes binary data (in protobuf wire format).
4301
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4302
+ * @return {!proto.com.lansweeper.dp.outbound.v1.EntityFilter}
4303
+ */
4304
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.deserializeBinary = function(bytes) {
4305
+ var reader = new jspb.BinaryReader(bytes);
4306
+ var msg = new proto.com.lansweeper.dp.outbound.v1.EntityFilter;
4307
+ return proto.com.lansweeper.dp.outbound.v1.EntityFilter.deserializeBinaryFromReader(msg, reader);
4308
+ };
4309
+
4310
+
4311
+ /**
4312
+ * Deserializes binary data (in protobuf wire format) from the
4313
+ * given reader into the given message object.
4314
+ * @param {!proto.com.lansweeper.dp.outbound.v1.EntityFilter} msg The message object to deserialize into.
4315
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4316
+ * @return {!proto.com.lansweeper.dp.outbound.v1.EntityFilter}
4317
+ */
4318
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.deserializeBinaryFromReader = function(msg, reader) {
4319
+ while (reader.nextField()) {
4320
+ if (reader.isEndGroup()) {
4321
+ break;
4322
+ }
4323
+ var field = reader.getFieldNumber();
4324
+ switch (field) {
4325
+ case 1:
4326
+ var value = /** @type {string} */ (reader.readString());
4327
+ msg.setSiteId(value);
4328
+ break;
4329
+ case 2:
4330
+ var value = /** @type {boolean} */ (reader.readBool());
4331
+ msg.setFullEntity(value);
4332
+ break;
4333
+ case 3:
4334
+ var value = /** @type {!proto.com.lansweeper.dp.outbound.v1.EntityFilter.EntryState} */ (reader.readEnum());
4335
+ msg.setEntryState(value);
4336
+ break;
4337
+ case 4:
4338
+ var value = /** @type {!proto.com.lansweeper.dp.outbound.v1.EntityFilter.VirtualState} */ (reader.readEnum());
4339
+ msg.setVirtualState(value);
4340
+ break;
4341
+ default:
4342
+ reader.skipField();
4343
+ break;
4344
+ }
4345
+ }
4346
+ return msg;
4347
+ };
4348
+
4349
+
4350
+ /**
4351
+ * Serializes the message to binary data (in protobuf wire format).
4352
+ * @return {!Uint8Array}
4353
+ */
4354
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.prototype.serializeBinary = function() {
4355
+ var writer = new jspb.BinaryWriter();
4356
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.serializeBinaryToWriter(this, writer);
4357
+ return writer.getResultBuffer();
4358
+ };
4359
+
4360
+
4361
+ /**
4362
+ * Serializes the given message to binary data (in protobuf wire
4363
+ * format), writing to the given BinaryWriter.
4364
+ * @param {!proto.com.lansweeper.dp.outbound.v1.EntityFilter} message
4365
+ * @param {!jspb.BinaryWriter} writer
4366
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4367
+ */
4368
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.serializeBinaryToWriter = function(message, writer) {
4369
+ var f = undefined;
4370
+ f = message.getSiteId();
4371
+ if (f.length > 0) {
4372
+ writer.writeString(
4373
+ 1,
4374
+ f
4375
+ );
4376
+ }
4377
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
4378
+ if (f != null) {
4379
+ writer.writeBool(
4380
+ 2,
4381
+ f
4382
+ );
4383
+ }
4384
+ f = /** @type {!proto.com.lansweeper.dp.outbound.v1.EntityFilter.EntryState} */ (jspb.Message.getField(message, 3));
4385
+ if (f != null) {
4386
+ writer.writeEnum(
4387
+ 3,
4388
+ f
4389
+ );
4390
+ }
4391
+ f = /** @type {!proto.com.lansweeper.dp.outbound.v1.EntityFilter.VirtualState} */ (jspb.Message.getField(message, 4));
4392
+ if (f != null) {
4393
+ writer.writeEnum(
4394
+ 4,
4395
+ f
4396
+ );
4397
+ }
4398
+ };
4399
+
4400
+
4401
+ /**
4402
+ * @enum {number}
4403
+ */
4404
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.EntryState = {
4405
+ GOLDEN: 0,
4406
+ ALIAS: 1
4407
+ };
4408
+
4409
+ /**
4410
+ * @enum {number}
4411
+ */
4412
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.VirtualState = {
4413
+ REAL: 0,
4414
+ VIRTUAL: 1
4415
+ };
4416
+
4417
+ /**
4418
+ * optional string site_id = 1;
4419
+ * @return {string}
4420
+ */
4421
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.prototype.getSiteId = function() {
4422
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4423
+ };
4424
+
4425
+
4426
+ /**
4427
+ * @param {string} value
4428
+ * @return {!proto.com.lansweeper.dp.outbound.v1.EntityFilter} returns this
4429
+ */
4430
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.prototype.setSiteId = function(value) {
4431
+ return jspb.Message.setProto3StringField(this, 1, value);
4432
+ };
4433
+
4434
+
4435
+ /**
4436
+ * optional bool full_entity = 2;
4437
+ * @return {boolean}
4438
+ */
4439
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.prototype.getFullEntity = function() {
4440
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
4441
+ };
4442
+
4443
+
4444
+ /**
4445
+ * @param {boolean} value
4446
+ * @return {!proto.com.lansweeper.dp.outbound.v1.EntityFilter} returns this
4447
+ */
4448
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.prototype.setFullEntity = function(value) {
4449
+ return jspb.Message.setField(this, 2, value);
4450
+ };
4451
+
4452
+
4453
+ /**
4454
+ * Clears the field making it undefined.
4455
+ * @return {!proto.com.lansweeper.dp.outbound.v1.EntityFilter} returns this
4456
+ */
4457
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.prototype.clearFullEntity = function() {
4458
+ return jspb.Message.setField(this, 2, undefined);
4459
+ };
4460
+
4461
+
4462
+ /**
4463
+ * Returns whether this field is set.
4464
+ * @return {boolean}
4465
+ */
4466
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.prototype.hasFullEntity = function() {
4467
+ return jspb.Message.getField(this, 2) != null;
4468
+ };
4469
+
4470
+
4471
+ /**
4472
+ * optional EntryState entry_state = 3;
4473
+ * @return {!proto.com.lansweeper.dp.outbound.v1.EntityFilter.EntryState}
4474
+ */
4475
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.prototype.getEntryState = function() {
4476
+ return /** @type {!proto.com.lansweeper.dp.outbound.v1.EntityFilter.EntryState} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
4477
+ };
4478
+
4479
+
4480
+ /**
4481
+ * @param {!proto.com.lansweeper.dp.outbound.v1.EntityFilter.EntryState} value
4482
+ * @return {!proto.com.lansweeper.dp.outbound.v1.EntityFilter} returns this
4483
+ */
4484
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.prototype.setEntryState = function(value) {
4485
+ return jspb.Message.setField(this, 3, value);
4486
+ };
4487
+
4488
+
4489
+ /**
4490
+ * Clears the field making it undefined.
4491
+ * @return {!proto.com.lansweeper.dp.outbound.v1.EntityFilter} returns this
4492
+ */
4493
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.prototype.clearEntryState = function() {
4494
+ return jspb.Message.setField(this, 3, undefined);
4495
+ };
4496
+
4497
+
4498
+ /**
4499
+ * Returns whether this field is set.
4500
+ * @return {boolean}
4501
+ */
4502
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.prototype.hasEntryState = function() {
4503
+ return jspb.Message.getField(this, 3) != null;
4504
+ };
4505
+
4506
+
4507
+ /**
4508
+ * optional VirtualState virtual_state = 4;
4509
+ * @return {!proto.com.lansweeper.dp.outbound.v1.EntityFilter.VirtualState}
4510
+ */
4511
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.prototype.getVirtualState = function() {
4512
+ return /** @type {!proto.com.lansweeper.dp.outbound.v1.EntityFilter.VirtualState} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
4513
+ };
4514
+
4515
+
4516
+ /**
4517
+ * @param {!proto.com.lansweeper.dp.outbound.v1.EntityFilter.VirtualState} value
4518
+ * @return {!proto.com.lansweeper.dp.outbound.v1.EntityFilter} returns this
4519
+ */
4520
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.prototype.setVirtualState = function(value) {
4521
+ return jspb.Message.setField(this, 4, value);
4522
+ };
4523
+
4524
+
4525
+ /**
4526
+ * Clears the field making it undefined.
4527
+ * @return {!proto.com.lansweeper.dp.outbound.v1.EntityFilter} returns this
4528
+ */
4529
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.prototype.clearVirtualState = function() {
4530
+ return jspb.Message.setField(this, 4, undefined);
4531
+ };
4532
+
4533
+
4534
+ /**
4535
+ * Returns whether this field is set.
4536
+ * @return {boolean}
4537
+ */
4538
+ proto.com.lansweeper.dp.outbound.v1.EntityFilter.prototype.hasVirtualState = function() {
4539
+ return jspb.Message.getField(this, 4) != null;
4540
+ };
4541
+
4542
+
4543
+
4544
+
4545
+
4232
4546
  if (jspb.Message.GENERATE_TO_OBJECT) {
4233
4547
  /**
4234
4548
  * Creates an object representation of this proto.
@@ -13944,7 +14258,7 @@ proto.com.lansweeper.dp.outbound.v1.Tag.prototype.hasValue = function() {
13944
14258
  * @private {!Array<number>}
13945
14259
  * @const
13946
14260
  */
13947
- proto.com.lansweeper.dp.outbound.v1.Relation.repeatedFields_ = [6];
14261
+ proto.com.lansweeper.dp.outbound.v1.Relation.repeatedFields_ = [2,6];
13948
14262
 
13949
14263
 
13950
14264
 
@@ -13978,7 +14292,8 @@ proto.com.lansweeper.dp.outbound.v1.Relation.prototype.toObject = function(opt_i
13978
14292
  proto.com.lansweeper.dp.outbound.v1.Relation.toObject = function(includeInstance, msg) {
13979
14293
  var f, obj = {
13980
14294
  from: (f = msg.getFrom()) && proto.com.lansweeper.dp.outbound.v1.EntityPath.toObject(includeInstance, f),
13981
- to: (f = msg.getTo()) && proto.com.lansweeper.dp.outbound.v1.EntityPath.toObject(includeInstance, f),
14295
+ toList: jspb.Message.toObjectList(msg.getToList(),
14296
+ proto.com.lansweeper.dp.outbound.v1.EntityPath.toObject, includeInstance),
13982
14297
  start: (f = msg.getStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
13983
14298
  end: (f = msg.getEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
13984
14299
  name: jspb.Message.getFieldWithDefault(msg, 5, ""),
@@ -14028,7 +14343,7 @@ proto.com.lansweeper.dp.outbound.v1.Relation.deserializeBinaryFromReader = funct
14028
14343
  case 2:
14029
14344
  var value = new proto.com.lansweeper.dp.outbound.v1.EntityPath;
14030
14345
  reader.readMessage(value,proto.com.lansweeper.dp.outbound.v1.EntityPath.deserializeBinaryFromReader);
14031
- msg.setTo(value);
14346
+ msg.addTo(value);
14032
14347
  break;
14033
14348
  case 3:
14034
14349
  var value = new google_protobuf_timestamp_pb.Timestamp;
@@ -14086,9 +14401,9 @@ proto.com.lansweeper.dp.outbound.v1.Relation.serializeBinaryToWriter = function(
14086
14401
  proto.com.lansweeper.dp.outbound.v1.EntityPath.serializeBinaryToWriter
14087
14402
  );
14088
14403
  }
14089
- f = message.getTo();
14090
- if (f != null) {
14091
- writer.writeMessage(
14404
+ f = message.getToList();
14405
+ if (f.length > 0) {
14406
+ writer.writeRepeatedMessage(
14092
14407
  2,
14093
14408
  f,
14094
14409
  proto.com.lansweeper.dp.outbound.v1.EntityPath.serializeBinaryToWriter
@@ -14166,39 +14481,40 @@ proto.com.lansweeper.dp.outbound.v1.Relation.prototype.hasFrom = function() {
14166
14481
 
14167
14482
 
14168
14483
  /**
14169
- * optional EntityPath to = 2;
14170
- * @return {?proto.com.lansweeper.dp.outbound.v1.EntityPath}
14484
+ * repeated EntityPath to = 2;
14485
+ * @return {!Array<!proto.com.lansweeper.dp.outbound.v1.EntityPath>}
14171
14486
  */
14172
- proto.com.lansweeper.dp.outbound.v1.Relation.prototype.getTo = function() {
14173
- return /** @type{?proto.com.lansweeper.dp.outbound.v1.EntityPath} */ (
14174
- jspb.Message.getWrapperField(this, proto.com.lansweeper.dp.outbound.v1.EntityPath, 2));
14487
+ proto.com.lansweeper.dp.outbound.v1.Relation.prototype.getToList = function() {
14488
+ return /** @type{!Array<!proto.com.lansweeper.dp.outbound.v1.EntityPath>} */ (
14489
+ jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.dp.outbound.v1.EntityPath, 2));
14175
14490
  };
14176
14491
 
14177
14492
 
14178
14493
  /**
14179
- * @param {?proto.com.lansweeper.dp.outbound.v1.EntityPath|undefined} value
14494
+ * @param {!Array<!proto.com.lansweeper.dp.outbound.v1.EntityPath>} value
14180
14495
  * @return {!proto.com.lansweeper.dp.outbound.v1.Relation} returns this
14181
14496
  */
14182
- proto.com.lansweeper.dp.outbound.v1.Relation.prototype.setTo = function(value) {
14183
- return jspb.Message.setWrapperField(this, 2, value);
14497
+ proto.com.lansweeper.dp.outbound.v1.Relation.prototype.setToList = function(value) {
14498
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
14184
14499
  };
14185
14500
 
14186
14501
 
14187
14502
  /**
14188
- * Clears the message field making it undefined.
14189
- * @return {!proto.com.lansweeper.dp.outbound.v1.Relation} returns this
14503
+ * @param {!proto.com.lansweeper.dp.outbound.v1.EntityPath=} opt_value
14504
+ * @param {number=} opt_index
14505
+ * @return {!proto.com.lansweeper.dp.outbound.v1.EntityPath}
14190
14506
  */
14191
- proto.com.lansweeper.dp.outbound.v1.Relation.prototype.clearTo = function() {
14192
- return this.setTo(undefined);
14507
+ proto.com.lansweeper.dp.outbound.v1.Relation.prototype.addTo = function(opt_value, opt_index) {
14508
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.com.lansweeper.dp.outbound.v1.EntityPath, opt_index);
14193
14509
  };
14194
14510
 
14195
14511
 
14196
14512
  /**
14197
- * Returns whether this field is set.
14198
- * @return {boolean}
14513
+ * Clears the list making it empty but non-null.
14514
+ * @return {!proto.com.lansweeper.dp.outbound.v1.Relation} returns this
14199
14515
  */
14200
- proto.com.lansweeper.dp.outbound.v1.Relation.prototype.hasTo = function() {
14201
- return jspb.Message.getField(this, 2) != null;
14516
+ proto.com.lansweeper.dp.outbound.v1.Relation.prototype.clearToList = function() {
14517
+ return this.setToList([]);
14202
14518
  };
14203
14519
 
14204
14520