@miradorlabs/web-grpc 2.20.0 → 2.22.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.
@@ -34,8 +34,12 @@ goog.exportSymbol('proto.gateway.web.v1.GetSloRequest', null, global);
34
34
  goog.exportSymbol('proto.gateway.web.v1.GetSloResponse', null, global);
35
35
  goog.exportSymbol('proto.gateway.web.v1.GetSloStatusRequest', null, global);
36
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);
37
39
  goog.exportSymbol('proto.gateway.web.v1.ListSlosRequest', null, global);
38
40
  goog.exportSymbol('proto.gateway.web.v1.ListSlosResponse', null, global);
41
+ goog.exportSymbol('proto.gateway.web.v1.PreviewSloRequest', null, global);
42
+ goog.exportSymbol('proto.gateway.web.v1.PreviewSloResponse', null, global);
39
43
  goog.exportSymbol('proto.gateway.web.v1.Slo', null, global);
40
44
  goog.exportSymbol('proto.gateway.web.v1.SloComparator', null, global);
41
45
  goog.exportSymbol('proto.gateway.web.v1.SloCorridorState', null, global);
@@ -43,6 +47,8 @@ goog.exportSymbol('proto.gateway.web.v1.SloCorridorStatus', null, global);
43
47
  goog.exportSymbol('proto.gateway.web.v1.SloObjective', null, global);
44
48
  goog.exportSymbol('proto.gateway.web.v1.SloObjective.SliCase', null, global);
45
49
  goog.exportSymbol('proto.gateway.web.v1.SloStatus', null, global);
50
+ goog.exportSymbol('proto.gateway.web.v1.SloTimeline', null, global);
51
+ goog.exportSymbol('proto.gateway.web.v1.SloTimelineBucket', null, global);
46
52
  goog.exportSymbol('proto.gateway.web.v1.UpdateSloRequest', null, global);
47
53
  goog.exportSymbol('proto.gateway.web.v1.UpdateSloRequest.SloUpdates', null, global);
48
54
  goog.exportSymbol('proto.gateway.web.v1.UpdateSloResponse', null, global);
@@ -424,6 +430,132 @@ if (goog.DEBUG && !COMPILED) {
424
430
  */
425
431
  proto.gateway.web.v1.SloCorridorStatus.displayName = 'proto.gateway.web.v1.SloCorridorStatus';
426
432
  }
433
+ /**
434
+ * Generated by JsPbCodeGenerator.
435
+ * @param {Array=} opt_data Optional initial data array, typically from a
436
+ * server response, or constructed directly in Javascript. The array is used
437
+ * in place and becomes part of the constructed object. It is not cloned.
438
+ * If no data is provided, the constructed object will be empty, but still
439
+ * valid.
440
+ * @extends {jspb.Message}
441
+ * @constructor
442
+ */
443
+ proto.gateway.web.v1.GetSloTimelineRequest = function(opt_data) {
444
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
445
+ };
446
+ goog.inherits(proto.gateway.web.v1.GetSloTimelineRequest, jspb.Message);
447
+ if (goog.DEBUG && !COMPILED) {
448
+ /**
449
+ * @public
450
+ * @override
451
+ */
452
+ proto.gateway.web.v1.GetSloTimelineRequest.displayName = 'proto.gateway.web.v1.GetSloTimelineRequest';
453
+ }
454
+ /**
455
+ * Generated by JsPbCodeGenerator.
456
+ * @param {Array=} opt_data Optional initial data array, typically from a
457
+ * server response, or constructed directly in Javascript. The array is used
458
+ * in place and becomes part of the constructed object. It is not cloned.
459
+ * If no data is provided, the constructed object will be empty, but still
460
+ * valid.
461
+ * @extends {jspb.Message}
462
+ * @constructor
463
+ */
464
+ proto.gateway.web.v1.GetSloTimelineResponse = function(opt_data) {
465
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
466
+ };
467
+ goog.inherits(proto.gateway.web.v1.GetSloTimelineResponse, jspb.Message);
468
+ if (goog.DEBUG && !COMPILED) {
469
+ /**
470
+ * @public
471
+ * @override
472
+ */
473
+ proto.gateway.web.v1.GetSloTimelineResponse.displayName = 'proto.gateway.web.v1.GetSloTimelineResponse';
474
+ }
475
+ /**
476
+ * Generated by JsPbCodeGenerator.
477
+ * @param {Array=} opt_data Optional initial data array, typically from a
478
+ * server response, or constructed directly in Javascript. The array is used
479
+ * in place and becomes part of the constructed object. It is not cloned.
480
+ * If no data is provided, the constructed object will be empty, but still
481
+ * valid.
482
+ * @extends {jspb.Message}
483
+ * @constructor
484
+ */
485
+ proto.gateway.web.v1.SloTimeline = function(opt_data) {
486
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.SloTimeline.repeatedFields_, null);
487
+ };
488
+ goog.inherits(proto.gateway.web.v1.SloTimeline, jspb.Message);
489
+ if (goog.DEBUG && !COMPILED) {
490
+ /**
491
+ * @public
492
+ * @override
493
+ */
494
+ proto.gateway.web.v1.SloTimeline.displayName = 'proto.gateway.web.v1.SloTimeline';
495
+ }
496
+ /**
497
+ * Generated by JsPbCodeGenerator.
498
+ * @param {Array=} opt_data Optional initial data array, typically from a
499
+ * server response, or constructed directly in Javascript. The array is used
500
+ * in place and becomes part of the constructed object. It is not cloned.
501
+ * If no data is provided, the constructed object will be empty, but still
502
+ * valid.
503
+ * @extends {jspb.Message}
504
+ * @constructor
505
+ */
506
+ proto.gateway.web.v1.SloTimelineBucket = function(opt_data) {
507
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
508
+ };
509
+ goog.inherits(proto.gateway.web.v1.SloTimelineBucket, jspb.Message);
510
+ if (goog.DEBUG && !COMPILED) {
511
+ /**
512
+ * @public
513
+ * @override
514
+ */
515
+ proto.gateway.web.v1.SloTimelineBucket.displayName = 'proto.gateway.web.v1.SloTimelineBucket';
516
+ }
517
+ /**
518
+ * Generated by JsPbCodeGenerator.
519
+ * @param {Array=} opt_data Optional initial data array, typically from a
520
+ * server response, or constructed directly in Javascript. The array is used
521
+ * in place and becomes part of the constructed object. It is not cloned.
522
+ * If no data is provided, the constructed object will be empty, but still
523
+ * valid.
524
+ * @extends {jspb.Message}
525
+ * @constructor
526
+ */
527
+ proto.gateway.web.v1.PreviewSloRequest = function(opt_data) {
528
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
529
+ };
530
+ goog.inherits(proto.gateway.web.v1.PreviewSloRequest, jspb.Message);
531
+ if (goog.DEBUG && !COMPILED) {
532
+ /**
533
+ * @public
534
+ * @override
535
+ */
536
+ proto.gateway.web.v1.PreviewSloRequest.displayName = 'proto.gateway.web.v1.PreviewSloRequest';
537
+ }
538
+ /**
539
+ * Generated by JsPbCodeGenerator.
540
+ * @param {Array=} opt_data Optional initial data array, typically from a
541
+ * server response, or constructed directly in Javascript. The array is used
542
+ * in place and becomes part of the constructed object. It is not cloned.
543
+ * If no data is provided, the constructed object will be empty, but still
544
+ * valid.
545
+ * @extends {jspb.Message}
546
+ * @constructor
547
+ */
548
+ proto.gateway.web.v1.PreviewSloResponse = function(opt_data) {
549
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
550
+ };
551
+ goog.inherits(proto.gateway.web.v1.PreviewSloResponse, jspb.Message);
552
+ if (goog.DEBUG && !COMPILED) {
553
+ /**
554
+ * @public
555
+ * @override
556
+ */
557
+ proto.gateway.web.v1.PreviewSloResponse.displayName = 'proto.gateway.web.v1.PreviewSloResponse';
558
+ }
427
559
 
428
560
 
429
561
 
@@ -4785,6 +4917,1677 @@ proto.gateway.web.v1.SloCorridorStatus.prototype.setState = function(value) {
4785
4917
  };
4786
4918
 
4787
4919
 
