@miradorlabs/web-grpc 2.19.0 → 2.20.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,17 @@ 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);
|
|
35
37
|
goog.exportSymbol('proto.gateway.web.v1.ListSlosRequest', null, global);
|
|
36
38
|
goog.exportSymbol('proto.gateway.web.v1.ListSlosResponse', null, global);
|
|
37
39
|
goog.exportSymbol('proto.gateway.web.v1.Slo', null, global);
|
|
38
40
|
goog.exportSymbol('proto.gateway.web.v1.SloComparator', null, global);
|
|
41
|
+
goog.exportSymbol('proto.gateway.web.v1.SloCorridorState', null, global);
|
|
42
|
+
goog.exportSymbol('proto.gateway.web.v1.SloCorridorStatus', null, global);
|
|
39
43
|
goog.exportSymbol('proto.gateway.web.v1.SloObjective', null, global);
|
|
40
44
|
goog.exportSymbol('proto.gateway.web.v1.SloObjective.SliCase', null, global);
|
|
45
|
+
goog.exportSymbol('proto.gateway.web.v1.SloStatus', null, global);
|
|
41
46
|
goog.exportSymbol('proto.gateway.web.v1.UpdateSloRequest', null, global);
|
|
42
47
|
goog.exportSymbol('proto.gateway.web.v1.UpdateSloRequest.SloUpdates', null, global);
|
|
43
48
|
goog.exportSymbol('proto.gateway.web.v1.UpdateSloResponse', null, global);
|
|
@@ -335,6 +340,90 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
335
340
|
*/
|
|
336
341
|
proto.gateway.web.v1.DeleteSloResponse.displayName = 'proto.gateway.web.v1.DeleteSloResponse';
|
|
337
342
|
}
|
|
343
|
+
/**
|
|
344
|
+
* Generated by JsPbCodeGenerator.
|
|
345
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
346
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
347
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
348
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
349
|
+
* valid.
|
|
350
|
+
* @extends {jspb.Message}
|
|
351
|
+
* @constructor
|
|
352
|
+
*/
|
|
353
|
+
proto.gateway.web.v1.GetSloStatusRequest = function(opt_data) {
|
|
354
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
355
|
+
};
|
|
356
|
+
goog.inherits(proto.gateway.web.v1.GetSloStatusRequest, jspb.Message);
|
|
357
|
+
if (goog.DEBUG && !COMPILED) {
|
|
358
|
+
/**
|
|
359
|
+
* @public
|
|
360
|
+
* @override
|
|
361
|
+
*/
|
|
362
|
+
proto.gateway.web.v1.GetSloStatusRequest.displayName = 'proto.gateway.web.v1.GetSloStatusRequest';
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Generated by JsPbCodeGenerator.
|
|
366
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
367
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
368
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
369
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
370
|
+
* valid.
|
|
371
|
+
* @extends {jspb.Message}
|
|
372
|
+
* @constructor
|
|
373
|
+
*/
|
|
374
|
+
proto.gateway.web.v1.GetSloStatusResponse = function(opt_data) {
|
|
375
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
376
|
+
};
|
|
377
|
+
goog.inherits(proto.gateway.web.v1.GetSloStatusResponse, jspb.Message);
|
|
378
|
+
if (goog.DEBUG && !COMPILED) {
|
|
379
|
+
/**
|
|
380
|
+
* @public
|
|
381
|
+
* @override
|
|
382
|
+
*/
|
|
383
|
+
proto.gateway.web.v1.GetSloStatusResponse.displayName = 'proto.gateway.web.v1.GetSloStatusResponse';
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Generated by JsPbCodeGenerator.
|
|
387
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
388
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
389
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
390
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
391
|
+
* valid.
|
|
392
|
+
* @extends {jspb.Message}
|
|
393
|
+
* @constructor
|
|
394
|
+
*/
|
|
395
|
+
proto.gateway.web.v1.SloStatus = function(opt_data) {
|
|
396
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.SloStatus.repeatedFields_, null);
|
|
397
|
+
};
|
|
398
|
+
goog.inherits(proto.gateway.web.v1.SloStatus, jspb.Message);
|
|
399
|
+
if (goog.DEBUG && !COMPILED) {
|
|
400
|
+
/**
|
|
401
|
+
* @public
|
|
402
|
+
* @override
|
|
403
|
+
*/
|
|
404
|
+
proto.gateway.web.v1.SloStatus.displayName = 'proto.gateway.web.v1.SloStatus';
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* Generated by JsPbCodeGenerator.
|
|
408
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
409
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
410
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
411
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
412
|
+
* valid.
|
|
413
|
+
* @extends {jspb.Message}
|
|
414
|
+
* @constructor
|
|
415
|
+
*/
|
|
416
|
+
proto.gateway.web.v1.SloCorridorStatus = function(opt_data) {
|
|
417
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.SloCorridorStatus.repeatedFields_, null);
|
|
418
|
+
};
|
|
419
|
+
goog.inherits(proto.gateway.web.v1.SloCorridorStatus, jspb.Message);
|
|
420
|
+
if (goog.DEBUG && !COMPILED) {
|
|
421
|
+
/**
|
|
422
|
+
* @public
|
|
423
|
+
* @override
|
|
424
|
+
*/
|
|
425
|
+
proto.gateway.web.v1.SloCorridorStatus.displayName = 'proto.gateway.web.v1.SloCorridorStatus';
|
|
426
|
+
}
|
|
338
427
|
|
|
339
428
|
|
|
340
429
|
|
|
@@ -3595,15 +3684,1126 @@ proto.gateway.web.v1.DeleteSloResponse.prototype.hasStatus = function() {
|
|
|
3595
3684
|
};
|
|
3596
3685
|
|
|
3597
3686
|
|
|
3687
|
+
|
|
3688
|
+
|
|
3689
|
+
|
|
3690
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3598
3691
|
/**
|
|
3599
|
-
*
|
|
3692
|
+
* Creates an object representation of this proto.
|
|
3693
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3694
|
+
* Optional fields that are not set will be set to undefined.
|
|
3695
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3696
|
+
* For the list of reserved names please see:
|
|
3697
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3698
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3699
|
+
* JSPB instance for transitional soy proto support:
|
|
3700
|
+
* http://goto/soy-param-migration
|
|
3701
|
+
* @return {!Object}
|
|
3600
3702
|
*/
|
|
3601
|
-
proto.gateway.web.v1.
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3703
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3704
|
+
return proto.gateway.web.v1.GetSloStatusRequest.toObject(opt_includeInstance, this);
|
|
3705
|
+
};
|
|
3706
|
+
|
|
3707
|
+
|
|
3708
|
+
/**
|
|
3709
|
+
* Static version of the {@see toObject} method.
|
|
3710
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3711
|
+
* the JSPB instance for transitional soy proto support:
|
|
3712
|
+
* http://goto/soy-param-migration
|
|
3713
|
+
* @param {!proto.gateway.web.v1.GetSloStatusRequest} msg The msg instance to transform.
|
|
3714
|
+
* @return {!Object}
|
|
3715
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3716
|
+
*/
|
|
3717
|
+
proto.gateway.web.v1.GetSloStatusRequest.toObject = function(includeInstance, msg) {
|
|
3718
|
+
var f, obj = {
|
|
3719
|
+
organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3720
|
+
projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3721
|
+
sloId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3722
|
+
evaluationTime: (f = msg.getEvaluationTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
3723
|
+
};
|
|
3724
|
+
|
|
3725
|
+
if (includeInstance) {
|
|
3726
|
+
obj.$jspbMessageInstance = msg;
|
|
3727
|
+
}
|
|
3728
|
+
return obj;
|
|
3729
|
+
};
|
|
3730
|
+
}
|
|
3731
|
+
|
|
3732
|
+
|
|
3733
|
+
/**
|
|
3734
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3735
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3736
|
+
* @return {!proto.gateway.web.v1.GetSloStatusRequest}
|
|
3737
|
+
*/
|
|
3738
|
+
proto.gateway.web.v1.GetSloStatusRequest.deserializeBinary = function(bytes) {
|
|
3739
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3740
|
+
var msg = new proto.gateway.web.v1.GetSloStatusRequest;
|
|
3741
|
+
return proto.gateway.web.v1.GetSloStatusRequest.deserializeBinaryFromReader(msg, reader);
|
|
3742
|
+
};
|
|
3743
|
+
|
|
3744
|
+
|
|
3745
|
+
/**
|
|
3746
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3747
|
+
* given reader into the given message object.
|
|
3748
|
+
* @param {!proto.gateway.web.v1.GetSloStatusRequest} msg The message object to deserialize into.
|
|
3749
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3750
|
+
* @return {!proto.gateway.web.v1.GetSloStatusRequest}
|
|
3751
|
+
*/
|
|
3752
|
+
proto.gateway.web.v1.GetSloStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3753
|
+
while (reader.nextField()) {
|
|
3754
|
+
if (reader.isEndGroup()) {
|
|
3755
|
+
break;
|
|
3756
|
+
}
|
|
3757
|
+
var field = reader.getFieldNumber();
|
|
3758
|
+
switch (field) {
|
|
3759
|
+
case 1:
|
|
3760
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3761
|
+
msg.setOrganizationId(value);
|
|
3762
|
+
break;
|
|
3763
|
+
case 2:
|
|
3764
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3765
|
+
msg.setProjectId(value);
|
|
3766
|
+
break;
|
|
3767
|
+
case 3:
|
|
3768
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3769
|
+
msg.setSloId(value);
|
|
3770
|
+
break;
|
|
3771
|
+
case 4:
|
|
3772
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
3773
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
3774
|
+
msg.setEvaluationTime(value);
|
|
3775
|
+
break;
|
|
3776
|
+
default:
|
|
3777
|
+
reader.skipField();
|
|
3778
|
+
break;
|
|
3779
|
+
}
|
|
3780
|
+
}
|
|
3781
|
+
return msg;
|
|
3782
|
+
};
|
|
3783
|
+
|
|
3784
|
+
|
|
3785
|
+
/**
|
|
3786
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3787
|
+
* @return {!Uint8Array}
|
|
3788
|
+
*/
|
|
3789
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.serializeBinary = function() {
|
|
3790
|
+
var writer = new jspb.BinaryWriter();
|
|
3791
|
+
proto.gateway.web.v1.GetSloStatusRequest.serializeBinaryToWriter(this, writer);
|
|
3792
|
+
return writer.getResultBuffer();
|
|
3793
|
+
};
|
|
3794
|
+
|
|
3795
|
+
|
|
3796
|
+
/**
|
|
3797
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3798
|
+
* format), writing to the given BinaryWriter.
|
|
3799
|
+
* @param {!proto.gateway.web.v1.GetSloStatusRequest} message
|
|
3800
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3801
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3802
|
+
*/
|
|
3803
|
+
proto.gateway.web.v1.GetSloStatusRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3804
|
+
var f = undefined;
|
|
3805
|
+
f = message.getOrganizationId();
|
|
3806
|
+
if (f.length > 0) {
|
|
3807
|
+
writer.writeString(
|
|
3808
|
+
1,
|
|
3809
|
+
f
|
|
3810
|
+
);
|
|
3811
|
+
}
|
|
3812
|
+
f = message.getProjectId();
|
|
3813
|
+
if (f.length > 0) {
|
|
3814
|
+
writer.writeString(
|
|
3815
|
+
2,
|
|
3816
|
+
f
|
|
3817
|
+
);
|
|
3818
|
+
}
|
|
3819
|
+
f = message.getSloId();
|
|
3820
|
+
if (f.length > 0) {
|
|
3821
|
+
writer.writeString(
|
|
3822
|
+
3,
|
|
3823
|
+
f
|
|
3824
|
+
);
|
|
3825
|
+
}
|
|
3826
|
+
f = message.getEvaluationTime();
|
|
3827
|
+
if (f != null) {
|
|
3828
|
+
writer.writeMessage(
|
|
3829
|
+
4,
|
|
3830
|
+
f,
|
|
3831
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
3832
|
+
);
|
|
3833
|
+
}
|
|
3834
|
+
};
|
|
3835
|
+
|
|
3836
|
+
|
|
3837
|
+
/**
|
|
3838
|
+
* optional string organization_id = 1;
|
|
3839
|
+
* @return {string}
|
|
3840
|
+
*/
|
|
3841
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.getOrganizationId = function() {
|
|
3842
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3843
|
+
};
|
|
3844
|
+
|
|
3845
|
+
|
|
3846
|
+
/**
|
|
3847
|
+
* @param {string} value
|
|
3848
|
+
* @return {!proto.gateway.web.v1.GetSloStatusRequest} returns this
|
|
3849
|
+
*/
|
|
3850
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.setOrganizationId = function(value) {
|
|
3851
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3852
|
+
};
|
|
3853
|
+
|
|
3854
|
+
|
|
3855
|
+
/**
|
|
3856
|
+
* optional string project_id = 2;
|
|
3857
|
+
* @return {string}
|
|
3858
|
+
*/
|
|
3859
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.getProjectId = function() {
|
|
3860
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3861
|
+
};
|
|
3862
|
+
|
|
3863
|
+
|
|
3864
|
+
/**
|
|
3865
|
+
* @param {string} value
|
|
3866
|
+
* @return {!proto.gateway.web.v1.GetSloStatusRequest} returns this
|
|
3867
|
+
*/
|
|
3868
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.setProjectId = function(value) {
|
|
3869
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3870
|
+
};
|
|
3871
|
+
|
|
3872
|
+
|
|
3873
|
+
/**
|
|
3874
|
+
* optional string slo_id = 3;
|
|
3875
|
+
* @return {string}
|
|
3876
|
+
*/
|
|
3877
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.getSloId = function() {
|
|
3878
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3879
|
+
};
|
|
3880
|
+
|
|
3881
|
+
|
|
3882
|
+
/**
|
|
3883
|
+
* @param {string} value
|
|
3884
|
+
* @return {!proto.gateway.web.v1.GetSloStatusRequest} returns this
|
|
3885
|
+
*/
|
|
3886
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.setSloId = function(value) {
|
|
3887
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3888
|
+
};
|
|
3889
|
+
|
|
3890
|
+
|
|
3891
|
+
/**
|
|
3892
|
+
* optional google.protobuf.Timestamp evaluation_time = 4;
|
|
3893
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
3894
|
+
*/
|
|
3895
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.getEvaluationTime = function() {
|
|
3896
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
3897
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
|
|
3898
|
+
};
|
|
3899
|
+
|
|
3900
|
+
|
|
3901
|
+
/**
|
|
3902
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
3903
|
+
* @return {!proto.gateway.web.v1.GetSloStatusRequest} returns this
|
|
3904
|
+
*/
|
|
3905
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.setEvaluationTime = function(value) {
|
|
3906
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
3907
|
+
};
|
|
3908
|
+
|
|
3909
|
+
|
|
3910
|
+
/**
|
|
3911
|
+
* Clears the message field making it undefined.
|
|
3912
|
+
* @return {!proto.gateway.web.v1.GetSloStatusRequest} returns this
|
|
3913
|
+
*/
|
|
3914
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.clearEvaluationTime = function() {
|
|
3915
|
+
return this.setEvaluationTime(undefined);
|
|
3916
|
+
};
|
|
3917
|
+
|
|
3918
|
+
|
|
3919
|
+
/**
|
|
3920
|
+
* Returns whether this field is set.
|
|
3921
|
+
* @return {boolean}
|
|
3922
|
+
*/
|
|
3923
|
+
proto.gateway.web.v1.GetSloStatusRequest.prototype.hasEvaluationTime = function() {
|
|
3924
|
+
return jspb.Message.getField(this, 4) != null;
|
|
3925
|
+
};
|
|
3926
|
+
|
|
3927
|
+
|
|
3928
|
+
|
|
3929
|
+
|
|
3930
|
+
|
|
3931
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3932
|
+
/**
|
|
3933
|
+
* Creates an object representation of this proto.
|
|
3934
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3935
|
+
* Optional fields that are not set will be set to undefined.
|
|
3936
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3937
|
+
* For the list of reserved names please see:
|
|
3938
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3939
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3940
|
+
* JSPB instance for transitional soy proto support:
|
|
3941
|
+
* http://goto/soy-param-migration
|
|
3942
|
+
* @return {!Object}
|
|
3943
|
+
*/
|
|
3944
|
+
proto.gateway.web.v1.GetSloStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3945
|
+
return proto.gateway.web.v1.GetSloStatusResponse.toObject(opt_includeInstance, this);
|
|
3946
|
+
};
|
|
3947
|
+
|
|
3948
|
+
|
|
3949
|
+
/**
|
|
3950
|
+
* Static version of the {@see toObject} method.
|
|
3951
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3952
|
+
* the JSPB instance for transitional soy proto support:
|
|
3953
|
+
* http://goto/soy-param-migration
|
|
3954
|
+
* @param {!proto.gateway.web.v1.GetSloStatusResponse} msg The msg instance to transform.
|
|
3955
|
+
* @return {!Object}
|
|
3956
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3957
|
+
*/
|
|
3958
|
+
proto.gateway.web.v1.GetSloStatusResponse.toObject = function(includeInstance, msg) {
|
|
3959
|
+
var f, obj = {
|
|
3960
|
+
status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
|
|
3961
|
+
sloStatus: (f = msg.getSloStatus()) && proto.gateway.web.v1.SloStatus.toObject(includeInstance, f)
|
|
3962
|
+
};
|
|
3963
|
+
|
|
3964
|
+
if (includeInstance) {
|
|
3965
|
+
obj.$jspbMessageInstance = msg;
|
|
3966
|
+
}
|
|
3967
|
+
return obj;
|
|
3968
|
+
};
|
|
3969
|
+
}
|
|
3970
|
+
|
|
3971
|
+
|
|
3972
|
+
/**
|
|
3973
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3974
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3975
|
+
* @return {!proto.gateway.web.v1.GetSloStatusResponse}
|
|
3976
|
+
*/
|
|
3977
|
+
proto.gateway.web.v1.GetSloStatusResponse.deserializeBinary = function(bytes) {
|
|
3978
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3979
|
+
var msg = new proto.gateway.web.v1.GetSloStatusResponse;
|
|
3980
|
+
return proto.gateway.web.v1.GetSloStatusResponse.deserializeBinaryFromReader(msg, reader);
|
|
3981
|
+
};
|
|
3982
|
+
|
|
3983
|
+
|
|
3984
|
+
/**
|
|
3985
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3986
|
+
* given reader into the given message object.
|
|
3987
|
+
* @param {!proto.gateway.web.v1.GetSloStatusResponse} msg The message object to deserialize into.
|
|
3988
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3989
|
+
* @return {!proto.gateway.web.v1.GetSloStatusResponse}
|
|
3990
|
+
*/
|
|
3991
|
+
proto.gateway.web.v1.GetSloStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3992
|
+
while (reader.nextField()) {
|
|
3993
|
+
if (reader.isEndGroup()) {
|
|
3994
|
+
break;
|
|
3995
|
+
}
|
|
3996
|
+
var field = reader.getFieldNumber();
|
|
3997
|
+
switch (field) {
|
|
3998
|
+
case 1:
|
|
3999
|
+
var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
|
|
4000
|
+
reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
|
|
4001
|
+
msg.setStatus(value);
|
|
4002
|
+
break;
|
|
4003
|
+
case 2:
|
|
4004
|
+
var value = new proto.gateway.web.v1.SloStatus;
|
|
4005
|
+
reader.readMessage(value,proto.gateway.web.v1.SloStatus.deserializeBinaryFromReader);
|
|
4006
|
+
msg.setSloStatus(value);
|
|
4007
|
+
break;
|
|
4008
|
+
default:
|
|
4009
|
+
reader.skipField();
|
|
4010
|
+
break;
|
|
4011
|
+
}
|
|
4012
|
+
}
|
|
4013
|
+
return msg;
|
|
4014
|
+
};
|
|
4015
|
+
|
|
4016
|
+
|
|
4017
|
+
/**
|
|
4018
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4019
|
+
* @return {!Uint8Array}
|
|
4020
|
+
*/
|
|
4021
|
+
proto.gateway.web.v1.GetSloStatusResponse.prototype.serializeBinary = function() {
|
|
4022
|
+
var writer = new jspb.BinaryWriter();
|
|
4023
|
+
proto.gateway.web.v1.GetSloStatusResponse.serializeBinaryToWriter(this, writer);
|
|
4024
|
+
return writer.getResultBuffer();
|
|
4025
|
+
};
|
|
4026
|
+
|
|
4027
|
+
|
|
4028
|
+
/**
|
|
4029
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4030
|
+
* format), writing to the given BinaryWriter.
|
|
4031
|
+
* @param {!proto.gateway.web.v1.GetSloStatusResponse} message
|
|
4032
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4033
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4034
|
+
*/
|
|
4035
|
+
proto.gateway.web.v1.GetSloStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4036
|
+
var f = undefined;
|
|
4037
|
+
f = message.getStatus();
|
|
4038
|
+
if (f != null) {
|
|
4039
|
+
writer.writeMessage(
|
|
4040
|
+
1,
|
|
4041
|
+
f,
|
|
4042
|
+
proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
|
|
4043
|
+
);
|
|
4044
|
+
}
|
|
4045
|
+
f = message.getSloStatus();
|
|
4046
|
+
if (f != null) {
|
|
4047
|
+
writer.writeMessage(
|
|
4048
|
+
2,
|
|
4049
|
+
f,
|
|
4050
|
+
proto.gateway.web.v1.SloStatus.serializeBinaryToWriter
|
|
4051
|
+
);
|
|
4052
|
+
}
|
|
4053
|
+
};
|
|
4054
|
+
|
|
4055
|
+
|
|
4056
|
+
/**
|
|
4057
|
+
* optional gateway.common.v1.ResponseStatus status = 1;
|
|
4058
|
+
* @return {?proto.gateway.common.v1.ResponseStatus}
|
|
4059
|
+
*/
|
|
4060
|
+
proto.gateway.web.v1.GetSloStatusResponse.prototype.getStatus = function() {
|
|
4061
|
+
return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
|
|
4062
|
+
jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
|
|
4063
|
+
};
|
|
4064
|
+
|
|
4065
|
+
|
|
4066
|
+
/**
|
|
4067
|
+
* @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
|
|
4068
|
+
* @return {!proto.gateway.web.v1.GetSloStatusResponse} returns this
|
|
4069
|
+
*/
|
|
4070
|
+
proto.gateway.web.v1.GetSloStatusResponse.prototype.setStatus = function(value) {
|
|
4071
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
4072
|
+
};
|
|
4073
|
+
|
|
4074
|
+
|
|
4075
|
+
/**
|
|
4076
|
+
* Clears the message field making it undefined.
|
|
4077
|
+
* @return {!proto.gateway.web.v1.GetSloStatusResponse} returns this
|
|
4078
|
+
*/
|
|
4079
|
+
proto.gateway.web.v1.GetSloStatusResponse.prototype.clearStatus = function() {
|
|
4080
|
+
return this.setStatus(undefined);
|
|
4081
|
+
};
|
|
4082
|
+
|
|
4083
|
+
|
|
4084
|
+
/**
|
|
4085
|
+
* Returns whether this field is set.
|
|
4086
|
+
* @return {boolean}
|
|
4087
|
+
*/
|
|
4088
|
+
proto.gateway.web.v1.GetSloStatusResponse.prototype.hasStatus = function() {
|
|
4089
|
+
return jspb.Message.getField(this, 1) != null;
|
|
4090
|
+
};
|
|
4091
|
+
|
|
4092
|
+
|
|
4093
|
+
/**
|
|
4094
|
+
* optional SloStatus slo_status = 2;
|
|
4095
|
+
* @return {?proto.gateway.web.v1.SloStatus}
|
|
4096
|
+
*/
|
|
4097
|
+
proto.gateway.web.v1.GetSloStatusResponse.prototype.getSloStatus = function() {
|
|
4098
|
+
return /** @type{?proto.gateway.web.v1.SloStatus} */ (
|
|
4099
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.SloStatus, 2));
|
|
4100
|
+
};
|
|
4101
|
+
|
|
4102
|
+
|
|
4103
|
+
/**
|
|
4104
|
+
* @param {?proto.gateway.web.v1.SloStatus|undefined} value
|
|
4105
|
+
* @return {!proto.gateway.web.v1.GetSloStatusResponse} returns this
|
|
4106
|
+
*/
|
|
4107
|
+
proto.gateway.web.v1.GetSloStatusResponse.prototype.setSloStatus = function(value) {
|
|
4108
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
4109
|
+
};
|
|
4110
|
+
|
|
4111
|
+
|
|
4112
|
+
/**
|
|
4113
|
+
* Clears the message field making it undefined.
|
|
4114
|
+
* @return {!proto.gateway.web.v1.GetSloStatusResponse} returns this
|
|
4115
|
+
*/
|
|
4116
|
+
proto.gateway.web.v1.GetSloStatusResponse.prototype.clearSloStatus = function() {
|
|
4117
|
+
return this.setSloStatus(undefined);
|
|
4118
|
+
};
|
|
4119
|
+
|
|
4120
|
+
|
|
4121
|
+
/**
|
|
4122
|
+
* Returns whether this field is set.
|
|
4123
|
+
* @return {boolean}
|
|
4124
|
+
*/
|
|
4125
|
+
proto.gateway.web.v1.GetSloStatusResponse.prototype.hasSloStatus = function() {
|
|
4126
|
+
return jspb.Message.getField(this, 2) != null;
|
|
4127
|
+
};
|
|
4128
|
+
|
|
4129
|
+
|
|
4130
|
+
|
|
4131
|
+
/**
|
|
4132
|
+
* List of repeated fields within this message type.
|
|
4133
|
+
* @private {!Array<number>}
|
|
4134
|
+
* @const
|
|
4135
|
+
*/
|
|
4136
|
+
proto.gateway.web.v1.SloStatus.repeatedFields_ = [6];
|
|
4137
|
+
|
|
4138
|
+
|
|
4139
|
+
|
|
4140
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4141
|
+
/**
|
|
4142
|
+
* Creates an object representation of this proto.
|
|
4143
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4144
|
+
* Optional fields that are not set will be set to undefined.
|
|
4145
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4146
|
+
* For the list of reserved names please see:
|
|
4147
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4148
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4149
|
+
* JSPB instance for transitional soy proto support:
|
|
4150
|
+
* http://goto/soy-param-migration
|
|
4151
|
+
* @return {!Object}
|
|
4152
|
+
*/
|
|
4153
|
+
proto.gateway.web.v1.SloStatus.prototype.toObject = function(opt_includeInstance) {
|
|
4154
|
+
return proto.gateway.web.v1.SloStatus.toObject(opt_includeInstance, this);
|
|
4155
|
+
};
|
|
4156
|
+
|
|
4157
|
+
|
|
4158
|
+
/**
|
|
4159
|
+
* Static version of the {@see toObject} method.
|
|
4160
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4161
|
+
* the JSPB instance for transitional soy proto support:
|
|
4162
|
+
* http://goto/soy-param-migration
|
|
4163
|
+
* @param {!proto.gateway.web.v1.SloStatus} msg The msg instance to transform.
|
|
4164
|
+
* @return {!Object}
|
|
4165
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4166
|
+
*/
|
|
4167
|
+
proto.gateway.web.v1.SloStatus.toObject = function(includeInstance, msg) {
|
|
4168
|
+
var f, obj = {
|
|
4169
|
+
sloId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4170
|
+
enabled: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
4171
|
+
windowSeconds: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
4172
|
+
windowStart: (f = msg.getWindowStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
4173
|
+
windowEnd: (f = msg.getWindowEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
4174
|
+
corridorsList: jspb.Message.toObjectList(msg.getCorridorsList(),
|
|
4175
|
+
proto.gateway.web.v1.SloCorridorStatus.toObject, includeInstance)
|
|
4176
|
+
};
|
|
4177
|
+
|
|
4178
|
+
if (includeInstance) {
|
|
4179
|
+
obj.$jspbMessageInstance = msg;
|
|
4180
|
+
}
|
|
4181
|
+
return obj;
|
|
4182
|
+
};
|
|
4183
|
+
}
|
|
4184
|
+
|
|
4185
|
+
|
|
4186
|
+
/**
|
|
4187
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4188
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4189
|
+
* @return {!proto.gateway.web.v1.SloStatus}
|
|
4190
|
+
*/
|
|
4191
|
+
proto.gateway.web.v1.SloStatus.deserializeBinary = function(bytes) {
|
|
4192
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4193
|
+
var msg = new proto.gateway.web.v1.SloStatus;
|
|
4194
|
+
return proto.gateway.web.v1.SloStatus.deserializeBinaryFromReader(msg, reader);
|
|
4195
|
+
};
|
|
4196
|
+
|
|
4197
|
+
|
|
4198
|
+
/**
|
|
4199
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4200
|
+
* given reader into the given message object.
|
|
4201
|
+
* @param {!proto.gateway.web.v1.SloStatus} msg The message object to deserialize into.
|
|
4202
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4203
|
+
* @return {!proto.gateway.web.v1.SloStatus}
|
|
4204
|
+
*/
|
|
4205
|
+
proto.gateway.web.v1.SloStatus.deserializeBinaryFromReader = function(msg, reader) {
|
|
4206
|
+
while (reader.nextField()) {
|
|
4207
|
+
if (reader.isEndGroup()) {
|
|
4208
|
+
break;
|
|
4209
|
+
}
|
|
4210
|
+
var field = reader.getFieldNumber();
|
|
4211
|
+
switch (field) {
|
|
4212
|
+
case 1:
|
|
4213
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4214
|
+
msg.setSloId(value);
|
|
4215
|
+
break;
|
|
4216
|
+
case 2:
|
|
4217
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
4218
|
+
msg.setEnabled(value);
|
|
4219
|
+
break;
|
|
4220
|
+
case 3:
|
|
4221
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
4222
|
+
msg.setWindowSeconds(value);
|
|
4223
|
+
break;
|
|
4224
|
+
case 4:
|
|
4225
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
4226
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
4227
|
+
msg.setWindowStart(value);
|
|
4228
|
+
break;
|
|
4229
|
+
case 5:
|
|
4230
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
4231
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
4232
|
+
msg.setWindowEnd(value);
|
|
4233
|
+
break;
|
|
4234
|
+
case 6:
|
|
4235
|
+
var value = new proto.gateway.web.v1.SloCorridorStatus;
|
|
4236
|
+
reader.readMessage(value,proto.gateway.web.v1.SloCorridorStatus.deserializeBinaryFromReader);
|
|
4237
|
+
msg.addCorridors(value);
|
|
4238
|
+
break;
|
|
4239
|
+
default:
|
|
4240
|
+
reader.skipField();
|
|
4241
|
+
break;
|
|
4242
|
+
}
|
|
4243
|
+
}
|
|
4244
|
+
return msg;
|
|
4245
|
+
};
|
|
4246
|
+
|
|
4247
|
+
|
|
4248
|
+
/**
|
|
4249
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4250
|
+
* @return {!Uint8Array}
|
|
4251
|
+
*/
|
|
4252
|
+
proto.gateway.web.v1.SloStatus.prototype.serializeBinary = function() {
|
|
4253
|
+
var writer = new jspb.BinaryWriter();
|
|
4254
|
+
proto.gateway.web.v1.SloStatus.serializeBinaryToWriter(this, writer);
|
|
4255
|
+
return writer.getResultBuffer();
|
|
4256
|
+
};
|
|
4257
|
+
|
|
4258
|
+
|
|
4259
|
+
/**
|
|
4260
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4261
|
+
* format), writing to the given BinaryWriter.
|
|
4262
|
+
* @param {!proto.gateway.web.v1.SloStatus} message
|
|
4263
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4264
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4265
|
+
*/
|
|
4266
|
+
proto.gateway.web.v1.SloStatus.serializeBinaryToWriter = function(message, writer) {
|
|
4267
|
+
var f = undefined;
|
|
4268
|
+
f = message.getSloId();
|
|
4269
|
+
if (f.length > 0) {
|
|
4270
|
+
writer.writeString(
|
|
4271
|
+
1,
|
|
4272
|
+
f
|
|
4273
|
+
);
|
|
4274
|
+
}
|
|
4275
|
+
f = message.getEnabled();
|
|
4276
|
+
if (f) {
|
|
4277
|
+
writer.writeBool(
|
|
4278
|
+
2,
|
|
4279
|
+
f
|
|
4280
|
+
);
|
|
4281
|
+
}
|
|
4282
|
+
f = message.getWindowSeconds();
|
|
4283
|
+
if (f !== 0) {
|
|
4284
|
+
writer.writeInt64(
|
|
4285
|
+
3,
|
|
4286
|
+
f
|
|
4287
|
+
);
|
|
4288
|
+
}
|
|
4289
|
+
f = message.getWindowStart();
|
|
4290
|
+
if (f != null) {
|
|
4291
|
+
writer.writeMessage(
|
|
4292
|
+
4,
|
|
4293
|
+
f,
|
|
4294
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
4295
|
+
);
|
|
4296
|
+
}
|
|
4297
|
+
f = message.getWindowEnd();
|
|
4298
|
+
if (f != null) {
|
|
4299
|
+
writer.writeMessage(
|
|
4300
|
+
5,
|
|
4301
|
+
f,
|
|
4302
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
4303
|
+
);
|
|
4304
|
+
}
|
|
4305
|
+
f = message.getCorridorsList();
|
|
4306
|
+
if (f.length > 0) {
|
|
4307
|
+
writer.writeRepeatedMessage(
|
|
4308
|
+
6,
|
|
4309
|
+
f,
|
|
4310
|
+
proto.gateway.web.v1.SloCorridorStatus.serializeBinaryToWriter
|
|
4311
|
+
);
|
|
4312
|
+
}
|
|
4313
|
+
};
|
|
4314
|
+
|
|
4315
|
+
|
|
4316
|
+
/**
|
|
4317
|
+
* optional string slo_id = 1;
|
|
4318
|
+
* @return {string}
|
|
4319
|
+
*/
|
|
4320
|
+
proto.gateway.web.v1.SloStatus.prototype.getSloId = function() {
|
|
4321
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4322
|
+
};
|
|
4323
|
+
|
|
4324
|
+
|
|
4325
|
+
/**
|
|
4326
|
+
* @param {string} value
|
|
4327
|
+
* @return {!proto.gateway.web.v1.SloStatus} returns this
|
|
4328
|
+
*/
|
|
4329
|
+
proto.gateway.web.v1.SloStatus.prototype.setSloId = function(value) {
|
|
4330
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4331
|
+
};
|
|
4332
|
+
|
|
4333
|
+
|
|
4334
|
+
/**
|
|
4335
|
+
* optional bool enabled = 2;
|
|
4336
|
+
* @return {boolean}
|
|
4337
|
+
*/
|
|
4338
|
+
proto.gateway.web.v1.SloStatus.prototype.getEnabled = function() {
|
|
4339
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
4340
|
+
};
|
|
4341
|
+
|
|
4342
|
+
|
|
4343
|
+
/**
|
|
4344
|
+
* @param {boolean} value
|
|
4345
|
+
* @return {!proto.gateway.web.v1.SloStatus} returns this
|
|
4346
|
+
*/
|
|
4347
|
+
proto.gateway.web.v1.SloStatus.prototype.setEnabled = function(value) {
|
|
4348
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
4349
|
+
};
|
|
4350
|
+
|
|
4351
|
+
|
|
4352
|
+
/**
|
|
4353
|
+
* optional int64 window_seconds = 3;
|
|
4354
|
+
* @return {number}
|
|
4355
|
+
*/
|
|
4356
|
+
proto.gateway.web.v1.SloStatus.prototype.getWindowSeconds = function() {
|
|
4357
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
4358
|
+
};
|
|
4359
|
+
|
|
4360
|
+
|
|
4361
|
+
/**
|
|
4362
|
+
* @param {number} value
|
|
4363
|
+
* @return {!proto.gateway.web.v1.SloStatus} returns this
|
|
4364
|
+
*/
|
|
4365
|
+
proto.gateway.web.v1.SloStatus.prototype.setWindowSeconds = function(value) {
|
|
4366
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
4367
|
+
};
|
|
4368
|
+
|
|
4369
|
+
|
|
4370
|
+
/**
|
|
4371
|
+
* optional google.protobuf.Timestamp window_start = 4;
|
|
4372
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
4373
|
+
*/
|
|
4374
|
+
proto.gateway.web.v1.SloStatus.prototype.getWindowStart = function() {
|
|
4375
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
4376
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
|
|
4377
|
+
};
|
|
4378
|
+
|
|
4379
|
+
|
|
4380
|
+
/**
|
|
4381
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
4382
|
+
* @return {!proto.gateway.web.v1.SloStatus} returns this
|
|
4383
|
+
*/
|
|
4384
|
+
proto.gateway.web.v1.SloStatus.prototype.setWindowStart = function(value) {
|
|
4385
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
4386
|
+
};
|
|
4387
|
+
|
|
4388
|
+
|
|
4389
|
+
/**
|
|
4390
|
+
* Clears the message field making it undefined.
|
|
4391
|
+
* @return {!proto.gateway.web.v1.SloStatus} returns this
|
|
4392
|
+
*/
|
|
4393
|
+
proto.gateway.web.v1.SloStatus.prototype.clearWindowStart = function() {
|
|
4394
|
+
return this.setWindowStart(undefined);
|
|
4395
|
+
};
|
|
4396
|
+
|
|
4397
|
+
|
|
4398
|
+
/**
|
|
4399
|
+
* Returns whether this field is set.
|
|
4400
|
+
* @return {boolean}
|
|
4401
|
+
*/
|
|
4402
|
+
proto.gateway.web.v1.SloStatus.prototype.hasWindowStart = function() {
|
|
4403
|
+
return jspb.Message.getField(this, 4) != null;
|
|
4404
|
+
};
|
|
4405
|
+
|
|
4406
|
+
|
|
4407
|
+
/**
|
|
4408
|
+
* optional google.protobuf.Timestamp window_end = 5;
|
|
4409
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
4410
|
+
*/
|
|
4411
|
+
proto.gateway.web.v1.SloStatus.prototype.getWindowEnd = function() {
|
|
4412
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
4413
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
|
|
4414
|
+
};
|
|
4415
|
+
|
|
4416
|
+
|
|
4417
|
+
/**
|
|
4418
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
4419
|
+
* @return {!proto.gateway.web.v1.SloStatus} returns this
|
|
4420
|
+
*/
|
|
4421
|
+
proto.gateway.web.v1.SloStatus.prototype.setWindowEnd = function(value) {
|
|
4422
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
4423
|
+
};
|
|
4424
|
+
|
|
4425
|
+
|
|
4426
|
+
/**
|
|
4427
|
+
* Clears the message field making it undefined.
|
|
4428
|
+
* @return {!proto.gateway.web.v1.SloStatus} returns this
|
|
4429
|
+
*/
|
|
4430
|
+
proto.gateway.web.v1.SloStatus.prototype.clearWindowEnd = function() {
|
|
4431
|
+
return this.setWindowEnd(undefined);
|
|
4432
|
+
};
|
|
4433
|
+
|
|
4434
|
+
|
|
4435
|
+
/**
|
|
4436
|
+
* Returns whether this field is set.
|
|
4437
|
+
* @return {boolean}
|
|
4438
|
+
*/
|
|
4439
|
+
proto.gateway.web.v1.SloStatus.prototype.hasWindowEnd = function() {
|
|
4440
|
+
return jspb.Message.getField(this, 5) != null;
|
|
4441
|
+
};
|
|
4442
|
+
|
|
4443
|
+
|
|
4444
|
+
/**
|
|
4445
|
+
* repeated SloCorridorStatus corridors = 6;
|
|
4446
|
+
* @return {!Array<!proto.gateway.web.v1.SloCorridorStatus>}
|
|
4447
|
+
*/
|
|
4448
|
+
proto.gateway.web.v1.SloStatus.prototype.getCorridorsList = function() {
|
|
4449
|
+
return /** @type{!Array<!proto.gateway.web.v1.SloCorridorStatus>} */ (
|
|
4450
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SloCorridorStatus, 6));
|
|
4451
|
+
};
|
|
4452
|
+
|
|
4453
|
+
|
|
4454
|
+
/**
|
|
4455
|
+
* @param {!Array<!proto.gateway.web.v1.SloCorridorStatus>} value
|
|
4456
|
+
* @return {!proto.gateway.web.v1.SloStatus} returns this
|
|
4457
|
+
*/
|
|
4458
|
+
proto.gateway.web.v1.SloStatus.prototype.setCorridorsList = function(value) {
|
|
4459
|
+
return jspb.Message.setRepeatedWrapperField(this, 6, value);
|
|
4460
|
+
};
|
|
4461
|
+
|
|
4462
|
+
|
|
4463
|
+
/**
|
|
4464
|
+
* @param {!proto.gateway.web.v1.SloCorridorStatus=} opt_value
|
|
4465
|
+
* @param {number=} opt_index
|
|
4466
|
+
* @return {!proto.gateway.web.v1.SloCorridorStatus}
|
|
4467
|
+
*/
|
|
4468
|
+
proto.gateway.web.v1.SloStatus.prototype.addCorridors = function(opt_value, opt_index) {
|
|
4469
|
+
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.gateway.web.v1.SloCorridorStatus, opt_index);
|
|
4470
|
+
};
|
|
4471
|
+
|
|
4472
|
+
|
|
4473
|
+
/**
|
|
4474
|
+
* Clears the list making it empty but non-null.
|
|
4475
|
+
* @return {!proto.gateway.web.v1.SloStatus} returns this
|
|
4476
|
+
*/
|
|
4477
|
+
proto.gateway.web.v1.SloStatus.prototype.clearCorridorsList = function() {
|
|
4478
|
+
return this.setCorridorsList([]);
|
|
4479
|
+
};
|
|
4480
|
+
|
|
4481
|
+
|
|
4482
|
+
|
|
4483
|
+
/**
|
|
4484
|
+
* List of repeated fields within this message type.
|
|
4485
|
+
* @private {!Array<number>}
|
|
4486
|
+
* @const
|
|
4487
|
+
*/
|
|
4488
|
+
proto.gateway.web.v1.SloCorridorStatus.repeatedFields_ = [1];
|
|
4489
|
+
|
|
4490
|
+
|
|
4491
|
+
|
|
4492
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4493
|
+
/**
|
|
4494
|
+
* Creates an object representation of this proto.
|
|
4495
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4496
|
+
* Optional fields that are not set will be set to undefined.
|
|
4497
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4498
|
+
* For the list of reserved names please see:
|
|
4499
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4500
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4501
|
+
* JSPB instance for transitional soy proto support:
|
|
4502
|
+
* http://goto/soy-param-migration
|
|
4503
|
+
* @return {!Object}
|
|
4504
|
+
*/
|
|
4505
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.toObject = function(opt_includeInstance) {
|
|
4506
|
+
return proto.gateway.web.v1.SloCorridorStatus.toObject(opt_includeInstance, this);
|
|
4507
|
+
};
|
|
4508
|
+
|
|
4509
|
+
|
|
4510
|
+
/**
|
|
4511
|
+
* Static version of the {@see toObject} method.
|
|
4512
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4513
|
+
* the JSPB instance for transitional soy proto support:
|
|
4514
|
+
* http://goto/soy-param-migration
|
|
4515
|
+
* @param {!proto.gateway.web.v1.SloCorridorStatus} msg The msg instance to transform.
|
|
4516
|
+
* @return {!Object}
|
|
4517
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4518
|
+
*/
|
|
4519
|
+
proto.gateway.web.v1.SloCorridorStatus.toObject = function(includeInstance, msg) {
|
|
4520
|
+
var f, obj = {
|
|
4521
|
+
groupValuesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
4522
|
+
eligibleCount: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
4523
|
+
goodCount: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
4524
|
+
compliance: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
|
4525
|
+
budgetRemaining: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
|
4526
|
+
state: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
|
4527
|
+
};
|
|
4528
|
+
|
|
4529
|
+
if (includeInstance) {
|
|
4530
|
+
obj.$jspbMessageInstance = msg;
|
|
4531
|
+
}
|
|
4532
|
+
return obj;
|
|
4533
|
+
};
|
|
4534
|
+
}
|
|
4535
|
+
|
|
4536
|
+
|
|
4537
|
+
/**
|
|
4538
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4539
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4540
|
+
* @return {!proto.gateway.web.v1.SloCorridorStatus}
|
|
4541
|
+
*/
|
|
4542
|
+
proto.gateway.web.v1.SloCorridorStatus.deserializeBinary = function(bytes) {
|
|
4543
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4544
|
+
var msg = new proto.gateway.web.v1.SloCorridorStatus;
|
|
4545
|
+
return proto.gateway.web.v1.SloCorridorStatus.deserializeBinaryFromReader(msg, reader);
|
|
4546
|
+
};
|
|
4547
|
+
|
|
4548
|
+
|
|
4549
|
+
/**
|
|
4550
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4551
|
+
* given reader into the given message object.
|
|
4552
|
+
* @param {!proto.gateway.web.v1.SloCorridorStatus} msg The message object to deserialize into.
|
|
4553
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4554
|
+
* @return {!proto.gateway.web.v1.SloCorridorStatus}
|
|
4555
|
+
*/
|
|
4556
|
+
proto.gateway.web.v1.SloCorridorStatus.deserializeBinaryFromReader = function(msg, reader) {
|
|
4557
|
+
while (reader.nextField()) {
|
|
4558
|
+
if (reader.isEndGroup()) {
|
|
4559
|
+
break;
|
|
4560
|
+
}
|
|
4561
|
+
var field = reader.getFieldNumber();
|
|
4562
|
+
switch (field) {
|
|
4563
|
+
case 1:
|
|
4564
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4565
|
+
msg.addGroupValues(value);
|
|
4566
|
+
break;
|
|
4567
|
+
case 2:
|
|
4568
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
4569
|
+
msg.setEligibleCount(value);
|
|
4570
|
+
break;
|
|
4571
|
+
case 3:
|
|
4572
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
4573
|
+
msg.setGoodCount(value);
|
|
4574
|
+
break;
|
|
4575
|
+
case 4:
|
|
4576
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
4577
|
+
msg.setCompliance(value);
|
|
4578
|
+
break;
|
|
4579
|
+
case 5:
|
|
4580
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
4581
|
+
msg.setBudgetRemaining(value);
|
|
4582
|
+
break;
|
|
4583
|
+
case 6:
|
|
4584
|
+
var value = /** @type {!proto.gateway.web.v1.SloCorridorState} */ (reader.readEnum());
|
|
4585
|
+
msg.setState(value);
|
|
4586
|
+
break;
|
|
4587
|
+
default:
|
|
4588
|
+
reader.skipField();
|
|
4589
|
+
break;
|
|
4590
|
+
}
|
|
4591
|
+
}
|
|
4592
|
+
return msg;
|
|
4593
|
+
};
|
|
4594
|
+
|
|
4595
|
+
|
|
4596
|
+
/**
|
|
4597
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4598
|
+
* @return {!Uint8Array}
|
|
4599
|
+
*/
|
|
4600
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.serializeBinary = function() {
|
|
4601
|
+
var writer = new jspb.BinaryWriter();
|
|
4602
|
+
proto.gateway.web.v1.SloCorridorStatus.serializeBinaryToWriter(this, writer);
|
|
4603
|
+
return writer.getResultBuffer();
|
|
4604
|
+
};
|
|
4605
|
+
|
|
4606
|
+
|
|
4607
|
+
/**
|
|
4608
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4609
|
+
* format), writing to the given BinaryWriter.
|
|
4610
|
+
* @param {!proto.gateway.web.v1.SloCorridorStatus} message
|
|
4611
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4612
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4613
|
+
*/
|
|
4614
|
+
proto.gateway.web.v1.SloCorridorStatus.serializeBinaryToWriter = function(message, writer) {
|
|
4615
|
+
var f = undefined;
|
|
4616
|
+
f = message.getGroupValuesList();
|
|
4617
|
+
if (f.length > 0) {
|
|
4618
|
+
writer.writeRepeatedString(
|
|
4619
|
+
1,
|
|
4620
|
+
f
|
|
4621
|
+
);
|
|
4622
|
+
}
|
|
4623
|
+
f = message.getEligibleCount();
|
|
4624
|
+
if (f !== 0) {
|
|
4625
|
+
writer.writeUint64(
|
|
4626
|
+
2,
|
|
4627
|
+
f
|
|
4628
|
+
);
|
|
4629
|
+
}
|
|
4630
|
+
f = message.getGoodCount();
|
|
4631
|
+
if (f !== 0) {
|
|
4632
|
+
writer.writeUint64(
|
|
4633
|
+
3,
|
|
4634
|
+
f
|
|
4635
|
+
);
|
|
4636
|
+
}
|
|
4637
|
+
f = message.getCompliance();
|
|
4638
|
+
if (f !== 0.0) {
|
|
4639
|
+
writer.writeDouble(
|
|
4640
|
+
4,
|
|
4641
|
+
f
|
|
4642
|
+
);
|
|
4643
|
+
}
|
|
4644
|
+
f = message.getBudgetRemaining();
|
|
4645
|
+
if (f !== 0.0) {
|
|
4646
|
+
writer.writeDouble(
|
|
4647
|
+
5,
|
|
4648
|
+
f
|
|
4649
|
+
);
|
|
4650
|
+
}
|
|
4651
|
+
f = message.getState();
|
|
4652
|
+
if (f !== 0.0) {
|
|
4653
|
+
writer.writeEnum(
|
|
4654
|
+
6,
|
|
4655
|
+
f
|
|
4656
|
+
);
|
|
4657
|
+
}
|
|
4658
|
+
};
|
|
4659
|
+
|
|
4660
|
+
|
|
4661
|
+
/**
|
|
4662
|
+
* repeated string group_values = 1;
|
|
4663
|
+
* @return {!Array<string>}
|
|
4664
|
+
*/
|
|
4665
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.getGroupValuesList = function() {
|
|
4666
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
4667
|
+
};
|
|
4668
|
+
|
|
4669
|
+
|
|
4670
|
+
/**
|
|
4671
|
+
* @param {!Array<string>} value
|
|
4672
|
+
* @return {!proto.gateway.web.v1.SloCorridorStatus} returns this
|
|
4673
|
+
*/
|
|
4674
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.setGroupValuesList = function(value) {
|
|
4675
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
4676
|
+
};
|
|
4677
|
+
|
|
4678
|
+
|
|
4679
|
+
/**
|
|
4680
|
+
* @param {string} value
|
|
4681
|
+
* @param {number=} opt_index
|
|
4682
|
+
* @return {!proto.gateway.web.v1.SloCorridorStatus} returns this
|
|
4683
|
+
*/
|
|
4684
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.addGroupValues = function(value, opt_index) {
|
|
4685
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
4686
|
+
};
|
|
4687
|
+
|
|
4688
|
+
|
|
4689
|
+
/**
|
|
4690
|
+
* Clears the list making it empty but non-null.
|
|
4691
|
+
* @return {!proto.gateway.web.v1.SloCorridorStatus} returns this
|
|
4692
|
+
*/
|
|
4693
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.clearGroupValuesList = function() {
|
|
4694
|
+
return this.setGroupValuesList([]);
|
|
4695
|
+
};
|
|
4696
|
+
|
|
4697
|
+
|
|
4698
|
+
/**
|
|
4699
|
+
* optional uint64 eligible_count = 2;
|
|
4700
|
+
* @return {number}
|
|
4701
|
+
*/
|
|
4702
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.getEligibleCount = function() {
|
|
4703
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
4704
|
+
};
|
|
4705
|
+
|
|
4706
|
+
|
|
4707
|
+
/**
|
|
4708
|
+
* @param {number} value
|
|
4709
|
+
* @return {!proto.gateway.web.v1.SloCorridorStatus} returns this
|
|
4710
|
+
*/
|
|
4711
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.setEligibleCount = function(value) {
|
|
4712
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
4713
|
+
};
|
|
4714
|
+
|
|
4715
|
+
|
|
4716
|
+
/**
|
|
4717
|
+
* optional uint64 good_count = 3;
|
|
4718
|
+
* @return {number}
|
|
4719
|
+
*/
|
|
4720
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.getGoodCount = function() {
|
|
4721
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
4722
|
+
};
|
|
4723
|
+
|
|
4724
|
+
|
|
4725
|
+
/**
|
|
4726
|
+
* @param {number} value
|
|
4727
|
+
* @return {!proto.gateway.web.v1.SloCorridorStatus} returns this
|
|
4728
|
+
*/
|
|
4729
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.setGoodCount = function(value) {
|
|
4730
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
4731
|
+
};
|
|
4732
|
+
|
|
4733
|
+
|
|
4734
|
+
/**
|
|
4735
|
+
* optional double compliance = 4;
|
|
4736
|
+
* @return {number}
|
|
4737
|
+
*/
|
|
4738
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.getCompliance = function() {
|
|
4739
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
|
4740
|
+
};
|
|
4741
|
+
|
|
4742
|
+
|
|
4743
|
+
/**
|
|
4744
|
+
* @param {number} value
|
|
4745
|
+
* @return {!proto.gateway.web.v1.SloCorridorStatus} returns this
|
|
4746
|
+
*/
|
|
4747
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.setCompliance = function(value) {
|
|
4748
|
+
return jspb.Message.setProto3FloatField(this, 4, value);
|
|
4749
|
+
};
|
|
4750
|
+
|
|
4751
|
+
|
|
4752
|
+
/**
|
|
4753
|
+
* optional double budget_remaining = 5;
|
|
4754
|
+
* @return {number}
|
|
4755
|
+
*/
|
|
4756
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.getBudgetRemaining = function() {
|
|
4757
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
|
4758
|
+
};
|
|
4759
|
+
|
|
4760
|
+
|
|
4761
|
+
/**
|
|
4762
|
+
* @param {number} value
|
|
4763
|
+
* @return {!proto.gateway.web.v1.SloCorridorStatus} returns this
|
|
4764
|
+
*/
|
|
4765
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.setBudgetRemaining = function(value) {
|
|
4766
|
+
return jspb.Message.setProto3FloatField(this, 5, value);
|
|
4767
|
+
};
|
|
4768
|
+
|
|
4769
|
+
|
|
4770
|
+
/**
|
|
4771
|
+
* optional SloCorridorState state = 6;
|
|
4772
|
+
* @return {!proto.gateway.web.v1.SloCorridorState}
|
|
4773
|
+
*/
|
|
4774
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.getState = function() {
|
|
4775
|
+
return /** @type {!proto.gateway.web.v1.SloCorridorState} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
4776
|
+
};
|
|
4777
|
+
|
|
4778
|
+
|
|
4779
|
+
/**
|
|
4780
|
+
* @param {!proto.gateway.web.v1.SloCorridorState} value
|
|
4781
|
+
* @return {!proto.gateway.web.v1.SloCorridorStatus} returns this
|
|
4782
|
+
*/
|
|
4783
|
+
proto.gateway.web.v1.SloCorridorStatus.prototype.setState = function(value) {
|
|
4784
|
+
return jspb.Message.setProto3EnumField(this, 6, value);
|
|
4785
|
+
};
|
|
4786
|
+
|
|
4787
|
+
|
|
4788
|
+
/**
|
|
4789
|
+
* @enum {number}
|
|
4790
|
+
*/
|
|
4791
|
+
proto.gateway.web.v1.SloComparator = {
|
|
4792
|
+
SLO_COMPARATOR_UNSPECIFIED: 0,
|
|
4793
|
+
SLO_COMPARATOR_GREATER_THAN: 1,
|
|
4794
|
+
SLO_COMPARATOR_GREATER_THAN_OR_EQUAL: 2,
|
|
4795
|
+
SLO_COMPARATOR_LESS_THAN: 3,
|
|
4796
|
+
SLO_COMPARATOR_LESS_THAN_OR_EQUAL: 4
|
|
4797
|
+
};
|
|
4798
|
+
|
|
4799
|
+
/**
|
|
4800
|
+
* @enum {number}
|
|
4801
|
+
*/
|
|
4802
|
+
proto.gateway.web.v1.SloCorridorState = {
|
|
4803
|
+
SLO_CORRIDOR_STATE_UNSPECIFIED: 0,
|
|
4804
|
+
SLO_CORRIDOR_STATE_OK: 1,
|
|
4805
|
+
SLO_CORRIDOR_STATE_BREACHED: 2,
|
|
4806
|
+
SLO_CORRIDOR_STATE_NO_DATA: 3
|
|
3607
4807
|
};
|
|
3608
4808
|
|
|
3609
4809
|
goog.object.extend(exports, proto.gateway.web.v1);
|