@miradorlabs/web-grpc 2.68.0 → 2.71.0

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.
@@ -22,6 +22,10 @@ goog.object.extend(proto, proto_gateway_common_v1_status_pb);
22
22
  var proto_gateway_web_v1_trace_gateway_pb = require('../../../../proto/gateway/web/v1/trace_gateway_pb.js');
23
23
  goog.object.extend(proto, proto_gateway_web_v1_trace_gateway_pb);
24
24
  goog.exportSymbol('proto.gateway.web.v1.AbsoluteTimeRange', null, global);
25
+ goog.exportSymbol('proto.gateway.web.v1.BatchQueryEnvelope', null, global);
26
+ goog.exportSymbol('proto.gateway.web.v1.BatchQueryEnvelope.OutcomeCase', null, global);
27
+ goog.exportSymbol('proto.gateway.web.v1.BatchQueryItem', null, global);
28
+ goog.exportSymbol('proto.gateway.web.v1.BatchQueryRequest', null, global);
25
29
  goog.exportSymbol('proto.gateway.web.v1.CreateDashboardRequest', null, global);
26
30
  goog.exportSymbol('proto.gateway.web.v1.CreateDashboardResponse', null, global);
27
31
  goog.exportSymbol('proto.gateway.web.v1.Dashboard', null, global);
@@ -407,6 +411,69 @@ if (goog.DEBUG && !COMPILED) {
407
411
  */
408
412
  proto.gateway.web.v1.QuerySeriesUpdate.displayName = 'proto.gateway.web.v1.QuerySeriesUpdate';
409
413
  }