4920
+
4921
+
4922
+
4923
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4924
+ /**
4925
+ * Creates an object representation of this proto.
4926
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4927
+ * Optional fields that are not set will be set to undefined.
4928
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4929
+ * For the list of reserved names please see:
4930
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4931
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4932
+ * JSPB instance for transitional soy proto support:
4933
+ * http://goto/soy-param-migration
4934
+ * @return {!Object}
4935
+ */
4936
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.toObject = function(opt_includeInstance) {
4937
+ return proto.gateway.web.v1.GetSloTimelineRequest.toObject(opt_includeInstance, this);
4938
+ };
4939
+
4940
+
4941
+ /**
4942
+ * Static version of the {@see toObject} method.
4943
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4944
+ * the JSPB instance for transitional soy proto support:
4945
+ * http://goto/soy-param-migration
4946
+ * @param {!proto.gateway.web.v1.GetSloTimelineRequest} msg The msg instance to transform.
4947
+ * @return {!Object}
4948
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4949
+ */
4950
+ proto.gateway.web.v1.GetSloTimelineRequest.toObject = function(includeInstance, msg) {
4951
+ var f, obj = {
4952
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
4953
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
4954
+ sloId: jspb.Message.getFieldWithDefault(msg, 3, ""),
4955
+ endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
4956
+ bucketCount: jspb.Message.getFieldWithDefault(msg, 5, 0)
4957
+ };
4958
+
4959
+ if (includeInstance) {
4960
+ obj.$jspbMessageInstance = msg;
4961
+ }
4962
+ return obj;
4963
+ };
4964
+ }
4965
+
4966
+
4967
+ /**
4968
+ * Deserializes binary data (in protobuf wire format).
4969
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4970
+ * @return {!proto.gateway.web.v1.GetSloTimelineRequest}
4971
+ */
4972
+ proto.gateway.web.v1.GetSloTimelineRequest.deserializeBinary = function(bytes) {
4973
+ var reader = new jspb.BinaryReader(bytes);
4974
+ var msg = new proto.gateway.web.v1.GetSloTimelineRequest;
4975
+ return proto.gateway.web.v1.GetSloTimelineRequest.deserializeBinaryFromReader(msg, reader);
4976
+ };
4977
+
4978
+
4979
+ /**
4980
+ * Deserializes binary data (in protobuf wire format) from the
4981
+ * given reader into the given message object.
4982
+ * @param {!proto.gateway.web.v1.GetSloTimelineRequest} msg The message object to deserialize into.
4983
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4984
+ * @return {!proto.gateway.web.v1.GetSloTimelineRequest}
4985
+ */
4986
+ proto.gateway.web.v1.GetSloTimelineRequest.deserializeBinaryFromReader = function(msg, reader) {
4987
+ while (reader.nextField()) {
4988
+ if (reader.isEndGroup()) {
4989
+ break;
4990
+ }
4991
+ var field = reader.getFieldNumber();
4992
+ switch (field) {
4993
+ case 1:
4994
+ var value = /** @type {string} */ (reader.readString());
4995
+ msg.setOrganizationId(value);
4996
+ break;
4997
+ case 2:
4998
+ var value = /** @type {string} */ (reader.readString());
4999
+ msg.setProjectId(value);
5000
+ break;
5001
+ case 3:
5002
+ var value = /** @type {string} */ (reader.readString());
5003
+ msg.setSloId(value);
5004
+ break;
5005
+ case 4:
5006
+ var value = new google_protobuf_timestamp_pb.Timestamp;
5007
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
5008
+ msg.setEndTime(value);
5009
+ break;
5010
+ case 5:
5011
+ var value = /** @type {number} */ (reader.readUint32());
5012
+ msg.setBucketCount(value);
5013
+ break;
5014
+ default:
5015
+ reader.skipField();
5016
+ break;
5017
+ }
5018
+ }
5019
+ return msg;
5020
+ };
5021
+
5022
+
5023
+ /**
5024
+ * Serializes the message to binary data (in protobuf wire format).
5025
+ * @return {!Uint8Array}
5026
+ */
5027
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.serializeBinary = function() {
5028
+ var writer = new jspb.BinaryWriter();
5029
+ proto.gateway.web.v1.GetSloTimelineRequest.serializeBinaryToWriter(this, writer);
5030
+ return writer.getResultBuffer();
5031
+ };
5032
+
5033
+
5034
+ /**
5035
+ * Serializes the given message to binary data (in protobuf wire
5036
+ * format), writing to the given BinaryWriter.
5037
+ * @param {!proto.gateway.web.v1.GetSloTimelineRequest} message
5038
+ * @param {!jspb.BinaryWriter} writer
5039
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5040
+ */
5041
+ proto.gateway.web.v1.GetSloTimelineRequest.serializeBinaryToWriter = function(message, writer) {
5042
+ var f = undefined;
5043
+ f = message.getOrganizationId();
5044
+ if (f.length > 0) {
5045
+ writer.writeString(
5046
+ 1,
5047
+ f
5048
+ );
5049
+ }
5050
+ f = message.getProjectId();
5051
+ if (f.length > 0) {
5052
+ writer.writeString(
5053
+ 2,
5054
+ f
5055
+ );
5056
+ }
5057
+ f = message.getSloId();
5058
+ if (f.length > 0) {
5059
+ writer.writeString(
5060
+ 3,
5061
+ f
5062
+ );
5063
+ }
5064
+ f = message.getEndTime();
5065
+ if (f != null) {
5066
+ writer.writeMessage(
5067
+ 4,
5068
+ f,
5069
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
5070
+ );
5071
+ }
5072
+ f = message.getBucketCount();
5073
+ if (f !== 0) {
5074
+ writer.writeUint32(
5075
+ 5,
5076
+ f
5077
+ );
5078
+ }
5079
+ };
5080
+
5081
+
5082
+ /**
5083
+ * optional string organization_id = 1;
5084
+ * @return {string}
5085
+ */
5086
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.getOrganizationId = function() {
5087
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5088
+ };
5089
+
5090
+
5091
+ /**
5092
+ * @param {string} value
5093
+ * @return {!proto.gateway.web.v1.GetSloTimelineRequest} returns this
5094
+ */
5095
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.setOrganizationId = function(value) {
5096
+ return jspb.Message.setProto3StringField(this, 1, value);
5097
+ };
5098
+
5099
+
5100
+ /**
5101
+ * optional string project_id = 2;
5102
+ * @return {string}
5103
+ */
5104
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.getProjectId = function() {
5105
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5106
+ };
5107
+
5108
+
5109
+ /**
5110
+ * @param {string} value
5111
+ * @return {!proto.gateway.web.v1.GetSloTimelineRequest} returns this
5112
+ */
5113
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.setProjectId = function(value) {
5114
+ return jspb.Message.setProto3StringField(this, 2, value);
5115
+ };
5116
+
5117
+
5118
+ /**
5119
+ * optional string slo_id = 3;
5120
+ * @return {string}
5121
+ */
5122
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.getSloId = function() {
5123
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5124
+ };
5125
+
5126
+
5127
+ /**
5128
+ * @param {string} value
5129
+ * @return {!proto.gateway.web.v1.GetSloTimelineRequest} returns this
5130
+ */
5131
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.setSloId = function(value) {
5132
+ return jspb.Message.setProto3StringField(this, 3, value);
5133
+ };
5134
+
5135
+
5136
+ /**
5137
+ * optional google.protobuf.Timestamp end_time = 4;
5138
+ * @return {?proto.google.protobuf.Timestamp}
5139
+ */
5140
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.getEndTime = function() {
5141
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
5142
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
5143
+ };
5144
+
5145
+
5146
+ /**
5147
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
5148
+ * @return {!proto.gateway.web.v1.GetSloTimelineRequest} returns this
5149
+ */
5150
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.setEndTime = function(value) {
5151
+ return jspb.Message.setWrapperField(this, 4, value);
5152
+ };
5153
+
5154
+
5155
+ /**
5156
+ * Clears the message field making it undefined.
5157
+ * @return {!proto.gateway.web.v1.GetSloTimelineRequest} returns this
5158
+ */
5159
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.clearEndTime = function() {
5160
+ return this.setEndTime(undefined);
5161
+ };
5162
+
5163
+
5164
+ /**
5165
+ * Returns whether this field is set.
5166
+ * @return {boolean}
5167
+ */
5168
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.hasEndTime = function() {
5169
+ return jspb.Message.getField(this, 4) != null;
5170
+ };
5171
+
5172
+
5173
+ /**
5174
+ * optional uint32 bucket_count = 5;
5175
+ * @return {number}
5176
+ */
5177
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.getBucketCount = function() {
5178
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
5179
+ };
5180
+
5181
+
5182
+ /**
5183
+ * @param {number} value
5184
+ * @return {!proto.gateway.web.v1.GetSloTimelineRequest} returns this
5185
+ */
5186
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.setBucketCount = function(value) {
5187
+ return jspb.Message.setProto3IntField(this, 5, value);
5188
+ };
5189
+
5190
+
5191
+
5192
+
5193
+
5194
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5195
+ /**
5196
+ * Creates an object representation of this proto.
5197
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5198
+ * Optional fields that are not set will be set to undefined.
5199
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5200
+ * For the list of reserved names please see:
5201
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5202
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5203
+ * JSPB instance for transitional soy proto support:
5204
+ * http://goto/soy-param-migration
5205
+ * @return {!Object}
5206
+ */
5207
+ proto.gateway.web.v1.GetSloTimelineResponse.prototype.toObject = function(opt_includeInstance) {
5208
+ return proto.gateway.web.v1.GetSloTimelineResponse.toObject(opt_includeInstance, this);
5209
+ };
5210
+
5211
+
5212
+ /**
5213
+ * Static version of the {@see toObject} method.
5214
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5215
+ * the JSPB instance for transitional soy proto support:
5216
+ * http://goto/soy-param-migration
5217
+ * @param {!proto.gateway.web.v1.GetSloTimelineResponse} msg The msg instance to transform.
5218
+ * @return {!Object}
5219
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5220
+ */
5221
+ proto.gateway.web.v1.GetSloTimelineResponse.toObject = function(includeInstance, msg) {
5222
+ var f, obj = {
5223
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
5224
+ timeline: (f = msg.getTimeline()) && proto.gateway.web.v1.SloTimeline.toObject(includeInstance, f)
5225
+ };
5226
+
5227
+ if (includeInstance) {
5228
+ obj.$jspbMessageInstance = msg;
5229
+ }
5230
+ return obj;
5231
+ };
5232
+ }
5233
+
5234
+
5235
+ /**
5236
+ * Deserializes binary data (in protobuf wire format).
5237
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5238
+ * @return {!proto.gateway.web.v1.GetSloTimelineResponse}
5239
+ */
5240
+ proto.gateway.web.v1.GetSloTimelineResponse.deserializeBinary = function(bytes) {
5241
+ var reader = new jspb.BinaryReader(bytes);
5242
+ var msg = new proto.gateway.web.v1.GetSloTimelineResponse;
5243
+ return proto.gateway.web.v1.GetSloTimelineResponse.deserializeBinaryFromReader(msg, reader);
5244
+ };
5245
+
5246
+
5247
+ /**
5248
+ * Deserializes binary data (in protobuf wire format) from the
5249
+ * given reader into the given message object.
5250
+ * @param {!proto.gateway.web.v1.GetSloTimelineResponse} msg The message object to deserialize into.
5251
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5252
+ * @return {!proto.gateway.web.v1.GetSloTimelineResponse}
5253
+ */
5254
+ proto.gateway.web.v1.GetSloTimelineResponse.deserializeBinaryFromReader = function(msg, reader) {
5255
+ while (reader.nextField()) {
5256
+ if (reader.isEndGroup()) {
5257
+ break;
5258
+ }
5259
+ var field = reader.getFieldNumber();
5260
+ switch (field) {
5261
+ case 1:
5262
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
5263
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
5264
+ msg.setStatus(value);
5265
+ break;
5266
+ case 2:
5267
+ var value = new proto.gateway.web.v1.SloTimeline;
5268
+ reader.readMessage(value,proto.gateway.web.v1.SloTimeline.deserializeBinaryFromReader);
5269
+ msg.setTimeline(value);
5270
+ break;
5271
+ default:
5272
+ reader.skipField();
5273
+ break;
5274
+ }
5275
+ }
5276
+ return msg;
5277
+ };
5278
+
5279
+
5280
+ /**
5281
+ * Serializes the message to binary data (in protobuf wire format).
5282
+ * @return {!Uint8Array}
5283
+ */
5284
+ proto.gateway.web.v1.GetSloTimelineResponse.prototype.serializeBinary = function() {
5285
+ var writer = new jspb.BinaryWriter();
5286
+ proto.gateway.web.v1.GetSloTimelineResponse.serializeBinaryToWriter(this, writer);
5287
+ return writer.getResultBuffer();
5288
+ };
5289
+
5290
+
5291
+ /**
5292
+ * Serializes the given message to binary data (in protobuf wire
5293
+ * format), writing to the given BinaryWriter.
5294
+ * @param {!proto.gateway.web.v1.GetSloTimelineResponse} message
5295
+ * @param {!jspb.BinaryWriter} writer
5296
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5297
+ */
5298
+ proto.gateway.web.v1.GetSloTimelineResponse.serializeBinaryToWriter = function(message, writer) {
5299
+ var f = undefined;
5300
+ f = message.getStatus();
5301
+ if (f != null) {
5302
+ writer.writeMessage(
5303
+ 1,
5304
+ f,
5305
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
5306
+ );
5307
+ }
5308
+ f = message.getTimeline();
5309
+ if (f != null) {
5310
+ writer.writeMessage(
5311
+ 2,
5312
+ f,
5313
+ proto.gateway.web.v1.SloTimeline.serializeBinaryToWriter
5314
+ );
5315
+ }
5316
+ };
5317
+
5318
+
5319
+ /**
5320
+ * optional gateway.common.v1.ResponseStatus status = 1;
5321
+ * @return {?proto.gateway.common.v1.ResponseStatus}
5322
+ */
5323
+ proto.gateway.web.v1.GetSloTimelineResponse.prototype.getStatus = function() {
5324
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
5325
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
5326
+ };
5327
+
5328
+
5329
+ /**
5330
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
5331
+ * @return {!proto.gateway.web.v1.GetSloTimelineResponse} returns this
5332
+ */
5333
+ proto.gateway.web.v1.GetSloTimelineResponse.prototype.setStatus = function(value) {
5334
+ return jspb.Message.setWrapperField(this, 1, value);
5335
+ };
5336
+
5337
+
5338
+ /**
5339
+ * Clears the message field making it undefined.
5340
+ * @return {!proto.gateway.web.v1.GetSloTimelineResponse} returns this
5341
+ */
5342
+ proto.gateway.web.v1.GetSloTimelineResponse.prototype.clearStatus = function() {
5343
+ return this.setStatus(undefined);
5344
+ };
5345
+
5346
+
5347
+ /**
5348
+ * Returns whether this field is set.
5349
+ * @return {boolean}
5350
+ */
5351
+ proto.gateway.web.v1.GetSloTimelineResponse.prototype.hasStatus = function() {
5352
+ return jspb.Message.getField(this, 1) != null;
5353
+ };
5354
+
5355
+
5356
+ /**
5357
+ * optional SloTimeline timeline = 2;
5358
+ * @return {?proto.gateway.web.v1.SloTimeline}
5359
+ */
5360
+ proto.gateway.web.v1.GetSloTimelineResponse.prototype.getTimeline = function() {
5361
+ return /** @type{?proto.gateway.web.v1.SloTimeline} */ (
5362
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.SloTimeline, 2));
5363
+ };
5364
+
5365
+
5366
+ /**
5367
+ * @param {?proto.gateway.web.v1.SloTimeline|undefined} value
5368
+ * @return {!proto.gateway.web.v1.GetSloTimelineResponse} returns this
5369
+ */
5370
+ proto.gateway.web.v1.GetSloTimelineResponse.prototype.setTimeline = function(value) {
5371
+ return jspb.Message.setWrapperField(this, 2, value);
5372
+ };
5373
+
5374
+
5375
+ /**
5376
+ * Clears the message field making it undefined.
5377
+ * @return {!proto.gateway.web.v1.GetSloTimelineResponse} returns this
5378
+ */
5379
+ proto.gateway.web.v1.GetSloTimelineResponse.prototype.clearTimeline = function() {
5380
+ return this.setTimeline(undefined);
5381
+ };
5382
+
5383
+
5384
+ /**
5385
+ * Returns whether this field is set.
5386
+ * @return {boolean}
5387
+ */
5388
+ proto.gateway.web.v1.GetSloTimelineResponse.prototype.hasTimeline = function() {
5389
+ return jspb.Message.getField(this, 2) != null;
5390
+ };
5391
+
5392
+
5393
+
5394
+ /**
5395
+ * List of repeated fields within this message type.
5396
+ * @private {!Array<number>}
5397
+ * @const
5398
+ */
5399
+ proto.gateway.web.v1.SloTimeline.repeatedFields_ = [7];
5400
+
5401
+
5402
+
5403
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5404
+ /**
5405
+ * Creates an object representation of this proto.
5406
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5407
+ * Optional fields that are not set will be set to undefined.
5408
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5409
+ * For the list of reserved names please see:
5410
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5411
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5412
+ * JSPB instance for transitional soy proto support:
5413
+ * http://goto/soy-param-migration
5414
+ * @return {!Object}
5415
+ */
5416
+ proto.gateway.web.v1.SloTimeline.prototype.toObject = function(opt_includeInstance) {
5417
+ return proto.gateway.web.v1.SloTimeline.toObject(opt_includeInstance, this);
5418
+ };
5419
+
5420
+
5421
+ /**
5422
+ * Static version of the {@see toObject} method.
5423
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5424
+ * the JSPB instance for transitional soy proto support:
5425
+ * http://goto/soy-param-migration
5426
+ * @param {!proto.gateway.web.v1.SloTimeline} msg The msg instance to transform.
5427
+ * @return {!Object}
5428
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5429
+ */
5430
+ proto.gateway.web.v1.SloTimeline.toObject = function(includeInstance, msg) {
5431
+ var f, obj = {
5432
+ sloId: jspb.Message.getFieldWithDefault(msg, 1, ""),
5433
+ enabled: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
5434
+ target: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
5435
+ bucketSeconds: jspb.Message.getFieldWithDefault(msg, 4, 0),
5436
+ windowStart: (f = msg.getWindowStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
5437
+ windowEnd: (f = msg.getWindowEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
5438
+ bucketsList: jspb.Message.toObjectList(msg.getBucketsList(),
5439
+ proto.gateway.web.v1.SloTimelineBucket.toObject, includeInstance)
5440
+ };
5441
+
5442
+ if (includeInstance) {
5443
+ obj.$jspbMessageInstance = msg;
5444
+ }
5445
+ return obj;
5446
+ };
5447
+ }
5448
+
5449
+
5450
+ /**
5451
+ * Deserializes binary data (in protobuf wire format).
5452
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5453
+ * @return {!proto.gateway.web.v1.SloTimeline}
5454
+ */
5455
+ proto.gateway.web.v1.SloTimeline.deserializeBinary = function(bytes) {
5456
+ var reader = new jspb.BinaryReader(bytes);
5457
+ var msg = new proto.gateway.web.v1.SloTimeline;
5458
+ return proto.gateway.web.v1.SloTimeline.deserializeBinaryFromReader(msg, reader);
5459
+ };
5460
+
5461
+
5462
+ /**
5463
+ * Deserializes binary data (in protobuf wire format) from the
5464
+ * given reader into the given message object.
5465
+ * @param {!proto.gateway.web.v1.SloTimeline} msg The message object to deserialize into.
5466
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5467
+ * @return {!proto.gateway.web.v1.SloTimeline}
5468
+ */
5469
+ proto.gateway.web.v1.SloTimeline.deserializeBinaryFromReader = function(msg, reader) {
5470
+ while (reader.nextField()) {
5471
+ if (reader.isEndGroup()) {
5472
+ break;
5473
+ }
5474
+ var field = reader.getFieldNumber();
5475
+ switch (field) {
5476
+ case 1:
5477
+ var value = /** @type {string} */ (reader.readString());
5478
+ msg.setSloId(value);
5479
+ break;
5480
+ case 2:
5481
+ var value = /** @type {boolean} */ (reader.readBool());
5482
+ msg.setEnabled(value);
5483
+ break;
5484
+ case 3:
5485
+ var value = /** @type {number} */ (reader.readDouble());
5486
+ msg.setTarget(value);
5487
+ break;
5488
+ case 4:
5489
+ var value = /** @type {number} */ (reader.readInt64());
5490
+ msg.setBucketSeconds(value);
5491
+ break;
5492
+ case 5:
5493
+ var value = new google_protobuf_timestamp_pb.Timestamp;
5494
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
5495
+ msg.setWindowStart(value);
5496
+ break;
5497
+ case 6:
5498
+ var value = new google_protobuf_timestamp_pb.Timestamp;
5499
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
5500
+ msg.setWindowEnd(value);
5501
+ break;
5502
+ case 7:
5503
+ var value = new proto.gateway.web.v1.SloTimelineBucket;
5504
+ reader.readMessage(value,proto.gateway.web.v1.SloTimelineBucket.deserializeBinaryFromReader);
5505
+ msg.addBuckets(value);
5506
+ break;
5507
+ default:
5508
+ reader.skipField();
5509
+ break;
5510
+ }
5511
+ }
5512
+ return msg;
5513
+ };
5514
+
5515
+
5516
+ /**
5517
+ * Serializes the message to binary data (in protobuf wire format).
5518
+ * @return {!Uint8Array}
5519
+ */
5520
+ proto.gateway.web.v1.SloTimeline.prototype.serializeBinary = function() {
5521
+ var writer = new jspb.BinaryWriter();
5522
+ proto.gateway.web.v1.SloTimeline.serializeBinaryToWriter(this, writer);
5523
+ return writer.getResultBuffer();
5524
+ };
5525
+
5526
+
5527
+ /**
5528
+ * Serializes the given message to binary data (in protobuf wire
5529
+ * format), writing to the given BinaryWriter.
5530
+ * @param {!proto.gateway.web.v1.SloTimeline} message
5531
+ * @param {!jspb.BinaryWriter} writer
5532
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5533
+ */
5534
+ proto.gateway.web.v1.SloTimeline.serializeBinaryToWriter = function(message, writer) {
5535
+ var f = undefined;
5536
+ f = message.getSloId();
5537
+ if (f.length > 0) {
5538
+ writer.writeString(
5539
+ 1,
5540
+ f
5541
+ );
5542
+ }
5543
+ f = message.getEnabled();
5544
+ if (f) {
5545
+ writer.writeBool(
5546
+ 2,
5547
+ f
5548
+ );
5549
+ }
5550
+ f = message.getTarget();
5551
+ if (f !== 0.0) {
5552
+ writer.writeDouble(
5553
+ 3,
5554
+ f
5555
+ );
5556
+ }
5557
+ f = message.getBucketSeconds();
5558
+ if (f !== 0) {
5559
+ writer.writeInt64(
5560
+ 4,
5561
+ f
5562
+ );
5563
+ }
5564
+ f = message.getWindowStart();
5565
+ if (f != null) {
5566
+ writer.writeMessage(
5567
+ 5,
5568
+ f,
5569
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
5570
+ );
5571
+ }
5572
+ f = message.getWindowEnd();
5573
+ if (f != null) {
5574
+ writer.writeMessage(
5575
+ 6,
5576
+ f,
5577
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
5578
+ );
5579
+ }
5580
+ f = message.getBucketsList();
5581
+ if (f.length > 0) {
5582
+ writer.writeRepeatedMessage(
5583
+ 7,
5584
+ f,
5585
+ proto.gateway.web.v1.SloTimelineBucket.serializeBinaryToWriter
5586
+ );
5587
+ }
5588
+ };
5589
+
5590
+
5591
+ /**
5592
+ * optional string slo_id = 1;
5593
+ * @return {string}
5594
+ */
5595
+ proto.gateway.web.v1.SloTimeline.prototype.getSloId = function() {
5596
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5597
+ };
5598
+
5599
+
5600
+ /**
5601
+ * @param {string} value
5602
+ * @return {!proto.gateway.web.v1.SloTimeline} returns this
5603
+ */
5604
+ proto.gateway.web.v1.SloTimeline.prototype.setSloId = function(value) {
5605
+ return jspb.Message.setProto3StringField(this, 1, value);
5606
+ };
5607
+
5608
+
5609
+ /**
5610
+ * optional bool enabled = 2;
5611
+ * @return {boolean}
5612
+ */
5613
+ proto.gateway.web.v1.SloTimeline.prototype.getEnabled = function() {
5614
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
5615
+ };
5616
+
5617
+
5618
+ /**
5619
+ * @param {boolean} value
5620
+ * @return {!proto.gateway.web.v1.SloTimeline} returns this
5621
+ */
5622
+ proto.gateway.web.v1.SloTimeline.prototype.setEnabled = function(value) {
5623
+ return jspb.Message.setProto3BooleanField(this, 2, value);
5624
+ };
5625
+
5626
+
5627
+ /**
5628
+ * optional double target = 3;
5629
+ * @return {number}
5630
+ */
5631
+ proto.gateway.web.v1.SloTimeline.prototype.getTarget = function() {
5632
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
5633
+ };
5634
+
5635
+
5636
+ /**
5637
+ * @param {number} value
5638
+ * @return {!proto.gateway.web.v1.SloTimeline} returns this
5639
+ */
5640
+ proto.gateway.web.v1.SloTimeline.prototype.setTarget = function(value) {
5641
+ return jspb.Message.setProto3FloatField(this, 3, value);
5642
+ };
5643
+
5644
+
5645
+ /**
5646
+ * optional int64 bucket_seconds = 4;
5647
+ * @return {number}
5648
+ */
5649
+ proto.gateway.web.v1.SloTimeline.prototype.getBucketSeconds = function() {
5650
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
5651
+ };
5652
+
5653
+
5654
+ /**
5655
+ * @param {number} value
5656
+ * @return {!proto.gateway.web.v1.SloTimeline} returns this
5657
+ */
5658
+ proto.gateway.web.v1.SloTimeline.prototype.setBucketSeconds = function(value) {
5659
+ return jspb.Message.setProto3IntField(this, 4, value);
5660
+ };
5661
+
5662
+
5663
+ /**
5664
+ * optional google.protobuf.Timestamp window_start = 5;
5665
+ * @return {?proto.google.protobuf.Timestamp}
5666
+ */
5667
+ proto.gateway.web.v1.SloTimeline.prototype.getWindowStart = function() {
5668
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
5669
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
5670
+ };
5671
+
5672
+
5673
+ /**
5674
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
5675
+ * @return {!proto.gateway.web.v1.SloTimeline} returns this
5676
+ */
5677
+ proto.gateway.web.v1.SloTimeline.prototype.setWindowStart = function(value) {
5678
+ return jspb.Message.setWrapperField(this, 5, value);
5679
+ };
5680
+
5681
+
5682
+ /**
5683
+ * Clears the message field making it undefined.
5684
+ * @return {!proto.gateway.web.v1.SloTimeline} returns this
5685
+ */
5686
+ proto.gateway.web.v1.SloTimeline.prototype.clearWindowStart = function() {
5687
+ return this.setWindowStart(undefined);
5688
+ };
5689
+
5690
+
5691
+ /**
5692
+ * Returns whether this field is set.
5693
+ * @return {boolean}
5694
+ */
5695
+ proto.gateway.web.v1.SloTimeline.prototype.hasWindowStart = function() {
5696
+ return jspb.Message.getField(this, 5) != null;
5697
+ };
5698
+
5699
+
5700
+ /**
5701
+ * optional google.protobuf.Timestamp window_end = 6;
5702
+ * @return {?proto.google.protobuf.Timestamp}
5703
+ */
5704
+ proto.gateway.web.v1.SloTimeline.prototype.getWindowEnd = function() {
5705
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
5706
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
5707
+ };
5708
+
5709
+
5710
+ /**
5711
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
5712
+ * @return {!proto.gateway.web.v1.SloTimeline} returns this
5713
+ */
5714
+ proto.gateway.web.v1.SloTimeline.prototype.setWindowEnd = function(value) {
5715
+ return jspb.Message.setWrapperField(this, 6, value);
5716
+ };
5717
+
5718
+
5719
+ /**
5720
+ * Clears the message field making it undefined.
5721
+ * @return {!proto.gateway.web.v1.SloTimeline} returns this
5722
+ */
5723
+ proto.gateway.web.v1.SloTimeline.prototype.clearWindowEnd = function() {
5724
+ return this.setWindowEnd(undefined);
5725
+ };
5726
+
5727
+
5728
+ /**
5729
+ * Returns whether this field is set.
5730
+ * @return {boolean}
5731
+ */
5732
+ proto.gateway.web.v1.SloTimeline.prototype.hasWindowEnd = function() {
5733
+ return jspb.Message.getField(this, 6) != null;
5734
+ };
5735
+
5736
+
5737
+ /**
5738
+ * repeated SloTimelineBucket buckets = 7;
5739
+ * @return {!Array<!proto.gateway.web.v1.SloTimelineBucket>}
5740
+ */
5741
+ proto.gateway.web.v1.SloTimeline.prototype.getBucketsList = function() {
5742
+ return /** @type{!Array<!proto.gateway.web.v1.SloTimelineBucket>} */ (
5743
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SloTimelineBucket, 7));
5744
+ };
5745
+
5746
+
5747
+ /**
5748
+ * @param {!Array<!proto.gateway.web.v1.SloTimelineBucket>} value
5749
+ * @return {!proto.gateway.web.v1.SloTimeline} returns this
5750
+ */
5751
+ proto.gateway.web.v1.SloTimeline.prototype.setBucketsList = function(value) {
5752
+ return jspb.Message.setRepeatedWrapperField(this, 7, value);
5753
+ };
5754
+
5755
+
5756
+ /**
5757
+ * @param {!proto.gateway.web.v1.SloTimelineBucket=} opt_value
5758
+ * @param {number=} opt_index
5759
+ * @return {!proto.gateway.web.v1.SloTimelineBucket}
5760
+ */
5761
+ proto.gateway.web.v1.SloTimeline.prototype.addBuckets = function(opt_value, opt_index) {
5762
+ return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.gateway.web.v1.SloTimelineBucket, opt_index);
5763
+ };
5764
+
5765
+
5766
+ /**
5767
+ * Clears the list making it empty but non-null.
5768
+ * @return {!proto.gateway.web.v1.SloTimeline} returns this
5769
+ */
5770
+ proto.gateway.web.v1.SloTimeline.prototype.clearBucketsList = function() {
5771
+ return this.setBucketsList([]);
5772
+ };
5773
+
5774
+
5775
+
5776
+
5777
+
5778
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5779
+ /**
5780
+ * Creates an object representation of this proto.
5781
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5782
+ * Optional fields that are not set will be set to undefined.
5783
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5784
+ * For the list of reserved names please see:
5785
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5786
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5787
+ * JSPB instance for transitional soy proto support:
5788
+ * http://goto/soy-param-migration
5789
+ * @return {!Object}
5790
+ */
5791
+ proto.gateway.web.v1.SloTimelineBucket.prototype.toObject = function(opt_includeInstance) {
5792
+ return proto.gateway.web.v1.SloTimelineBucket.toObject(opt_includeInstance, this);
5793
+ };
5794
+
5795
+
5796
+ /**
5797
+ * Static version of the {@see toObject} method.
5798
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5799
+ * the JSPB instance for transitional soy proto support:
5800
+ * http://goto/soy-param-migration
5801
+ * @param {!proto.gateway.web.v1.SloTimelineBucket} msg The msg instance to transform.
5802
+ * @return {!Object}
5803
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5804
+ */
5805
+ proto.gateway.web.v1.SloTimelineBucket.toObject = function(includeInstance, msg) {
5806
+ var f, obj = {
5807
+ bucketStart: (f = msg.getBucketStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
5808
+ eligibleCount: jspb.Message.getFieldWithDefault(msg, 2, 0),
5809
+ goodCount: jspb.Message.getFieldWithDefault(msg, 3, 0),
5810
+ compliance: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
5811
+ state: jspb.Message.getFieldWithDefault(msg, 5, 0)
5812
+ };
5813
+
5814
+ if (includeInstance) {
5815
+ obj.$jspbMessageInstance = msg;
5816
+ }
5817
+ return obj;
5818
+ };
5819
+ }
5820
+
5821
+
5822
+ /**
5823
+ * Deserializes binary data (in protobuf wire format).
5824
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5825
+ * @return {!proto.gateway.web.v1.SloTimelineBucket}
5826
+ */
5827
+ proto.gateway.web.v1.SloTimelineBucket.deserializeBinary = function(bytes) {
5828
+ var reader = new jspb.BinaryReader(bytes);
5829
+ var msg = new proto.gateway.web.v1.SloTimelineBucket;
5830
+ return proto.gateway.web.v1.SloTimelineBucket.deserializeBinaryFromReader(msg, reader);
5831
+ };
5832
+
5833
+
5834
+ /**
5835
+ * Deserializes binary data (in protobuf wire format) from the
5836
+ * given reader into the given message object.
5837
+ * @param {!proto.gateway.web.v1.SloTimelineBucket} msg The message object to deserialize into.
5838
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5839
+ * @return {!proto.gateway.web.v1.SloTimelineBucket}
5840
+ */
5841
+ proto.gateway.web.v1.SloTimelineBucket.deserializeBinaryFromReader = function(msg, reader) {
5842
+ while (reader.nextField()) {
5843
+ if (reader.isEndGroup()) {
5844
+ break;
5845
+ }
5846
+ var field = reader.getFieldNumber();
5847
+ switch (field) {
5848
+ case 1:
5849
+ var value = new google_protobuf_timestamp_pb.Timestamp;
5850
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
5851
+ msg.setBucketStart(value);
5852
+ break;
5853
+ case 2:
5854
+ var value = /** @type {number} */ (reader.readUint64());
5855
+ msg.setEligibleCount(value);
5856
+ break;
5857
+ case 3:
5858
+ var value = /** @type {number} */ (reader.readUint64());
5859
+ msg.setGoodCount(value);
5860
+ break;
5861
+ case 4:
5862
+ var value = /** @type {number} */ (reader.readDouble());
5863
+ msg.setCompliance(value);
5864
+ break;
5865
+ case 5:
5866
+ var value = /** @type {!proto.gateway.web.v1.SloCorridorState} */ (reader.readEnum());
5867
+ msg.setState(value);
5868
+ break;
5869
+ default:
5870
+ reader.skipField();
5871
+ break;
5872
+ }
5873
+ }
5874
+ return msg;
5875
+ };
5876
+
5877
+
5878
+ /**
5879
+ * Serializes the message to binary data (in protobuf wire format).
5880
+ * @return {!Uint8Array}
5881
+ */
5882
+ proto.gateway.web.v1.SloTimelineBucket.prototype.serializeBinary = function() {
5883
+ var writer = new jspb.BinaryWriter();
5884
+ proto.gateway.web.v1.SloTimelineBucket.serializeBinaryToWriter(this, writer);
5885
+ return writer.getResultBuffer();
5886
+ };
5887
+
5888
+
5889
+ /**
5890
+ * Serializes the given message to binary data (in protobuf wire
5891
+ * format), writing to the given BinaryWriter.
5892
+ * @param {!proto.gateway.web.v1.SloTimelineBucket} message
5893
+ * @param {!jspb.BinaryWriter} writer
5894
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5895
+ */
5896
+ proto.gateway.web.v1.SloTimelineBucket.serializeBinaryToWriter = function(message, writer) {
5897
+ var f = undefined;
5898
+ f = message.getBucketStart();
5899
+ if (f != null) {
5900
+ writer.writeMessage(
5901
+ 1,
5902
+ f,
5903
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
5904
+ );
5905
+ }
5906
+ f = message.getEligibleCount();
5907
+ if (f !== 0) {
5908
+ writer.writeUint64(
5909
+ 2,
5910
+ f
5911
+ );
5912
+ }
5913
+ f = message.getGoodCount();
5914
+ if (f !== 0) {
5915
+ writer.writeUint64(
5916
+ 3,
5917
+ f
5918
+ );
5919
+ }
5920
+ f = message.getCompliance();
5921
+ if (f !== 0.0) {
5922
+ writer.writeDouble(
5923
+ 4,
5924
+ f
5925
+ );
5926
+ }
5927
+ f = message.getState();
5928
+ if (f !== 0.0) {
5929
+ writer.writeEnum(
5930
+ 5,
5931
+ f
5932
+ );
5933
+ }
5934
+ };
5935
+
5936
+
5937
+ /**
5938
+ * optional google.protobuf.Timestamp bucket_start = 1;
5939
+ * @return {?proto.google.protobuf.Timestamp}
5940
+ */
5941
+ proto.gateway.web.v1.SloTimelineBucket.prototype.getBucketStart = function() {
5942
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
5943
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
5944
+ };
5945
+
5946
+
5947
+ /**
5948
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
5949
+ * @return {!proto.gateway.web.v1.SloTimelineBucket} returns this
5950
+ */
5951
+ proto.gateway.web.v1.SloTimelineBucket.prototype.setBucketStart = function(value) {
5952
+ return jspb.Message.setWrapperField(this, 1, value);
5953
+ };
5954
+
5955
+
5956
+ /**
5957
+ * Clears the message field making it undefined.
5958
+ * @return {!proto.gateway.web.v1.SloTimelineBucket} returns this
5959
+ */
5960
+ proto.gateway.web.v1.SloTimelineBucket.prototype.clearBucketStart = function() {
5961
+ return this.setBucketStart(undefined);
5962
+ };
5963
+
5964
+
5965
+ /**
5966
+ * Returns whether this field is set.
5967
+ * @return {boolean}
5968
+ */
5969
+ proto.gateway.web.v1.SloTimelineBucket.prototype.hasBucketStart = function() {
5970
+ return jspb.Message.getField(this, 1) != null;
5971
+ };
5972
+
5973
+
5974
+ /**
5975
+ * optional uint64 eligible_count = 2;
5976
+ * @return {number}
5977
+ */
5978
+ proto.gateway.web.v1.SloTimelineBucket.prototype.getEligibleCount = function() {
5979
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
5980
+ };
5981
+
5982
+
5983
+ /**
5984
+ * @param {number} value
5985
+ * @return {!proto.gateway.web.v1.SloTimelineBucket} returns this
5986
+ */
5987
+ proto.gateway.web.v1.SloTimelineBucket.prototype.setEligibleCount = function(value) {
5988
+ return jspb.Message.setProto3IntField(this, 2, value);
5989
+ };
5990
+
5991
+
5992
+ /**
5993
+ * optional uint64 good_count = 3;
5994
+ * @return {number}
5995
+ */
5996
+ proto.gateway.web.v1.SloTimelineBucket.prototype.getGoodCount = function() {
5997
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
5998
+ };
5999
+
6000
+
6001
+ /**
6002
+ * @param {number} value
6003
+ * @return {!proto.gateway.web.v1.SloTimelineBucket} returns this
6004
+ */
6005
+ proto.gateway.web.v1.SloTimelineBucket.prototype.setGoodCount = function(value) {
6006
+ return jspb.Message.setProto3IntField(this, 3, value);
6007
+ };
6008
+
6009
+
6010
+ /**
6011
+ * optional double compliance = 4;
6012
+ * @return {number}
6013
+ */
6014
+ proto.gateway.web.v1.SloTimelineBucket.prototype.getCompliance = function() {
6015
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
6016
+ };
6017
+
6018
+
6019
+ /**
6020
+ * @param {number} value
6021
+ * @return {!proto.gateway.web.v1.SloTimelineBucket} returns this
6022
+ */
6023
+ proto.gateway.web.v1.SloTimelineBucket.prototype.setCompliance = function(value) {
6024
+ return jspb.Message.setProto3FloatField(this, 4, value);
6025
+ };
6026
+
6027
+
6028
+ /**
6029
+ * optional SloCorridorState state = 5;
6030
+ * @return {!proto.gateway.web.v1.SloCorridorState}
6031
+ */
6032
+ proto.gateway.web.v1.SloTimelineBucket.prototype.getState = function() {
6033
+ return /** @type {!proto.gateway.web.v1.SloCorridorState} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
6034
+ };
6035
+
6036
+
6037
+ /**
6038
+ * @param {!proto.gateway.web.v1.SloCorridorState} value
6039
+ * @return {!proto.gateway.web.v1.SloTimelineBucket} returns this
6040
+ */
6041
+ proto.gateway.web.v1.SloTimelineBucket.prototype.setState = function(value) {
6042
+ return jspb.Message.setProto3EnumField(this, 5, value);
6043
+ };
6044
+
6045
+
6046
+
6047
+
6048
+
6049
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6050
+ /**
6051
+ * Creates an object representation of this proto.
6052
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6053
+ * Optional fields that are not set will be set to undefined.
6054
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6055
+ * For the list of reserved names please see:
6056
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6057
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6058
+ * JSPB instance for transitional soy proto support:
6059
+ * http://goto/soy-param-migration
6060
+ * @return {!Object}
6061
+ */
6062
+ proto.gateway.web.v1.PreviewSloRequest.prototype.toObject = function(opt_includeInstance) {
6063
+ return proto.gateway.web.v1.PreviewSloRequest.toObject(opt_includeInstance, this);
6064
+ };
6065
+
6066
+
6067
+ /**
6068
+ * Static version of the {@see toObject} method.
6069
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6070
+ * the JSPB instance for transitional soy proto support:
6071
+ * http://goto/soy-param-migration
6072
+ * @param {!proto.gateway.web.v1.PreviewSloRequest} msg The msg instance to transform.
6073
+ * @return {!Object}
6074
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6075
+ */
6076
+ proto.gateway.web.v1.PreviewSloRequest.toObject = function(includeInstance, msg) {
6077
+ var f, obj = {
6078
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
6079
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
6080
+ objective: (f = msg.getObjective()) && proto.gateway.web.v1.SloObjective.toObject(includeInstance, f),
6081
+ evaluationTime: (f = msg.getEvaluationTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
6082
+ bucketCount: jspb.Message.getFieldWithDefault(msg, 5, 0)
6083
+ };
6084
+
6085
+ if (includeInstance) {
6086
+ obj.$jspbMessageInstance = msg;
6087
+ }
6088
+ return obj;
6089
+ };
6090
+ }
6091
+
6092
+
6093
+ /**
6094
+ * Deserializes binary data (in protobuf wire format).
6095
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6096
+ * @return {!proto.gateway.web.v1.PreviewSloRequest}
6097
+ */
6098
+ proto.gateway.web.v1.PreviewSloRequest.deserializeBinary = function(bytes) {
6099
+ var reader = new jspb.BinaryReader(bytes);
6100
+ var msg = new proto.gateway.web.v1.PreviewSloRequest;
6101
+ return proto.gateway.web.v1.PreviewSloRequest.deserializeBinaryFromReader(msg, reader);
6102
+ };
6103
+
6104
+
6105
+ /**
6106
+ * Deserializes binary data (in protobuf wire format) from the
6107
+ * given reader into the given message object.
6108
+ * @param {!proto.gateway.web.v1.PreviewSloRequest} msg The message object to deserialize into.
6109
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6110
+ * @return {!proto.gateway.web.v1.PreviewSloRequest}
6111
+ */
6112
+ proto.gateway.web.v1.PreviewSloRequest.deserializeBinaryFromReader = function(msg, reader) {
6113
+ while (reader.nextField()) {
6114
+ if (reader.isEndGroup()) {
6115
+ break;
6116
+ }
6117
+ var field = reader.getFieldNumber();
6118
+ switch (field) {
6119
+ case 1:
6120
+ var value = /** @type {string} */ (reader.readString());
6121
+ msg.setOrganizationId(value);
6122
+ break;
6123
+ case 2:
6124
+ var value = /** @type {string} */ (reader.readString());
6125
+ msg.setProjectId(value);
6126
+ break;
6127
+ case 3:
6128
+ var value = new proto.gateway.web.v1.SloObjective;
6129
+ reader.readMessage(value,proto.gateway.web.v1.SloObjective.deserializeBinaryFromReader);
6130
+ msg.setObjective(value);
6131
+ break;
6132
+ case 4:
6133
+ var value = new google_protobuf_timestamp_pb.Timestamp;
6134
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
6135
+ msg.setEvaluationTime(value);
6136
+ break;
6137
+ case 5:
6138
+ var value = /** @type {number} */ (reader.readUint32());
6139
+ msg.setBucketCount(value);
6140
+ break;
6141
+ default:
6142
+ reader.skipField();
6143
+ break;
6144
+ }
6145
+ }
6146
+ return msg;
6147
+ };
6148
+
6149
+
6150
+ /**
6151
+ * Serializes the message to binary data (in protobuf wire format).
6152
+ * @return {!Uint8Array}
6153
+ */
6154
+ proto.gateway.web.v1.PreviewSloRequest.prototype.serializeBinary = function() {
6155
+ var writer = new jspb.BinaryWriter();
6156
+ proto.gateway.web.v1.PreviewSloRequest.serializeBinaryToWriter(this, writer);
6157
+ return writer.getResultBuffer();
6158
+ };
6159
+
6160
+
6161
+ /**
6162
+ * Serializes the given message to binary data (in protobuf wire
6163
+ * format), writing to the given BinaryWriter.
6164
+ * @param {!proto.gateway.web.v1.PreviewSloRequest} message
6165
+ * @param {!jspb.BinaryWriter} writer
6166
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6167
+ */
6168
+ proto.gateway.web.v1.PreviewSloRequest.serializeBinaryToWriter = function(message, writer) {
6169
+ var f = undefined;
6170
+ f = message.getOrganizationId();
6171
+ if (f.length > 0) {
6172
+ writer.writeString(
6173
+ 1,
6174
+ f
6175
+ );
6176
+ }
6177
+ f = message.getProjectId();
6178
+ if (f.length > 0) {
6179
+ writer.writeString(
6180
+ 2,
6181
+ f
6182
+ );
6183
+ }
6184
+ f = message.getObjective();
6185
+ if (f != null) {
6186
+ writer.writeMessage(
6187
+ 3,
6188
+ f,
6189
+ proto.gateway.web.v1.SloObjective.serializeBinaryToWriter
6190
+ );
6191
+ }
6192
+ f = message.getEvaluationTime();
6193
+ if (f != null) {
6194
+ writer.writeMessage(
6195
+ 4,
6196
+ f,
6197
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
6198
+ );
6199
+ }
6200
+ f = message.getBucketCount();
6201
+ if (f !== 0) {
6202
+ writer.writeUint32(
6203
+ 5,
6204
+ f
6205
+ );
6206
+ }
6207
+ };
6208
+
6209
+
6210
+ /**
6211
+ * optional string organization_id = 1;
6212
+ * @return {string}
6213
+ */
6214
+ proto.gateway.web.v1.PreviewSloRequest.prototype.getOrganizationId = function() {
6215
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6216
+ };
6217
+
6218
+
6219
+ /**
6220
+ * @param {string} value
6221
+ * @return {!proto.gateway.web.v1.PreviewSloRequest} returns this
6222
+ */
6223
+ proto.gateway.web.v1.PreviewSloRequest.prototype.setOrganizationId = function(value) {
6224
+ return jspb.Message.setProto3StringField(this, 1, value);
6225
+ };
6226
+
6227
+
6228
+ /**
6229
+ * optional string project_id = 2;
6230
+ * @return {string}
6231
+ */
6232
+ proto.gateway.web.v1.PreviewSloRequest.prototype.getProjectId = function() {
6233
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
6234
+ };
6235
+
6236
+
6237
+ /**
6238
+ * @param {string} value
6239
+ * @return {!proto.gateway.web.v1.PreviewSloRequest} returns this
6240
+ */
6241
+ proto.gateway.web.v1.PreviewSloRequest.prototype.setProjectId = function(value) {
6242
+ return jspb.Message.setProto3StringField(this, 2, value);
6243
+ };
6244
+
6245
+
6246
+ /**
6247
+ * optional SloObjective objective = 3;
6248
+ * @return {?proto.gateway.web.v1.SloObjective}
6249
+ */
6250
+ proto.gateway.web.v1.PreviewSloRequest.prototype.getObjective = function() {
6251
+ return /** @type{?proto.gateway.web.v1.SloObjective} */ (
6252
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.SloObjective, 3));
6253
+ };
6254
+
6255
+
6256
+ /**
6257
+ * @param {?proto.gateway.web.v1.SloObjective|undefined} value
6258
+ * @return {!proto.gateway.web.v1.PreviewSloRequest} returns this
6259
+ */
6260
+ proto.gateway.web.v1.PreviewSloRequest.prototype.setObjective = function(value) {
6261
+ return jspb.Message.setWrapperField(this, 3, value);
6262
+ };
6263
+
6264
+
6265
+ /**
6266
+ * Clears the message field making it undefined.
6267
+ * @return {!proto.gateway.web.v1.PreviewSloRequest} returns this
6268
+ */
6269
+ proto.gateway.web.v1.PreviewSloRequest.prototype.clearObjective = function() {
6270
+ return this.setObjective(undefined);
6271
+ };
6272
+
6273
+
6274
+ /**
6275
+ * Returns whether this field is set.
6276
+ * @return {boolean}
6277
+ */
6278
+ proto.gateway.web.v1.PreviewSloRequest.prototype.hasObjective = function() {
6279
+ return jspb.Message.getField(this, 3) != null;
6280
+ };
6281
+
6282
+
6283
+ /**
6284
+ * optional google.protobuf.Timestamp evaluation_time = 4;
6285
+ * @return {?proto.google.protobuf.Timestamp}
6286
+ */
6287
+ proto.gateway.web.v1.PreviewSloRequest.prototype.getEvaluationTime = function() {
6288
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
6289
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
6290
+ };
6291
+
6292
+
6293
+ /**
6294
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
6295
+ * @return {!proto.gateway.web.v1.PreviewSloRequest} returns this
6296
+ */
6297
+ proto.gateway.web.v1.PreviewSloRequest.prototype.setEvaluationTime = function(value) {
6298
+ return jspb.Message.setWrapperField(this, 4, value);
6299
+ };
6300
+
6301
+
6302
+ /**
6303
+ * Clears the message field making it undefined.
6304
+ * @return {!proto.gateway.web.v1.PreviewSloRequest} returns this
6305
+ */
6306
+ proto.gateway.web.v1.PreviewSloRequest.prototype.clearEvaluationTime = function() {
6307
+ return this.setEvaluationTime(undefined);
6308
+ };
6309
+
6310
+
6311
+ /**
6312
+ * Returns whether this field is set.
6313
+ * @return {boolean}
6314
+ */
6315
+ proto.gateway.web.v1.PreviewSloRequest.prototype.hasEvaluationTime = function() {
6316
+ return jspb.Message.getField(this, 4) != null;
6317
+ };
6318
+
6319
+
6320
+ /**
6321
+ * optional uint32 bucket_count = 5;
6322
+ * @return {number}
6323
+ */
6324
+ proto.gateway.web.v1.PreviewSloRequest.prototype.getBucketCount = function() {
6325
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
6326
+ };
6327
+
6328
+
6329
+ /**
6330
+ * @param {number} value
6331
+ * @return {!proto.gateway.web.v1.PreviewSloRequest} returns this
6332
+ */
6333
+ proto.gateway.web.v1.PreviewSloRequest.prototype.setBucketCount = function(value) {
6334
+ return jspb.Message.setProto3IntField(this, 5, value);
6335
+ };
6336
+
6337
+
6338
+
6339
+
6340
+
6341
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6342
+ /**
6343
+ * Creates an object representation of this proto.
6344
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6345
+ * Optional fields that are not set will be set to undefined.
6346
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6347
+ * For the list of reserved names please see:
6348
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6349
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6350
+ * JSPB instance for transitional soy proto support:
6351
+ * http://goto/soy-param-migration
6352
+ * @return {!Object}
6353
+ */
6354
+ proto.gateway.web.v1.PreviewSloResponse.prototype.toObject = function(opt_includeInstance) {
6355
+ return proto.gateway.web.v1.PreviewSloResponse.toObject(opt_includeInstance, this);
6356
+ };
6357
+
6358
+
6359
+ /**
6360
+ * Static version of the {@see toObject} method.
6361
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6362
+ * the JSPB instance for transitional soy proto support:
6363
+ * http://goto/soy-param-migration
6364
+ * @param {!proto.gateway.web.v1.PreviewSloResponse} msg The msg instance to transform.
6365
+ * @return {!Object}
6366
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6367
+ */
6368
+ proto.gateway.web.v1.PreviewSloResponse.toObject = function(includeInstance, msg) {
6369
+ var f, obj = {
6370
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
6371
+ sloStatus: (f = msg.getSloStatus()) && proto.gateway.web.v1.SloStatus.toObject(includeInstance, f),
6372
+ timeline: (f = msg.getTimeline()) && proto.gateway.web.v1.SloTimeline.toObject(includeInstance, f)
6373
+ };
6374
+
6375
+ if (includeInstance) {
6376
+ obj.$jspbMessageInstance = msg;
6377
+ }
6378
+ return obj;
6379
+ };
6380
+ }
6381
+
6382
+
6383
+ /**
6384
+ * Deserializes binary data (in protobuf wire format).
6385
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6386
+ * @return {!proto.gateway.web.v1.PreviewSloResponse}
6387
+ */
6388
+ proto.gateway.web.v1.PreviewSloResponse.deserializeBinary = function(bytes) {
6389
+ var reader = new jspb.BinaryReader(bytes);
6390
+ var msg = new proto.gateway.web.v1.PreviewSloResponse;
6391
+ return proto.gateway.web.v1.PreviewSloResponse.deserializeBinaryFromReader(msg, reader);
6392
+ };
6393
+
6394
+
6395
+ /**
6396
+ * Deserializes binary data (in protobuf wire format) from the
6397
+ * given reader into the given message object.
6398
+ * @param {!proto.gateway.web.v1.PreviewSloResponse} msg The message object to deserialize into.
6399
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6400
+ * @return {!proto.gateway.web.v1.PreviewSloResponse}
6401
+ */
6402
+ proto.gateway.web.v1.PreviewSloResponse.deserializeBinaryFromReader = function(msg, reader) {
6403
+ while (reader.nextField()) {
6404
+ if (reader.isEndGroup()) {
6405
+ break;
6406
+ }
6407
+ var field = reader.getFieldNumber();
6408
+ switch (field) {
6409
+ case 1:
6410
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
6411
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
6412
+ msg.setStatus(value);
6413
+ break;
6414
+ case 2:
6415
+ var value = new proto.gateway.web.v1.SloStatus;
6416
+ reader.readMessage(value,proto.gateway.web.v1.SloStatus.deserializeBinaryFromReader);
6417
+ msg.setSloStatus(value);
6418
+ break;
6419
+ case 3:
6420
+ var value = new proto.gateway.web.v1.SloTimeline;
6421
+ reader.readMessage(value,proto.gateway.web.v1.SloTimeline.deserializeBinaryFromReader);
6422
+ msg.setTimeline(value);
6423
+ break;
6424
+ default:
6425
+ reader.skipField();
6426
+ break;
6427
+ }
6428
+ }
6429
+ return msg;
6430
+ };
6431
+
6432
+
6433
+ /**
6434
+ * Serializes the message to binary data (in protobuf wire format).
6435
+ * @return {!Uint8Array}
6436
+ */
6437
+ proto.gateway.web.v1.PreviewSloResponse.prototype.serializeBinary = function() {
6438
+ var writer = new jspb.BinaryWriter();
6439
+ proto.gateway.web.v1.PreviewSloResponse.serializeBinaryToWriter(this, writer);
6440
+ return writer.getResultBuffer();
6441
+ };
6442
+
6443
+
6444
+ /**
6445
+ * Serializes the given message to binary data (in protobuf wire
6446
+ * format), writing to the given BinaryWriter.
6447
+ * @param {!proto.gateway.web.v1.PreviewSloResponse} message
6448
+ * @param {!jspb.BinaryWriter} writer
6449
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6450
+ */
6451
+ proto.gateway.web.v1.PreviewSloResponse.serializeBinaryToWriter = function(message, writer) {
6452
+ var f = undefined;
6453
+ f = message.getStatus();
6454
+ if (f != null) {
6455
+ writer.writeMessage(
6456
+ 1,
6457
+ f,
6458
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
6459
+ );
6460
+ }
6461
+ f = message.getSloStatus();
6462
+ if (f != null) {
6463
+ writer.writeMessage(
6464
+ 2,
6465
+ f,
6466
+ proto.gateway.web.v1.SloStatus.serializeBinaryToWriter
6467
+ );
6468
+ }
6469
+ f = message.getTimeline();
6470
+ if (f != null) {
6471
+ writer.writeMessage(
6472
+ 3,
6473
+ f,
6474
+ proto.gateway.web.v1.SloTimeline.serializeBinaryToWriter
6475
+ );
6476
+ }
6477
+ };
6478
+
6479
+
6480
+ /**
6481
+ * optional gateway.common.v1.ResponseStatus status = 1;
6482
+ * @return {?proto.gateway.common.v1.ResponseStatus}
6483
+ */
6484
+ proto.gateway.web.v1.PreviewSloResponse.prototype.getStatus = function() {
6485
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
6486
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
6487
+ };
6488
+
6489
+
6490
+ /**
6491
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
6492
+ * @return {!proto.gateway.web.v1.PreviewSloResponse} returns this
6493
+ */
6494
+ proto.gateway.web.v1.PreviewSloResponse.prototype.setStatus = function(value) {
6495
+ return jspb.Message.setWrapperField(this, 1, value);
6496
+ };
6497
+
6498
+
6499
+ /**
6500
+ * Clears the message field making it undefined.
6501
+ * @return {!proto.gateway.web.v1.PreviewSloResponse} returns this
6502
+ */
6503
+ proto.gateway.web.v1.PreviewSloResponse.prototype.clearStatus = function() {
6504
+ return this.setStatus(undefined);
6505
+ };
6506
+
6507
+
6508
+ /**
6509
+ * Returns whether this field is set.
6510
+ * @return {boolean}
6511
+ */
6512
+ proto.gateway.web.v1.PreviewSloResponse.prototype.hasStatus = function() {
6513
+ return jspb.Message.getField(this, 1) != null;
6514
+ };
6515
+
6516
+
6517
+ /**
6518
+ * optional SloStatus slo_status = 2;
6519
+ * @return {?proto.gateway.web.v1.SloStatus}
6520
+ */
6521
+ proto.gateway.web.v1.PreviewSloResponse.prototype.getSloStatus = function() {
6522
+ return /** @type{?proto.gateway.web.v1.SloStatus} */ (
6523
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.SloStatus, 2));
6524
+ };
6525
+
6526
+
6527
+ /**
6528
+ * @param {?proto.gateway.web.v1.SloStatus|undefined} value
6529
+ * @return {!proto.gateway.web.v1.PreviewSloResponse} returns this
6530
+ */
6531
+ proto.gateway.web.v1.PreviewSloResponse.prototype.setSloStatus = function(value) {
6532
+ return jspb.Message.setWrapperField(this, 2, value);
6533
+ };
6534
+
6535
+
6536
+ /**
6537
+ * Clears the message field making it undefined.
6538
+ * @return {!proto.gateway.web.v1.PreviewSloResponse} returns this
6539
+ */
6540
+ proto.gateway.web.v1.PreviewSloResponse.prototype.clearSloStatus = function() {
6541
+ return this.setSloStatus(undefined);
6542
+ };
6543
+
6544
+
6545
+ /**
6546
+ * Returns whether this field is set.
6547
+ * @return {boolean}
6548
+ */
6549
+ proto.gateway.web.v1.PreviewSloResponse.prototype.hasSloStatus = function() {
6550
+ return jspb.Message.getField(this, 2) != null;
6551
+ };
6552
+
6553
+
6554
+ /**
6555
+ * optional SloTimeline timeline = 3;
6556
+ * @return {?proto.gateway.web.v1.SloTimeline}
6557
+ */
6558
+ proto.gateway.web.v1.PreviewSloResponse.prototype.getTimeline = function() {
6559
+ return /** @type{?proto.gateway.web.v1.SloTimeline} */ (
6560
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.SloTimeline, 3));
6561
+ };
6562
+
6563
+
6564
+ /**
6565
+ * @param {?proto.gateway.web.v1.SloTimeline|undefined} value
6566
+ * @return {!proto.gateway.web.v1.PreviewSloResponse} returns this
6567
+ */
6568
+ proto.gateway.web.v1.PreviewSloResponse.prototype.setTimeline = function(value) {
6569
+ return jspb.Message.setWrapperField(this, 3, value);
6570
+ };
6571
+
6572
+
6573
+ /**
6574
+ * Clears the message field making it undefined.
6575
+ * @return {!proto.gateway.web.v1.PreviewSloResponse} returns this
6576
+ */
6577
+ proto.gateway.web.v1.PreviewSloResponse.prototype.clearTimeline = function() {
6578
+ return this.setTimeline(undefined);
6579
+ };
6580
+
6581
+
6582
+ /**
6583
+ * Returns whether this field is set.
6584
+ * @return {boolean}
6585
+ */
6586
+ proto.gateway.web.v1.PreviewSloResponse.prototype.hasTimeline = function() {
6587
+ return jspb.Message.getField(this, 3) != null;
6588
+ };
6589
+
6590
+
4788
6591
  /**
4789
6592
  * @enum {number}
4790
6593
  */