@miradorlabs/web-grpc 2.19.0 → 2.21.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.
|
@@ -32,12 +32,21 @@ goog.exportSymbol('proto.gateway.web.v1.DeleteSloResponse', null, global);
|
|
|
32
32
|
goog.exportSymbol('proto.gateway.web.v1.GaugeThresholdSli', null, global);
|
|
33
33
|
goog.exportSymbol('proto.gateway.web.v1.GetSloRequest', null, global);
|
|
34
34
|
goog.exportSymbol('proto.gateway.web.v1.GetSloResponse', null, global);
|
|
35
|
+
goog.exportSymbol('proto.gateway.web.v1.GetSloStatusRequest', null, global);
|
|
36
|
+
goog.exportSymbol('proto.gateway.web.v1.GetSloStatusResponse', null, global);
|
|
37
|
+
goog.exportSymbol('proto.gateway.web.v1.GetSloTimelineRequest', null, global);
|
|
38
|
+
goog.exportSymbol('proto.gateway.web.v1.GetSloTimelineResponse', null, global);
|
|
35
39
|
goog.exportSymbol('proto.gateway.web.v1.ListSlosRequest', null, global);
|
|
36
40
|
goog.exportSymbol('proto.gateway.web.v1.ListSlosResponse', null, global);
|
|
37
41
|
goog.exportSymbol('proto.gateway.web.v1.Slo', null, global);
|
|
38
42
|
goog.exportSymbol('proto.gateway.web.v1.SloComparator', null, global);
|
|
43
|
+
goog.exportSymbol('proto.gateway.web.v1.SloCorridorState', null, global);
|
|
44
|
+
goog.exportSymbol('proto.gateway.web.v1.SloCorridorStatus', null, global);
|
|
39
45
|
goog.exportSymbol('proto.gateway.web.v1.SloObjective', null, global);
|
|
40
46
|
goog.exportSymbol('proto.gateway.web.v1.SloObjective.SliCase', null, global);
|
|
47
|
+
goog.exportSymbol('proto.gateway.web.v1.SloStatus', null, global);
|
|
48
|
+
goog.exportSymbol('proto.gateway.web.v1.SloTimeline', null, global);
|
|
49
|
+
goog.exportSymbol('proto.gateway.web.v1.SloTimelineBucket', null, global);
|
|
41
50
|
goog.exportSymbol('proto.gateway.web.v1.UpdateSloRequest', null, global);
|
|
42
51
|
goog.exportSymbol('proto.gateway.web.v1.UpdateSloRequest.SloUpdates', null, global);
|
|
43
52
|
goog.exportSymbol('proto.gateway.web.v1.UpdateSloResponse', null, global);
|
|
@@ -335,6 +344,174 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
335
344
|
*/
|
|
336
345
|
proto.gateway.web.v1.DeleteSloResponse.displayName = 'proto.gateway.web.v1.DeleteSloResponse';
|
|
337
346
|
}
|
|
347
|
+
/**
|
|
348
|
+
* Generated by JsPbCodeGenerator.
|
|
349
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
350
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
351
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
352
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
353
|
+
* valid.
|
|
354
|
+
* @extends {jspb.Message}
|
|
355
|
+
* @constructor
|
|
356
|
+
*/
|
|
357
|
+
proto.gateway.web.v1.GetSloStatusRequest = function(opt_data) {
|
|
358
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
359
|
+
};
|
|
360
|
+
goog.inherits(proto.gateway.web.v1.GetSloStatusRequest, jspb.Message);
|
|
361
|
+
if (goog.DEBUG && !COMPILED) {
|
|
362
|
+
/**
|
|
363
|
+
* @public
|
|
364
|
+
* @override
|
|
365
|
+
*/
|
|
366
|
+
proto.gateway.web.v1.GetSloStatusRequest.displayName = 'proto.gateway.web.v1.GetSloStatusRequest';
|
|
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.gateway.web.v1.GetSloStatusResponse = function(opt_data) {
|
|
379
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
380
|
+
};
|
|
381
|
+
goog.inherits(proto.gateway.web.v1.GetSloStatusResponse, jspb.Message);
|
|
382
|
+
if (goog.DEBUG && !COMPILED) {
|
|
383
|
+
/**
|
|
384
|
+
* @public
|
|
385
|
+
* @override
|
|
386
|
+
*/
|
|
387
|
+
proto.gateway.web.v1.GetSloStatusResponse.displayName = 'proto.gateway.web.v1.GetSloStatusResponse';
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Generated by JsPbCodeGenerator.
|
|
391
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
392
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
393
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
394
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
395
|
+
* valid.
|
|
396
|
+
* @extends {jspb.Message}
|
|
397
|
+
* @constructor
|
|
398
|
+
*/
|
|
399
|
+
proto.gateway.web.v1.SloStatus = function(opt_data) {
|
|
400
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.SloStatus.repeatedFields_, null);
|
|
401
|
+
};
|
|
402
|
+
goog.inherits(proto.gateway.web.v1.SloStatus, jspb.Message);
|
|
403
|
+
if (goog.DEBUG && !COMPILED) {
|
|
404
|
+
/**
|
|
405
|
+
* @public
|
|
406
|
+
* @override
|
|
407
|
+
*/
|
|
408
|
+
proto.gateway.web.v1.SloStatus.displayName = 'proto.gateway.web.v1.SloStatus';
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* Generated by JsPbCodeGenerator.
|
|
412
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
413
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
414
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
415
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
416
|
+
* valid.
|
|
417
|
+
* @extends {jspb.Message}
|
|
418
|
+
* @constructor
|
|
419
|
+
*/
|
|
420
|
+
proto.gateway.web.v1.SloCorridorStatus = function(opt_data) {
|
|
421
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.SloCorridorStatus.repeatedFields_, null);
|
|
422
|
+
};
|
|
423
|
+
goog.inherits(proto.gateway.web.v1.SloCorridorStatus, jspb.Message);
|
|
424
|
+
if (goog.DEBUG && !COMPILED) {
|
|
425
|
+
/**
|
|
426
|
+
* @public
|
|
427
|
+
* @override
|
|
428
|
+
*/
|
|
429
|
+
proto.gateway.web.v1.SloCorridorStatus.displayName = 'proto.gateway.web.v1.SloCorridorStatus';
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* Generated by JsPbCodeGenerator.
|
|
433
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
434
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
435
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
436
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
437
|
+
* valid.
|
|
438
|
+
* @extends {jspb.Message}
|
|
439
|
+
* @constructor
|
|
440
|
+
*/
|
|
441
|
+
proto.gateway.web.v1.GetSloTimelineRequest = function(opt_data) {
|
|
442
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
443
|
+
};
|
|
444
|
+
goog.inherits(proto.gateway.web.v1.GetSloTimelineRequest, jspb.Message);
|
|
445
|
+
if (goog.DEBUG && !COMPILED) {
|
|
446
|
+
/**
|
|
447
|
+
* @public
|
|
448
|
+
* @override
|
|
449
|
+
*/
|
|
450
|
+
proto.gateway.web.v1.GetSloTimelineRequest.displayName = 'proto.gateway.web.v1.GetSloTimelineRequest';
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* Generated by JsPbCodeGenerator.
|
|
454
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
455
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
456
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
457
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
458
|
+
* valid.
|
|
459
|
+
* @extends {jspb.Message}
|
|
460
|
+
* @constructor
|
|
461
|
+
*/
|
|
462
|
+
proto.gateway.web.v1.GetSloTimelineResponse = function(opt_data) {
|
|
463
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
464
|
+
};
|
|
465
|
+
goog.inherits(proto.gateway.web.v1.GetSloTimelineResponse, jspb.Message);
|
|
466
|
+
if (goog.DEBUG && !COMPILED) {
|
|
467
|
+
/**
|
|
468
|
+
* @public
|
|
469
|
+
* @override
|
|
470
|
+
*/
|
|
471
|
+
proto.gateway.web.v1.GetSloTimelineResponse.displayName = 'proto.gateway.web.v1.GetSloTimelineResponse';
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* Generated by JsPbCodeGenerator.
|
|
475
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
476
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
477
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
478
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
479
|
+
* valid.
|
|
480
|
+
* @extends {jspb.Message}
|
|
481
|
+
* @constructor
|
|
482
|
+
*/
|
|
483
|
+
proto.gateway.web.v1.SloTimeline = function(opt_data) {
|
|
484
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.SloTimeline.repeatedFields_, null);
|
|
485
|
+
};
|
|
486
|
+
goog.inherits(proto.gateway.web.v1.SloTimeline, jspb.Message);
|
|
487
|
+
if (goog.DEBUG && !COMPILED) {
|
|
488
|
+
/**
|
|
489
|
+
* @public
|
|
490
|
+
* @override
|
|
491
|
+
*/
|
|
492
|
+
proto.gateway.web.v1.SloTimeline.displayName = 'proto.gateway.web.v1.SloTimeline';
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* Generated by JsPbCodeGenerator.
|
|
496
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
497
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
498
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
499
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
500
|
+
* valid.
|
|
501
|
+
* @extends {jspb.Message}
|
|
502
|
+
* @constructor
|
|
503
|
+
*/
|
|
504
|
+
proto.gateway.web.v1.SloTimelineBucket = function(opt_data) {
|
|
505
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
506
|
+
};
|
|
507
|
+
goog.inherits(proto.gateway.web.v1.SloTimelineBucket, jspb.Message);
|
|
508
|
+
if (goog.DEBUG && !COMPILED) {
|
|
509
|
+
/**
|
|
510
|
+
* @public
|
|
511
|
+
* @override
|
|
512
|
+
*/
|
|
513
|
+
proto.gateway.web.v1.SloTimelineBucket.displayName = 'proto.gateway.web.v1.SloTimelineBucket';
|
|
514
|
+
}
|
|
338
515
|
|
|
339
516
|
|
|
340
517
|
|
|
@@ -3595,15 +3772,2252 @@ proto.gateway.web.v1.DeleteSloResponse.prototype.hasStatus = function() {
|
|
|
3595
3772
|
};
|
|
3596
3773
|
|
|
3597
3774
|
|
|
3775
|
+
|
|
3776
|
+
|
|
3777
|
+
|
|
3778
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3598
3779
|
/**
|
|
3599
|
-
*
|
|
3780
|
+
* Creates an object representation of this proto.
|
|
3781
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3782
|
+
* Optional fields that are not set will be set to undefined.
|
|
3783
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3784
|
+
* For the list of reserved names please see:
|
|
3785
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3786
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3787
|
+
* JSPB instance for transitional soy proto support:
|
|
3788
|
+
* http://goto/soy-param-migration
|
|
3789
|
+
* @return {!Object}
|
|
3600
3790
|
*/
|
|
3601
|
-
proto.gateway.web.v1.
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3791
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3792
|
+
return proto.gateway.web.v1.GetSloStatusRequest.toObject(opt_includeInstance, this);
|
|
3793
|
+
};
|
|
3794
|
+
|
|
3795
|
+
|
|
3796
|
+
/**
|
|
3797
|
+
* Static version of the {@see toObject} method.
|
|
3798
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3799
|
+
* the JSPB instance for transitional soy proto support:
|
|
3800
|
+
* http://goto/soy-param-migration
|
|
3801
|
+
* @param {!proto.gateway.web.v1.GetSloStatusRequest} msg The msg instance to transform.
|
|
3802
|
+
* @return {!Object}
|
|
3803
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3804
|
+
*/
|
|
3805
|
+
proto.gateway.web.v1.GetSloStatusRequest.toObject = function(includeInstance, msg) {
|
|
3806
|
+
var f, obj = {
|
|
3807
|
+
organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3808
|
+
projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3809
|
+
sloId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3810
|
+
evaluationTime: (f = msg.getEvaluationTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
3811
|
+
};
|
|
3812
|
+
|
|
3813
|
+
if (includeInstance) {
|
|
3814
|
+
obj.$jspbMessageInstance = msg;
|
|
3815
|
+
}
|
|
3816
|
+
return obj;
|
|
3817
|
+
};
|
|
3818
|
+
}
|
|
3819
|
+
|
|
3820
|
+
|
|
3821
|
+
/**
|
|
3822
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3823
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3824
|
+
* @return {!proto.gateway.web.v1.GetSloStatusRequest}
|
|
3825
|
+
*/
|
|
3826
|
+
proto.gateway.web.v1.GetSloStatusRequest.deserializeBinary = function(bytes) {
|
|
3827
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3828
|
+
var msg = new proto.gateway.web.v1.GetSloStatusRequest;
|
|
3829
|
+
return proto.gateway.web.v1.GetSloStatusRequest.deserializeBinaryFromReader(msg, reader);
|
|
3830
|
+
};
|
|
3831
|
+
|
|
3832
|
+
|
|
3833
|
+
/**
|
|
3834
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3835
|
+
* given reader into the given message object.
|
|
3836
|
+
* @param {!proto.gateway.web.v1.GetSloStatusRequest} msg The message object to deserialize into.
|
|
3837
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3838
|
+
* @return {!proto.gateway.web.v1.GetSloStatusRequest}
|
|
3839
|
+
*/
|
|
3840
|
+
proto.gateway.web.v1.GetSloStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3841
|
+
while (reader.nextField()) {
|
|
3842
|
+
if (reader.isEndGroup()) {
|
|
3843
|
+
break;
|
|
3844
|
+
}
|
|
3845
|
+
var field = reader.getFieldNumber();
|
|
3846
|
+
switch (field) {
|
|
3847
|
+
case 1:
|
|
3848
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3849
|
+
msg.setOrganizationId(value);
|
|
3850
|
+
break;
|
|
3851
|
+
case 2:
|
|
3852
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3853
|
+
msg.setProjectId(value);
|
|
3854
|
+
break;
|
|
3855
|
+
case 3:
|
|
3856
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3857
|
+
msg.setSloId(value);
|
|
3858
|
+
break;
|
|
3859
|
+
case 4:
|
|
3860
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
3861
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
3862
|
+
msg.setEvaluationTime(value);
|
|
3863
|
+
break;
|
|
3864
|
+
default:
|
|
3865
|
+
reader.skipField();
|
|
3866
|
+
break;
|
|
3867
|
+
}
|
|
3868
|
+
}
|
|
3869
|
+
return msg;
|
|
3870
|
+
};
|
|
3871
|
+
|
|
3872
|
+
|
|
3873
|
+
/**
|
|
3874
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3875
|
+
* @return {!Uint8Array}
|
|
3876
|
+
*/
|
|
3877
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.serializeBinary = function() {
|
|
3878
|
+
var writer = new jspb.BinaryWriter();
|
|
3879
|
+
proto.gateway.web.v1.GetSloStatusRequest.serializeBinaryToWriter(this, writer);
|
|
3880
|
+
return writer.getResultBuffer();
|
|
3881
|
+
};
|
|
3882
|
+
|
|
3883
|
+
|
|
3884
|
+
/**
|
|
3885
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3886
|
+
* format), writing to the given BinaryWriter.
|
|
3887
|
+
* @param {!proto.gateway.web.v1.GetSloStatusRequest} message
|
|
3888
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3889
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3890
|
+
*/
|
|
3891
|
+
proto.gateway.web.v1.GetSloStatusRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3892
|
+
var f = undefined;
|
|
3893
|
+
f = message.getOrganizationId();
|
|
3894
|
+
if (f.length > 0) {
|
|
3895
|
+
writer.writeString(
|
|
3896
|
+
1,
|
|
3897
|
+
f
|
|
3898
|
+
);
|
|
3899
|
+
}
|
|
3900
|
+
f = message.getProjectId();
|
|
3901
|
+
if (f.length > 0) {
|
|
3902
|
+
writer.writeString(
|
|
3903
|
+
2,
|
|
3904
|
+
f
|
|
3905
|
+
);
|
|
3906
|
+
}
|
|
3907
|
+
f = message.getSloId();
|
|
3908
|
+
if (f.length > 0) {
|
|
3909
|
+
writer.writeString(
|
|
3910
|
+
3,
|
|
3911
|
+
f
|
|
3912
|
+
);
|
|
3913
|
+
}
|
|
3914
|
+
f = message.getEvaluationTime();
|
|
3915
|
+
if (f != null) {
|
|
3916
|
+
writer.writeMessage(
|
|
3917
|
+
4,
|
|
3918
|
+
f,
|
|
3919
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
3920
|
+
);
|
|
3921
|
+
}
|
|
3922
|
+
};
|
|
3923
|
+
|
|
3924
|
+
|
|
3925
|
+
/**
|
|
3926
|
+
* optional string organization_id = 1;
|
|
3927
|
+
* @return {string}
|
|
3928
|
+
*/
|
|
3929
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.getOrganizationId = function() {
|
|
3930
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3931
|
+
};
|
|
3932
|
+
|
|
3933
|
+
|
|
3934
|
+
/**
|
|
3935
|
+
* @param {string} value
|
|
3936
|
+
* @return {!proto.gateway.web.v1.GetSloStatusRequest} returns this
|
|
3937
|
+
*/
|
|
3938
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.setOrganizationId = function(value) {
|
|
3939
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3940
|
+
};
|
|
3941
|
+
|
|
3942
|
+
|
|
3943
|
+
/**
|
|
3944
|
+
* optional string project_id = 2;
|
|
3945
|
+
* @return {string}
|
|
3946
|
+
*/
|
|
3947
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.getProjectId = function() {
|
|
3948
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3949
|
+
};
|
|
3950
|
+
|
|
3951
|
+
|
|
3952
|
+
/**
|
|
3953
|
+
* @param {string} value
|
|
3954
|
+
* @return {!proto.gateway.web.v1.GetSloStatusRequest} returns this
|
|
3955
|
+
*/
|
|
3956
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.setProjectId = function(value) {
|
|
3957
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3958
|
+
};
|
|
3959
|
+
|
|
3960
|
+
|
|
3961
|
+
/**
|
|
3962
|
+
* optional string slo_id = 3;
|
|
3963
|
+
* @return {string}
|
|
3964
|
+
*/
|
|
3965
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.getSloId = function() {
|
|
3966
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3967
|
+
};
|
|
3968
|
+
|
|
3969
|
+
|
|
3970
|
+
/**
|
|
3971
|
+
* @param {string} value
|
|
3972
|
+
* @return {!proto.gateway.web.v1.GetSloStatusRequest} returns this
|
|
3973
|
+
*/
|
|
3974
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.setSloId = function(value) {
|
|
3975
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3976
|
+
};
|
|
3977
|
+
|
|
3978
|
+
|
|
3979
|
+
/**
|
|
3980
|
+
* optional google.protobuf.Timestamp evaluation_time = 4;
|
|
3981
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
3982
|
+
*/
|
|
3983
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.getEvaluationTime = function() {
|
|
3984
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
3985
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
|
|
3986
|
+
};
|
|
3987
|
+
|
|
3988
|
+
|
|
3989
|
+
/**
|
|
3990
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
3991
|
+
* @return {!proto.gateway.web.v1.GetSloStatusRequest} returns this
|
|
3992
|
+
*/
|
|
3993
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.setEvaluationTime = function(value) {
|
|
3994
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
3995
|
+
};
|
|
3996
|
+
|
|
3997
|
+
|
|
3998
|
+
/**
|
|
3999
|
+
* Clears the message field making it undefined.
|
|
4000
|
+
* @return {!proto.gateway.web.v1.GetSloStatusRequest} returns this
|
|
4001
|
+
*/
|
|
4002
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.clearEvaluationTime = function() {
|
|
4003
|
+
return this.setEvaluationTime(undefined);
|
|
4004
|
+
};
|
|
4005
|
+
|
|
4006
|
+
|
|
4007
|
+
/**
|
|
4008
|
+
* Returns whether this field is set.
|
|
4009
|
+
* @return {boolean}
|
|
4010
|
+
*/
|
|
4011
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.hasEvaluationTime = function() {
|
|
4012
|
+
return jspb.Message.getField(this, 4) != null;
|
|
4013
|
+
};
|
|
4014
|
+
|
|
4015
|
+
|
|
4016
|
+
|
|
4017
|
+
|
|
4018
|
+
|
|
4019
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4020
|
+
/**
|
|
4021
|
+
* Creates an object representation of this proto.
|
|
4022
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4023
|
+
* Optional fields that are not set will be set to undefined.
|
|
4024
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4025
|
+
* For the list of reserved names please see:
|
|
4026
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4027
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4028
|
+
* JSPB instance for transitional soy proto support:
|
|
4029
|
+
* http://goto/soy-param-migration
|
|
4030
|
+
* @return {!Object}
|
|
4031
|
+
*/
|
|
4032
|
+
proto.gateway.web.v1.GetSloStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
|
4033
|
+
return proto.gateway.web.v1.GetSloStatusResponse.toObject(opt_includeInstance, this);
|
|
4034
|
+
};
|
|
4035
|
+
|
|
4036
|
+
|
|
4037
|
+
/**
|
|
4038
|
+
* Static version of the {@see toObject} method.
|
|
4039
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4040
|
+
* the JSPB instance for transitional soy proto support:
|
|
4041
|
+
* http://goto/soy-param-migration
|
|
4042
|
+
* @param {!proto.gateway.web.v1.GetSloStatusResponse} msg The msg instance to transform.
|
|
4043
|
+
* @return {!Object}
|
|
4044
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4045
|
+
*/
|
|
4046
|
+
proto.gateway.web.v1.GetSloStatusResponse.toObject = function(includeInstance, msg) {
|
|
4047
|
+
var f, obj = {
|
|
4048
|
+
status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
|
|
4049
|
+
sloStatus: (f = msg.getSloStatus()) && proto.gateway.web.v1.SloStatus.toObject(includeInstance, f)
|
|
4050
|
+
};
|
|
4051
|
+
|
|
4052
|
+
if (includeInstance) {
|
|
4053
|
+
obj.$jspbMessageInstance = msg;
|
|
4054
|
+
}
|
|
4055
|
+
return obj;
|
|
4056
|
+
};
|
|
4057
|
+
}
|
|
4058
|
+
|
|
4059
|
+
|
|
4060
|
+
/**
|
|
4061
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4062
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4063
|
+
* @return {!proto.gateway.web.v1.GetSloStatusResponse}
|
|
4064
|
+
*/
|
|
4065
|
+
proto.gateway.web.v1.GetSloStatusResponse.deserializeBinary = function(bytes) {
|
|
4066
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4067
|
+
var msg = new proto.gateway.web.v1.GetSloStatusResponse;
|
|
4068
|
+
return proto.gateway.web.v1.GetSloStatusResponse.deserializeBinaryFromReader(msg, reader);
|
|
4069
|
+
};
|
|
4070
|
+
|
|
4071
|
+
|
|
4072
|
+
/**
|
|
4073
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4074
|
+
* given reader into the given message object.
|
|
4075
|
+
* @param {!proto.gateway.web.v1.GetSloStatusResponse} msg The message object to deserialize into.
|
|
4076
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4077
|
+
* @return {!proto.gateway.web.v1.GetSloStatusResponse}
|
|
4078
|
+
*/
|
|
4079
|
+
proto.gateway.web.v1.GetSloStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4080
|
+
while (reader.nextField()) {
|
|
4081
|
+
if (reader.isEndGroup()) {
|
|
4082
|
+
break;
|
|
4083
|
+
}
|
|
4084
|
+
var field = reader.getFieldNumber();
|
|
4085
|
+
switch (field) {
|
|
4086
|
+
case 1:
|
|
4087
|
+
var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
|
|
4088
|
+
reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
|
|
4089
|
+
msg.setStatus(value);
|
|
4090
|
+
break;
|
|
4091
|
+
case 2:
|
|
4092
|
+
var value = new proto.gateway.web.v1.SloStatus;
|
|
4093
|
+
reader.readMessage(value,proto.gateway.web.v1.SloStatus.deserializeBinaryFromReader);
|
|
4094
|
+
msg.setSloStatus(value);
|
|
4095
|
+
break;
|
|
4096
|
+
default:
|
|
4097
|
+
reader.skipField();
|
|
4098
|
+
break;
|
|
4099
|
+
}
|
|
4100
|
+
}
|
|
4101
|
+
return msg;
|
|
4102
|
+
};
|
|
4103
|
+
|
|
4104
|
+
|
|
4105
|
+
/**
|
|
4106
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4107
|
+
* @return {!Uint8Array}
|
|
4108
|
+
*/
|
|
4109
|
+
proto.gateway.web.v1.GetSloStatusResponse.prototype.serializeBinary = function() {
|
|
4110
|
+
var writer = new jspb.BinaryWriter();
|
|
4111
|
+
proto.gateway.web.v1.GetSloStatusResponse.serializeBinaryToWriter(this, writer);
|
|
4112
|
+
return writer.getResultBuffer();
|
|
4113
|
+
};
|
|
4114
|
+
|
|
4115
|
+
|
|
4116
|
+
/**
|
|
4117
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4118
|
+
* format), writing to the given BinaryWriter.
|
|
4119
|
+
* @param {!proto.gateway.web.v1.GetSloStatusResponse} message
|
|
4120
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4121
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4122
|
+
*/
|
|
4123
|
+
proto.gateway.web.v1.GetSloStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4124
|
+
var f = undefined;
|
|
4125
|
+
f = message.getStatus();
|
|
4126
|
+
if (f != null) {
|
|
4127
|
+
writer.writeMessage(
|
|
4128
|
+
1,
|
|
4129
|
+
f,
|
|
4130
|
+
proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
|
|
4131
|
+
);
|
|
4132
|
+
}
|
|
4133
|
+
f = message.getSloStatus();
|
|
4134
|
+
if (f != null) {
|
|
4135
|
+
writer.writeMessage(
|
|
4136
|
+
2,
|
|
4137
|
+
f,
|
|
4138
|
+
proto.gateway.web.v1.SloStatus.serializeBinaryToWriter
|
|
4139
|
+
);
|
|
4140
|
+
}
|
|
4141
|
+
};
|
|
4142
|
+
|
|
4143
|
+
|
|
4144
|
+
/**
|
|
4145
|
+
* optional gateway.common.v1.ResponseStatus status = 1;
|
|
4146
|
+
* @return {?proto.gateway.common.v1.ResponseStatus}
|
|
4147
|
+
*/
|
|
4148
|
+
proto.gateway.web.v1.GetSloStatusResponse.prototype.getStatus = function() {
|
|
4149
|
+
return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
|
|
4150
|
+
jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
|
|
4151
|
+
};
|
|
4152
|
+
|
|
4153
|
+
|
|
4154
|
+
/**
|
|
4155
|
+
* @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
|
|
4156
|
+
* @return {!proto.gateway.web.v1.GetSloStatusResponse} returns this
|
|
4157
|
+
*/
|
|
4158
|
+
proto.gateway.web.v1.GetSloStatusResponse.prototype.setStatus = function(value) {
|
|
4159
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
4160
|
+
};
|
|
4161
|
+
|
|
4162
|
+
|
|
4163
|
+
/**
|
|
4164
|
+
* Clears the message field making it undefined.
|
|
4165
|
+
* @return {!proto.gateway.web.v1.GetSloStatusResponse} returns this
|
|
4166
|
+
*/
|
|
4167
|
+
proto.gateway.web.v1.GetSloStatusResponse.prototype.clearStatus = function() {
|
|
4168
|
+
return this.setStatus(undefined);
|
|
4169
|
+
};
|
|
4170
|
+
|
|
4171
|
+
|
|
4172
|
+
/**
|
|
4173
|
+
* Returns whether this field is set.
|
|
4174
|
+
* @return {boolean}
|
|
4175
|
+
*/
|
|
4176
|
+
proto.gateway.web.v1.GetSloStatusResponse.prototype.hasStatus = function() {
|
|
4177
|
+
return jspb.Message.getField(this, 1) != null;
|
|
4178
|
+
};
|
|
4179
|
+
|
|
4180
|
+
|
|
4181
|
+
/**
|
|
4182
|
+
* optional SloStatus slo_status = 2;
|
|
4183
|
+
* @return {?proto.gateway.web.v1.SloStatus}
|
|
4184
|
+
*/
|
|
4185
|
+
proto.gateway.web.v1.GetSloStatusResponse.prototype.getSloStatus = function() {
|
|
4186
|
+
return /** @type{?proto.gateway.web.v1.SloStatus} */ (
|
|
4187
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.SloStatus, 2));
|
|
4188
|
+
};
|
|
4189
|
+
|
|
4190
|
+
|
|
4191
|
+
/**
|
|
4192
|
+
* @param {?proto.gateway.web.v1.SloStatus|undefined} value
|
|
4193
|
+
* @return {!proto.gateway.web.v1.GetSloStatusResponse} returns this
|
|
4194
|
+
*/
|
|
4195
|
+
proto.gateway.web.v1.GetSloStatusResponse.prototype.setSloStatus = function(value) {
|
|
4196
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
4197
|
+
};
|
|
4198
|
+
|
|
4199
|
+
|
|
4200
|
+
/**
|
|
4201
|
+
* Clears the message field making it undefined.
|
|
4202
|
+
* @return {!proto.gateway.web.v1.GetSloStatusResponse} returns this
|
|
4203
|
+
*/
|
|
4204
|
+
proto.gateway.web.v1.GetSloStatusResponse.prototype.clearSloStatus = function() {
|
|
4205
|
+
return this.setSloStatus(undefined);
|
|
4206
|
+
};
|
|
4207
|
+
|
|
4208
|
+
|
|
4209
|
+
/**
|
|
4210
|
+
* Returns whether this field is set.
|
|
4211
|
+
* @return {boolean}
|
|
4212
|
+
*/
|
|
4213
|
+
proto.gateway.web.v1.GetSloStatusResponse.prototype.hasSloStatus = function() {
|
|
4214
|
+
return jspb.Message.getField(this, 2) != null;
|
|
4215
|
+
};
|
|
4216
|
+
|
|
4217
|
+
|
|
4218
|
+
|
|
4219
|
+
/**
|
|
4220
|
+
* List of repeated fields within this message type.
|
|
4221
|
+
* @private {!Array<number>}
|
|
4222
|
+
* @const
|
|
4223
|
+
*/
|
|
4224
|
+
proto.gateway.web.v1.SloStatus.repeatedFields_ = [6];
|
|
4225
|
+
|
|
4226
|
+
|
|
4227
|
+
|
|
4228
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4229
|
+
/**
|
|
4230
|
+
* Creates an object representation of this proto.
|
|
4231
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4232
|
+
* Optional fields that are not set will be set to undefined.
|
|
4233
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4234
|
+
* For the list of reserved names please see:
|
|
4235
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4236
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4237
|
+
* JSPB instance for transitional soy proto support:
|
|
4238
|
+
* http://goto/soy-param-migration
|
|
4239
|
+
* @return {!Object}
|
|
4240
|
+
*/
|
|
4241
|
+
proto.gateway.web.v1.SloStatus.prototype.toObject = function(opt_includeInstance) {
|
|
4242
|
+
return proto.gateway.web.v1.SloStatus.toObject(opt_includeInstance, this);
|
|
4243
|
+
};
|
|
4244
|
+
|
|
4245
|
+
|
|
4246
|
+
/**
|
|
4247
|
+
* Static version of the {@see toObject} method.
|
|
4248
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4249
|
+
* the JSPB instance for transitional soy proto support:
|
|
4250
|
+
* http://goto/soy-param-migration
|
|
4251
|
+
* @param {!proto.gateway.web.v1.SloStatus} msg The msg instance to transform.
|
|
4252
|
+
* @return {!Object}
|
|
4253
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4254
|
+
*/
|
|
4255
|
+
proto.gateway.web.v1.SloStatus.toObject = function(includeInstance, msg) {
|
|
4256
|
+
var f, obj = {
|
|
4257
|
+
sloId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4258
|
+
enabled: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
4259
|
+
windowSeconds: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
4260
|
+
windowStart: (f = msg.getWindowStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
4261
|
+
windowEnd: (f = msg.getWindowEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
4262
|
+
corridorsList: jspb.Message.toObjectList(msg.getCorridorsList(),
|
|
4263
|
+
proto.gateway.web.v1.SloCorridorStatus.toObject, includeInstance)
|
|
4264
|
+
};
|
|
4265
|
+
|
|
4266
|
+
if (includeInstance) {
|
|
4267
|
+
obj.$jspbMessageInstance = msg;
|
|
4268
|
+
}
|
|
4269
|
+
return obj;
|
|
4270
|
+
};
|
|
4271
|
+
}
|
|
4272
|
+
|
|
4273
|
+
|
|
4274
|
+
/**
|
|
4275
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4276
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4277
|
+
* @return {!proto.gateway.web.v1.SloStatus}
|
|
4278
|
+
*/
|
|
4279
|
+
proto.gateway.web.v1.SloStatus.deserializeBinary = function(bytes) {
|
|
4280
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4281
|
+
var msg = new proto.gateway.web.v1.SloStatus;
|
|
4282
|
+
return proto.gateway.web.v1.SloStatus.deserializeBinaryFromReader(msg, reader);
|
|
4283
|
+
};
|
|
4284
|
+
|
|
4285
|
+
|
|
4286
|
+
/**
|
|
4287
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4288
|
+
* given reader into the given message object.
|
|
4289
|
+
* @param {!proto.gateway.web.v1.SloStatus} msg The message object to deserialize into.
|
|
4290
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4291
|
+
* @return {!proto.gateway.web.v1.SloStatus}
|
|
4292
|
+
*/
|
|
4293
|
+
proto.gateway.web.v1.SloStatus.deserializeBinaryFromReader = function(msg, reader) {
|
|
4294
|
+
while (reader.nextField()) {
|
|
4295
|
+
if (reader.isEndGroup()) {
|
|
4296
|
+
break;
|
|
4297
|
+
}
|
|
4298
|
+
var field = reader.getFieldNumber();
|
|
4299
|
+
switch (field) {
|
|
4300
|
+
case 1:
|
|
4301
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4302
|
+
msg.setSloId(value);
|
|
4303
|
+
break;
|
|
4304
|
+
case 2:
|
|
4305
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
4306
|
+
msg.setEnabled(value);
|
|
4307
|
+
break;
|
|
4308
|
+
case 3:
|
|
4309
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
4310
|
+
msg.setWindowSeconds(value);
|
|
4311
|
+
break;
|
|
4312
|
+
case 4:
|
|
4313
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
4314
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
4315
|
+
msg.setWindowStart(value);
|
|
4316
|
+
break;
|
|
4317
|
+
case 5:
|
|
4318
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
4319
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
4320
|
+
msg.setWindowEnd(value);
|
|
4321
|
+
break;
|
|
4322
|
+
case 6:
|
|
4323
|
+
var value = new proto.gateway.web.v1.SloCorridorStatus;
|
|
4324
|
+
reader.readMessage(value,proto.gateway.web.v1.SloCorridorStatus.deserializeBinaryFromReader);
|
|
4325
|
+
msg.addCorridors(value);
|
|
4326
|
+
break;
|
|
4327
|
+
default:
|
|
4328
|
+
reader.skipField();
|
|
4329
|
+
break;
|
|
4330
|
+
}
|
|
4331
|
+
}
|
|
4332
|
+
return msg;
|
|
4333
|
+
};
|
|
4334
|
+
|
|
4335
|
+
|
|
4336
|
+
/**
|
|
4337
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4338
|
+
* @return {!Uint8Array}
|
|
4339
|
+
*/
|
|
4340
|
+
proto.gateway.web.v1.SloStatus.prototype.serializeBinary = function() {
|
|
4341
|
+
var writer = new jspb.BinaryWriter();
|
|
4342
|
+
proto.gateway.web.v1.SloStatus.serializeBinaryToWriter(this, writer);
|
|
4343
|
+
return writer.getResultBuffer();
|
|
4344
|
+
};
|
|
4345
|
+
|
|
4346
|
+
|
|
4347
|
+
/**
|
|
4348
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4349
|
+
* format), writing to the given BinaryWriter.
|
|
4350
|
+
* @param {!proto.gateway.web.v1.SloStatus} message
|
|
4351
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4352
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4353
|
+
*/
|
|
4354
|
+
proto.gateway.web.v1.SloStatus.serializeBinaryToWriter = function(message, writer) {
|
|
4355
|
+
var f = undefined;
|
|
4356
|
+
f = message.getSloId();
|
|
4357
|
+
if (f.length > 0) {
|
|
4358
|
+
writer.writeString(
|
|
4359
|
+
1,
|
|
4360
|
+
f
|
|
4361
|
+
);
|
|
4362
|
+
}
|
|
4363
|
+
f = message.getEnabled();
|
|
4364
|
+
if (f) {
|
|
4365
|
+
writer.writeBool(
|
|
4366
|
+
2,
|
|
4367
|
+
f
|
|
4368
|
+
);
|
|
4369
|
+
}
|
|
4370
|
+
f = message.getWindowSeconds();
|
|
4371
|
+
if (f !== 0) {
|
|
4372
|
+
writer.writeInt64(
|
|
4373
|
+
3,
|
|
4374
|
+
f
|
|
4375
|
+
);
|
|
4376
|
+
}
|
|
4377
|
+
f = message.getWindowStart();
|
|
4378
|
+
if (f != null) {
|
|
4379
|
+
writer.writeMessage(
|
|
4380
|
+
4,
|
|
4381
|
+
f,
|
|
4382
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
4383
|
+
);
|
|
4384
|
+
}
|
|
4385
|
+
f = message.getWindowEnd();
|
|
4386
|
+
if (f != null) {
|
|
4387
|
+
writer.writeMessage(
|
|
4388
|
+
5,
|
|
4389
|
+
f,
|
|
4390
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
4391
|
+
);
|
|
4392
|
+
}
|
|
4393
|
+
f = message.getCorridorsList();
|
|
4394
|
+
if (f.length > 0) {
|
|
4395
|
+
writer.writeRepeatedMessage(
|
|
4396
|
+
6,
|
|
4397
|
+
f,
|
|
4398
|
+
proto.gateway.web.v1.SloCorridorStatus.serializeBinaryToWriter
|
|
4399
|
+
);
|
|
4400
|
+
}
|
|
4401
|
+
};
|
|
4402
|
+
|
|
4403
|
+
|
|
4404
|
+
/**
|
|
4405
|
+
* optional string slo_id = 1;
|
|
4406
|
+
* @return {string}
|
|
4407
|
+
*/
|
|
4408
|
+
proto.gateway.web.v1.SloStatus.prototype.getSloId = function() {
|
|
4409
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4410
|
+
};
|
|
4411
|
+
|
|
4412
|
+
|
|
4413
|
+
/**
|
|
4414
|
+
* @param {string} value
|
|
4415
|
+
* @return {!proto.gateway.web.v1.SloStatus} returns this
|
|
4416
|
+
*/
|
|
4417
|
+
proto.gateway.web.v1.SloStatus.prototype.setSloId = function(value) {
|
|
4418
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4419
|
+
};
|
|
4420
|
+
|
|
4421
|
+
|
|
4422
|
+
/**
|
|
4423
|
+
* optional bool enabled = 2;
|
|
4424
|
+
* @return {boolean}
|
|
4425
|
+
*/
|
|
4426
|
+
proto.gateway.web.v1.SloStatus.prototype.getEnabled = function() {
|
|
4427
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
4428
|
+
};
|
|
4429
|
+
|
|
4430
|
+
|
|
4431
|
+
/**
|
|
4432
|
+
* @param {boolean} value
|
|
4433
|
+
* @return {!proto.gateway.web.v1.SloStatus} returns this
|
|
4434
|
+
*/
|
|
4435
|
+
proto.gateway.web.v1.SloStatus.prototype.setEnabled = function(value) {
|
|
4436
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
4437
|
+
};
|
|
4438
|
+
|
|
4439
|
+
|
|
4440
|
+
/**
|
|
4441
|
+
* optional int64 window_seconds = 3;
|
|
4442
|
+
* @return {number}
|
|
4443
|
+
*/
|
|
4444
|
+
proto.gateway.web.v1.SloStatus.prototype.getWindowSeconds = function() {
|
|
4445
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
4446
|
+
};
|
|
4447
|
+
|
|
4448
|
+
|
|
4449
|
+
/**
|
|
4450
|
+
* @param {number} value
|
|
4451
|
+
* @return {!proto.gateway.web.v1.SloStatus} returns this
|
|
4452
|
+
*/
|
|
4453
|
+
proto.gateway.web.v1.SloStatus.prototype.setWindowSeconds = function(value) {
|
|
4454
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
4455
|
+
};
|
|
4456
|
+
|
|
4457
|
+
|
|
4458
|
+
/**
|
|
4459
|
+
* optional google.protobuf.Timestamp window_start = 4;
|
|
4460
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
4461
|
+
*/
|
|
4462
|
+
proto.gateway.web.v1.SloStatus.prototype.getWindowStart = function() {
|
|
4463
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
4464
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
|
|
4465
|
+
};
|
|
4466
|
+
|
|
4467
|
+
|
|
4468
|
+
/**
|
|
4469
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
4470
|
+
* @return {!proto.gateway.web.v1.SloStatus} returns this
|
|
4471
|
+
*/
|
|
4472
|
+
proto.gateway.web.v1.SloStatus.prototype.setWindowStart = function(value) {
|
|
4473
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
4474
|
+
};
|
|
4475
|
+
|
|
4476
|
+
|
|
4477
|
+
/**
|
|
4478
|
+
* Clears the message field making it undefined.
|
|
4479
|
+
* @return {!proto.gateway.web.v1.SloStatus} returns this
|
|
4480
|
+
*/
|
|
4481
|
+
proto.gateway.web.v1.SloStatus.prototype.clearWindowStart = function() {
|
|
4482
|
+
return this.setWindowStart(undefined);
|
|
4483
|
+
};
|
|
4484
|
+
|
|
4485
|
+
|
|
4486
|
+
/**
|
|
4487
|
+
* Returns whether this field is set.
|
|
4488
|
+
* @return {boolean}
|
|
4489
|
+
*/
|
|
4490
|
+
proto.gateway.web.v1.SloStatus.prototype.hasWindowStart = function() {
|
|
4491
|
+
return jspb.Message.getField(this, 4) != null;
|
|
4492
|
+
};
|
|
4493
|
+
|
|
4494
|
+
|
|
4495
|
+
/**
|
|
4496
|
+
* optional google.protobuf.Timestamp window_end = 5;
|
|
4497
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
4498
|
+
*/
|
|
4499
|
+
proto.gateway.web.v1.SloStatus.prototype.getWindowEnd = function() {
|
|
4500
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
4501
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
|
|
4502
|
+
};
|
|
4503
|
+
|
|
4504
|
+
|
|
4505
|
+
/**
|
|
4506
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
4507
|
+
* @return {!proto.gateway.web.v1.SloStatus} returns this
|
|
4508
|
+
*/
|
|
4509
|
+
proto.gateway.web.v1.SloStatus.prototype.setWindowEnd = function(value) {
|
|
4510
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
4511
|
+
};
|
|
4512
|
+
|
|
4513
|
+
|
|
4514
|
+
/**
|
|
4515
|
+
* Clears the message field making it undefined.
|
|
4516
|
+
* @return {!proto.gateway.web.v1.SloStatus} returns this
|
|
4517
|
+
*/
|
|
4518
|
+
proto.gateway.web.v1.SloStatus.prototype.clearWindowEnd = function() {
|
|
4519
|
+
return this.setWindowEnd(undefined);
|
|
4520
|
+
};
|
|
4521
|
+
|
|
4522
|
+
|
|
4523
|
+
/**
|
|
4524
|
+
* Returns whether this field is set.
|
|
4525
|
+
* @return {boolean}
|
|
4526
|
+
*/
|
|
4527
|
+
proto.gateway.web.v1.SloStatus.prototype.hasWindowEnd = function() {
|
|
4528
|
+
return jspb.Message.getField(this, 5) != null;
|
|
4529
|
+
};
|
|
4530
|
+
|
|
4531
|
+
|
|
4532
|
+
/**
|
|
4533
|
+
* repeated SloCorridorStatus corridors = 6;
|
|
4534
|
+
* @return {!Array<!proto.gateway.web.v1.SloCorridorStatus>}
|
|
4535
|
+
*/
|
|
4536
|
+
proto.gateway.web.v1.SloStatus.prototype.getCorridorsList = function() {
|
|
4537
|
+
return /** @type{!Array<!proto.gateway.web.v1.SloCorridorStatus>} */ (
|
|
4538
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SloCorridorStatus, 6));
|
|
4539
|
+
};
|
|
4540
|
+
|
|
4541
|
+
|
|
4542
|
+
/**
|
|
4543
|
+
* @param {!Array<!proto.gateway.web.v1.SloCorridorStatus>} value
|
|
4544
|
+
* @return {!proto.gateway.web.v1.SloStatus} returns this
|
|
4545
|
+
*/
|
|
4546
|
+
proto.gateway.web.v1.SloStatus.prototype.setCorridorsList = function(value) {
|
|
4547
|
+
return jspb.Message.setRepeatedWrapperField(this, 6, value);
|
|
4548
|
+
};
|
|
4549
|
+
|
|
4550
|
+
|
|
4551
|
+
/**
|
|
4552
|
+
* @param {!proto.gateway.web.v1.SloCorridorStatus=} opt_value
|
|
4553
|
+
* @param {number=} opt_index
|
|
4554
|
+
* @return {!proto.gateway.web.v1.SloCorridorStatus}
|
|
4555
|
+
*/
|
|
4556
|
+
proto.gateway.web.v1.SloStatus.prototype.addCorridors = function(opt_value, opt_index) {
|
|
4557
|
+
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.gateway.web.v1.SloCorridorStatus, opt_index);
|
|
4558
|
+
};
|
|
4559
|
+
|
|
4560
|
+
|
|
4561
|
+
/**
|
|
4562
|
+
* Clears the list making it empty but non-null.
|
|
4563
|
+
* @return {!proto.gateway.web.v1.SloStatus} returns this
|
|
4564
|
+
*/
|
|
4565
|
+
proto.gateway.web.v1.SloStatus.prototype.clearCorridorsList = function() {
|
|
4566
|
+
return this.setCorridorsList([]);
|
|
4567
|
+
};
|
|
4568
|
+
|
|
4569
|
+
|
|
4570
|
+
|
|
4571
|
+
/**
|
|
4572
|
+
* List of repeated fields within this message type.
|
|
4573
|
+
* @private {!Array<number>}
|
|
4574
|
+
* @const
|
|
4575
|
+
*/
|
|
4576
|
+
proto.gateway.web.v1.SloCorridorStatus.repeatedFields_ = [1];
|
|
4577
|
+
|
|
4578
|
+
|
|
4579
|
+
|
|
4580
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4581
|
+
/**
|
|
4582
|
+
* Creates an object representation of this proto.
|
|
4583
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4584
|
+
* Optional fields that are not set will be set to undefined.
|
|
4585
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4586
|
+
* For the list of reserved names please see:
|
|
4587
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4588
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4589
|
+
* JSPB instance for transitional soy proto support:
|
|
4590
|
+
* http://goto/soy-param-migration
|
|
4591
|
+
* @return {!Object}
|
|
4592
|
+
*/
|
|
4593
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.toObject = function(opt_includeInstance) {
|
|
4594
|
+
return proto.gateway.web.v1.SloCorridorStatus.toObject(opt_includeInstance, this);
|
|
4595
|
+
};
|
|
4596
|
+
|
|
4597
|
+
|
|
4598
|
+
/**
|
|
4599
|
+
* Static version of the {@see toObject} method.
|
|
4600
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4601
|
+
* the JSPB instance for transitional soy proto support:
|
|
4602
|
+
* http://goto/soy-param-migration
|
|
4603
|
+
* @param {!proto.gateway.web.v1.SloCorridorStatus} msg The msg instance to transform.
|
|
4604
|
+
* @return {!Object}
|
|
4605
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4606
|
+
*/
|
|
4607
|
+
proto.gateway.web.v1.SloCorridorStatus.toObject = function(includeInstance, msg) {
|
|
4608
|
+
var f, obj = {
|
|
4609
|
+
groupValuesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
4610
|
+
eligibleCount: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
4611
|
+
goodCount: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
4612
|
+
compliance: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
|
4613
|
+
budgetRemaining: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
|
4614
|
+
state: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
|
4615
|
+
};
|
|
4616
|
+
|
|
4617
|
+
if (includeInstance) {
|
|
4618
|
+
obj.$jspbMessageInstance = msg;
|
|
4619
|
+
}
|
|
4620
|
+
return obj;
|
|
4621
|
+
};
|
|
4622
|
+
}
|
|
4623
|
+
|
|
4624
|
+
|
|
4625
|
+
/**
|
|
4626
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4627
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4628
|
+
* @return {!proto.gateway.web.v1.SloCorridorStatus}
|
|
4629
|
+
*/
|
|
4630
|
+
proto.gateway.web.v1.SloCorridorStatus.deserializeBinary = function(bytes) {
|
|
4631
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4632
|
+
var msg = new proto.gateway.web.v1.SloCorridorStatus;
|
|
4633
|
+
return proto.gateway.web.v1.SloCorridorStatus.deserializeBinaryFromReader(msg, reader);
|
|
4634
|
+
};
|
|
4635
|
+
|
|
4636
|
+
|
|
4637
|
+
/**
|
|
4638
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4639
|
+
* given reader into the given message object.
|
|
4640
|
+
* @param {!proto.gateway.web.v1.SloCorridorStatus} msg The message object to deserialize into.
|
|
4641
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4642
|
+
* @return {!proto.gateway.web.v1.SloCorridorStatus}
|
|
4643
|
+
*/
|
|
4644
|
+
proto.gateway.web.v1.SloCorridorStatus.deserializeBinaryFromReader = function(msg, reader) {
|
|
4645
|
+
while (reader.nextField()) {
|
|
4646
|
+
if (reader.isEndGroup()) {
|
|
4647
|
+
break;
|
|
4648
|
+
}
|
|
4649
|
+
var field = reader.getFieldNumber();
|
|
4650
|
+
switch (field) {
|
|
4651
|
+
case 1:
|
|
4652
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4653
|
+
msg.addGroupValues(value);
|
|
4654
|
+
break;
|
|
4655
|
+
case 2:
|
|
4656
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
4657
|
+
msg.setEligibleCount(value);
|
|
4658
|
+
break;
|
|
4659
|
+
case 3:
|
|
4660
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
4661
|
+
msg.setGoodCount(value);
|
|
4662
|
+
break;
|
|
4663
|
+
case 4:
|
|
4664
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
4665
|
+
msg.setCompliance(value);
|
|
4666
|
+
break;
|
|
4667
|
+
case 5:
|
|
4668
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
4669
|
+
msg.setBudgetRemaining(value);
|
|
4670
|
+
break;
|
|
4671
|
+
case 6:
|
|
4672
|
+
var value = /** @type {!proto.gateway.web.v1.SloCorridorState} */ (reader.readEnum());
|
|
4673
|
+
msg.setState(value);
|
|
4674
|
+
break;
|
|
4675
|
+
default:
|
|
4676
|
+
reader.skipField();
|
|
4677
|
+
break;
|
|
4678
|
+
}
|
|
4679
|
+
}
|
|
4680
|
+
return msg;
|
|
4681
|
+
};
|
|
4682
|
+
|
|
4683
|
+
|
|
4684
|
+
/**
|
|
4685
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4686
|
+
* @return {!Uint8Array}
|
|
4687
|
+
*/
|
|
4688
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.serializeBinary = function() {
|
|
4689
|
+
var writer = new jspb.BinaryWriter();
|
|
4690
|
+
proto.gateway.web.v1.SloCorridorStatus.serializeBinaryToWriter(this, writer);
|
|
4691
|
+
return writer.getResultBuffer();
|
|
4692
|
+
};
|
|
4693
|
+
|
|
4694
|
+
|
|
4695
|
+
/**
|
|
4696
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4697
|
+
* format), writing to the given BinaryWriter.
|
|
4698
|
+
* @param {!proto.gateway.web.v1.SloCorridorStatus} message
|
|
4699
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4700
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4701
|
+
*/
|
|
4702
|
+
proto.gateway.web.v1.SloCorridorStatus.serializeBinaryToWriter = function(message, writer) {
|
|
4703
|
+
var f = undefined;
|
|
4704
|
+
f = message.getGroupValuesList();
|
|
4705
|
+
if (f.length > 0) {
|
|
4706
|
+
writer.writeRepeatedString(
|
|
4707
|
+
1,
|
|
4708
|
+
f
|
|
4709
|
+
);
|
|
4710
|
+
}
|
|
4711
|
+
f = message.getEligibleCount();
|
|
4712
|
+
if (f !== 0) {
|
|
4713
|
+
writer.writeUint64(
|
|
4714
|
+
2,
|
|
4715
|
+
f
|
|
4716
|
+
);
|
|
4717
|
+
}
|
|
4718
|
+
f = message.getGoodCount();
|
|
4719
|
+
if (f !== 0) {
|
|
4720
|
+
writer.writeUint64(
|
|
4721
|
+
3,
|
|
4722
|
+
f
|
|
4723
|
+
);
|
|
4724
|
+
}
|
|
4725
|
+
f = message.getCompliance();
|
|
4726
|
+
if (f !== 0.0) {
|
|
4727
|
+
writer.writeDouble(
|
|
4728
|
+
4,
|
|
4729
|
+
f
|
|
4730
|
+
);
|
|
4731
|
+
}
|
|
4732
|
+
f = message.getBudgetRemaining();
|
|
4733
|
+
if (f !== 0.0) {
|
|
4734
|
+
writer.writeDouble(
|
|
4735
|
+
5,
|
|
4736
|
+
f
|
|
4737
|
+
);
|
|
4738
|
+
}
|
|
4739
|
+
f = message.getState();
|
|
4740
|
+
if (f !== 0.0) {
|
|
4741
|
+
writer.writeEnum(
|
|
4742
|
+
6,
|
|
4743
|
+
f
|
|
4744
|
+
);
|
|
4745
|
+
}
|
|
4746
|
+
};
|
|
4747
|
+
|
|
4748
|
+
|
|
4749
|
+
/**
|
|
4750
|
+
* repeated string group_values = 1;
|
|
4751
|
+
* @return {!Array<string>}
|
|
4752
|
+
*/
|
|
4753
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.getGroupValuesList = function() {
|
|
4754
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
4755
|
+
};
|
|
4756
|
+
|
|
4757
|
+
|
|
4758
|
+
/**
|
|
4759
|
+
* @param {!Array<string>} value
|
|
4760
|
+
* @return {!proto.gateway.web.v1.SloCorridorStatus} returns this
|
|
4761
|
+
*/
|
|
4762
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.setGroupValuesList = function(value) {
|
|
4763
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
4764
|
+
};
|
|
4765
|
+
|
|
4766
|
+
|
|
4767
|
+
/**
|
|
4768
|
+
* @param {string} value
|
|
4769
|
+
* @param {number=} opt_index
|
|
4770
|
+
* @return {!proto.gateway.web.v1.SloCorridorStatus} returns this
|
|
4771
|
+
*/
|
|
4772
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.addGroupValues = function(value, opt_index) {
|
|
4773
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
4774
|
+
};
|
|
4775
|
+
|
|
4776
|
+
|
|
4777
|
+
/**
|
|
4778
|
+
* Clears the list making it empty but non-null.
|
|
4779
|
+
* @return {!proto.gateway.web.v1.SloCorridorStatus} returns this
|
|
4780
|
+
*/
|
|
4781
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.clearGroupValuesList = function() {
|
|
4782
|
+
return this.setGroupValuesList([]);
|
|
4783
|
+
};
|
|
4784
|
+
|
|
4785
|
+
|
|
4786
|
+
/**
|
|
4787
|
+
* optional uint64 eligible_count = 2;
|
|
4788
|
+
* @return {number}
|
|
4789
|
+
*/
|
|
4790
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.getEligibleCount = function() {
|
|
4791
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
4792
|
+
};
|
|
4793
|
+
|
|
4794
|
+
|
|
4795
|
+
/**
|
|
4796
|
+
* @param {number} value
|
|
4797
|
+
* @return {!proto.gateway.web.v1.SloCorridorStatus} returns this
|
|
4798
|
+
*/
|
|
4799
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.setEligibleCount = function(value) {
|
|
4800
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
4801
|
+
};
|
|
4802
|
+
|
|
4803
|
+
|
|
4804
|
+
/**
|
|
4805
|
+
* optional uint64 good_count = 3;
|
|
4806
|
+
* @return {number}
|
|
4807
|
+
*/
|
|
4808
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.getGoodCount = function() {
|
|
4809
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
4810
|
+
};
|
|
4811
|
+
|
|
4812
|
+
|
|
4813
|
+
/**
|
|
4814
|
+
* @param {number} value
|
|
4815
|
+
* @return {!proto.gateway.web.v1.SloCorridorStatus} returns this
|
|
4816
|
+
*/
|
|
4817
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.setGoodCount = function(value) {
|
|
4818
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
4819
|
+
};
|
|
4820
|
+
|
|
4821
|
+
|
|
4822
|
+
/**
|
|
4823
|
+
* optional double compliance = 4;
|
|
4824
|
+
* @return {number}
|
|
4825
|
+
*/
|
|
4826
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.getCompliance = function() {
|
|
4827
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
|
4828
|
+
};
|
|
4829
|
+
|
|
4830
|
+
|
|
4831
|
+
/**
|
|
4832
|
+
* @param {number} value
|
|
4833
|
+
* @return {!proto.gateway.web.v1.SloCorridorStatus} returns this
|
|
4834
|
+
*/
|
|
4835
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.setCompliance = function(value) {
|
|
4836
|
+
return jspb.Message.setProto3FloatField(this, 4, value);
|
|
4837
|
+
};
|
|
4838
|
+
|
|
4839
|
+
|
|
4840
|
+
/**
|
|
4841
|
+
* optional double budget_remaining = 5;
|
|
4842
|
+
* @return {number}
|
|
4843
|
+
*/
|
|
4844
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.getBudgetRemaining = function() {
|
|
4845
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
|
4846
|
+
};
|
|
4847
|
+
|
|
4848
|
+
|
|
4849
|
+
/**
|
|
4850
|
+
* @param {number} value
|
|
4851
|
+
* @return {!proto.gateway.web.v1.SloCorridorStatus} returns this
|
|
4852
|
+
*/
|
|
4853
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.setBudgetRemaining = function(value) {
|
|
4854
|
+
return jspb.Message.setProto3FloatField(this, 5, value);
|
|
4855
|
+
};
|
|
4856
|
+
|
|
4857
|
+
|
|
4858
|
+
/**
|
|
4859
|
+
* optional SloCorridorState state = 6;
|
|
4860
|
+
* @return {!proto.gateway.web.v1.SloCorridorState}
|
|
4861
|
+
*/
|
|
4862
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.getState = function() {
|
|
4863
|
+
return /** @type {!proto.gateway.web.v1.SloCorridorState} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
4864
|
+
};
|
|
4865
|
+
|
|
4866
|
+
|
|
4867
|
+
/**
|
|
4868
|
+
* @param {!proto.gateway.web.v1.SloCorridorState} value
|
|
4869
|
+
* @return {!proto.gateway.web.v1.SloCorridorStatus} returns this
|
|
4870
|
+
*/
|
|
4871
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.setState = function(value) {
|
|
4872
|
+
return jspb.Message.setProto3EnumField(this, 6, value);
|
|
4873
|
+
};
|
|
4874
|
+
|
|
4875
|
+
|
|
4876
|
+
|
|
4877
|
+
|
|
4878
|
+
|
|
4879
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4880
|
+
/**
|
|
4881
|
+
* Creates an object representation of this proto.
|
|
4882
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4883
|
+
* Optional fields that are not set will be set to undefined.
|
|
4884
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4885
|
+
* For the list of reserved names please see:
|
|
4886
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4887
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4888
|
+
* JSPB instance for transitional soy proto support:
|
|
4889
|
+
* http://goto/soy-param-migration
|
|
4890
|
+
* @return {!Object}
|
|
4891
|
+
*/
|
|
4892
|
+
proto.gateway.web.v1.GetSloTimelineRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4893
|
+
return proto.gateway.web.v1.GetSloTimelineRequest.toObject(opt_includeInstance, this);
|
|
4894
|
+
};
|
|
4895
|
+
|
|
4896
|
+
|
|
4897
|
+
/**
|
|
4898
|
+
* Static version of the {@see toObject} method.
|
|
4899
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4900
|
+
* the JSPB instance for transitional soy proto support:
|
|
4901
|
+
* http://goto/soy-param-migration
|
|
4902
|
+
* @param {!proto.gateway.web.v1.GetSloTimelineRequest} msg The msg instance to transform.
|
|
4903
|
+
* @return {!Object}
|
|
4904
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4905
|
+
*/
|
|
4906
|
+
proto.gateway.web.v1.GetSloTimelineRequest.toObject = function(includeInstance, msg) {
|
|
4907
|
+
var f, obj = {
|
|
4908
|
+
organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4909
|
+
projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4910
|
+
sloId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
4911
|
+
endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
4912
|
+
bucketCount: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
4913
|
+
};
|
|
4914
|
+
|
|
4915
|
+
if (includeInstance) {
|
|
4916
|
+
obj.$jspbMessageInstance = msg;
|
|
4917
|
+
}
|
|
4918
|
+
return obj;
|
|
4919
|
+
};
|
|
4920
|
+
}
|
|
4921
|
+
|
|
4922
|
+
|
|
4923
|
+
/**
|
|
4924
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4925
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4926
|
+
* @return {!proto.gateway.web.v1.GetSloTimelineRequest}
|
|
4927
|
+
*/
|
|
4928
|
+
proto.gateway.web.v1.GetSloTimelineRequest.deserializeBinary = function(bytes) {
|
|
4929
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4930
|
+
var msg = new proto.gateway.web.v1.GetSloTimelineRequest;
|
|
4931
|
+
return proto.gateway.web.v1.GetSloTimelineRequest.deserializeBinaryFromReader(msg, reader);
|
|
4932
|
+
};
|
|
4933
|
+
|
|
4934
|
+
|
|
4935
|
+
/**
|
|
4936
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4937
|
+
* given reader into the given message object.
|
|
4938
|
+
* @param {!proto.gateway.web.v1.GetSloTimelineRequest} msg The message object to deserialize into.
|
|
4939
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4940
|
+
* @return {!proto.gateway.web.v1.GetSloTimelineRequest}
|
|
4941
|
+
*/
|
|
4942
|
+
proto.gateway.web.v1.GetSloTimelineRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4943
|
+
while (reader.nextField()) {
|
|
4944
|
+
if (reader.isEndGroup()) {
|
|
4945
|
+
break;
|
|
4946
|
+
}
|
|
4947
|
+
var field = reader.getFieldNumber();
|
|
4948
|
+
switch (field) {
|
|
4949
|
+
case 1:
|
|
4950
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4951
|
+
msg.setOrganizationId(value);
|
|
4952
|
+
break;
|
|
4953
|
+
case 2:
|
|
4954
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4955
|
+
msg.setProjectId(value);
|
|
4956
|
+
break;
|
|
4957
|
+
case 3:
|
|
4958
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4959
|
+
msg.setSloId(value);
|
|
4960
|
+
break;
|
|
4961
|
+
case 4:
|
|
4962
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
4963
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
4964
|
+
msg.setEndTime(value);
|
|
4965
|
+
break;
|
|
4966
|
+
case 5:
|
|
4967
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
4968
|
+
msg.setBucketCount(value);
|
|
4969
|
+
break;
|
|
4970
|
+
default:
|
|
4971
|
+
reader.skipField();
|
|
4972
|
+
break;
|
|
4973
|
+
}
|
|
4974
|
+
}
|
|
4975
|
+
return msg;
|
|
4976
|
+
};
|
|
4977
|
+
|
|
4978
|
+
|
|
4979
|
+
/**
|
|
4980
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4981
|
+
* @return {!Uint8Array}
|
|
4982
|
+
*/
|
|
4983
|
+
proto.gateway.web.v1.GetSloTimelineRequest.prototype.serializeBinary = function() {
|
|
4984
|
+
var writer = new jspb.BinaryWriter();
|
|
4985
|
+
proto.gateway.web.v1.GetSloTimelineRequest.serializeBinaryToWriter(this, writer);
|
|
4986
|
+
return writer.getResultBuffer();
|
|
4987
|
+
};
|
|
4988
|
+
|
|
4989
|
+
|
|
4990
|
+
/**
|
|
4991
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4992
|
+
* format), writing to the given BinaryWriter.
|
|
4993
|
+
* @param {!proto.gateway.web.v1.GetSloTimelineRequest} message
|
|
4994
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4995
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4996
|
+
*/
|
|
4997
|
+
proto.gateway.web.v1.GetSloTimelineRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4998
|
+
var f = undefined;
|
|
4999
|
+
f = message.getOrganizationId();
|
|
5000
|
+
if (f.length > 0) {
|
|
5001
|
+
writer.writeString(
|
|
5002
|
+
1,
|
|
5003
|
+
f
|
|
5004
|
+
);
|
|
5005
|
+
}
|
|
5006
|
+
f = message.getProjectId();
|
|
5007
|
+
if (f.length > 0) {
|
|
5008
|
+
writer.writeString(
|
|
5009
|
+
2,
|
|
5010
|
+
f
|
|
5011
|
+
);
|
|
5012
|
+
}
|
|
5013
|
+
f = message.getSloId();
|
|
5014
|
+
if (f.length > 0) {
|
|
5015
|
+
writer.writeString(
|
|
5016
|
+
3,
|
|
5017
|
+
f
|
|
5018
|
+
);
|
|
5019
|
+
}
|
|
5020
|
+
f = message.getEndTime();
|
|
5021
|
+
if (f != null) {
|
|
5022
|
+
writer.writeMessage(
|
|
5023
|
+
4,
|
|
5024
|
+
f,
|
|
5025
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
5026
|
+
);
|
|
5027
|
+
}
|
|
5028
|
+
f = message.getBucketCount();
|
|
5029
|
+
if (f !== 0) {
|
|
5030
|
+
writer.writeUint32(
|
|
5031
|
+
5,
|
|
5032
|
+
f
|
|
5033
|
+
);
|
|
5034
|
+
}
|
|
5035
|
+
};
|
|
5036
|
+
|
|
5037
|
+
|
|
5038
|
+
/**
|
|
5039
|
+
* optional string organization_id = 1;
|
|
5040
|
+
* @return {string}
|
|
5041
|
+
*/
|
|
5042
|
+
proto.gateway.web.v1.GetSloTimelineRequest.prototype.getOrganizationId = function() {
|
|
5043
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
5044
|
+
};
|
|
5045
|
+
|
|
5046
|
+
|
|
5047
|
+
/**
|
|
5048
|
+
* @param {string} value
|
|
5049
|
+
* @return {!proto.gateway.web.v1.GetSloTimelineRequest} returns this
|
|
5050
|
+
*/
|
|
5051
|
+
proto.gateway.web.v1.GetSloTimelineRequest.prototype.setOrganizationId = function(value) {
|
|
5052
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
5053
|
+
};
|
|
5054
|
+
|
|
5055
|
+
|
|
5056
|
+
/**
|
|
5057
|
+
* optional string project_id = 2;
|
|
5058
|
+
* @return {string}
|
|
5059
|
+
*/
|
|
5060
|
+
proto.gateway.web.v1.GetSloTimelineRequest.prototype.getProjectId = function() {
|
|
5061
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
5062
|
+
};
|
|
5063
|
+
|
|
5064
|
+
|
|
5065
|
+
/**
|
|
5066
|
+
* @param {string} value
|
|
5067
|
+
* @return {!proto.gateway.web.v1.GetSloTimelineRequest} returns this
|
|
5068
|
+
*/
|
|
5069
|
+
proto.gateway.web.v1.GetSloTimelineRequest.prototype.setProjectId = function(value) {
|
|
5070
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
5071
|
+
};
|
|
5072
|
+
|
|
5073
|
+
|
|
5074
|
+
/**
|
|
5075
|
+
* optional string slo_id = 3;
|
|
5076
|
+
* @return {string}
|
|
5077
|
+
*/
|
|
5078
|
+
proto.gateway.web.v1.GetSloTimelineRequest.prototype.getSloId = function() {
|
|
5079
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
5080
|
+
};
|
|
5081
|
+
|
|
5082
|
+
|
|
5083
|
+
/**
|
|
5084
|
+
* @param {string} value
|
|
5085
|
+
* @return {!proto.gateway.web.v1.GetSloTimelineRequest} returns this
|
|
5086
|
+
*/
|
|
5087
|
+
proto.gateway.web.v1.GetSloTimelineRequest.prototype.setSloId = function(value) {
|
|
5088
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
5089
|
+
};
|
|
5090
|
+
|
|
5091
|
+
|
|
5092
|
+
/**
|
|
5093
|
+
* optional google.protobuf.Timestamp end_time = 4;
|
|
5094
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
5095
|
+
*/
|
|
5096
|
+
proto.gateway.web.v1.GetSloTimelineRequest.prototype.getEndTime = function() {
|
|
5097
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
5098
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
|
|
5099
|
+
};
|
|
5100
|
+
|
|
5101
|
+
|
|
5102
|
+
/**
|
|
5103
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
5104
|
+
* @return {!proto.gateway.web.v1.GetSloTimelineRequest} returns this
|
|
5105
|
+
*/
|
|
5106
|
+
proto.gateway.web.v1.GetSloTimelineRequest.prototype.setEndTime = function(value) {
|
|
5107
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
5108
|
+
};
|
|
5109
|
+
|
|
5110
|
+
|
|
5111
|
+
/**
|
|
5112
|
+
* Clears the message field making it undefined.
|
|
5113
|
+
* @return {!proto.gateway.web.v1.GetSloTimelineRequest} returns this
|
|
5114
|
+
*/
|
|
5115
|
+
proto.gateway.web.v1.GetSloTimelineRequest.prototype.clearEndTime = function() {
|
|
5116
|
+
return this.setEndTime(undefined);
|
|
5117
|
+
};
|
|
5118
|
+
|
|
5119
|
+
|
|
5120
|
+
/**
|
|
5121
|
+
* Returns whether this field is set.
|
|
5122
|
+
* @return {boolean}
|
|
5123
|
+
*/
|
|
5124
|
+
proto.gateway.web.v1.GetSloTimelineRequest.prototype.hasEndTime = function() {
|
|
5125
|
+
return jspb.Message.getField(this, 4) != null;
|
|
5126
|
+
};
|
|
5127
|
+
|
|
5128
|
+
|
|
5129
|
+
/**
|
|
5130
|
+
* optional uint32 bucket_count = 5;
|
|
5131
|
+
* @return {number}
|
|
5132
|
+
*/
|
|
5133
|
+
proto.gateway.web.v1.GetSloTimelineRequest.prototype.getBucketCount = function() {
|
|
5134
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
5135
|
+
};
|
|
5136
|
+
|
|
5137
|
+
|
|
5138
|
+
/**
|
|
5139
|
+
* @param {number} value
|
|
5140
|
+
* @return {!proto.gateway.web.v1.GetSloTimelineRequest} returns this
|
|
5141
|
+
*/
|
|
5142
|
+
proto.gateway.web.v1.GetSloTimelineRequest.prototype.setBucketCount = function(value) {
|
|
5143
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
5144
|
+
};
|
|
5145
|
+
|
|
5146
|
+
|
|
5147
|
+
|
|
5148
|
+
|
|
5149
|
+
|
|
5150
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5151
|
+
/**
|
|
5152
|
+
* Creates an object representation of this proto.
|
|
5153
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5154
|
+
* Optional fields that are not set will be set to undefined.
|
|
5155
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5156
|
+
* For the list of reserved names please see:
|
|
5157
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5158
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5159
|
+
* JSPB instance for transitional soy proto support:
|
|
5160
|
+
* http://goto/soy-param-migration
|
|
5161
|
+
* @return {!Object}
|
|
5162
|
+
*/
|
|
5163
|
+
proto.gateway.web.v1.GetSloTimelineResponse.prototype.toObject = function(opt_includeInstance) {
|
|
5164
|
+
return proto.gateway.web.v1.GetSloTimelineResponse.toObject(opt_includeInstance, this);
|
|
5165
|
+
};
|
|
5166
|
+
|
|
5167
|
+
|
|
5168
|
+
/**
|
|
5169
|
+
* Static version of the {@see toObject} method.
|
|
5170
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5171
|
+
* the JSPB instance for transitional soy proto support:
|
|
5172
|
+
* http://goto/soy-param-migration
|
|
5173
|
+
* @param {!proto.gateway.web.v1.GetSloTimelineResponse} msg The msg instance to transform.
|
|
5174
|
+
* @return {!Object}
|
|
5175
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5176
|
+
*/
|
|
5177
|
+
proto.gateway.web.v1.GetSloTimelineResponse.toObject = function(includeInstance, msg) {
|
|
5178
|
+
var f, obj = {
|
|
5179
|
+
status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
|
|
5180
|
+
timeline: (f = msg.getTimeline()) && proto.gateway.web.v1.SloTimeline.toObject(includeInstance, f)
|
|
5181
|
+
};
|
|
5182
|
+
|
|
5183
|
+
if (includeInstance) {
|
|
5184
|
+
obj.$jspbMessageInstance = msg;
|
|
5185
|
+
}
|
|
5186
|
+
return obj;
|
|
5187
|
+
};
|
|
5188
|
+
}
|
|
5189
|
+
|
|
5190
|
+
|
|
5191
|
+
/**
|
|
5192
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5193
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5194
|
+
* @return {!proto.gateway.web.v1.GetSloTimelineResponse}
|
|
5195
|
+
*/
|
|
5196
|
+
proto.gateway.web.v1.GetSloTimelineResponse.deserializeBinary = function(bytes) {
|
|
5197
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5198
|
+
var msg = new proto.gateway.web.v1.GetSloTimelineResponse;
|
|
5199
|
+
return proto.gateway.web.v1.GetSloTimelineResponse.deserializeBinaryFromReader(msg, reader);
|
|
5200
|
+
};
|
|
5201
|
+
|
|
5202
|
+
|
|
5203
|
+
/**
|
|
5204
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5205
|
+
* given reader into the given message object.
|
|
5206
|
+
* @param {!proto.gateway.web.v1.GetSloTimelineResponse} msg The message object to deserialize into.
|
|
5207
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5208
|
+
* @return {!proto.gateway.web.v1.GetSloTimelineResponse}
|
|
5209
|
+
*/
|
|
5210
|
+
proto.gateway.web.v1.GetSloTimelineResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
5211
|
+
while (reader.nextField()) {
|
|
5212
|
+
if (reader.isEndGroup()) {
|
|
5213
|
+
break;
|
|
5214
|
+
}
|
|
5215
|
+
var field = reader.getFieldNumber();
|
|
5216
|
+
switch (field) {
|
|
5217
|
+
case 1:
|
|
5218
|
+
var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
|
|
5219
|
+
reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
|
|
5220
|
+
msg.setStatus(value);
|
|
5221
|
+
break;
|
|
5222
|
+
case 2:
|
|
5223
|
+
var value = new proto.gateway.web.v1.SloTimeline;
|
|
5224
|
+
reader.readMessage(value,proto.gateway.web.v1.SloTimeline.deserializeBinaryFromReader);
|
|
5225
|
+
msg.setTimeline(value);
|
|
5226
|
+
break;
|
|
5227
|
+
default:
|
|
5228
|
+
reader.skipField();
|
|
5229
|
+
break;
|
|
5230
|
+
}
|
|
5231
|
+
}
|
|
5232
|
+
return msg;
|
|
5233
|
+
};
|
|
5234
|
+
|
|
5235
|
+
|
|
5236
|
+
/**
|
|
5237
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5238
|
+
* @return {!Uint8Array}
|
|
5239
|
+
*/
|
|
5240
|
+
proto.gateway.web.v1.GetSloTimelineResponse.prototype.serializeBinary = function() {
|
|
5241
|
+
var writer = new jspb.BinaryWriter();
|
|
5242
|
+
proto.gateway.web.v1.GetSloTimelineResponse.serializeBinaryToWriter(this, writer);
|
|
5243
|
+
return writer.getResultBuffer();
|
|
5244
|
+
};
|
|
5245
|
+
|
|
5246
|
+
|
|
5247
|
+
/**
|
|
5248
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5249
|
+
* format), writing to the given BinaryWriter.
|
|
5250
|
+
* @param {!proto.gateway.web.v1.GetSloTimelineResponse} message
|
|
5251
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5252
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5253
|
+
*/
|
|
5254
|
+
proto.gateway.web.v1.GetSloTimelineResponse.serializeBinaryToWriter = function(message, writer) {
|
|
5255
|
+
var f = undefined;
|
|
5256
|
+
f = message.getStatus();
|
|
5257
|
+
if (f != null) {
|
|
5258
|
+
writer.writeMessage(
|
|
5259
|
+
1,
|
|
5260
|
+
f,
|
|
5261
|
+
proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
|
|
5262
|
+
);
|
|
5263
|
+
}
|
|
5264
|
+
f = message.getTimeline();
|
|
5265
|
+
if (f != null) {
|
|
5266
|
+
writer.writeMessage(
|
|
5267
|
+
2,
|
|
5268
|
+
f,
|
|
5269
|
+
proto.gateway.web.v1.SloTimeline.serializeBinaryToWriter
|
|
5270
|
+
);
|
|
5271
|
+
}
|
|
5272
|
+
};
|
|
5273
|
+
|
|
5274
|
+
|
|
5275
|
+
/**
|
|
5276
|
+
* optional gateway.common.v1.ResponseStatus status = 1;
|
|
5277
|
+
* @return {?proto.gateway.common.v1.ResponseStatus}
|
|
5278
|
+
*/
|
|
5279
|
+
proto.gateway.web.v1.GetSloTimelineResponse.prototype.getStatus = function() {
|
|
5280
|
+
return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
|
|
5281
|
+
jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
|
|
5282
|
+
};
|
|
5283
|
+
|
|
5284
|
+
|
|
5285
|
+
/**
|
|
5286
|
+
* @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
|
|
5287
|
+
* @return {!proto.gateway.web.v1.GetSloTimelineResponse} returns this
|
|
5288
|
+
*/
|
|
5289
|
+
proto.gateway.web.v1.GetSloTimelineResponse.prototype.setStatus = function(value) {
|
|
5290
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
5291
|
+
};
|
|
5292
|
+
|
|
5293
|
+
|
|
5294
|
+
/**
|
|
5295
|
+
* Clears the message field making it undefined.
|
|
5296
|
+
* @return {!proto.gateway.web.v1.GetSloTimelineResponse} returns this
|
|
5297
|
+
*/
|
|
5298
|
+
proto.gateway.web.v1.GetSloTimelineResponse.prototype.clearStatus = function() {
|
|
5299
|
+
return this.setStatus(undefined);
|
|
5300
|
+
};
|
|
5301
|
+
|
|
5302
|
+
|
|
5303
|
+
/**
|
|
5304
|
+
* Returns whether this field is set.
|
|
5305
|
+
* @return {boolean}
|
|
5306
|
+
*/
|
|
5307
|
+
proto.gateway.web.v1.GetSloTimelineResponse.prototype.hasStatus = function() {
|
|
5308
|
+
return jspb.Message.getField(this, 1) != null;
|
|
5309
|
+
};
|
|
5310
|
+
|
|
5311
|
+
|
|
5312
|
+
/**
|
|
5313
|
+
* optional SloTimeline timeline = 2;
|
|
5314
|
+
* @return {?proto.gateway.web.v1.SloTimeline}
|
|
5315
|
+
*/
|
|
5316
|
+
proto.gateway.web.v1.GetSloTimelineResponse.prototype.getTimeline = function() {
|
|
5317
|
+
return /** @type{?proto.gateway.web.v1.SloTimeline} */ (
|
|
5318
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.SloTimeline, 2));
|
|
5319
|
+
};
|
|
5320
|
+
|
|
5321
|
+
|
|
5322
|
+
/**
|
|
5323
|
+
* @param {?proto.gateway.web.v1.SloTimeline|undefined} value
|
|
5324
|
+
* @return {!proto.gateway.web.v1.GetSloTimelineResponse} returns this
|
|
5325
|
+
*/
|
|
5326
|
+
proto.gateway.web.v1.GetSloTimelineResponse.prototype.setTimeline = function(value) {
|
|
5327
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
5328
|
+
};
|
|
5329
|
+
|
|
5330
|
+
|
|
5331
|
+
/**
|
|
5332
|
+
* Clears the message field making it undefined.
|
|
5333
|
+
* @return {!proto.gateway.web.v1.GetSloTimelineResponse} returns this
|
|
5334
|
+
*/
|
|
5335
|
+
proto.gateway.web.v1.GetSloTimelineResponse.prototype.clearTimeline = function() {
|
|
5336
|
+
return this.setTimeline(undefined);
|
|
5337
|
+
};
|
|
5338
|
+
|
|
5339
|
+
|
|
5340
|
+
/**
|
|
5341
|
+
* Returns whether this field is set.
|
|
5342
|
+
* @return {boolean}
|
|
5343
|
+
*/
|
|
5344
|
+
proto.gateway.web.v1.GetSloTimelineResponse.prototype.hasTimeline = function() {
|
|
5345
|
+
return jspb.Message.getField(this, 2) != null;
|
|
5346
|
+
};
|
|
5347
|
+
|
|
5348
|
+
|
|
5349
|
+
|
|
5350
|
+
/**
|
|
5351
|
+
* List of repeated fields within this message type.
|
|
5352
|
+
* @private {!Array<number>}
|
|
5353
|
+
* @const
|
|
5354
|
+
*/
|
|
5355
|
+
proto.gateway.web.v1.SloTimeline.repeatedFields_ = [7];
|
|
5356
|
+
|
|
5357
|
+
|
|
5358
|
+
|
|
5359
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5360
|
+
/**
|
|
5361
|
+
* Creates an object representation of this proto.
|
|
5362
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5363
|
+
* Optional fields that are not set will be set to undefined.
|
|
5364
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5365
|
+
* For the list of reserved names please see:
|
|
5366
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5367
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5368
|
+
* JSPB instance for transitional soy proto support:
|
|
5369
|
+
* http://goto/soy-param-migration
|
|
5370
|
+
* @return {!Object}
|
|
5371
|
+
*/
|
|
5372
|
+
proto.gateway.web.v1.SloTimeline.prototype.toObject = function(opt_includeInstance) {
|
|
5373
|
+
return proto.gateway.web.v1.SloTimeline.toObject(opt_includeInstance, this);
|
|
5374
|
+
};
|
|
5375
|
+
|
|
5376
|
+
|
|
5377
|
+
/**
|
|
5378
|
+
* Static version of the {@see toObject} method.
|
|
5379
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5380
|
+
* the JSPB instance for transitional soy proto support:
|
|
5381
|
+
* http://goto/soy-param-migration
|
|
5382
|
+
* @param {!proto.gateway.web.v1.SloTimeline} msg The msg instance to transform.
|
|
5383
|
+
* @return {!Object}
|
|
5384
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5385
|
+
*/
|
|
5386
|
+
proto.gateway.web.v1.SloTimeline.toObject = function(includeInstance, msg) {
|
|
5387
|
+
var f, obj = {
|
|
5388
|
+
sloId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
5389
|
+
enabled: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
5390
|
+
target: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
|
5391
|
+
bucketSeconds: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
5392
|
+
windowStart: (f = msg.getWindowStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
5393
|
+
windowEnd: (f = msg.getWindowEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
5394
|
+
bucketsList: jspb.Message.toObjectList(msg.getBucketsList(),
|
|
5395
|
+
proto.gateway.web.v1.SloTimelineBucket.toObject, includeInstance)
|
|
5396
|
+
};
|
|
5397
|
+
|
|
5398
|
+
if (includeInstance) {
|
|
5399
|
+
obj.$jspbMessageInstance = msg;
|
|
5400
|
+
}
|
|
5401
|
+
return obj;
|
|
5402
|
+
};
|
|
5403
|
+
}
|
|
5404
|
+
|
|
5405
|
+
|
|
5406
|
+
/**
|
|
5407
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5408
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5409
|
+
* @return {!proto.gateway.web.v1.SloTimeline}
|
|
5410
|
+
*/
|
|
5411
|
+
proto.gateway.web.v1.SloTimeline.deserializeBinary = function(bytes) {
|
|
5412
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5413
|
+
var msg = new proto.gateway.web.v1.SloTimeline;
|
|
5414
|
+
return proto.gateway.web.v1.SloTimeline.deserializeBinaryFromReader(msg, reader);
|
|
5415
|
+
};
|
|
5416
|
+
|
|
5417
|
+
|
|
5418
|
+
/**
|
|
5419
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5420
|
+
* given reader into the given message object.
|
|
5421
|
+
* @param {!proto.gateway.web.v1.SloTimeline} msg The message object to deserialize into.
|
|
5422
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5423
|
+
* @return {!proto.gateway.web.v1.SloTimeline}
|
|
5424
|
+
*/
|
|
5425
|
+
proto.gateway.web.v1.SloTimeline.deserializeBinaryFromReader = function(msg, reader) {
|
|
5426
|
+
while (reader.nextField()) {
|
|
5427
|
+
if (reader.isEndGroup()) {
|
|
5428
|
+
break;
|
|
5429
|
+
}
|
|
5430
|
+
var field = reader.getFieldNumber();
|
|
5431
|
+
switch (field) {
|
|
5432
|
+
case 1:
|
|
5433
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5434
|
+
msg.setSloId(value);
|
|
5435
|
+
break;
|
|
5436
|
+
case 2:
|
|
5437
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
5438
|
+
msg.setEnabled(value);
|
|
5439
|
+
break;
|
|
5440
|
+
case 3:
|
|
5441
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
5442
|
+
msg.setTarget(value);
|
|
5443
|
+
break;
|
|
5444
|
+
case 4:
|
|
5445
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
5446
|
+
msg.setBucketSeconds(value);
|
|
5447
|
+
break;
|
|
5448
|
+
case 5:
|
|
5449
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
5450
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
5451
|
+
msg.setWindowStart(value);
|
|
5452
|
+
break;
|
|
5453
|
+
case 6:
|
|
5454
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
5455
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
5456
|
+
msg.setWindowEnd(value);
|
|
5457
|
+
break;
|
|
5458
|
+
case 7:
|
|
5459
|
+
var value = new proto.gateway.web.v1.SloTimelineBucket;
|
|
5460
|
+
reader.readMessage(value,proto.gateway.web.v1.SloTimelineBucket.deserializeBinaryFromReader);
|
|
5461
|
+
msg.addBuckets(value);
|
|
5462
|
+
break;
|
|
5463
|
+
default:
|
|
5464
|
+
reader.skipField();
|
|
5465
|
+
break;
|
|
5466
|
+
}
|
|
5467
|
+
}
|
|
5468
|
+
return msg;
|
|
5469
|
+
};
|
|
5470
|
+
|
|
5471
|
+
|
|
5472
|
+
/**
|
|
5473
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5474
|
+
* @return {!Uint8Array}
|
|
5475
|
+
*/
|
|
5476
|
+
proto.gateway.web.v1.SloTimeline.prototype.serializeBinary = function() {
|
|
5477
|
+
var writer = new jspb.BinaryWriter();
|
|
5478
|
+
proto.gateway.web.v1.SloTimeline.serializeBinaryToWriter(this, writer);
|
|
5479
|
+
return writer.getResultBuffer();
|
|
5480
|
+
};
|
|
5481
|
+
|
|
5482
|
+
|
|
5483
|
+
/**
|
|
5484
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5485
|
+
* format), writing to the given BinaryWriter.
|
|
5486
|
+
* @param {!proto.gateway.web.v1.SloTimeline} message
|
|
5487
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5488
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5489
|
+
*/
|
|
5490
|
+
proto.gateway.web.v1.SloTimeline.serializeBinaryToWriter = function(message, writer) {
|
|
5491
|
+
var f = undefined;
|
|
5492
|
+
f = message.getSloId();
|
|
5493
|
+
if (f.length > 0) {
|
|
5494
|
+
writer.writeString(
|
|
5495
|
+
1,
|
|
5496
|
+
f
|
|
5497
|
+
);
|
|
5498
|
+
}
|
|
5499
|
+
f = message.getEnabled();
|
|
5500
|
+
if (f) {
|
|
5501
|
+
writer.writeBool(
|
|
5502
|
+
2,
|
|
5503
|
+
f
|
|
5504
|
+
);
|
|
5505
|
+
}
|
|
5506
|
+
f = message.getTarget();
|
|
5507
|
+
if (f !== 0.0) {
|
|
5508
|
+
writer.writeDouble(
|
|
5509
|
+
3,
|
|
5510
|
+
f
|
|
5511
|
+
);
|
|
5512
|
+
}
|
|
5513
|
+
f = message.getBucketSeconds();
|
|
5514
|
+
if (f !== 0) {
|
|
5515
|
+
writer.writeInt64(
|
|
5516
|
+
4,
|
|
5517
|
+
f
|
|
5518
|
+
);
|
|
5519
|
+
}
|
|
5520
|
+
f = message.getWindowStart();
|
|
5521
|
+
if (f != null) {
|
|
5522
|
+
writer.writeMessage(
|
|
5523
|
+
5,
|
|
5524
|
+
f,
|
|
5525
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
5526
|
+
);
|
|
5527
|
+
}
|
|
5528
|
+
f = message.getWindowEnd();
|
|
5529
|
+
if (f != null) {
|
|
5530
|
+
writer.writeMessage(
|
|
5531
|
+
6,
|
|
5532
|
+
f,
|
|
5533
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
5534
|
+
);
|
|
5535
|
+
}
|
|
5536
|
+
f = message.getBucketsList();
|
|
5537
|
+
if (f.length > 0) {
|
|
5538
|
+
writer.writeRepeatedMessage(
|
|
5539
|
+
7,
|
|
5540
|
+
f,
|
|
5541
|
+
proto.gateway.web.v1.SloTimelineBucket.serializeBinaryToWriter
|
|
5542
|
+
);
|
|
5543
|
+
}
|
|
5544
|
+
};
|
|
5545
|
+
|
|
5546
|
+
|
|
5547
|
+
/**
|
|
5548
|
+
* optional string slo_id = 1;
|
|
5549
|
+
* @return {string}
|
|
5550
|
+
*/
|
|
5551
|
+
proto.gateway.web.v1.SloTimeline.prototype.getSloId = function() {
|
|
5552
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
5553
|
+
};
|
|
5554
|
+
|
|
5555
|
+
|
|
5556
|
+
/**
|
|
5557
|
+
* @param {string} value
|
|
5558
|
+
* @return {!proto.gateway.web.v1.SloTimeline} returns this
|
|
5559
|
+
*/
|
|
5560
|
+
proto.gateway.web.v1.SloTimeline.prototype.setSloId = function(value) {
|
|
5561
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
5562
|
+
};
|
|
5563
|
+
|
|
5564
|
+
|
|
5565
|
+
/**
|
|
5566
|
+
* optional bool enabled = 2;
|
|
5567
|
+
* @return {boolean}
|
|
5568
|
+
*/
|
|
5569
|
+
proto.gateway.web.v1.SloTimeline.prototype.getEnabled = function() {
|
|
5570
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
5571
|
+
};
|
|
5572
|
+
|
|
5573
|
+
|
|
5574
|
+
/**
|
|
5575
|
+
* @param {boolean} value
|
|
5576
|
+
* @return {!proto.gateway.web.v1.SloTimeline} returns this
|
|
5577
|
+
*/
|
|
5578
|
+
proto.gateway.web.v1.SloTimeline.prototype.setEnabled = function(value) {
|
|
5579
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
5580
|
+
};
|
|
5581
|
+
|
|
5582
|
+
|
|
5583
|
+
/**
|
|
5584
|
+
* optional double target = 3;
|
|
5585
|
+
* @return {number}
|
|
5586
|
+
*/
|
|
5587
|
+
proto.gateway.web.v1.SloTimeline.prototype.getTarget = function() {
|
|
5588
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
5589
|
+
};
|
|
5590
|
+
|
|
5591
|
+
|
|
5592
|
+
/**
|
|
5593
|
+
* @param {number} value
|
|
5594
|
+
* @return {!proto.gateway.web.v1.SloTimeline} returns this
|
|
5595
|
+
*/
|
|
5596
|
+
proto.gateway.web.v1.SloTimeline.prototype.setTarget = function(value) {
|
|
5597
|
+
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
5598
|
+
};
|
|
5599
|
+
|
|
5600
|
+
|
|
5601
|
+
/**
|
|
5602
|
+
* optional int64 bucket_seconds = 4;
|
|
5603
|
+
* @return {number}
|
|
5604
|
+
*/
|
|
5605
|
+
proto.gateway.web.v1.SloTimeline.prototype.getBucketSeconds = function() {
|
|
5606
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
5607
|
+
};
|
|
5608
|
+
|
|
5609
|
+
|
|
5610
|
+
/**
|
|
5611
|
+
* @param {number} value
|
|
5612
|
+
* @return {!proto.gateway.web.v1.SloTimeline} returns this
|
|
5613
|
+
*/
|
|
5614
|
+
proto.gateway.web.v1.SloTimeline.prototype.setBucketSeconds = function(value) {
|
|
5615
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
5616
|
+
};
|
|
5617
|
+
|
|
5618
|
+
|
|
5619
|
+
/**
|
|
5620
|
+
* optional google.protobuf.Timestamp window_start = 5;
|
|
5621
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
5622
|
+
*/
|
|
5623
|
+
proto.gateway.web.v1.SloTimeline.prototype.getWindowStart = function() {
|
|
5624
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
5625
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
|
|
5626
|
+
};
|
|
5627
|
+
|
|
5628
|
+
|
|
5629
|
+
/**
|
|
5630
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
5631
|
+
* @return {!proto.gateway.web.v1.SloTimeline} returns this
|
|
5632
|
+
*/
|
|
5633
|
+
proto.gateway.web.v1.SloTimeline.prototype.setWindowStart = function(value) {
|
|
5634
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
5635
|
+
};
|
|
5636
|
+
|
|
5637
|
+
|
|
5638
|
+
/**
|
|
5639
|
+
* Clears the message field making it undefined.
|
|
5640
|
+
* @return {!proto.gateway.web.v1.SloTimeline} returns this
|
|
5641
|
+
*/
|
|
5642
|
+
proto.gateway.web.v1.SloTimeline.prototype.clearWindowStart = function() {
|
|
5643
|
+
return this.setWindowStart(undefined);
|
|
5644
|
+
};
|
|
5645
|
+
|
|
5646
|
+
|
|
5647
|
+
/**
|
|
5648
|
+
* Returns whether this field is set.
|
|
5649
|
+
* @return {boolean}
|
|
5650
|
+
*/
|
|
5651
|
+
proto.gateway.web.v1.SloTimeline.prototype.hasWindowStart = function() {
|
|
5652
|
+
return jspb.Message.getField(this, 5) != null;
|
|
5653
|
+
};
|
|
5654
|
+
|
|
5655
|
+
|
|
5656
|
+
/**
|
|
5657
|
+
* optional google.protobuf.Timestamp window_end = 6;
|
|
5658
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
5659
|
+
*/
|
|
5660
|
+
proto.gateway.web.v1.SloTimeline.prototype.getWindowEnd = function() {
|
|
5661
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
5662
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
|
|
5663
|
+
};
|
|
5664
|
+
|
|
5665
|
+
|
|
5666
|
+
/**
|
|
5667
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
5668
|
+
* @return {!proto.gateway.web.v1.SloTimeline} returns this
|
|
5669
|
+
*/
|
|
5670
|
+
proto.gateway.web.v1.SloTimeline.prototype.setWindowEnd = function(value) {
|
|
5671
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
5672
|
+
};
|
|
5673
|
+
|
|
5674
|
+
|
|
5675
|
+
/**
|
|
5676
|
+
* Clears the message field making it undefined.
|
|
5677
|
+
* @return {!proto.gateway.web.v1.SloTimeline} returns this
|
|
5678
|
+
*/
|
|
5679
|
+
proto.gateway.web.v1.SloTimeline.prototype.clearWindowEnd = function() {
|
|
5680
|
+
return this.setWindowEnd(undefined);
|
|
5681
|
+
};
|
|
5682
|
+
|
|
5683
|
+
|
|
5684
|
+
/**
|
|
5685
|
+
* Returns whether this field is set.
|
|
5686
|
+
* @return {boolean}
|
|
5687
|
+
*/
|
|
5688
|
+
proto.gateway.web.v1.SloTimeline.prototype.hasWindowEnd = function() {
|
|
5689
|
+
return jspb.Message.getField(this, 6) != null;
|
|
5690
|
+
};
|
|
5691
|
+
|
|
5692
|
+
|
|
5693
|
+
/**
|
|
5694
|
+
* repeated SloTimelineBucket buckets = 7;
|
|
5695
|
+
* @return {!Array<!proto.gateway.web.v1.SloTimelineBucket>}
|
|
5696
|
+
*/
|
|
5697
|
+
proto.gateway.web.v1.SloTimeline.prototype.getBucketsList = function() {
|
|
5698
|
+
return /** @type{!Array<!proto.gateway.web.v1.SloTimelineBucket>} */ (
|
|
5699
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SloTimelineBucket, 7));
|
|
5700
|
+
};
|
|
5701
|
+
|
|
5702
|
+
|
|
5703
|
+
/**
|
|
5704
|
+
* @param {!Array<!proto.gateway.web.v1.SloTimelineBucket>} value
|
|
5705
|
+
* @return {!proto.gateway.web.v1.SloTimeline} returns this
|
|
5706
|
+
*/
|
|
5707
|
+
proto.gateway.web.v1.SloTimeline.prototype.setBucketsList = function(value) {
|
|
5708
|
+
return jspb.Message.setRepeatedWrapperField(this, 7, value);
|
|
5709
|
+
};
|
|
5710
|
+
|
|
5711
|
+
|
|
5712
|
+
/**
|
|
5713
|
+
* @param {!proto.gateway.web.v1.SloTimelineBucket=} opt_value
|
|
5714
|
+
* @param {number=} opt_index
|
|
5715
|
+
* @return {!proto.gateway.web.v1.SloTimelineBucket}
|
|
5716
|
+
*/
|
|
5717
|
+
proto.gateway.web.v1.SloTimeline.prototype.addBuckets = function(opt_value, opt_index) {
|
|
5718
|
+
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.gateway.web.v1.SloTimelineBucket, opt_index);
|
|
5719
|
+
};
|
|
5720
|
+
|
|
5721
|
+
|
|
5722
|
+
/**
|
|
5723
|
+
* Clears the list making it empty but non-null.
|
|
5724
|
+
* @return {!proto.gateway.web.v1.SloTimeline} returns this
|
|
5725
|
+
*/
|
|
5726
|
+
proto.gateway.web.v1.SloTimeline.prototype.clearBucketsList = function() {
|
|
5727
|
+
return this.setBucketsList([]);
|
|
5728
|
+
};
|
|
5729
|
+
|
|
5730
|
+
|
|
5731
|
+
|
|
5732
|
+
|
|
5733
|
+
|
|
5734
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5735
|
+
/**
|
|
5736
|
+
* Creates an object representation of this proto.
|
|
5737
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5738
|
+
* Optional fields that are not set will be set to undefined.
|
|
5739
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5740
|
+
* For the list of reserved names please see:
|
|
5741
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5742
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5743
|
+
* JSPB instance for transitional soy proto support:
|
|
5744
|
+
* http://goto/soy-param-migration
|
|
5745
|
+
* @return {!Object}
|
|
5746
|
+
*/
|
|
5747
|
+
proto.gateway.web.v1.SloTimelineBucket.prototype.toObject = function(opt_includeInstance) {
|
|
5748
|
+
return proto.gateway.web.v1.SloTimelineBucket.toObject(opt_includeInstance, this);
|
|
5749
|
+
};
|
|
5750
|
+
|
|
5751
|
+
|
|
5752
|
+
/**
|
|
5753
|
+
* Static version of the {@see toObject} method.
|
|
5754
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5755
|
+
* the JSPB instance for transitional soy proto support:
|
|
5756
|
+
* http://goto/soy-param-migration
|
|
5757
|
+
* @param {!proto.gateway.web.v1.SloTimelineBucket} msg The msg instance to transform.
|
|
5758
|
+
* @return {!Object}
|
|
5759
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5760
|
+
*/
|
|
5761
|
+
proto.gateway.web.v1.SloTimelineBucket.toObject = function(includeInstance, msg) {
|
|
5762
|
+
var f, obj = {
|
|
5763
|
+
bucketStart: (f = msg.getBucketStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
5764
|
+
eligibleCount: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
5765
|
+
goodCount: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
5766
|
+
compliance: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
|
5767
|
+
state: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
5768
|
+
};
|
|
5769
|
+
|
|
5770
|
+
if (includeInstance) {
|
|
5771
|
+
obj.$jspbMessageInstance = msg;
|
|
5772
|
+
}
|
|
5773
|
+
return obj;
|
|
5774
|
+
};
|
|
5775
|
+
}
|
|
5776
|
+
|
|
5777
|
+
|
|
5778
|
+
/**
|
|
5779
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5780
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5781
|
+
* @return {!proto.gateway.web.v1.SloTimelineBucket}
|
|
5782
|
+
*/
|
|
5783
|
+
proto.gateway.web.v1.SloTimelineBucket.deserializeBinary = function(bytes) {
|
|
5784
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5785
|
+
var msg = new proto.gateway.web.v1.SloTimelineBucket;
|
|
5786
|
+
return proto.gateway.web.v1.SloTimelineBucket.deserializeBinaryFromReader(msg, reader);
|
|
5787
|
+
};
|
|
5788
|
+
|
|
5789
|
+
|
|
5790
|
+
/**
|
|
5791
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5792
|
+
* given reader into the given message object.
|
|
5793
|
+
* @param {!proto.gateway.web.v1.SloTimelineBucket} msg The message object to deserialize into.
|
|
5794
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5795
|
+
* @return {!proto.gateway.web.v1.SloTimelineBucket}
|
|
5796
|
+
*/
|
|
5797
|
+
proto.gateway.web.v1.SloTimelineBucket.deserializeBinaryFromReader = function(msg, reader) {
|
|
5798
|
+
while (reader.nextField()) {
|
|
5799
|
+
if (reader.isEndGroup()) {
|
|
5800
|
+
break;
|
|
5801
|
+
}
|
|
5802
|
+
var field = reader.getFieldNumber();
|
|
5803
|
+
switch (field) {
|
|
5804
|
+
case 1:
|
|
5805
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
5806
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
5807
|
+
msg.setBucketStart(value);
|
|
5808
|
+
break;
|
|
5809
|
+
case 2:
|
|
5810
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
5811
|
+
msg.setEligibleCount(value);
|
|
5812
|
+
break;
|
|
5813
|
+
case 3:
|
|
5814
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
5815
|
+
msg.setGoodCount(value);
|
|
5816
|
+
break;
|
|
5817
|
+
case 4:
|
|
5818
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
5819
|
+
msg.setCompliance(value);
|
|
5820
|
+
break;
|
|
5821
|
+
case 5:
|
|
5822
|
+
var value = /** @type {!proto.gateway.web.v1.SloCorridorState} */ (reader.readEnum());
|
|
5823
|
+
msg.setState(value);
|
|
5824
|
+
break;
|
|
5825
|
+
default:
|
|
5826
|
+
reader.skipField();
|
|
5827
|
+
break;
|
|
5828
|
+
}
|
|
5829
|
+
}
|
|
5830
|
+
return msg;
|
|
5831
|
+
};
|
|
5832
|
+
|
|
5833
|
+
|
|
5834
|
+
/**
|
|
5835
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5836
|
+
* @return {!Uint8Array}
|
|
5837
|
+
*/
|
|
5838
|
+
proto.gateway.web.v1.SloTimelineBucket.prototype.serializeBinary = function() {
|
|
5839
|
+
var writer = new jspb.BinaryWriter();
|
|
5840
|
+
proto.gateway.web.v1.SloTimelineBucket.serializeBinaryToWriter(this, writer);
|
|
5841
|
+
return writer.getResultBuffer();
|
|
5842
|
+
};
|
|
5843
|
+
|
|
5844
|
+
|
|
5845
|
+
/**
|
|
5846
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5847
|
+
* format), writing to the given BinaryWriter.
|
|
5848
|
+
* @param {!proto.gateway.web.v1.SloTimelineBucket} message
|
|
5849
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5850
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5851
|
+
*/
|
|
5852
|
+
proto.gateway.web.v1.SloTimelineBucket.serializeBinaryToWriter = function(message, writer) {
|
|
5853
|
+
var f = undefined;
|
|
5854
|
+
f = message.getBucketStart();
|
|
5855
|
+
if (f != null) {
|
|
5856
|
+
writer.writeMessage(
|
|
5857
|
+
1,
|
|
5858
|
+
f,
|
|
5859
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
5860
|
+
);
|
|
5861
|
+
}
|
|
5862
|
+
f = message.getEligibleCount();
|
|
5863
|
+
if (f !== 0) {
|
|
5864
|
+
writer.writeUint64(
|
|
5865
|
+
2,
|
|
5866
|
+
f
|
|
5867
|
+
);
|
|
5868
|
+
}
|
|
5869
|
+
f = message.getGoodCount();
|
|
5870
|
+
if (f !== 0) {
|
|
5871
|
+
writer.writeUint64(
|
|
5872
|
+
3,
|
|
5873
|
+
f
|
|
5874
|
+
);
|
|
5875
|
+
}
|
|
5876
|
+
f = message.getCompliance();
|
|
5877
|
+
if (f !== 0.0) {
|
|
5878
|
+
writer.writeDouble(
|
|
5879
|
+
4,
|
|
5880
|
+
f
|
|
5881
|
+
);
|
|
5882
|
+
}
|
|
5883
|
+
f = message.getState();
|
|
5884
|
+
if (f !== 0.0) {
|
|
5885
|
+
writer.writeEnum(
|
|
5886
|
+
5,
|
|
5887
|
+
f
|
|
5888
|
+
);
|
|
5889
|
+
}
|
|
5890
|
+
};
|
|
5891
|
+
|
|
5892
|
+
|
|
5893
|
+
/**
|
|
5894
|
+
* optional google.protobuf.Timestamp bucket_start = 1;
|
|
5895
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
5896
|
+
*/
|
|
5897
|
+
proto.gateway.web.v1.SloTimelineBucket.prototype.getBucketStart = function() {
|
|
5898
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
5899
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
|
|
5900
|
+
};
|
|
5901
|
+
|
|
5902
|
+
|
|
5903
|
+
/**
|
|
5904
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
5905
|
+
* @return {!proto.gateway.web.v1.SloTimelineBucket} returns this
|
|
5906
|
+
*/
|
|
5907
|
+
proto.gateway.web.v1.SloTimelineBucket.prototype.setBucketStart = function(value) {
|
|
5908
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
5909
|
+
};
|
|
5910
|
+
|
|
5911
|
+
|
|
5912
|
+
/**
|
|
5913
|
+
* Clears the message field making it undefined.
|
|
5914
|
+
* @return {!proto.gateway.web.v1.SloTimelineBucket} returns this
|
|
5915
|
+
*/
|
|
5916
|
+
proto.gateway.web.v1.SloTimelineBucket.prototype.clearBucketStart = function() {
|
|
5917
|
+
return this.setBucketStart(undefined);
|
|
5918
|
+
};
|
|
5919
|
+
|
|
5920
|
+
|
|
5921
|
+
/**
|
|
5922
|
+
* Returns whether this field is set.
|
|
5923
|
+
* @return {boolean}
|
|
5924
|
+
*/
|
|
5925
|
+
proto.gateway.web.v1.SloTimelineBucket.prototype.hasBucketStart = function() {
|
|
5926
|
+
return jspb.Message.getField(this, 1) != null;
|
|
5927
|
+
};
|
|
5928
|
+
|
|
5929
|
+
|
|
5930
|
+
/**
|
|
5931
|
+
* optional uint64 eligible_count = 2;
|
|
5932
|
+
* @return {number}
|
|
5933
|
+
*/
|
|
5934
|
+
proto.gateway.web.v1.SloTimelineBucket.prototype.getEligibleCount = function() {
|
|
5935
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
5936
|
+
};
|
|
5937
|
+
|
|
5938
|
+
|
|
5939
|
+
/**
|
|
5940
|
+
* @param {number} value
|
|
5941
|
+
* @return {!proto.gateway.web.v1.SloTimelineBucket} returns this
|
|
5942
|
+
*/
|
|
5943
|
+
proto.gateway.web.v1.SloTimelineBucket.prototype.setEligibleCount = function(value) {
|
|
5944
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
5945
|
+
};
|
|
5946
|
+
|
|
5947
|
+
|
|
5948
|
+
/**
|
|
5949
|
+
* optional uint64 good_count = 3;
|
|
5950
|
+
* @return {number}
|
|
5951
|
+
*/
|
|
5952
|
+
proto.gateway.web.v1.SloTimelineBucket.prototype.getGoodCount = function() {
|
|
5953
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
5954
|
+
};
|
|
5955
|
+
|
|
5956
|
+
|
|
5957
|
+
/**
|
|
5958
|
+
* @param {number} value
|
|
5959
|
+
* @return {!proto.gateway.web.v1.SloTimelineBucket} returns this
|
|
5960
|
+
*/
|
|
5961
|
+
proto.gateway.web.v1.SloTimelineBucket.prototype.setGoodCount = function(value) {
|
|
5962
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
5963
|
+
};
|
|
5964
|
+
|
|
5965
|
+
|
|
5966
|
+
/**
|
|
5967
|
+
* optional double compliance = 4;
|
|
5968
|
+
* @return {number}
|
|
5969
|
+
*/
|
|
5970
|
+
proto.gateway.web.v1.SloTimelineBucket.prototype.getCompliance = function() {
|
|
5971
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
|
5972
|
+
};
|
|
5973
|
+
|
|
5974
|
+
|
|
5975
|
+
/**
|
|
5976
|
+
* @param {number} value
|
|
5977
|
+
* @return {!proto.gateway.web.v1.SloTimelineBucket} returns this
|
|
5978
|
+
*/
|
|
5979
|
+
proto.gateway.web.v1.SloTimelineBucket.prototype.setCompliance = function(value) {
|
|
5980
|
+
return jspb.Message.setProto3FloatField(this, 4, value);
|
|
5981
|
+
};
|
|
5982
|
+
|
|
5983
|
+
|
|
5984
|
+
/**
|
|
5985
|
+
* optional SloCorridorState state = 5;
|
|
5986
|
+
* @return {!proto.gateway.web.v1.SloCorridorState}
|
|
5987
|
+
*/
|
|
5988
|
+
proto.gateway.web.v1.SloTimelineBucket.prototype.getState = function() {
|
|
5989
|
+
return /** @type {!proto.gateway.web.v1.SloCorridorState} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
5990
|
+
};
|
|
5991
|
+
|
|
5992
|
+
|
|
5993
|
+
/**
|
|
5994
|
+
* @param {!proto.gateway.web.v1.SloCorridorState} value
|
|
5995
|
+
* @return {!proto.gateway.web.v1.SloTimelineBucket} returns this
|
|
5996
|
+
*/
|
|
5997
|
+
proto.gateway.web.v1.SloTimelineBucket.prototype.setState = function(value) {
|
|
5998
|
+
return jspb.Message.setProto3EnumField(this, 5, value);
|
|
5999
|
+
};
|
|
6000
|
+
|
|
6001
|
+
|
|
6002
|
+
/**
|
|
6003
|
+
* @enum {number}
|
|
6004
|
+
*/
|
|
6005
|
+
proto.gateway.web.v1.SloComparator = {
|
|
6006
|
+
SLO_COMPARATOR_UNSPECIFIED: 0,
|
|
6007
|
+
SLO_COMPARATOR_GREATER_THAN: 1,
|
|
6008
|
+
SLO_COMPARATOR_GREATER_THAN_OR_EQUAL: 2,
|
|
6009
|
+
SLO_COMPARATOR_LESS_THAN: 3,
|
|
6010
|
+
SLO_COMPARATOR_LESS_THAN_OR_EQUAL: 4
|
|
6011
|
+
};
|
|
6012
|
+
|
|
6013
|
+
/**
|
|
6014
|
+
* @enum {number}
|
|
6015
|
+
*/
|
|
6016
|
+
proto.gateway.web.v1.SloCorridorState = {
|
|
6017
|
+
SLO_CORRIDOR_STATE_UNSPECIFIED: 0,
|
|
6018
|
+
SLO_CORRIDOR_STATE_OK: 1,
|
|
6019
|
+
SLO_CORRIDOR_STATE_BREACHED: 2,
|
|
6020
|
+
SLO_CORRIDOR_STATE_NO_DATA: 3
|
|
3607
6021
|
};
|
|
3608
6022
|
|
|
3609
6023
|
goog.object.extend(exports, proto.gateway.web.v1);
|