414
+ /**
415
+ * Generated by JsPbCodeGenerator.
416
+ * @param {Array=} opt_data Optional initial data array, typically from a
417
+ * server response, or constructed directly in Javascript. The array is used
418
+ * in place and becomes part of the constructed object. It is not cloned.
419
+ * If no data is provided, the constructed object will be empty, but still
420
+ * valid.
421
+ * @extends {jspb.Message}
422
+ * @constructor
423
+ */
424
+ proto.gateway.web.v1.BatchQueryRequest = function(opt_data) {
425
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.BatchQueryRequest.repeatedFields_, null);
426
+ };
427
+ goog.inherits(proto.gateway.web.v1.BatchQueryRequest, jspb.Message);
428
+ if (goog.DEBUG && !COMPILED) {
429
+ /**
430
+ * @public
431
+ * @override
432
+ */
433
+ proto.gateway.web.v1.BatchQueryRequest.displayName = 'proto.gateway.web.v1.BatchQueryRequest';
434
+ }
435
+ /**
436
+ * Generated by JsPbCodeGenerator.
437
+ * @param {Array=} opt_data Optional initial data array, typically from a
438
+ * server response, or constructed directly in Javascript. The array is used
439
+ * in place and becomes part of the constructed object. It is not cloned.
440
+ * If no data is provided, the constructed object will be empty, but still
441
+ * valid.
442
+ * @extends {jspb.Message}
443
+ * @constructor
444
+ */
445
+ proto.gateway.web.v1.BatchQueryItem = function(opt_data) {
446
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
447
+ };
448
+ goog.inherits(proto.gateway.web.v1.BatchQueryItem, jspb.Message);
449
+ if (goog.DEBUG && !COMPILED) {
450
+ /**
451
+ * @public
452
+ * @override
453
+ */
454
+ proto.gateway.web.v1.BatchQueryItem.displayName = 'proto.gateway.web.v1.BatchQueryItem';
455
+ }
456
+ /**
457
+ * Generated by JsPbCodeGenerator.
458
+ * @param {Array=} opt_data Optional initial data array, typically from a
459
+ * server response, or constructed directly in Javascript. The array is used
460
+ * in place and becomes part of the constructed object. It is not cloned.
461
+ * If no data is provided, the constructed object will be empty, but still
462
+ * valid.
463
+ * @extends {jspb.Message}
464
+ * @constructor
465
+ */
466
+ proto.gateway.web.v1.BatchQueryEnvelope = function(opt_data) {
467
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gateway.web.v1.BatchQueryEnvelope.oneofGroups_);
468
+ };
469
+ goog.inherits(proto.gateway.web.v1.BatchQueryEnvelope, jspb.Message);
470
+ if (goog.DEBUG && !COMPILED) {
471
+ /**
472
+ * @public
473
+ * @override
474
+ */
475
+ proto.gateway.web.v1.BatchQueryEnvelope.displayName = 'proto.gateway.web.v1.BatchQueryEnvelope';
476
+ }
410
477
  /**
411
478
  * Generated by JsPbCodeGenerator.
412
479
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4292,6 +4359,725 @@ proto.gateway.web.v1.QuerySeriesUpdate.prototype.hasGeneratedAt = function() {
4292
4359
 
4293
4360
 
4294
4361
 
4362
+ /**
4363
+ * List of repeated fields within this message type.
4364
+ * @private {!Array<number>}
4365
+ * @const
4366
+ */
4367
+ proto.gateway.web.v1.BatchQueryRequest.repeatedFields_ = [3];
4368
+
4369
+
4370
+
4371
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4372
+ /**
4373
+ * Creates an object representation of this proto.
4374
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4375
+ * Optional fields that are not set will be set to undefined.
4376
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4377
+ * For the list of reserved names please see:
4378
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4379
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4380
+ * JSPB instance for transitional soy proto support:
4381
+ * http://goto/soy-param-migration
4382
+ * @return {!Object}
4383
+ */
4384
+ proto.gateway.web.v1.BatchQueryRequest.prototype.toObject = function(opt_includeInstance) {
4385
+ return proto.gateway.web.v1.BatchQueryRequest.toObject(opt_includeInstance, this);
4386
+ };
4387
+
4388
+
4389
+ /**
4390
+ * Static version of the {@see toObject} method.
4391
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4392
+ * the JSPB instance for transitional soy proto support:
4393
+ * http://goto/soy-param-migration
4394
+ * @param {!proto.gateway.web.v1.BatchQueryRequest} msg The msg instance to transform.
4395
+ * @return {!Object}
4396
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4397
+ */
4398
+ proto.gateway.web.v1.BatchQueryRequest.toObject = function(includeInstance, msg) {
4399
+ var f, obj = {
4400
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
4401
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
4402
+ queriesList: jspb.Message.toObjectList(msg.getQueriesList(),
4403
+ proto.gateway.web.v1.BatchQueryItem.toObject, includeInstance)
4404
+ };
4405
+
4406
+ if (includeInstance) {
4407
+ obj.$jspbMessageInstance = msg;
4408
+ }
4409
+ return obj;
4410
+ };
4411
+ }
4412
+
4413
+
4414
+ /**
4415
+ * Deserializes binary data (in protobuf wire format).
4416
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
4417
+ * @return {!proto.gateway.web.v1.BatchQueryRequest}
4418
+ */
4419
+ proto.gateway.web.v1.BatchQueryRequest.deserializeBinary = function(bytes) {
4420
+ var reader = new jspb.BinaryReader(bytes);
4421
+ var msg = new proto.gateway.web.v1.BatchQueryRequest;
4422
+ return proto.gateway.web.v1.BatchQueryRequest.deserializeBinaryFromReader(msg, reader);
4423
+ };
4424
+
4425
+
4426
+ /**
4427
+ * Deserializes binary data (in protobuf wire format) from the
4428
+ * given reader into the given message object.
4429
+ * @param {!proto.gateway.web.v1.BatchQueryRequest} msg The message object to deserialize into.
4430
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4431
+ * @return {!proto.gateway.web.v1.BatchQueryRequest}
4432
+ */
4433
+ proto.gateway.web.v1.BatchQueryRequest.deserializeBinaryFromReader = function(msg, reader) {
4434
+ while (reader.nextField()) {
4435
+ if (reader.isEndGroup()) {
4436
+ break;
4437
+ }
4438
+ var field = reader.getFieldNumber();
4439
+ switch (field) {
4440
+ case 1:
4441
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4442
+ msg.setOrganizationId(value);
4443
+ break;
4444
+ case 2:
4445
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4446
+ msg.setProjectId(value);
4447
+ break;
4448
+ case 3:
4449
+ var value = new proto.gateway.web.v1.BatchQueryItem;
4450
+ reader.readMessage(value,proto.gateway.web.v1.BatchQueryItem.deserializeBinaryFromReader);
4451
+ msg.addQueries(value);
4452
+ break;
4453
+ default:
4454
+ reader.skipField();
4455
+ break;
4456
+ }
4457
+ }
4458
+ return msg;
4459
+ };
4460
+
4461
+
4462
+ /**
4463
+ * Serializes the message to binary data (in protobuf wire format).
4464
+ * @return {!Uint8Array}
4465
+ */
4466
+ proto.gateway.web.v1.BatchQueryRequest.prototype.serializeBinary = function() {
4467
+ var writer = new jspb.BinaryWriter();
4468
+ proto.gateway.web.v1.BatchQueryRequest.serializeBinaryToWriter(this, writer);
4469
+ return writer.getResultBuffer();
4470
+ };
4471
+
4472
+
4473
+ /**
4474
+ * Serializes the given message to binary data (in protobuf wire
4475
+ * format), writing to the given BinaryWriter.
4476
+ * @param {!proto.gateway.web.v1.BatchQueryRequest} message
4477
+ * @param {!jspb.BinaryWriter} writer
4478
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4479
+ */
4480
+ proto.gateway.web.v1.BatchQueryRequest.serializeBinaryToWriter = function(message, writer) {
4481
+ var f = undefined;
4482
+ f = message.getOrganizationId();
4483
+ if (f.length > 0) {
4484
+ writer.writeString(
4485
+ 1,
4486
+ f
4487
+ );
4488
+ }
4489
+ f = message.getProjectId();
4490
+ if (f.length > 0) {
4491
+ writer.writeString(
4492
+ 2,
4493
+ f
4494
+ );
4495
+ }
4496
+ f = message.getQueriesList();
4497
+ if (f.length > 0) {
4498
+ writer.writeRepeatedMessage(
4499
+ 3,
4500
+ f,
4501
+ proto.gateway.web.v1.BatchQueryItem.serializeBinaryToWriter
4502
+ );
4503
+ }
4504
+ };
4505
+
4506
+
4507
+ /**
4508
+ * optional string organization_id = 1;
4509
+ * @return {string}
4510
+ */
4511
+ proto.gateway.web.v1.BatchQueryRequest.prototype.getOrganizationId = function() {
4512
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4513
+ };
4514
+
4515
+
4516
+ /**
4517
+ * @param {string} value
4518
+ * @return {!proto.gateway.web.v1.BatchQueryRequest} returns this
4519
+ */
4520
+ proto.gateway.web.v1.BatchQueryRequest.prototype.setOrganizationId = function(value) {
4521
+ return jspb.Message.setProto3StringField(this, 1, value);
4522
+ };
4523
+
4524
+
4525
+ /**
4526
+ * optional string project_id = 2;
4527
+ * @return {string}
4528
+ */
4529
+ proto.gateway.web.v1.BatchQueryRequest.prototype.getProjectId = function() {
4530
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4531
+ };
4532
+
4533
+
4534
+ /**
4535
+ * @param {string} value
4536
+ * @return {!proto.gateway.web.v1.BatchQueryRequest} returns this
4537
+ */
4538
+ proto.gateway.web.v1.BatchQueryRequest.prototype.setProjectId = function(value) {
4539
+ return jspb.Message.setProto3StringField(this, 2, value);
4540
+ };
4541
+
4542
+
4543
+ /**
4544
+ * repeated BatchQueryItem queries = 3;
4545
+ * @return {!Array<!proto.gateway.web.v1.BatchQueryItem>}
4546
+ */
4547
+ proto.gateway.web.v1.BatchQueryRequest.prototype.getQueriesList = function() {
4548
+ return /** @type{!Array<!proto.gateway.web.v1.BatchQueryItem>} */ (
4549
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.BatchQueryItem, 3));
4550
+ };
4551
+
4552
+
4553
+ /**
4554
+ * @param {!Array<!proto.gateway.web.v1.BatchQueryItem>} value
4555
+ * @return {!proto.gateway.web.v1.BatchQueryRequest} returns this
4556
+ */
4557
+ proto.gateway.web.v1.BatchQueryRequest.prototype.setQueriesList = function(value) {
4558
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
4559
+ };
4560
+
4561
+
4562
+ /**
4563
+ * @param {!proto.gateway.web.v1.BatchQueryItem=} opt_value
4564
+ * @param {number=} opt_index
4565
+ * @return {!proto.gateway.web.v1.BatchQueryItem}
4566
+ */
4567
+ proto.gateway.web.v1.BatchQueryRequest.prototype.addQueries = function(opt_value, opt_index) {
4568
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gateway.web.v1.BatchQueryItem, opt_index);
4569
+ };
4570
+
4571
+
4572
+ /**
4573
+ * Clears the list making it empty but non-null.
4574
+ * @return {!proto.gateway.web.v1.BatchQueryRequest} returns this
4575
+ */
4576
+ proto.gateway.web.v1.BatchQueryRequest.prototype.clearQueriesList = function() {
4577
+ return this.setQueriesList([]);
4578
+ };
4579
+
4580
+
4581
+
4582
+
4583
+
4584
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4585
+ /**
4586
+ * Creates an object representation of this proto.
4587
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4588
+ * Optional fields that are not set will be set to undefined.
4589
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4590
+ * For the list of reserved names please see:
4591
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4592
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4593
+ * JSPB instance for transitional soy proto support:
4594
+ * http://goto/soy-param-migration
4595
+ * @return {!Object}
4596
+ */
4597
+ proto.gateway.web.v1.BatchQueryItem.prototype.toObject = function(opt_includeInstance) {
4598
+ return proto.gateway.web.v1.BatchQueryItem.toObject(opt_includeInstance, this);
4599
+ };
4600
+
4601
+
4602
+ /**
4603
+ * Static version of the {@see toObject} method.
4604
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4605
+ * the JSPB instance for transitional soy proto support:
4606
+ * http://goto/soy-param-migration
4607
+ * @param {!proto.gateway.web.v1.BatchQueryItem} msg The msg instance to transform.
4608
+ * @return {!Object}
4609
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4610
+ */
4611
+ proto.gateway.web.v1.BatchQueryItem.toObject = function(includeInstance, msg) {
4612
+ var f, obj = {
4613
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
4614
+ promql: jspb.Message.getFieldWithDefault(msg, 2, ""),
4615
+ timeRange: (f = msg.getTimeRange()) && proto.gateway.web.v1.TimeRange.toObject(includeInstance, f),
4616
+ timeInterval: jspb.Message.getFieldWithDefault(msg, 4, 0)
4617
+ };
4618
+
4619
+ if (includeInstance) {
4620
+ obj.$jspbMessageInstance = msg;
4621
+ }
4622
+ return obj;
4623
+ };
4624
+ }
4625
+
4626
+
4627
+ /**
4628
+ * Deserializes binary data (in protobuf wire format).
4629
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
4630
+ * @return {!proto.gateway.web.v1.BatchQueryItem}
4631
+ */
4632
+ proto.gateway.web.v1.BatchQueryItem.deserializeBinary = function(bytes) {
4633
+ var reader = new jspb.BinaryReader(bytes);
4634
+ var msg = new proto.gateway.web.v1.BatchQueryItem;
4635
+ return proto.gateway.web.v1.BatchQueryItem.deserializeBinaryFromReader(msg, reader);
4636
+ };
4637
+
4638
+
4639
+ /**
4640
+ * Deserializes binary data (in protobuf wire format) from the
4641
+ * given reader into the given message object.
4642
+ * @param {!proto.gateway.web.v1.BatchQueryItem} msg The message object to deserialize into.
4643
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4644
+ * @return {!proto.gateway.web.v1.BatchQueryItem}
4645
+ */
4646
+ proto.gateway.web.v1.BatchQueryItem.deserializeBinaryFromReader = function(msg, reader) {
4647
+ while (reader.nextField()) {
4648
+ if (reader.isEndGroup()) {
4649
+ break;
4650
+ }
4651
+ var field = reader.getFieldNumber();
4652
+ switch (field) {
4653
+ case 1:
4654
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4655
+ msg.setId(value);
4656
+ break;
4657
+ case 2:
4658
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4659
+ msg.setPromql(value);
4660
+ break;
4661
+ case 3:
4662
+ var value = new proto.gateway.web.v1.TimeRange;
4663
+ reader.readMessage(value,proto.gateway.web.v1.TimeRange.deserializeBinaryFromReader);
4664
+ msg.setTimeRange(value);
4665
+ break;
4666
+ case 4:
4667
+ var value = /** @type {!proto.gateway.web.v1.AnalyticsTimeInterval} */ (reader.readEnum());
4668
+ msg.setTimeInterval(value);
4669
+ break;
4670
+ default:
4671
+ reader.skipField();
4672
+ break;
4673
+ }
4674
+ }
4675
+ return msg;
4676
+ };
4677
+
4678
+
4679
+ /**
4680
+ * Serializes the message to binary data (in protobuf wire format).
4681
+ * @return {!Uint8Array}
4682
+ */
4683
+ proto.gateway.web.v1.BatchQueryItem.prototype.serializeBinary = function() {
4684
+ var writer = new jspb.BinaryWriter();
4685
+ proto.gateway.web.v1.BatchQueryItem.serializeBinaryToWriter(this, writer);
4686
+ return writer.getResultBuffer();
4687
+ };
4688
+
4689
+
4690
+ /**
4691
+ * Serializes the given message to binary data (in protobuf wire
4692
+ * format), writing to the given BinaryWriter.
4693
+ * @param {!proto.gateway.web.v1.BatchQueryItem} message
4694
+ * @param {!jspb.BinaryWriter} writer
4695
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4696
+ */
4697
+ proto.gateway.web.v1.BatchQueryItem.serializeBinaryToWriter = function(message, writer) {
4698
+ var f = undefined;
4699
+ f = message.getId();
4700
+ if (f.length > 0) {
4701
+ writer.writeString(
4702
+ 1,
4703
+ f
4704
+ );
4705
+ }
4706
+ f = message.getPromql();
4707
+ if (f.length > 0) {
4708
+ writer.writeString(
4709
+ 2,
4710
+ f
4711
+ );
4712
+ }
4713
+ f = message.getTimeRange();
4714
+ if (f != null) {
4715
+ writer.writeMessage(
4716
+ 3,
4717
+ f,
4718
+ proto.gateway.web.v1.TimeRange.serializeBinaryToWriter
4719
+ );
4720
+ }
4721
+ f = message.getTimeInterval();
4722
+ if (f !== 0.0) {
4723
+ writer.writeEnum(
4724
+ 4,
4725
+ f
4726
+ );
4727
+ }
4728
+ };
4729
+
4730
+
4731
+ /**
4732
+ * optional string id = 1;
4733
+ * @return {string}
4734
+ */
4735
+ proto.gateway.web.v1.BatchQueryItem.prototype.getId = function() {
4736
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4737
+ };
4738
+
4739
+
4740
+ /**
4741
+ * @param {string} value
4742
+ * @return {!proto.gateway.web.v1.BatchQueryItem} returns this
4743
+ */
4744
+ proto.gateway.web.v1.BatchQueryItem.prototype.setId = function(value) {
4745
+ return jspb.Message.setProto3StringField(this, 1, value);
4746
+ };
4747
+
4748
+
4749
+ /**
4750
+ * optional string promql = 2;
4751
+ * @return {string}
4752
+ */
4753
+ proto.gateway.web.v1.BatchQueryItem.prototype.getPromql = function() {
4754
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4755
+ };
4756
+
4757
+
4758
+ /**
4759
+ * @param {string} value
4760
+ * @return {!proto.gateway.web.v1.BatchQueryItem} returns this
4761
+ */
4762
+ proto.gateway.web.v1.BatchQueryItem.prototype.setPromql = function(value) {
4763
+ return jspb.Message.setProto3StringField(this, 2, value);
4764
+ };
4765
+
4766
+
4767
+ /**
4768
+ * optional TimeRange time_range = 3;
4769
+ * @return {?proto.gateway.web.v1.TimeRange}
4770
+ */
4771
+ proto.gateway.web.v1.BatchQueryItem.prototype.getTimeRange = function() {
4772
+ return /** @type{?proto.gateway.web.v1.TimeRange} */ (
4773
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.TimeRange, 3));
4774
+ };
4775
+
4776
+
4777
+ /**
4778
+ * @param {?proto.gateway.web.v1.TimeRange|undefined} value
4779
+ * @return {!proto.gateway.web.v1.BatchQueryItem} returns this
4780
+ */
4781
+ proto.gateway.web.v1.BatchQueryItem.prototype.setTimeRange = function(value) {
4782
+ return jspb.Message.setWrapperField(this, 3, value);
4783
+ };
4784
+
4785
+
4786
+ /**
4787
+ * Clears the message field making it undefined.
4788
+ * @return {!proto.gateway.web.v1.BatchQueryItem} returns this
4789
+ */
4790
+ proto.gateway.web.v1.BatchQueryItem.prototype.clearTimeRange = function() {
4791
+ return this.setTimeRange(undefined);
4792
+ };
4793
+
4794
+
4795
+ /**
4796
+ * Returns whether this field is set.
4797
+ * @return {boolean}
4798
+ */
4799
+ proto.gateway.web.v1.BatchQueryItem.prototype.hasTimeRange = function() {
4800
+ return jspb.Message.getField(this, 3) != null;
4801
+ };
4802
+
4803
+
4804
+ /**
4805
+ * optional AnalyticsTimeInterval time_interval = 4;
4806
+ * @return {!proto.gateway.web.v1.AnalyticsTimeInterval}
4807
+ */
4808
+ proto.gateway.web.v1.BatchQueryItem.prototype.getTimeInterval = function() {
4809
+ return /** @type {!proto.gateway.web.v1.AnalyticsTimeInterval} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
4810
+ };
4811
+
4812
+
4813
+ /**
4814
+ * @param {!proto.gateway.web.v1.AnalyticsTimeInterval} value
4815
+ * @return {!proto.gateway.web.v1.BatchQueryItem} returns this
4816
+ */
4817
+ proto.gateway.web.v1.BatchQueryItem.prototype.setTimeInterval = function(value) {
4818
+ return jspb.Message.setProto3EnumField(this, 4, value);
4819
+ };
4820
+
4821
+
4822
+
4823
+ /**
4824
+ * Oneof group definitions for this message. Each group defines the field
4825
+ * numbers belonging to that group. When of these fields' value is set, all
4826
+ * other fields in the group are cleared. During deserialization, if multiple
4827
+ * fields are encountered for a group, only the last value seen will be kept.
4828
+ * @private {!Array<!Array<number>>}
4829
+ * @const
4830
+ */
4831
+ proto.gateway.web.v1.BatchQueryEnvelope.oneofGroups_ = [[2,3]];
4832
+
4833
+ /**
4834
+ * @enum {number}
4835
+ */
4836
+ proto.gateway.web.v1.BatchQueryEnvelope.OutcomeCase = {
4837
+ OUTCOME_NOT_SET: 0,
4838
+ SNAPSHOT: 2,
4839
+ ERROR: 3
4840
+ };
4841
+
4842
+ /**
4843
+ * @return {proto.gateway.web.v1.BatchQueryEnvelope.OutcomeCase}
4844
+ */
4845
+ proto.gateway.web.v1.BatchQueryEnvelope.prototype.getOutcomeCase = function() {
4846
+ return /** @type {proto.gateway.web.v1.BatchQueryEnvelope.OutcomeCase} */(jspb.Message.computeOneofCase(this, proto.gateway.web.v1.BatchQueryEnvelope.oneofGroups_[0]));
4847
+ };
4848
+
4849
+
4850
+
4851
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4852
+ /**
4853
+ * Creates an object representation of this proto.
4854
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4855
+ * Optional fields that are not set will be set to undefined.
4856
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4857
+ * For the list of reserved names please see:
4858
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4859
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4860
+ * JSPB instance for transitional soy proto support:
4861
+ * http://goto/soy-param-migration
4862
+ * @return {!Object}
4863
+ */
4864
+ proto.gateway.web.v1.BatchQueryEnvelope.prototype.toObject = function(opt_includeInstance) {
4865
+ return proto.gateway.web.v1.BatchQueryEnvelope.toObject(opt_includeInstance, this);
4866
+ };
4867
+
4868
+
4869
+ /**
4870
+ * Static version of the {@see toObject} method.
4871
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4872
+ * the JSPB instance for transitional soy proto support:
4873
+ * http://goto/soy-param-migration
4874
+ * @param {!proto.gateway.web.v1.BatchQueryEnvelope} msg The msg instance to transform.
4875
+ * @return {!Object}
4876
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4877
+ */
4878
+ proto.gateway.web.v1.BatchQueryEnvelope.toObject = function(includeInstance, msg) {
4879
+ var f, obj = {
4880
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
4881
+ snapshot: (f = msg.getSnapshot()) && proto.gateway.web.v1.QuerySnapshot.toObject(includeInstance, f),
4882
+ error: (f = msg.getError()) && proto.gateway.web.v1.WidgetQueryError.toObject(includeInstance, f)
4883
+ };
4884
+
4885
+ if (includeInstance) {
4886
+ obj.$jspbMessageInstance = msg;
4887
+ }
4888
+ return obj;
4889
+ };
4890
+ }
4891
+
4892
+
4893
+ /**
4894
+ * Deserializes binary data (in protobuf wire format).
4895
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
4896
+ * @return {!proto.gateway.web.v1.BatchQueryEnvelope}
4897
+ */
4898
+ proto.gateway.web.v1.BatchQueryEnvelope.deserializeBinary = function(bytes) {
4899
+ var reader = new jspb.BinaryReader(bytes);
4900
+ var msg = new proto.gateway.web.v1.BatchQueryEnvelope;
4901
+ return proto.gateway.web.v1.BatchQueryEnvelope.deserializeBinaryFromReader(msg, reader);
4902
+ };
4903
+
4904
+
4905
+ /**
4906
+ * Deserializes binary data (in protobuf wire format) from the
4907
+ * given reader into the given message object.
4908
+ * @param {!proto.gateway.web.v1.BatchQueryEnvelope} msg The message object to deserialize into.
4909
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4910
+ * @return {!proto.gateway.web.v1.BatchQueryEnvelope}
4911
+ */
4912
+ proto.gateway.web.v1.BatchQueryEnvelope.deserializeBinaryFromReader = function(msg, reader) {
4913
+ while (reader.nextField()) {
4914
+ if (reader.isEndGroup()) {
4915
+ break;
4916
+ }
4917
+ var field = reader.getFieldNumber();
4918
+ switch (field) {
4919
+ case 1:
4920
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4921
+ msg.setId(value);
4922
+ break;
4923
+ case 2:
4924
+ var value = new proto.gateway.web.v1.QuerySnapshot;
4925
+ reader.readMessage(value,proto.gateway.web.v1.QuerySnapshot.deserializeBinaryFromReader);
4926
+ msg.setSnapshot(value);
4927
+ break;
4928
+ case 3:
4929
+ var value = new proto.gateway.web.v1.WidgetQueryError;
4930
+ reader.readMessage(value,proto.gateway.web.v1.WidgetQueryError.deserializeBinaryFromReader);
4931
+ msg.setError(value);
4932
+ break;
4933
+ default:
4934
+ reader.skipField();
4935
+ break;
4936
+ }
4937
+ }
4938
+ return msg;
4939
+ };
4940
+
4941
+
4942
+ /**
4943
+ * Serializes the message to binary data (in protobuf wire format).
4944
+ * @return {!Uint8Array}
4945
+ */
4946
+ proto.gateway.web.v1.BatchQueryEnvelope.prototype.serializeBinary = function() {
4947
+ var writer = new jspb.BinaryWriter();
4948
+ proto.gateway.web.v1.BatchQueryEnvelope.serializeBinaryToWriter(this, writer);
4949
+ return writer.getResultBuffer();
4950
+ };
4951
+
4952
+
4953
+ /**
4954
+ * Serializes the given message to binary data (in protobuf wire
4955
+ * format), writing to the given BinaryWriter.
4956
+ * @param {!proto.gateway.web.v1.BatchQueryEnvelope} message
4957
+ * @param {!jspb.BinaryWriter} writer
4958
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4959
+ */
4960
+ proto.gateway.web.v1.BatchQueryEnvelope.serializeBinaryToWriter = function(message, writer) {
4961
+ var f = undefined;
4962
+ f = message.getId();
4963
+ if (f.length > 0) {
4964
+ writer.writeString(
4965
+ 1,
4966
+ f
4967
+ );
4968
+ }
4969
+ f = message.getSnapshot();
4970
+ if (f != null) {
4971
+ writer.writeMessage(
4972
+ 2,
4973
+ f,
4974
+ proto.gateway.web.v1.QuerySnapshot.serializeBinaryToWriter
4975
+ );
4976
+ }
4977
+ f = message.getError();
4978
+ if (f != null) {
4979
+ writer.writeMessage(
4980
+ 3,
4981
+ f,
4982
+ proto.gateway.web.v1.WidgetQueryError.serializeBinaryToWriter
4983
+ );
4984
+ }
4985
+ };
4986
+
4987
+
4988
+ /**
4989
+ * optional string id = 1;
4990
+ * @return {string}
4991
+ */
4992
+ proto.gateway.web.v1.BatchQueryEnvelope.prototype.getId = function() {
4993
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4994
+ };
4995
+
4996
+
4997
+ /**
4998
+ * @param {string} value
4999
+ * @return {!proto.gateway.web.v1.BatchQueryEnvelope} returns this
5000
+ */
5001
+ proto.gateway.web.v1.BatchQueryEnvelope.prototype.setId = function(value) {
5002
+ return jspb.Message.setProto3StringField(this, 1, value);
5003
+ };
5004
+
5005
+
5006
+ /**
5007
+ * optional QuerySnapshot snapshot = 2;
5008
+ * @return {?proto.gateway.web.v1.QuerySnapshot}
5009
+ */
5010
+ proto.gateway.web.v1.BatchQueryEnvelope.prototype.getSnapshot = function() {
5011
+ return /** @type{?proto.gateway.web.v1.QuerySnapshot} */ (
5012
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.QuerySnapshot, 2));
5013
+ };
5014
+
5015
+
5016
+ /**
5017
+ * @param {?proto.gateway.web.v1.QuerySnapshot|undefined} value
5018
+ * @return {!proto.gateway.web.v1.BatchQueryEnvelope} returns this
5019
+ */
5020
+ proto.gateway.web.v1.BatchQueryEnvelope.prototype.setSnapshot = function(value) {
5021
+ return jspb.Message.setOneofWrapperField(this, 2, proto.gateway.web.v1.BatchQueryEnvelope.oneofGroups_[0], value);
5022
+ };
5023
+
5024
+
5025
+ /**
5026
+ * Clears the message field making it undefined.
5027
+ * @return {!proto.gateway.web.v1.BatchQueryEnvelope} returns this
5028
+ */
5029
+ proto.gateway.web.v1.BatchQueryEnvelope.prototype.clearSnapshot = function() {
5030
+ return this.setSnapshot(undefined);
5031
+ };
5032
+
5033
+
5034
+ /**
5035
+ * Returns whether this field is set.
5036
+ * @return {boolean}
5037
+ */
5038
+ proto.gateway.web.v1.BatchQueryEnvelope.prototype.hasSnapshot = function() {
5039
+ return jspb.Message.getField(this, 2) != null;
5040
+ };
5041
+
5042
+
5043
+ /**
5044
+ * optional WidgetQueryError error = 3;
5045
+ * @return {?proto.gateway.web.v1.WidgetQueryError}
5046
+ */
5047
+ proto.gateway.web.v1.BatchQueryEnvelope.prototype.getError = function() {
5048
+ return /** @type{?proto.gateway.web.v1.WidgetQueryError} */ (
5049
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.WidgetQueryError, 3));
5050
+ };
5051
+
5052
+
5053
+ /**
5054
+ * @param {?proto.gateway.web.v1.WidgetQueryError|undefined} value
5055
+ * @return {!proto.gateway.web.v1.BatchQueryEnvelope} returns this
5056
+ */
5057
+ proto.gateway.web.v1.BatchQueryEnvelope.prototype.setError = function(value) {
5058
+ return jspb.Message.setOneofWrapperField(this, 3, proto.gateway.web.v1.BatchQueryEnvelope.oneofGroups_[0], value);
5059
+ };
5060
+
5061
+
5062
+ /**
5063
+ * Clears the message field making it undefined.
5064
+ * @return {!proto.gateway.web.v1.BatchQueryEnvelope} returns this
5065
+ */
5066
+ proto.gateway.web.v1.BatchQueryEnvelope.prototype.clearError = function() {
5067
+ return this.setError(undefined);
5068
+ };
5069
+
5070
+
5071
+ /**
5072
+ * Returns whether this field is set.
5073
+ * @return {boolean}
5074
+ */
5075
+ proto.gateway.web.v1.BatchQueryEnvelope.prototype.hasError = function() {
5076
+ return jspb.Message.getField(this, 3) != null;
5077
+ };
5078
+
5079
+
5080
+
4295
5081
  /**
4296
5082
  * List of repeated fields within this message type.
4297
5083
  * @private {!Array<number>}